/* ================================================================
   ABBAYE DE MORGEOT — ELEGANCE LAYER
   Sublime refinements: ornaments, micro-interactions, gold accents.
   Loads AFTER bundle.css. All rules are additive/override.
   ================================================================ */

/* ================================================
   1. HERO — CINEMATIC DEPTH & CREST FLOAT
   ================================================ */
.hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(92,26,26,0.55) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 25% 30%, rgba(201,168,76,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 75% 70%, rgba(201,168,76,0.06) 0%, transparent 55%),
        linear-gradient(160deg, #2A0A0A 0%, #3D0F0F 45%, #200606 100%);
}

/* Fine paper-grain texture for depth */
.hero::before {
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0 0.55  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>"),
        radial-gradient(ellipse at 30% 40%, rgba(201,168,76,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(92,26,26,0.10) 0%, transparent 50%);
    background-size: 220px 220px, auto, auto;
    opacity: 0.9;
    mix-blend-mode: normal;
}

/* Hero crest floats gently */
.hero-crest {
    filter:
        drop-shadow(0 0 42px rgba(201,168,76,0.22))
        drop-shadow(0 10px 24px rgba(0,0,0,0.35));
    animation: heroCrestFloat 7s ease-in-out infinite;
    will-change: transform;
}
@keyframes heroCrestFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Bottom hero gold line — gentle shimmer loop */
.hero::after {
    background-size: 200% 100%;
    animation: heroGoldShimmer 9s ease-in-out infinite;
}
@keyframes heroGoldShimmer {
    0%, 100% { background-position: 0% 0%; }
    50%      { background-position: 200% 0%; }
}

/* H1 — subtle depth */
.hero h1 {
    text-shadow: 0 2px 24px rgba(0,0,0,0.35), 0 0 40px rgba(201,168,76,0.08);
}

/* Hero badge — refined with tiny dots */
.hero-badge {
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.hero-badge::before,
.hero-badge::after {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    margin: 0 0.7em;
    vertical-align: middle;
    opacity: 0.7;
}

/* Subtitle — flanking lines (wrapped so they appear AROUND the text, not inline) */
.hero-content .hero-subtitle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}
.hero-subtitle {
    margin-bottom: 0 !important;
    white-space: nowrap;
}
/* Decorative flanking lines via hero-content pseudo (no content change needed) */
.hero-content .hero-subtitle::before,
.hero-content .hero-subtitle::after {
    content: '';
    display: inline-block;
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-light));
    opacity: 0.65;
    vertical-align: middle;
    margin: 0 0.9rem;
}
.hero-content .hero-subtitle::after {
    background: linear-gradient(90deg, var(--color-gold-light), transparent);
}

/* ================================================
   2. STATS BAR — PAPER LIFT & GOLD MICRO-LINES
   ================================================ */
.stats-bar {
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF8F0 100%);
    box-shadow:
        0 1px 0 rgba(201,168,76,0.18),
        0 25px 45px -30px rgba(92,26,26,0.18);
}
.stats-bar > .stat-item {
    position: relative;
    transition: background 0.5s ease;
}
.stats-bar > .stat-item:hover {
    background: linear-gradient(180deg, rgba(240,228,192,0.25), rgba(240,228,192,0) 70%);
}
.stats-bar > .stat-item::after {
    content: '';
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--color-gold);
    transition: width 0.55s cubic-bezier(0.4,0,0.2,1);
}
.stats-bar > .stat-item:hover::after { width: 36px; }

.stat-number {
    font-size: clamp(2rem, 3.2vw, 2.6rem) !important;
    letter-spacing: 0.015em;
    color: var(--color-burgundy);
    font-weight: 500;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.stat-item:hover .stat-number {
    color: var(--color-burgundy-dark);
}

/* ================================================
   3. SECTION HEADERS — ALDINE LEAF FLOURISH (BOLDER)
   ================================================ */
.section-header h2 {
    position: relative;
    display: inline-block;
    padding: 0 2.8em;
}
.section-header h2::before,
.section-header h2::after {
    content: '❦';
    position: absolute;
    top: 50%;
    transform: translateY(-52%);
    font-family: Georgia, serif;
    font-size: 0.85em;
    color: var(--color-gold);
    opacity: 0.95;
}
.section-header h2::before { left: 0; }
.section-header h2::after  { right: 0; transform: translateY(-52%) scaleX(-1); }

/* Subtitle italic refinement */
.section-header .subtitle {
    letter-spacing: 0.02em;
}

/* ================================================
   4. GOLD DIVIDER — ORNAMENTAL DIAMOND ENDS
   ================================================ */
.gold-divider {
    position: relative;
    overflow: visible;
    width: 100px !important;
    height: 1.5px !important;
    background: linear-gradient(90deg, transparent, var(--color-gold) 25%, var(--color-gold-light) 50%, var(--color-gold) 75%, transparent) !important;
    margin: 1.5rem auto !important;
}
.gold-divider::before,
.gold-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 7px; height: 7px;
    background: var(--color-gold);
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 0 1px var(--color-gold-light);
}
.gold-divider::before { left: -14px; }
.gold-divider::after  { right: -14px; }

