/* Costa Mella Studio - style.css */

/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
   :root {
    /* Palette */
    --clr-canvas: #FAF9F5;
    --clr-sec-bg: #F7EBD7;
    --clr-dark: #1A1713;
    --clr-sec-text: #6B6560;
    --clr-accent: #E8B8B0;
    --clr-sec-accent: #A8B89F;
    --clr-gold: #F7D358;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lora', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 5rem; /* 80px */
    --spacing-xxl: 7.5rem; /* 120px */

    /* Max Widths */
    --max-width-container: 1100px;
    --max-width-narrow: 800px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* Fixes iOS horizontal bounce */
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-canvas);
    color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

h1 {
    font-size: 3rem;
    font-size: clamp(3rem, 6vw, 4.5rem);
}

h2 {
    font-size: 2.5rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

p {
    font-family: var(--font-body);
    font-size: 18px;
    margin-bottom: var(--spacing-md);
    max-width: 65ch;
    line-height: 1.95;
    font-weight: 400;
}

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

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.padding-section {
    padding: var(--spacing-xl) 5%;
}

@media (min-width: 1024px) {
    .padding-section {
        padding: var(--spacing-xxl) 5%;
    }
}

.base-section {
    background-color: var(--clr-canvas);
    color: var(--clr-dark);
    border-top: 1px solid rgba(232, 184, 176, 0.3);
}

.cream-section {
    background-color: var(--clr-sec-bg);
    color: var(--clr-dark);
    border-top: none; /* Let the cream define the visual break natively, or we can use the divider. The instructions said cream creates breathing room. We will still add the top border. */
    border-top: 1px solid rgba(232, 184, 176, 0.3);
}

.parchment-bg {
    background-color: #F0EBE1;
    color: var(--clr-dark);
}

.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Phase 11 Dynamic Offsets */
.asymmetric-offset-right {
    position: relative;
    right: -2.5vw;
}

.asymmetric-offset-left {
    position: relative;
    left: -5vw;
    text-align: left;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .asymmetric-offset-right,
    .asymmetric-offset-left {
        right: 0;
        left: 0;
    }
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

/* Aesthetic Objects */
.editorial-img {
    width: 100%;
    object-fit: cover;
    display: block;
    /* Clean, straight, intentional */
    border-radius: 0;
    box-shadow: none;
}

.primary-accent {
    color: var(--clr-dark);
    background-color: transparent;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
    border: 1px solid var(--clr-accent);
    border-radius: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.primary-accent:hover {
    background-color: rgba(232, 184, 176, 0.1);
    border-color: var(--clr-dark);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    padding: 2rem 5%;
    z-index: 1000;
    background-color: transparent;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.main-nav.scrolled {
    background-color: var(--clr-canvas);
}

.nav-link {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 400;
    color: var(--clr-dark);
    text-shadow: none;
    position: relative;
    padding: 0.5rem 1rem;
    pointer-events: auto;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.4;
}

nav a, 
.nav-menu a, 
.menu-overlay a,
.mobile-menu a,
[class*="menu"] a,
[class*="nav"] a,
[class*="menu"] span,
.menu-toggle,
.mobile-menu-toggle,
.close-button,
#menu a {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em !important;
}

.main-nav.scrolled .nav-link {
    color: var(--clr-dark);
    text-shadow: none;
}

.nav-link:hover {
    color: var(--clr-accent);
    opacity: 1;
}

/* ==========================================================================
   Hero Section (#home)
   ========================================================================== */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 25vh 5% 0 5%;
    overflow: hidden;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--clr-dark); /* Fades from this dark color #1A1713 */
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0; /* JS will fade this in */
    transition: opacity 1.5s ease;
}

.hero-bg-video.video-initialized {
    opacity: 1;
}

.video-texture-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 150px rgba(26, 23, 19, 0.7); /* Subtle edge vignette using dark tone */
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.85%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
    opacity: 0.15; /* Film grain overlay */
}

