/* ============================================================
   BabyBooey — Shared Stylesheet
   Royal Blue + Gold | Luxury Baby Brand
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Royal Blue Palette */
    --navy:        #0a1628;
    --royal:       #1a2744;
    --royal-mid:   #243456;
    --royal-light: #2e4068;
    --blue-muted:  #4a5f85;

    /* Gold Palette */
    --gold:        #c9a84c;
    --gold-light:  #d4b96a;
    --gold-pale:   #e8d5a0;
    --gold-glow:   rgba(201, 168, 76, 0.15);
    --gold-shimmer:rgba(201, 168, 76, 0.08);

    /* Neutrals */
    --cream:       #f5f0e8;
    --warm-white:  #faf8f4;
    --sand:        #e8e0d0;
    --text-primary:#1a1a18;
    --text-body:   #3d3b36;
    --text-muted:  #7a756b;
    --white:       #ffffff;

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body:    'Raleway', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --section-pad: clamp(4rem, 8vw, 8rem);
    --container-max: 1200px;
    --container-narrow: 900px;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-body);
    background-color: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--navy);
    color: var(--gold);
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-size: 0.875rem;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.page-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 1rem 2.4rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

.btn-primary {
    background: var(--navy);
    color: var(--gold-light);
    border: 1px solid rgba(201, 168, 76, 0.2);
}
.btn-primary:hover {
    background: var(--royal);
    border-color: var(--gold);
    box-shadow: 0 4px 24px rgba(201, 168, 76, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--sand);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-ghost {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid rgba(201, 168, 76, 0.3);
}
.btn-ghost:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
}

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


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: background 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth), box-shadow 0.4s;
}

.site-header.scrolled {
    background: rgba(10, 22, 40, 0.97);
    padding: 0.75rem 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    transition: opacity 0.3s;
}
.logo-link:hover .logo-img { opacity: 0.85; }

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

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover,
.nav-link.active { color: var(--gold-light); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.nav-toggle-bar {
    width: 24px;
    height: 1.5px;
    background: var(--gold-light);
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }


/* ============================================================
   HERO — Homepage
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(165deg, var(--navy) 0%, var(--royal) 40%, var(--royal-mid) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-bg-texture {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle gold ribbon line */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
    opacity: 0.5;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.hero-text { color: var(--cream); }

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
    color: var(--cream);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(245, 240, 232, 0.7);
    max-width: 460px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1.2s var(--ease-out) 0.5s forwards;
}

.hero-image-frame {
    position: relative;
    z-index: 2;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.hero-image-accent {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 50%;
    z-index: 1;
    animation: slowSpin 60s linear infinite;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}
.hero-scroll-indicator span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s var(--ease-smooth) infinite;
}


/* ============================================================
   MATERIALS SECTION
   ============================================================ */
.materials {
    padding: var(--section-pad) 0;
    background: var(--warm-white);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.material-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(201,168,76,0.1);
    background: var(--white);
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.material-card:hover {
    border-color: rgba(201,168,76,0.25);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.material-icon {
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.material-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.material-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}


/* ============================================================
   LIFESTYLE SECTION
   ============================================================ */
.lifestyle {
    padding: var(--section-pad) 0;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

/* Subtle gold ribbon divider */
.lifestyle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
}

.lifestyle-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.lifestyle-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.lifestyle-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(201,168,76,0.15);
    pointer-events: none;
}

.lifestyle-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 8s var(--ease-smooth);
}
.lifestyle-image-wrapper:hover .lifestyle-image {
    transform: scale(1.03);
}

.lifestyle-text {
    padding: 2rem 0;
}

.lifestyle-desc {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 2rem;
    max-width: 480px;
}


/* ============================================================
   STORY PREVIEW
   ============================================================ */
.story-preview {
    padding: var(--section-pad) 0;
    background: var(--warm-white);
}

.story-preview-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.story-preview-desc {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 2rem;
    max-width: 540px;
}

.story-preview-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.story-preview-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border: 1px solid rgba(201,168,76,0.12);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transition: transform 0.6s var(--ease-out);
}
.story-preview-img:hover {
    transform: scale(1.02);
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    padding: var(--section-pad) 0;
    background: var(--navy);
    color: var(--cream);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.contact .section-title { color: var(--cream); }

.contact-desc {
    font-size: 0.95rem;
    color: rgba(245,240,232,0.65);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details { margin-top: 1.5rem; }

.contact-detail-item {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--gold-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.15);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    transition: border-color 0.3s, background 0.3s;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(245,240,232,0.3); }
.form-input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.08);
}

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

.form-status {
    font-size: 0.85rem;
    min-height: 1.5rem;
}
.form-status.success { color: var(--gold-light); }
.form-status.error { color: #e07a6a; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    border-top: 1px solid rgba(201,168,76,0.1);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    margin-bottom: 0.4rem;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(245,240,232,0.4);
}