/* ================================================
   5. FEATURE IMAGES — GOLD HALO FRAME (BOLDER)
   ================================================ */
.domaine-image,
.teaser-image {
    position: relative;
    isolation: isolate;
    box-shadow:
        0 25px 50px -20px rgba(0,0,0,0.30),
        0 0 0 1px var(--color-gold);
}
.domaine-image::before,
.teaser-image::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1.5px solid var(--color-gold);
    border-radius: 10px;
    pointer-events: none;
    z-index: -1;
    transition: inset 0.5s ease, border-color 0.5s ease;
    opacity: 0.7;
}
/* Decorative corner ornaments on photo frames */
.domaine-image::after,
.teaser-image::after {
    content: '';
    position: absolute;
    top: -18px; left: -18px;
    width: 30px; height: 30px;
    border-top: 2px solid var(--color-gold);
    border-left: 2px solid var(--color-gold);
    pointer-events: none;
    z-index: 1;
}
.domaine-image:hover::before,
.teaser-image:hover::before {
    inset: -14px;
    border-color: rgba(201,168,76,0.45);
}
.domaine-image img,
.teaser-image img {
    transition: transform 1.2s cubic-bezier(0.4,0,0.2,1);
}
.domaine-image:hover img,
.teaser-image:hover img {
    transform: scale(1.03);
}

/* ================================================
   6. APPELLATION CARDS — LUXE REFINEMENT (PERMANENT GOLD ACCENT)
   ================================================ */
.appellation-card {
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF4 100%);
    padding: 3rem 2.5rem 2.5rem;
    overflow: hidden;
    border-top: 3px solid var(--color-gold) !important;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.5s ease, border-color 0.5s ease;
}
/* Corner decorative ornaments — always visible */
.appellation-card::before {
    content: '';
    position: absolute;
    top: 12px; right: 12px;
    width: 22px; height: 22px;
    border-top: 1.5px solid var(--color-gold);
    border-right: 1.5px solid var(--color-gold);
    opacity: 0.6;
}
.appellation-card::after {
    content: '';
    position: absolute;
    bottom: 12px; left: 12px;
    width: 22px; height: 22px;
    border-bottom: 1.5px solid var(--color-gold);
    border-left: 1.5px solid var(--color-gold);
    opacity: 0.6;
}
.appellation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 55px -12px rgba(92,26,26,0.18);
    border-top-color: var(--color-gold-light) !important;
}
.appellation-card .card-badge {
    box-shadow: 0 2px 8px -2px rgba(92,26,26,0.20);
}
.appellation-card h3 {
    letter-spacing: 0.01em;
}

/* ================================================
   7. EXPERIENCE CARDS — GOLD CIRCLE ICONS
   ================================================ */
.experience-card {
    padding: 3rem 2rem 2.5rem;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.5s ease, border-color 0.5s ease;
}
.experience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px -12px rgba(92,26,26,0.18);
}
.experience-card .icon {
    width: 78px !important;
    height: 78px !important;
    padding: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(240,228,192,0.65) 0%, rgba(255,255,255,0) 70%);
    border: 1px solid rgba(201,168,76,0.30);
    border-radius: 50%;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease, background 0.5s ease;
}
.experience-card .icon svg {
    width: 100%;
    height: 100%;
}
.experience-card:hover .icon {
    transform: scale(1.06) rotate(-2deg);
    border-color: var(--color-gold);
    background: radial-gradient(circle at 30% 30%, var(--color-gold-pale) 0%, rgba(255,255,255,0) 75%);
    box-shadow: 0 10px 28px -6px rgba(201,168,76,0.28);
}

/* ================================================
   8. QUOTE SECTION — TYPOGRAPHIC GRANDEUR
   ================================================ */
.quote-section {
    position: relative;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(201,168,76,0.08) 0%, transparent 65%),
        linear-gradient(160deg, #3D0F0F 0%, #2A0A0A 100%);
    overflow: hidden;
}
.quote-section::before {
    content: '\201C';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 18rem;
    line-height: 1;
    color: var(--color-gold);
    opacity: 0.22;
    font-style: italic;
    pointer-events: none;
    z-index: 0;
}
.quote-section .container { position: relative; z-index: 1; }

.blockquote-text {
    font-weight: 300 !important;
    line-height: 1.55 !important;
    letter-spacing: 0.005em;
}
.blockquote-author {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}
.blockquote-author::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--color-gold);
    opacity: 0.6;
}