/* Phase 11: 50% White Overlay for Video Backgrounds */
.white-wash-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-canvas); 
    opacity: 0.50; /* Washes out the footage to act as dynamic texture */
    z-index: 3;
    pointer-events: none;
}

/* Phase 11: Dynamic Absolute Video Underlay */
.parallax-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.parallax-video-bg .hero-bg-video {
    position: absolute;
    top: -20vh;
    left: 0;
    width: 100%;
    height: 140vh; /* Scaled slightly to allow Y-translation buffer */
    object-fit: cover;
    z-index: 1;
}

/* Ensure the wrapper respects absolute children bounds safely */
.story-wrapper {
    position: relative;
    width: 100%;
}

.transparent-bg {
    background-color: transparent !important;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-dark);
    opacity: 0.15; /* Subdued for clarity */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--max-width-container);
    text-align: center;
    color: var(--clr-canvas); 
}

.hero-text h1 {
    font-size: clamp(36px, 6vw, 72px); /* Never reduces below 36px on mobile */
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.hero-rule {
    width: 60px;
    height: 1px;
    background-color: rgba(232, 184, 176, 0.4);
    border: none;
    margin: var(--spacing-md) auto;
}

.hero-text .subline {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-sec-text);
    margin: 0 auto;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 0;
}

/* Network Strip (Adblock Safe Naming) */
.trusted-band {
    background-color: var(--clr-dark);
    padding: 32px 5% var(--spacing-md) 5%;
    display: block;
    width: 100%;
}

.partner-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 1.5rem;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
}

.partner-row img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    object-fit: contain !important;
    display: block !important;
    opacity: 0.7 !important;
}

@media (max-width: 1024px) {
    .partner-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem 3%;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .partner-row img {
        height: 28px !important;
        max-height: 28px !important;
        max-width: 18% !important;
    }
}

.partner-row:hover {
    opacity: 1;
}

.mobile-logo-break {
    display: none;
}

/* ==========================================================================
   Love Unscripted Section Updates
   ========================================================================== */
.love-hero-section {
    position: relative;
    width: 100%;
}

.love-hero-container {
    position: relative;
    width: 100%;
    height: 640px;
    display: block;
}

.love-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.love-gradient-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top left, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.love-hero-overlay {
    position: absolute;
    top: 8%;
    left: 5%;
    max-width: 400px;
    padding: 2rem;
    z-index: 2;
}

.love-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: white;
    opacity: 0.75;
    display: block;
    margin-bottom: 0.5rem;
}

.love-heading {
    font-family: var(--font-heading);
    font-weight: 300;
    font-style: italic;
    font-size: 52px;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.love-divider {
    width: 48px;
    border-top: 1px solid rgba(255,255,255,0.35);
    margin: 16px 0;
}

.love-intro {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    color: white;
    opacity: 1.0;
    line-height: 1.95;
    max-width: 380px;
    margin-bottom: 0;
}

.love-parchment-band {
    max-width: 680px;
    margin: 0 auto;
}

.love-parchment-band p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 2;
    color: var(--clr-dark);
}

.dip-kiss-standalone {
    position: relative;
    width: 100%;
    height: 480px;
    display: block;
}

.dip-kiss-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
    display: block;
}

@media (max-width: 768px) {
    .love-parchment-band {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    
    .love-parchment-band p {
        color: var(--clr-dark);
    }

    .love-hero-container {
        height: 360px;
    }

    .dip-kiss-standalone {
        height: 280px;
    }
}

/* ==========================================================================
   Dylan Costa Section Updates
   ========================================================================== */
.dylan-hero-section {
    position: relative;
    width: 100%;
}

.dylan-hero-container {
    position: relative;
    width: 100%;
    height: 640px;
    overflow: hidden;
    display: block;
}

.dylan-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.dylan-hero-overlay {
    position: absolute;
    top: 12%;
    right: 5%;
    max-width: 380px;
    z-index: 2;
    background: radial-gradient(ellipse at right, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0) 65%);
    padding: 2rem;
    color: white;
}