.footer-nav {
    display: flex;
    gap: 2rem;
}
.footer-nav a {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.5);
    transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-legal p {
    font-size: 0.7rem;
    color: rgba(245,240,232,0.3);
    line-height: 1.8;
}
.footer-legal a {
    color: rgba(245,240,232,0.4);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-legal a:hover { color: var(--gold-light); }


/* ============================================================
   PRODUCT PAGE
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
    padding: 6rem 0 1rem;
    background: linear-gradient(165deg, var(--navy) 0%, var(--royal) 100%);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.breadcrumb-list li { color: rgba(245,240,232,0.4); }
.breadcrumb-list li + li::before {
    content: '—';
    margin-right: 0.5rem;
    color: rgba(201,168,76,0.3);
}
.breadcrumb-list a {
    color: rgba(245,240,232,0.6);
    transition: color 0.3s;
}
.breadcrumb-list a:hover { color: var(--gold-light); }

/* Product Hero */
.product-hero {
    padding: 3rem 0 var(--section-pad);
    background: var(--navy);
    position: relative;
}

.product-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(201,168,76,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.product-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Product Gallery */
.product-gallery { position: relative; }

.product-image-main {
    background: var(--cream);
    border: 1px solid rgba(201,168,76,0.1);
    padding: 2rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: auto;
    transition: transform 6s var(--ease-smooth);
}
.product-image-main:hover .product-img {
    transform: scale(1.04);
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
}

.thumb {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(201,168,76,0.2);
    background: var(--cream);
    padding: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
    overflow: hidden;
}
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb.active,
.thumb:hover { border-color: var(--gold); }

/* Product Details */
.product-details {
    padding-top: 2rem;
    color: var(--cream);
}

.product-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 300;
    color: var(--cream);
    margin-bottom: 0.75rem;
}

.product-tagline {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(245,240,232,0.55);
    margin-bottom: 2rem;
}

/* Subtle Price Block */
.product-price-block {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(201,168,76,0.15);
    border-bottom: 1px solid rgba(201,168,76,0.15);
}

.price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.price-row:last-child { margin-bottom: 0; }

.price-currency {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: rgba(245,240,232,0.5);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.price-note {
    font-size: 0.72rem;
    color: rgba(245,240,232,0.4);
    letter-spacing: 0.04em;
}

.price-row-alt {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.price-alt {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: rgba(245,240,232,0.5);
}

.price-divider {
    color: rgba(201,168,76,0.3);
    font-size: 0.8rem;
}

.product-availability {
    font-size: 0.75rem;
    color: rgba(245,240,232,0.4);
    margin-top: 1rem;
    letter-spacing: 0.04em;
}

/* Accordion */
.product-accordion {
    margin-top: 2.5rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(201,168,76,0.12);
}

.accordion-header {
    padding: 1.1rem 0;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}
.accordion-header:hover { color: var(--gold); }
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--gold);
    transition: transform 0.3s;
}
details[open] .accordion-header::after {
    content: '−';
}

.accordion-body {
    padding: 0 0 1.25rem;
    font-size: 0.9rem;
    color: rgba(245,240,232,0.6);
    line-height: 1.8;
}


/* ============================================================
   WHY NATURAL SECTION
   ============================================================ */
.why-natural {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.why-item {
    padding: 2rem;
    background: var(--warm-white);
    border: 1px solid rgba(201,168,76,0.08);
    transition: border-color 0.4s, transform 0.4s;
}
.why-item:hover {
    border-color: rgba(201,168,76,0.2);
    transform: translateY(-2px);
}

.why-item h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.why-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}


/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    padding: var(--section-pad) 0;
    background: var(--navy);
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--cream);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 0.95rem;
    color: rgba(245,240,232,0.6);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
    padding: 8rem 0 var(--section-pad);
    background: linear-gradient(165deg, var(--navy) 0%, var(--royal) 40%, var(--royal-mid) 100%);
    position: relative;
    overflow: hidden;
}

/* Match the gold ribbon from homepage hero */
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
    opacity: 0.5;
}

.about-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.about-hero-inner {
    max-width: var(--container-narrow);
    position: relative;
    z-index: 1;
}

.about-hero-text {
    padding: 3rem 0;
}

.about-hero .page-title {
    color: var(--cream);
}

.about-hero .section-eyebrow {
    color: var(--gold);
}

.about-hero-lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(245,240,232,0.7);
    line-height: 1.85;
    max-width: 600px;
}

/* Story Grid */
.about-story {
    padding: var(--section-pad) 0;
    background: var(--warm-white);
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid rgba(201,168,76,0.1);
    position: sticky;
    top: 6rem;
}

