/* Global */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

/* Hero Slider - GSAP Targets */
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    /* Fallback when videos are loading or unavailable */
    background: linear-gradient(135deg, #1c1409 0%, #131313 55%, #0e0e0e 100%);
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
}

/* FAQ Accordion */
.faq-item {
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.faq-item p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.faq-item.active p {
    max-height: 500px;
    opacity: 1;
}

.faq-item span[class*="material-symbols"] {
    transition: transform 0.3s ease-out;
}

.faq-item.active span[class*="material-symbols"] {
    transform: rotate(180deg);
}

/* Navbar Scroll Effect */
#navbar {
    background: transparent;
    transition: background-color 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                box-shadow 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                backdrop-filter 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

#navbar.navbar-scrolled {
    background-color: rgba(19, 19, 19, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 32px rgba(0, 0, 0, 0.45);
}

/* Logo visibility on transparent background */
.nav-logo {
    filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
    transition: filter 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

#navbar.navbar-scrolled .nav-logo {
    filter: brightness(0) invert(1);
}

/* ── Hamburger Button ── */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e5e2e1;
    border-radius: 2px;
    /* center-to-center = 2px + 6px = 8px → translateY(8px) crosses spans */
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1),
                width 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Mobile Menu Panel ── */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #0e0e0e;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 59;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.4s ease, visibility 0.4s;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(230, 196, 121, 0.12);
    flex-shrink: 0;
}

.mobile-menu-close {
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(229, 226, 225, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.mobile-menu-close:hover {
    border-color: rgba(230, 196, 121, 0.35);
}

.mobile-menu-close span {
    position: absolute;
    width: 14px;
    height: 1px;
    background: #e5e2e1;
    display: block;
    border-radius: 1px;
}

.mobile-menu-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-close span:nth-child(2) { transform: rotate(-45deg); }

/* ── Mobile Nav Links ── */
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    color: rgba(229, 226, 225, 0.75);
    text-decoration: none;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(229, 226, 225, 0.06);
    opacity: 0;
    transform: translateX(28px);
    transition: color 0.25s ease,
                padding-left 0.3s cubic-bezier(0.32, 0.72, 0, 1),
                opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-nav-link:hover {
    color: #e6c479;
    padding-left: 0.5rem;
}

/* Staggered entrance — delay only when opening */
.mobile-menu.active .mobile-nav-link:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.07s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.11s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.19s; }
.mobile-menu.active .mobile-nav-link:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.23s; }
.mobile-menu.active .mobile-nav-link:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.27s; }
.mobile-menu.active .mobile-nav-link:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.31s; }

/* ── Mobile Menu Footer ── */
.mobile-menu-bottom {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(229, 226, 225, 0.08);
}

.mobile-menu-cta {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    background: #c9a961;
    color: #533d00;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 9999px;
    transition: opacity 0.3s ease;
}

.mobile-menu-cta:hover { opacity: 0.85; }

.mobile-menu-tel {
    display: block;
    text-align: center;
    color: rgba(229, 226, 225, 0.35);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.25s ease;
}

.mobile-menu-tel:hover { color: rgba(229, 226, 225, 0.65); }

/* Animations for data-animate elements */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    background-color: transparent;
    border: none;
    padding: 8px 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input::placeholder,
textarea::placeholder {
    color: inherit;
    opacity: 0.5;
}

select {
    cursor: pointer;
}

select option {
    background-color: #201f1f;
    color: #e5e2e1;
}

/* Contact Modal */
.contact-modal {
    animation: modalFadeIn 0.3s ease-out;
}

.contact-modal.hidden {
    display: none;
}

.contact-form {
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    [data-animate] {
        animation-duration: 0.6s;
    }
}

/* ─────────────────────────────────────────────────────────────
   Services: Cinematic Scroll Reveal
   IntersectionObserver adds .svc-in when card enters viewport.
   Transitions fire on .svc-in; default state is hidden/clipped.
   prefers-reduced-motion: all visible immediately, no animation.
──────────────────────────────────────────────────────────────── */