.dylan-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: white;
    opacity: 0.75;
    display: block;
    margin-bottom: 0.5rem;
}

.dylan-heading {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 48px;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.dylan-divider {
    width: 48px;
    border-top: 1px solid rgba(255,255,255,0.4);
    margin: 16px 0;
}

.dylan-intro {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    color: white;
    opacity: 1.0;
    line-height: 1.9;
    max-width: 360px;
    margin-bottom: 0;
}

.dylan-parchment-band {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 80px;
}

.dylan-parchment-band p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 2;
}

@media (max-width: 768px) {
    .dylan-hero-container {
        height: 380px;
    }
    .dylan-parchment-band {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

/* ==========================================================================
   Two Column Layouts (Story, Celebrations, Gear)
   ========================================================================== */
.two-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: var(--max-width-container);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .two-column {
        flex-direction: row;
        gap: var(--spacing-xxl);
        align-items: center;
    }
    
    .two-column > div {
        flex: 1;
    }

    .two-column .image-column {
        display: flex;
        align-self: center;
    }

    .two-column .image-column .editorial-img {
        height: auto;
        width: 100%;
        max-height: 85vh; /* Prevents extremely tall crops on ultrawide */
        object-fit: cover;
    }

    .two-column.reverse {
        flex-direction: row-reverse;
    }
}

.text-column {
    padding: var(--spacing-md) 0;
}

/* ==========================================================================
   Heritage Section 
   ========================================================================== */
.heritage-hero-section {
    position: relative;
    width: 100%;
}

.heritage-hero-container {
    position: relative;
    width: 100%;
    height: 580px;
    display: block;
}

.heritage-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.heritage-hero-overlay {
    position: absolute;
    bottom: 10%;
    left: 5%;
    max-width: 420px;
    background: radial-gradient(ellipse at bottom left, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 65%);
    padding: 2rem;
}

.heritage-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: white;
    opacity: 0.8;
    display: block;
    margin-bottom: 0.5rem;
}

.heritage-heading {
    font-family: var(--font-heading);
    font-weight: 300;
    font-style: italic;
    font-size: 52px;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.heritage-divider {
    width: 40px;
    border-top: 1px solid rgba(255,255,255,0.35);
    margin: 14px 0;
}

.heritage-intro {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    color: white;
    opacity: 1.0;
    line-height: 1.85;
    max-width: 400px;
    margin-bottom: 0;
}

.heritage-parchment-band {
    max-width: 680px;
    margin: 0 auto;
}

.heritage-parchment-band p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 2;
}

@media (max-width: 768px) {
    .heritage-hero-container {
        height: 360px;
    }
    .heritage-parchment-band {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

/* ==========================================================================
   Commission Section
   ========================================================================== */
.commission-invite-img {
    display: block;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 48px;
}

/* ==========================================================================
   Gear Section
   ========================================================================== */
.subsection {
    margin: 0 auto;
}

blockquote {
    border: none;
    text-align: center;
    margin: var(--spacing-xl) auto;
    max-width: var(--max-width-narrow);
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: rgba(168, 184, 159, 0.08); /* 8% sage tint to bring palette in */
}

blockquote p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: var(--clr-dark);
}

blockquote cite {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--clr-sec-text);
}

.closing-line {
    margin-top: var(--spacing-lg);
    font-weight: 500;
}

/* ==========================================================================
   Credentials 
   ========================================================================== */
.label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    margin-top: var(--spacing-md);
    color: var(--clr-sage);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    width: 100%;
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
}

.input-group {
    margin-bottom: var(--spacing-md);
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--clr-sec-text);
    color: var(--clr-dark);
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: 1rem 0;
    border-radius: 0;
    outline: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom-color: var(--clr-dark);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--clr-sec-text);
    opacity: 0.6;
}

.submit-btn {
    width: 100%;
    margin-top: var(--spacing-sm);
    background: transparent;
    color: var(--clr-dark);
    border: 1px solid var(--clr-accent);
}

.submit-btn:hover {
    opacity: 0.7;
    border-color: var(--clr-sec-text);
}

