/*
Theme Name: Stevie Parks Books
Theme URI: https://stevieparksbooks.com
Author: Stevie Parks
Author URI: https://stevieparksbooks.com
Description: A premium classic WordPress theme for rare and collectible books. Features WooCommerce integration with Advanced Custom Fields for detailed book cataloging. Designed with elegance and functionality for digital book collections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stevie-parks-books
Tags: woocommerce, books, e-commerce, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, responsive-layout

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-light);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.site-content {
    min-height: 60vh;
    padding: 40px 0;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   WordPress Core
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 20px;
    }
}

/* ==========================================================================
   Contact Page Editorial Styles
   ========================================================================== */

.contact-page-wrapper {
    width: 100%;
}

.contact-editorial-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* Both columns same height */
    min-height: 70vh;
    background-color: var(--color-background);
}

.contact-visual-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    opacity: 0.92;
    filter: saturate(0.9) brightness(1.01) sepia(0.05);
    transition: all 0.4s ease;
}

.contact-image:hover {
    opacity: 0.98;
    filter: saturate(0.95) brightness(1.02) sepia(0.03);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
}

.contact-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
}

.contact-inner-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    /* Reduced hierarchy */
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-heading);
    letter-spacing: -0.01em;
}

.contact-intro {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    /* Editorial balance */
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Compact grouping */
    align-items: center;
}

.contact-link {
    font-family: var(--font-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    color: #4a4a4a;
}

.contact-link.email {
    font-size: 1.6rem;
    color: #2b2b2b;
    /* Darker, more presence */
    font-weight: 500;
}

.contact-link.phone {
    font-size: 1.25rem;
    /* Smaller hierarchy */
    color: #666;
    /* Softer/Background */
}

/* Subtle hover effect */
.contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 50%;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--color-primary);
}

.contact-link:hover::after {
    width: 100%;
    left: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-heading {
        font-size: 2rem;
    }

    .contact-link {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .contact-editorial-container {
        flex-direction: column;
        min-height: auto;
    }

    .contact-visual-side {
        flex: none;
        padding: 20px;
    }

    .contact-image {
        height: 45vh;
        width: 100%;
        border-radius: 10px;
    }

    .contact-info-side {
        padding: 3rem 20px;
    }

    .contact-heading {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .contact-link {
        font-size: 1.2rem;
    }
}