html, body {
    overflow-x: hidden;
    max-width: 100%;
}
html, body, button, input, textarea, select {
    font-family: 'Manrope', sans-serif;
}

/* Topbar: compacts slightly once the page scrolls, logo shrinks with it */
.header-row {
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-scrolled .header-row {
    height: 4rem;
}
.header-logo {
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-scrolled .header-logo {
    height: 2.75rem;
    width: 2.75rem;
}
@media (prefers-reduced-motion: reduce) {
    .header-row, .header-logo {
        transition: none;
    }
}

/* Desktop nav: a thin gold underline draws in on hover, echoing the site's signature arc */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 1.5px;
    width: 0%;
    background: #b8905b;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
    width: 100%;
}
@media (prefers-reduced-motion: reduce) {
    .nav-link::after {
        transition: none;
    }
}

/* Mobile full-screen menu. The blur layer never animates its own opacity -
   recomputing a full-screen backdrop-filter every frame is what caused the
   janky, out-of-sync feel. It snaps in instantly (cheap); only the flat
   color tint and the links (plain opacity/transform, no filter) fade. */
#mobile-menu {
    visibility: hidden;
    pointer-events: none;
}
#mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
}
.mobile-menu-tint {
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.is-open .mobile-menu-tint {
    opacity: 1;
}
#mobile-menu .mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.is-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu .mobile-link:nth-child(1) { transition-delay: 0.08s; }
#mobile-menu .mobile-link:nth-child(2) { transition-delay: 0.13s; }
#mobile-menu .mobile-link:nth-child(3) { transition-delay: 0.18s; }
#mobile-menu .mobile-link:nth-child(4) { transition-delay: 0.23s; }
#mobile-menu .mobile-link:nth-child(5) { transition-delay: 0.28s; }
#mobile-menu .mobile-link:nth-child(6) { transition-delay: 0.33s; }

/* Hamburger icon morph: three bars fold into an X */
.hamburger-bars {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
}
.hamburger-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hamburger-bars span:nth-child(1) { top: 0; }
.hamburger-bars span:nth-child(2) { top: 7px; }
.hamburger-bars span:nth-child(3) { top: 14px; }
.hamburger-btn[aria-expanded="true"] .hamburger-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.hamburger-btn[aria-expanded="true"] .hamburger-bars span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] .hamburger-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.hamburger-btn[aria-expanded="true"] { color: #cc8b93; }

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-tint, #mobile-menu .mobile-link, .hamburger-bars span {
        transition: none;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #121212;
}
::-webkit-scrollbar-thumb {
    background: #3e2d30;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cc8b93;
}

/* Final CTA panel: slow ambient breathing on the backdrop image */
.cta-panel-bg {
    animation: cta-breathe 16s ease-in-out infinite alternate;
}
@keyframes cta-breathe {
    from { transform: scale(1); }
    to { transform: scale(1.09); }
}
@media (prefers-reduced-motion: reduce) {
    .cta-panel-bg {
        animation: none;
    }
}

/* Services carousel (mobile only): a "spotlight" that pulls focus to the centered card */
.servicos-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.servicos-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.servicos-dot {
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
}
.servicos-dot--active {
    width: 28px;
    background-color: #cc8b93;
}
@media (max-width: 767px) {
    .servicos-card {
        will-change: transform, opacity, filter;
        scroll-snap-stop: always;
    }
    .servicos-card:not(.is-dragging) {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .servicos-card-bg {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
}
@media (min-width: 768px) {
    .servicos-card {
        scroll-snap-align: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .servicos-card, .servicos-card-bg {
        transition: none;
    }
}

/* Hero scroll cue */
.scroll-cue span:last-child {
    animation: scroll-cue-bounce 2.2s ease-in-out infinite;
}
@keyframes scroll-cue-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-cue span:last-child {
        animation: none;
    }
}

/* WhatsApp float button: tooltip forced hidden after a click (mobile keeps
   :hover "stuck" after returning from an external app), until the mouse
   genuinely enters the button again */
#whatsapp-float-btn.wa-tooltip-hidden .wa-tooltip {
    opacity: 0 !important;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
@media (max-width: 767px) {
    .reveal {
        transform: translateY(28px) scale(0.97);
        transition-duration: 0.6s;
    }
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Testimonials marquee */
.testimonial-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.testimonial-track {
    animation: testimonial-scroll 40s linear infinite;
}
@keyframes testimonial-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (max-width: 767px) {
    /* Mobile: the user can swipe through testimonials by hand. Auto-play is
       then driven by JS incrementing scrollLeft (not the CSS keyframe) so
       there is a single source of truth and resuming never snaps or jumps. */
    .testimonial-marquee {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .testimonial-marquee::-webkit-scrollbar {
        display: none;
    }
    .testimonial-track {
        animation: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .testimonial-track {
        animation: none;
    }
}

/* Floating decorative orbs */
.orb-float {
    animation: orb-float 10s ease-in-out infinite;
}
@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -24px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .orb-float {
        animation: none;
    }
}

/* Service cards: one motion, one easing, one duration - a focus pull, not a pile-up */
.najaf-card-bg {
    transform: scale(1);
    filter: blur(0) brightness(1);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.najaf-card:hover .najaf-card-bg {
    transform: scale(1.1);
    filter: blur(6px) brightness(0.6);
}
.najaf-card-content {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.najaf-card:hover .najaf-card-content {
    transform: translateY(-6px);
}
.najaf-card-cta {
    opacity: 0.55;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.najaf-card:hover .najaf-card-cta {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .najaf-card-bg, .najaf-card-content, .najaf-card-cta {
        transition: none;
    }
}

/* Coming-soon service card: same layout, no click affordance */
.najaf-card--soon {
    cursor: not-allowed;
}
.najaf-card--soon .najaf-card-bg {
    filter: grayscale(0.6) brightness(0.55);
}
.najaf-card--soon:hover .najaf-card-bg {
    transform: scale(1);
    filter: grayscale(0.6) brightness(0.55);
}
.najaf-card--soon:hover .najaf-card-content {
    transform: none;
}
.najaf-card--soon .najaf-card-cta,
.najaf-card--soon:hover .najaf-card-cta {
    opacity: 0.7;
}
.najaf-card-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(204, 139, 147, 0.4);
    color: #f0d6da;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
}

/* Signature: hand-drawn arc, echoing the stroke of a brow pencil or lash curl */
.signature-arc {
    display: block;
    overflow: visible;
}
.signature-arc path {
    fill: none;
    stroke: #b8905b;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 140;
    stroke-dashoffset: 140;
    animation: draw-arc 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
}
@keyframes draw-arc {
    to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .signature-arc path {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* Spotlight hover on service cards */
.spotlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(204, 139, 147, 0.35), transparent 70%);
    mix-blend-mode: soft-light;
}
.spotlight-card:hover::after {
    opacity: 1;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
    .spotlight-card::after {
        display: none;
    }
}