/* ── Section heading ── */
.svc-heading-line {
    width: 2.5rem;
    height: 1px;
    background: rgba(230, 196, 121, 0.4);
    transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {

    /* Heading: eyebrow clips up from overflow-hidden parent */
    .svc-eyebrow {
        display: inline-block;
        transform: translateY(110%);
        opacity: 0;
        transition:
            transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
            opacity   0.6s  cubic-bezier(0.16, 1, 0.3, 1);
    }

    .svc-heading.svc-in .svc-eyebrow {
        transform: translateY(0);
        opacity: 1;
    }

    .svc-heading-text {
        display: block;
        transform: translateY(110%);
        opacity: 0;
        transition:
            transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
            opacity   0.7s  cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
    }

    .svc-heading.svc-in .svc-heading-text {
        transform: translateY(0);
        opacity: 1;
    }

    .svc-heading-line {
        transform: scaleX(0);
        opacity: 0;
        transition:
            transform 0.7s cubic-bezier(0.76, 0, 0.24, 1) 0.35s,
            opacity   0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.35s;
    }

    .svc-heading.svc-in .svc-heading-line {
        transform: scaleX(1);
        opacity: 1;
    }

    /* ── Service cards: image wipe ── */
    .service-card .service-img-wrap img {
        clip-path: inset(0 100% 0 0);
        transition: clip-path 0.85s cubic-bezier(0.76, 0, 0.24, 1);
    }

    .service-card.svc-in .service-img-wrap img {
        clip-path: inset(0 0% 0 0);
    }

    /* ── Service cards: content children rise in sequence ── */
    .service-card .service-content > * {
        opacity: 0;
        transform: translateY(16px);
    }

    .service-card .service-content > *:nth-child(1) {
        transition:
            opacity   0.6s cubic-bezier(0.32, 0.72, 0, 1) 0.15s,
            transform 0.6s cubic-bezier(0.32, 0.72, 0, 1) 0.15s;
    }

    .service-card .service-content > *:nth-child(2) {
        transition:
            opacity   0.6s cubic-bezier(0.32, 0.72, 0, 1) 0.28s,
            transform 0.6s cubic-bezier(0.32, 0.72, 0, 1) 0.28s;
    }

    .service-card .service-content > *:nth-child(3) {
        transition:
            opacity   0.6s cubic-bezier(0.32, 0.72, 0, 1) 0.41s,
            transform 0.6s cubic-bezier(0.32, 0.72, 0, 1) 0.41s;
    }

    /* Right-column (even) cards: delays pushed forward for row stagger */
    .service-card:nth-child(even) .service-img-wrap img {
        transition-delay: 0.12s;
    }

    .service-card:nth-child(even) .service-content > *:nth-child(1) {
        transition-delay: 0.27s;
    }

    .service-card:nth-child(even) .service-content > *:nth-child(2) {
        transition-delay: 0.40s;
    }

    .service-card:nth-child(even) .service-content > *:nth-child(3) {
        transition-delay: 0.53s;
    }

    .service-card.svc-in .service-content > * {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════
   Comment ça marche — Editorial Timeline
═══════════════════════════════════════════════════════ */

.ccm-wrap {
    position: relative;
}

/* Desktop connector line — hidden on mobile */
.ccm-line {
    display: none;
}

/* Grid: single column stack on mobile */
.ccm-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
}

/* Vertical timeline thread on mobile */
.ccm-grid::before {
    content: '';
    position: absolute;
    left: 1.625rem;
    top: 32px;
    bottom: 32px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(230, 196, 121, 0.15) 6%,
        rgba(230, 196, 121, 0.15) 94%,
        transparent
    );
    pointer-events: none;
}

/* Each step: number | content, two-column */
.ccm-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(229, 226, 225, 0.055);
    align-items: start;
}

.ccm-step:last-child {
    border-bottom: none;
}

/* Gold italic number */
.ccm-num {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    color: #e6c479;
    font-size: 2rem;
    line-height: 1;
    grid-column: 1;
    grid-row: 1;
}

/* Dot: shown only on desktop */
.ccm-dot {
    display: none;
}

/* Title + description block */
.ccm-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.ccm-title-step {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(229, 226, 225, 0.88);
    margin: 0;
}

.ccm-desc-step {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: rgba(229, 226, 225, 0.5);
    margin: 0;
}

/* ── Desktop: 7-column horizontal timeline ── */
@media (min-width: 1024px) {

    /* Animated connector line */
    .ccm-line {
        display: block;
        position: absolute;
        top: 76px; /* ccm-num height (72px) + dot center (4px) */
        left: calc(100% / 14);
        right: calc(100% / 14);
        height: 1px;
        background: linear-gradient(
            to right,
            transparent,
            rgba(230, 196, 121, 0.28) 6%,
            rgba(230, 196, 121, 0.28) 94%,
            transparent
        );
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
    }

    .ccm-wrap.ccm-fired .ccm-line {
        transform: scaleX(1);
    }

    /* 7 equal columns */
    .ccm-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0;
    }

    /* Remove mobile vertical thread */
    .ccm-grid::before {
        display: none;
    }

    /* Each step: flex column, centered */
    .ccm-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 10px;
        border-bottom: none;
        gap: 0;
    }

    /* Large number, bottom-aligned in fixed-height block */
    .ccm-num {
        height: 72px;
        display: flex;
        align-items: flex-end;
        font-size: 2.25rem;
        line-height: 1;
        padding-bottom: 0;
    }

    /* Dot sits on the connector line */
    .ccm-dot {
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #e6c479;
        opacity: 0.6;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        margin: 0 0 18px;
    }

    /* Content centered */
    .ccm-content {
        align-items: center;
        text-align: center;
    }

    .ccm-title-step {
        font-size: 0.8125rem;
    }

    .ccm-desc-step {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccm-line {
        transition: none !important;
        transform: scaleX(1) !important;
    }
}