.about-story-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    color: var(--text-primary);
}
.about-story-content h2:first-child { margin-top: 0; }

.about-story-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 1rem;
}

/* Values */
.about-values {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    padding: 2.5rem 2rem;
    background: var(--warm-white);
    border: 1px solid rgba(201,168,76,0.1);
    transition: border-color 0.4s, transform 0.4s;
}
.value-card:hover {
    border-color: rgba(201,168,76,0.25);
    transform: translateY(-3px);
}

.value-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold-pale);
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%      { opacity: 0.8; transform: scaleY(1.2); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-image-wrapper { margin-top: 2rem; }
    .hero-image { max-width: 400px; margin: 0 auto; }

    .lifestyle-inner { grid-template-columns: 1fr; }
    .lifestyle-text { text-align: center; }
    .lifestyle-desc { margin-left: auto; margin-right: auto; }

    .story-preview-inner { grid-template-columns: 1fr; }
    .story-preview-visual { display: none; }

    .contact-inner { grid-template-columns: 1fr; }

    .product-hero-inner { grid-template-columns: 1fr; }
    .product-details { padding-top: 0; }

    .about-story-grid { grid-template-columns: 1fr; }
    .about-img { position: static; max-width: 500px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s var(--ease-out);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }
    .nav-links.open { right: 0; }

    .materials-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-nav { justify-content: center; flex-wrap: wrap; }
    .footer-legal-nav { justify-content: center; }

    .hero { min-height: auto; padding: 7rem 0 4rem; }

    .price-row { flex-direction: column; gap: 0.25rem; }
    .price-row-alt { flex-direction: column; gap: 0.25rem; }

    .checkout-grid { grid-template-columns: 1fr; }
    .modal { padding: 1.5rem; }
    .phone-group { flex-direction: column; }
    .phone-code { width: 100%; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .product-title { font-size: 1.6rem; }
    .btn { padding: 0.85rem 1.8rem; font-size: 0.75rem; }
}

/* --- Footer Legal Nav --- */
.footer-legal-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-legal-nav a {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.35);
    transition: color 0.3s;
}
.footer-legal-nav a:hover { color: var(--gold-light); }


/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-smooth), visibility 0.4s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--navy);
    border: 1px solid rgba(201,168,76,0.15);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: clamp(2rem, 4vw, 3rem);
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

/* Custom scrollbar for modal */
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); border-radius: 2px; }

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: rgba(245,240,232,0.5);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0.25rem;
}
.modal-close:hover { color: var(--gold); }

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}

.modal-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    margin-bottom: 1rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(245,240,232,0.45);
}

/* Checkout Form (inside modal, on navy) */
.checkout-form .form-label {
    color: var(--gold-light);
}
.checkout-form .form-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.15);
    color: var(--cream);
}
.checkout-form .form-input::placeholder { color: rgba(245,240,232,0.25); }
.checkout-form .form-input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.08);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group-full { grid-column: 1 / -1; }

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a84c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    background: var(--navy);
    color: var(--cream);
}

.phone-group {
    display: flex;
    gap: 0.5rem;
}

.phone-code {
    width: 90px;
    flex-shrink: 0;
    text-align: center;
    background-position: right 0.5rem center;
    padding-right: 1.5rem;
}

.phone-number { flex: 1; }

/* Order Summary */
.order-summary {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(201,168,76,0.05);
    border: 1px solid rgba(201,168,76,0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: rgba(245,240,232,0.6);
}

.summary-total {
    border-top: 1px solid rgba(201,168,76,0.15);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 500;
    color: var(--cream);
    font-size: 0.95rem;
}

.checkout-legal {
    font-size: 0.7rem;
    color: rgba(245,240,232,0.35);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
}
.checkout-legal a {
    color: var(--gold-light);
    text-decoration: underline;
    text-decoration-color: rgba(201,168,76,0.3);
    transition: text-decoration-color 0.3s;
}
.checkout-legal a:hover {
    text-decoration-color: var(--gold);
}


/* ============================================================
   LEGAL PAGES (Terms, Privacy, Refunds)
   ============================================================ */
.legal-page {
    padding: 8rem 0 var(--section-pad);
    background: var(--warm-white);
}

.legal-page .container {
    max-width: var(--container-narrow);
}

.legal-page h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.legal-last-updated {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 0.04em;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.85;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(201,168,76,0.3);
}
.legal-content a:hover {
    text-decoration-color: var(--gold);
}


/* --- Print --- */
@media print {
    .site-header, .hero-scroll-indicator, .nav-toggle, .modal-overlay { display: none; }
    body { color: #000; background: #fff; }
    .hero { min-height: auto; background: none; color: #000; padding: 2rem 0; }
    .hero-title, .hero-subtitle { color: #000; }
    .contact { background: #f5f5f5; color: #000; }
}
