/* ============================================
   EZ BOOKS BY MICHELLE - Professional Style
   ============================================ */

:root {
    /* Colors - matched to EZ Books by Michelle logo */
    --navy: #1a3a5c;
    --navy-dark: #122a45;
    --navy-light: #2c4f73;
    --blue: #6b89a5;
    --blue-soft: #8aa3bc;
    --tan: #b89c7a;
    --tan-light: #d4b896;
    --cream: #faf6f0;
    --white: #ffffff;
    --text-dark: #1f2d3d;
    --text-muted: #5a6a7a;
    --text-light: #8b96a3;
    --border: #e4dcd0;
    
    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 140px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 58, 92, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.nav--scrolled {
    background: rgba(255, 255, 255, 0.97);
    height: 110px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 30px;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--navy-dark) !important;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 140px;
    background: linear-gradient(
        160deg,
        #fdfbf7 0%,
        #f4ede1 30%,
        #ebe2d2 60%,
        #fdfbf7 100%
    );
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 58, 92, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 156, 122, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 40px;
    max-width: 800px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 24px;
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-logo-img {
    max-width: 620px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 58, 92, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-padding);
    overflow-x: hidden;
}

.container {
    max-width: min(var(--container-width), 100%);
    margin: 0 auto;
    padding: 0 40px;
    min-width: 0;
    overflow-wrap: break-word;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-sub {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

.about-divider {
    width: 60px;
    height: 2px;
    background: var(--navy);
    margin: 20px 0 28px;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

.stat-small {
    font-size: 1.6rem;
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-photo-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(26, 58, 92, 0.12);
    border: 6px solid var(--white);
    outline: 2px solid var(--tan);
    aspect-ratio: 1 / 1;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.section-services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--cream);
    padding: 0 0 40px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    overflow: hidden;
}

.service-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    margin-bottom: 24px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--navy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -56px auto 24px;
    color: var(--navy);
    border: 4px solid var(--cream);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.1);
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-dark);
    padding: 0 32px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 0 32px;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.section-why {
    background: linear-gradient(135deg, #f4ede1 0%, #ebe2d2 100%);
    overflow: clip;
    width: 100%;
}

.why-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    min-width: 0;
}

.why-content {
    min-width: 0;
}

.why-content .section-title {
    text-align: left;
    min-width: 0;
    white-space: normal;
    text-wrap: balance;
}

.why-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 4px;
}

.why-feature h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.why-feature p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.why-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-card {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    text-align: center;
    overflow: hidden;
}

.why-logo {
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.section-reviews {
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.review-card {
    background: var(--cream);
    padding: 36px 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: all 0.4s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 58, 92, 0.08);
    border-color: var(--tan);
}

.review-card::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--tan);
    position: absolute;
    top: 12px;
    left: 24px;
    opacity: 0.4;
}

.review-quote {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-style: italic;
    margin: 0;
    padding-top: 16px;
}

.review-author {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.review-link {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
}

.review-link:hover {
    color: var(--tan);
}

.reviews-cta {
    text-align: center;
}

/* ============================================
   CTA SECTION
   ============================================ */
.section-cta {
    background: var(--navy);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--white);
    font-weight: 400;
    margin-bottom: 16px;
}

.cta-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.8;
}

.cta-content .btn-primary {
    background: var(--white);
    color: var(--navy);
}

.cta-content .btn-primary:hover {
    background: var(--cream);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 14px;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--navy);
}

.social-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--navy);
}

.social-link svg {
    flex-shrink: 0;
    color: var(--navy);
}

.contact-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 140px;
    width: auto;
}

.footer-tagline {
    font-family: var(--font-sans);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.footer-nav h4,
.footer-services h4 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tan);
    margin-bottom: 20px;
}

.footer-nav ul,
.footer-services ul {
    list-style: none;
}

.footer-nav li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-nav a,
.footer-services a {
    font-family: var(--font-sans);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-services a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content .section-title,
    .why-content .section-title,
    .contact-info .section-title {
        text-align: center;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content p {
        text-align: center;
    }
    
    .about-divider {
        margin: 20px auto 28px;
    }
    
    .about-lead {
        text-align: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hide-mobile {
        display: none;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 40px 40px;
        gap: 20px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .section-eyebrow {
        letter-spacing: 1px;
    }
    
    .why-content {
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        min-width: 0;
    }
    
    .why-content .section-title {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }
    
    .about-lead {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .why-feature p {
        font-size: 0.9rem;
    }
    
    .hero-logo-img {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .nav {
        height: 100px;
    }

    .nav--scrolled {
        height: 80px;
    }

    .nav-logo-img {
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    .about-content p {
        text-align: center;
    }
    
    .about-divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-card {
        padding: 30px;
    }
    
    .why-logo {
        max-width: 200px;
    }
    
    .why-feature {
        flex-direction: column;
        gap: 8px;
    }
    
    .why-feature-icon {
        margin-top: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrap {
        padding: 24px;
    }
    
    .footer-top {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-inner {
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-logo-img {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-eyebrow {
        letter-spacing: 0.5px;
        font-size: 10px;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    .about-divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-content p {
        text-align: center;
    }
    
    .section-why {
        padding: 40px 0;
    }
    
    .why-content .section-title {
        font-size: 1rem;
        text-align: center;
    }
    
    .why-content .about-lead {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .why-content .section-eyebrow {
        text-align: center;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .why-feature h4 {
        font-size: 12px;
    }
    
    .why-feature p {
        font-size: 0.8rem;
    }
    
    .why-card {
        padding: 20px;
    }
    
    .why-logo {
        max-width: 150px;
    }
}