/* ==========================================================================
   Secondary Footer
   ========================================================================== */
.secondary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    padding-top: var(--spacing-sm);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: var(--spacing-sm);
}

@media (max-width: 768px) {
    .secondary-footer {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

/* ==========================================================================
   Parchment Quote Section
   ========================================================================== */
.parchment-quote {
    background: #F0EBE1;
    padding-top: 80px;
    padding-bottom: 80px;
}

.quote-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 32px;
    color: #211F1B;
    letter-spacing: 0.02em;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.quote-rule {
    width: 60px;
    border: none;
    border-top: 1px solid #C8917A;
    margin: 0 auto;
}

.top-rule {
    margin-bottom: 24px;
}

.bottom-rule {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .parchment-quote {
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .quote-text {
        font-size: 26px;
    }
}
/* ==========================================================================
   Mobile/Desktop Utility
   ========================================================================== */
.mobile-only {
    display: none !important;
}

/* ==========================================================================
   DEFINITIVE MOBILE OVERRIDES — single source of truth for all mobile fixes
   ========================================================================== */
@media (max-width: 768px) {

    /* --- SHOW MOBILE-ONLY ELEMENTS --- */
    .mobile-only {
        display: block !important;
    }

    /* --- FIX 1: HERO — no gap between photo and tagline --- */
    .hero-section {
        display: block !important;
        position: relative !important;
        min-height: unset !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        background-color: #211F1B !important;
    }

    .hero-image-bg {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 56vw !important;
        min-height: 200px !important;
        max-height: 300px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .hero-bg-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }

    .hero-overlay {
        display: none !important;
    }

    .hero-content {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 40px 5% 48px !important;
        background-color: #211F1B !important;
        min-height: unset !important;
    }

    .hero-content h1,
    .hero-text h1 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* --- FIX 2: HIDE ALL SECTION OVERLAYS ON MOBILE --- */
    /* Explicit targeting — no wildcard, no ambiguity */
    .love-hero-overlay,
    .love-gradient-zone,
    .dylan-hero-overlay,
    .heritage-hero-overlay,
    .optics-hero-overlay {
        display: none !important;
        visibility: hidden !important;
    }

    /* --- FIX 3: SECTION IMAGE HEIGHTS ON MOBILE --- */
    .love-hero-container,
    .dylan-hero-container,
    .heritage-hero-container {
        height: 300px !important;
    }

    .dip-kiss-standalone {
        height: 280px !important;
    }

    /* --- FIX 4: PARCHMENT TEXT BANDS — typography and spacing --- */
    .love-parchment-band,
    .dylan-parchment-band,
    .heritage-parchment-band,
    .optics-parchment-band {
        background-color: #F0EBE1 !important;
        padding: 48px 32px !important;
        text-align: center !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    /* Headings in parchment bands */
    .love-parchment-band h3,
    .dylan-parchment-band h3,
    .heritage-parchment-band h3,
    .optics-parchment-band h3 {
        font-family: 'Cormorant Garamond', serif !important;
        font-weight: 300 !important;
        font-size: 36px !important;
        color: #211F1B !important;
        margin-bottom: 16px !important;
        text-shadow: none !important;
        text-align: center !important;
    }

    /* Italic headings */
    .love-parchment-band h3,
    .heritage-parchment-band h3,
    .optics-parchment-band h3 {
        font-style: italic !important;
    }

    /* Non-italic heading */
    .dylan-parchment-band h3 {
        font-style: normal !important;
    }

    /* Divider rules in mobile bands */
    .mobile-rule {
        width: 48px !important;
        height: 0 !important;
        border: none !important;
        border-top: 1px solid #C8917A !important;
        margin: 0 auto 20px auto !important;
        display: block !important;
    }

    /* Body copy in parchment bands */
    .love-parchment-band p,
    .dylan-parchment-band p,
    .heritage-parchment-band p,
    .optics-parchment-band p {
        font-family: 'Lora', serif !important;
        font-weight: 400 !important;
        font-size: 17px !important;
        color: #3D3530 !important;
        line-height: 1.9 !important;
        text-align: center !important;
        opacity: 1 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }

    /* --- FIX 5: OPTICS PARCHMENT BAND PADDING --- */
    .optics-parchment-band {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    /* --- FIX 6: HERITAGE PARCHMENT BAND PADDING --- */
    .heritage-parchment-band {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    /* --- TRUSTED BAND MOBILE --- */
    .trusted-band {
        padding-top: 32px !important;
    }

    .partner-row img {
        height: 26px !important;
        max-height: 26px !important;
        max-width: 18% !important;
    }

    /* --- GENERAL MOBILE TEXT --- */
    h1, h2, h3, p, .text-column, .label {
        text-align: center !important;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-top: 1px solid rgba(232, 184, 176, 0.3);
    background-color: var(--clr-canvas);
    color: var(--clr-dark);
}

@media (min-width: 768px) {
    .site-footer {
        flex-direction: row;
    }
}

.footer-left p {
    font-size: 0.85rem;
    margin-bottom: 0;
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    gap: var(--spacing-md);
}

.footer-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav a:hover {
    color: var(--clr-sage);
}

/* Animations Removed to guarantee Safari Layout Consistency */

/* Mobile Navigation and Structural Overrides */
.mobile-menu-toggle {
    display: none;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-dark);
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.nav-links-container {
    display: flex;
    gap: var(--spacing-md);
}

#celebrations h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .optics-hero-overlay.desktop-only {
        display: none !important;
    }

    .mobile-logo-break {
        display: block;
        flex-basis: 100%;
        height: 0;
    }

    .hero-text .subline {
        margin-bottom: 0;
    }

    .two-column .image-column {
        margin: 0 auto;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        text-align: center;
    }

    .main-nav {
        justify-content: flex-end;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--clr-canvas);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1000;
        gap: var(--spacing-lg);
    }

    .nav-links-container.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        opacity: 1;
    }
}

/* ==========================================================================
   Image Filters (Phase 9)
   ========================================================================== */
.noir-filter {
    filter: grayscale(100%) contrast(1.2) brightness(0.9);
}

/* ==========================================================================
   Before the Day / Mella Collection Section
   ========================================================================== */
.mella-collection-dark {
    background-color: #211F1B;
    color: white;
}

.mella-collection-dark p {
    color: white;
}

.mella-collection-dark h2 {
    color: white;
}

/* ==========================================================================
   Optics Section Updates
   ========================================================================== */
.optics-hero-section {
    position: relative;
    width: 100%;
}

.optics-hero-container {
    position: relative;
    width: 100%;
    height: 620px;
    display: block;
}

.optics-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;
    display: block;
}

.optics-hero-overlay {
    position: absolute;
    top: 10%;
    right: 6%;
    max-width: 380px;
    background: radial-gradient(ellipse at top right, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0) 70%);
    padding: 2rem;
    color: white;
}

.optics-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.25em;
    color: white;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.5rem;
}

.optics-heading {
    font-family: var(--font-heading);
    font-weight: 300;
    font-style: italic;
    font-size: 38px;
    color: white;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.optics-intro {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: white;
    opacity: 0.88;
    line-height: 1.8;
    max-width: 320px;
    margin-bottom: 0;
}

.optics-divider {
    width: 40px;
    border-top: 1px solid rgba(255,255,255,0.4);
    margin: 16px 0;
}

.optics-parchment-band {
    max-width: 680px;
    margin: 0 auto;
}

.optics-parchment-band p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 2;
}

@media (max-width: 768px) {
    .optics-hero-container {
        height: 380px;
    }
    .optics-parchment-band {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

/* ==========================================================================
   Commission Section Updates
   ========================================================================== */
.commission-invite-img {
    display: block;
    margin: 60px auto 48px auto;
    max-width: 480px;
    height: auto;
}

@media (max-width: 768px) {
    .commission-invite-img {
        max-width: 100%;
    }
}