/* ═══════════════════════════════════════════════════════
   Micro-interactions & Hover Animations
═══════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(to right, #c9a961, #e6c479, #c9a961);
    background-size: 200% 100%;
    z-index: 200;
    pointer-events: none;
    transition: width 0.08s linear;
}

/* ── Nav Desktop Link Underline Slide ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e6c479;
    transition: width 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Service Cards — hover lift + border glow ── */
.service-card {
    transition:
        border-color 0.45s cubic-bezier(0.32, 0.72, 0, 1),
        transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.service-card:hover {
    border-color: rgba(230, 196, 121, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ── Review Cards — hover lift ── */
.review-card {
    transition:
        transform 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

/* ── FAQ Item hover — subtle highlight ── */
.faq-item:not(.active) {
    transition: background 0.3s ease, all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.faq-item:not(.active):hover {
    background: rgba(229, 226, 225, 0.02);
}

.faq-item:not(.active):hover .faq-question {
    color: rgba(229, 226, 225, 0.92);
}

/* ── CCM Dot Pulse — desktop, fires after stagger completes ── */
@media (min-width: 1024px) {
    .ccm-wrap.ccm-fired .ccm-dot {
        animation: ccmDotPulse 3s ease-in-out infinite;
    }
    .ccm-wrap.ccm-fired .ccm-step:nth-child(2) .ccm-dot { animation-delay: 0.3s; }
    .ccm-wrap.ccm-fired .ccm-step:nth-child(3) .ccm-dot { animation-delay: 0.6s; }
    .ccm-wrap.ccm-fired .ccm-step:nth-child(4) .ccm-dot { animation-delay: 0.9s; }
    .ccm-wrap.ccm-fired .ccm-step:nth-child(5) .ccm-dot { animation-delay: 1.2s; }
    .ccm-wrap.ccm-fired .ccm-step:nth-child(6) .ccm-dot { animation-delay: 1.5s; }
    .ccm-wrap.ccm-fired .ccm-step:nth-child(7) .ccm-dot { animation-delay: 1.8s; }
}

@keyframes ccmDotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); box-shadow: none; }
    50% { opacity: 1; transform: scale(1.5); box-shadow: 0 0 10px rgba(230, 196, 121, 0.45); }
}

/* ── Badge hover micro-scale ── */
.badge {
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1),
                border-color 0.25s ease;
    cursor: default;
}

.badge:hover {
    transform: scale(1.04);
    border-color: rgba(230, 196, 121, 0.5);
}

/* ── Contact Info Links — icon circle + icon color on hover ── */
#contact .contact-info-link {
    transition: opacity 0.3s ease;
}

#contact .contact-info-link .contact-info-icon {
    transition: border-color 0.35s ease, background 0.35s ease;
}

#contact .contact-info-link:hover .contact-info-icon {
    border-color: rgba(230, 196, 121, 0.4) !important;
    background: rgba(230, 196, 121, 0.06);
}

#contact .contact-info-link .contact-info-icon .material-symbols-outlined {
    transition: color 0.35s ease;
}

#contact .contact-info-link:hover .contact-info-icon .material-symbols-outlined {
    color: rgba(230, 196, 121, 0.65) !important;
}

/* ── Footer Links — underline slide ── */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e6c479;
    transition: width 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

footer a:hover::after {
    width: 100%;
}

/* ── Hero benefit strip icon — hover scale ── */
.benefit-strip-item .material-symbols-outlined {
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: inline-block;
}

.benefit-strip-item:hover .material-symbols-outlined {
    transform: scale(1.25) rotate(-8deg);
}

/* ── Pricing stats — hover lift ── */
.pricing-stat {
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    cursor: default;
}

.pricing-stat:hover {
    transform: translateY(-3px);
}

/* ── Pricing feature list dots — hover expand ── */
.pricing-dot-outer {
    transition: background 0.3s ease, transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.pricing-feature-item:hover .pricing-dot-outer {
    background: rgba(230, 196, 121, 0.25);
    transform: scale(1.15);
}

.pricing-dot-inner {
    transition: background 0.3s ease, transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.pricing-feature-item:hover .pricing-dot-inner {
    background: #e6c479;
    transform: scale(1.4);
}

/* ── Mobile CTA button press feedback ── */
.mobile-menu-cta {
    transition: opacity 0.25s ease, transform 0.15s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

.mobile-menu-cta:active {
    transform: scale(0.97);
}

/* ── Reduced motion: disable all new animations ── */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress,
    .nav-link::after,
    footer a::after {
        transition: none !important;
    }

    .service-card,
    .review-card,
    .badge,
    .pricing-stat,
    .pricing-dot-outer,
    .pricing-dot-inner,
    .benefit-strip-item .material-symbols-outlined,
    #contact .contact-info-link .contact-info-icon,
    #contact .contact-info-link .contact-info-icon .material-symbols-outlined,
    .mobile-menu-cta {
        transition: none !important;
    }

    .ccm-dot {
        animation: none !important;
    }
}