/* ================================================
   9. BUTTONS — SHIMMER & REFINED GOLD
   ================================================ */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(255,255,255,0.25) 50%,
        transparent 70%);
    transition: left 0.75s cubic-bezier(0.4,0,0.2,1);
    z-index: 0;
    pointer-events: none;
}
.btn:hover::after { left: 130%; }

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, #B9933A 100%);
    box-shadow:
        0 4px 16px -4px rgba(201,168,76,0.45),
        inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    box-shadow:
        0 10px 28px -6px rgba(201,168,76,0.55),
        inset 0 1px 0 rgba(255,255,255,0.45);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-burgundy) 0%, #4A1515 100%);
    box-shadow: 0 4px 14px -4px rgba(92,26,26,0.4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-burgundy-dark) 0%, var(--color-burgundy) 100%);
    box-shadow: 0 10px 26px -6px rgba(92,26,26,0.55);
}

/* ================================================
   10. BIODIVERSITY BANNER — ELEGANT IMAGE HOVER
   ================================================ */
section[style*="padding:2.5rem 0"] picture {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
section[style*="padding:2.5rem 0"] picture img {
    transition: transform 0.9s cubic-bezier(0.4,0,0.2,1), filter 0.5s ease;
    box-shadow: 0 10px 30px -12px rgba(0,0,0,0.22), 0 0 0 1px rgba(201,168,76,0.08);
}
section[style*="padding:2.5rem 0"] picture::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(42,10,10,0.15) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 8px;
}
section[style*="padding:2.5rem 0"] picture:hover img {
    transform: scale(1.05);
    filter: saturate(1.1);
}
section[style*="padding:2.5rem 0"] picture:hover::after { opacity: 1; }

/* ================================================
   11. CONTACT QUICK — ELEVATED ICON CIRCLES
   ================================================ */
.contact-quick .contact-item .icon {
    width: 56px !important;
    height: 56px !important;
    padding: 15px;
    background: radial-gradient(circle at 30% 30%, var(--color-gold-pale) 0%, var(--color-cream) 70%);
    border: 1px solid rgba(201,168,76,0.30);
    border-radius: 50%;
    margin: 0 auto 0.6rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.contact-quick .contact-item:hover .icon {
    transform: translateY(-3px);
    border-color: var(--color-gold);
    box-shadow: 0 8px 20px -4px rgba(201,168,76,0.28);
}
.contact-quick .contact-item .icon svg {
    width: 100%;
    height: 100%;
}

/* ================================================
   12. HEADER — REFINED SCROLLED STATE
   ================================================ */
.header--scrolled {
    background: rgba(247,242,232,0.94);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow:
        0 1px 0 rgba(201,168,76,0.18),
        0 8px 24px -8px rgba(92,26,26,0.12);
}

/* Nav link — subtle gold glow on hover */
.nav-link {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}
.nav-link:hover { letter-spacing: 0.14em; }

/* Nav CTA — refined */
.nav-cta {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav-cta:hover {
    box-shadow: 0 6px 20px -4px rgba(201,168,76,0.35);
    transform: translateY(-1px);
}

/* ================================================
   13. FOOTER — GOLDEN GLINT
   ================================================ */
.footer {
    position: relative;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 60%),
        var(--color-burgundy-deep);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}
.footer-social a {
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.footer-social a:hover {
    transform: translateY(-2px) rotate(-5deg);
}

/* ================================================
   14. SECTION PADDING — MORE GENEROUS BREATH
   ================================================ */
.section {
    padding: 7rem 0;
}

/* ================================================
   15. CARDS & TRANSITIONS — GLOBAL POLISH
   ================================================ */
.btn-outline,
.btn-outline--dark {
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.btn-outline--dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -6px rgba(92,26,26,0.3);
}

/* ================================================
   16. MOBILE ADJUSTMENTS
   ================================================ */
@media (max-width: 768px) {
    .section-header h2 { padding: 0; }
    .section-header h2::before,
    .section-header h2::after { display: none; }

    /* Hero — fit mobile viewport, no overflow */
    .hero h1 {
        font-size: clamp(1.6rem, 8.5vw, 2.2rem) !important;
        letter-spacing: 0.04em !important;
    }
    .hero-subtitle {
        white-space: normal !important;
        font-size: 0.78rem !important;
        letter-spacing: 0.12em !important;
    }
    .hero-content .hero-subtitle::before,
    .hero-content .hero-subtitle::after {
        display: none;
    }
    .hero-text {
        font-size: 0.82rem;
    }
    .hero-crest {
        width: 110px !important;
        height: auto !important;
    }

    .quote-section::before {
        font-size: 9rem;
        top: -0.5rem;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    .section {
        padding: 4.5rem 0;
    }

    .appellation-card,
    .experience-card {
        padding: 2.2rem 1.6rem;
    }

    .domaine-image::before,
    .teaser-image::before {
        inset: -6px;
    }
}

/* ================================================
   17. REDUCED MOTION RESPECT
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-crest,
    .hero::after { animation: none; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   18. PRINT — KEEP IT CLEAN
   ================================================ */
@media print {
    .hero::before, .hero::after,
    .quote-section::before,
    .gold-divider::before, .gold-divider::after,
    .section-header h2::before, .section-header h2::after {
        display: none;
    }
}
