/* ==========================================================================
   Rigobeli Reparos — landing cinematográfica
   Fundo grafite · texto branco quente · detalhes âmbar/amarelo ferramenta
   ========================================================================== */

:root {
    --bg: #131518;
    --bg-2: #1a1d22;
    --bg-3: #22262c;
    --ink: #f7f2e9;
    --ink-dim: #cfc9bd;
    --muted: #9b968c;
    --amber: #f2a33c;
    --yellow: #ffd23f;
    --line: rgba(247, 242, 233, .1);
    --wa: #25d366;
    --wa-dark: #1eb457;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Manrope", system-ui, sans-serif;
    --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--amber); color: #131518; }

/* ---------- Loader ---------- */
.loader {
    position: fixed; inset: 0; z-index: 200;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 22px;
    transition: opacity .6s ease, visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__logo { width: 150px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.5)); }
.loader__bar {
    width: 180px; height: 3px; border-radius: 3px;
    background: rgba(247,242,233,.12); overflow: hidden;
}
.loader__bar span {
    display: block; width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--amber), var(--yellow));
    transition: width .3s ease;
}
.loader__hint { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Header ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .4s ease, box-shadow .4s ease;
}
.header.is-scrolled {
    background: rgba(19, 21, 24, .82);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.header__inner {
    max-width: 1280px; margin: 0 auto; padding: 0 28px;
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav__link {
    font-size: .86rem; font-weight: 600; letter-spacing: .04em;
    color: var(--ink-dim);
    transition: color .25s;
    position: relative;
}
.nav__link::after {
    content: ""; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--amber);
    transition: width .3s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--ink);
    transition: transform .3s, opacity .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body);
    font-weight: 700; font-size: .95rem;
    padding: 14px 26px; border-radius: 999px;
    border: 0; cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--wa { background: var(--wa); color: #08130c; box-shadow: 0 8px 28px rgba(37, 211, 102, .28); }
.btn--wa:hover { background: #2ee27a; box-shadow: 0 12px 34px rgba(37, 211, 102, .4); }
.btn--ghost {
    background: transparent; color: var(--ink);
    box-shadow: inset 0 0 0 1.5px rgba(247,242,233,.35);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--amber); }
.btn--sm { padding: 9px 18px; font-size: .82rem; }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--xl { padding: 20px 40px; font-size: 1.1rem; }

/* ---------- Tipografia ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--amber);
}
.eyebrow--line::before {
    content: ""; width: 34px; height: 2px; background: var(--amber);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; }
h1 em, h2 em { font-style: italic; color: var(--amber); }
.lead { color: var(--ink-dim); font-size: 1.1rem; max-width: 560px; }

/* ---------- Seções cinematográficas ---------- */
.cine { position: relative; }
.cine-story {
    position: relative;
    height: 100vh; height: 100svh;
    overflow: hidden;
    background: var(--bg);
}
.cine-story > .cine {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    will-change: opacity;
}
.cine-story > .cine:first-child { opacity: 1; visibility: visible; }
.cine-story > .cine .cine__stage { height: 100%; }
.cine__stage {
    position: relative;
    height: 100vh; height: 100svh;
    overflow: hidden;
    background: var(--bg);
}
.cine__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine__vignette {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 42%, rgba(9, 10, 12, .55) 100%),
        linear-gradient(180deg, rgba(9,10,12,.5) 0%, transparent 18%, transparent 78%, rgba(9,10,12,.62) 100%);
}
.cine__vignette--strong {
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(9, 10, 12, .68) 100%),
        linear-gradient(180deg, rgba(9,10,12,.55) 0%, transparent 20%, transparent 70%, rgba(9,10,12,.78) 100%);
}

.cine__overlay {
    position: absolute; z-index: 5;
    left: 0; right: 0;
    padding: 0 clamp(24px, 6vw, 90px);
    opacity: 0; visibility: hidden;
    will-change: transform, opacity;
}

/* Hero overlay */
.cine__overlay--hero {
    top: 50%; transform: translateY(-50%);
    max-width: 860px;
}
.cine__overlay--hero h1 {
    font-size: clamp(2.3rem, 5.4vw, 4.4rem);
    margin: 18px 0 20px;
    text-shadow: 0 2px 30px rgba(0,0,0,.55);
}
.cine__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.cine__trust {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-top: 34px;
    font-size: .84rem; font-weight: 600; letter-spacing: .06em;
    color: var(--ink-dim); text-transform: uppercase;
}
.cine__trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }

/* Kicker (frase de canto) */
.cine__overlay--corner { bottom: 14vh; }
.kicker {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.4vw, 3.6rem);
    font-weight: 600; font-style: italic; line-height: 1.12;
    text-shadow: 0 2px 26px rgba(0,0,0,.6);
}
.kicker--amber { color: var(--yellow); }

/* Overlay de serviço */
.cine__overlay--service { top: 50%; transform: translateY(-50%); max-width: 760px; }
.cine__overlay--service h2 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    margin: 14px 0 18px;
    text-shadow: 0 2px 30px rgba(0,0,0,.55);
}
.service-num {
    display: inline-block;
    font-size: .78rem; font-weight: 800;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--yellow);
    padding: 7px 14px;
    border: 1px solid rgba(255, 210, 63, .38);
    border-radius: 999px;
    background: rgba(19, 21, 24, .45);
    backdrop-filter: blur(6px);
}

/* Chips (lista de subserviços) */
.cine__overlay--chips { bottom: 9vh; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; margin-bottom: 22px; }
.chips li {
    font-size: .87rem; font-weight: 600;
    padding: 9px 16px; border-radius: 999px;
    color: var(--ink);
    background: rgba(19, 21, 24, .55);
    border: 1px solid rgba(247,242,233,.16);
    backdrop-filter: blur(8px);
}

/* Overlay final */
.cine__overlay--final {
    top: 50%; transform: translateY(-50%);
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.cine__overlay--final h2 {
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    max-width: 820px;
    text-shadow: 0 2px 34px rgba(0,0,0,.65);
}
.cine__overlay--final .lead { max-width: 620px; }
.cine__contacts {
    display: flex; gap: 26px; flex-wrap: wrap; justify-content: center;
    margin-top: 12px; font-size: .9rem; color: var(--ink-dim);
}
.cine__contacts a, .cine__contacts span { display: inline-flex; align-items: center; gap: 8px; }
.cine__contacts a:hover { color: var(--amber); }

/* Scroll cue */
.cine__scrollcue {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 6;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-dim);
    animation: cueFloat 2.4s ease-in-out infinite;
}
@keyframes cueFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: .85; }
    50% { transform: translateX(-50%) translateY(7px); opacity: .45; }
}

/* Âncoras internas dentro da cena longa */
.anchor-mark { position: absolute; top: 33%; }
.anchor-mark--late { top: 66%; }

/* ---------- Seções regulares ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 860px; }

.section__head { max-width: 680px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__title {
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    margin: 16px 0 14px;
}
.section__lead { color: var(--muted); font-size: 1.05rem; }
.section__note { margin-top: 44px; color: var(--muted); text-align: center; }
.section__note a { color: var(--amber); font-weight: 700; border-bottom: 1px solid rgba(242,163,60,.4); }
.section__note a:hover { border-color: var(--amber); }

/* Serviços */
.services-grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.service-card {
    position: relative;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 34px 30px 30px;
    overflow: hidden;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(242, 163, 60, .45);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}
.service-card__num {
    position: absolute; top: 18px; right: 24px;
    font-family: var(--font-display);
    font-size: 2.6rem; font-weight: 700; font-style: italic;
    color: rgba(247, 242, 233, .07);
    transition: color .35s;
}
.service-card:hover .service-card__num { color: rgba(242, 163, 60, .22); }
.service-card h3 { font-size: 1.45rem; margin-bottom: 12px; max-width: 85%; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.service-card__link {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .9rem; color: var(--amber);
}
.service-card__link svg { transition: transform .3s; }
.service-card__link:hover svg { transform: translateX(5px); }

/* Sobre / retrato */
.split {
    display: grid; gap: clamp(36px, 6vw, 80px);
    grid-template-columns: minmax(280px, 420px) 1fr;
    align-items: start;
}
.portrait { position: relative; border-radius: 20px; overflow: hidden; }
.portrait img { border-radius: 20px; }
.portrait figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 70px 24px 22px;
    background: linear-gradient(180deg, transparent, rgba(10, 11, 13, .88));
    display: flex; flex-direction: column; gap: 3px;
}
.portrait figcaption strong { font-family: var(--font-display); font-size: 1.3rem; }
.portrait figcaption span { font-size: .86rem; color: var(--ink-dim); }
.portrait__badge {
    position: absolute; top: 18px; right: 18px;
    background: var(--yellow); color: #131518;
    border-radius: 14px; padding: 10px 16px;
    text-align: center; line-height: 1.15;
    box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.portrait__badge strong { font-family: var(--font-display); font-size: 1.5rem; display: block; }
.portrait__badge small { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.split__content h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 14px 0 20px; }
.split__content p { color: var(--ink-dim); margin-bottom: 16px; max-width: 640px; }
.split__content .btn { margin-top: 14px; }

.check-list { margin: 22px 0 10px; display: grid; gap: 12px; }
.check-list li {
    position: relative; padding-left: 30px;
    color: var(--ink-dim); font-size: .97rem;
}
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 4px;
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--amber);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat;
}
.check-list strong { color: var(--ink); }

.values-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: clamp(50px, 7vw, 90px);
}
.value {
    border-top: 2px solid rgba(242, 163, 60, .5);
    padding: 22px 4px 0;
}
.value h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--amber); }
.value p { color: var(--muted); font-size: .92rem; }

/* Passos */
.steps {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    counter-reset: step;
}
.step {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 26px;
    transition: transform .35s ease, border-color .35s ease;
}
.step:hover { transform: translateY(-5px); border-color: rgba(242,163,60,.4); }
.step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
    background: linear-gradient(135deg, var(--amber), var(--yellow));
    color: #131518;
    margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }

/* Depoimentos */
.testimonials {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.testimonial {
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 28px;
    display: flex; flex-direction: column; gap: 16px;
}
.testimonial__stars { color: var(--yellow); letter-spacing: 4px; font-size: .95rem; }
.testimonial p { color: var(--ink-dim); font-style: italic; font-size: .98rem; flex: 1; }
.testimonial footer { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; color: #131518;
    background: linear-gradient(135deg, var(--amber), var(--yellow));
}
.testimonial footer small { display: block; color: var(--muted); font-size: .8rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .3s;
}
.faq__item[open] { border-color: rgba(242, 163, 60, .45); }
.faq__item summary {
    cursor: pointer; list-style: none;
    padding: 20px 54px 20px 24px;
    font-weight: 700; font-size: 1.02rem;
    position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+"; position: absolute; right: 22px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display); font-size: 1.5rem; color: var(--amber);
    transition: transform .3s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 24px 22px; color: var(--muted); font-size: .95rem; }

/* ---------- Rodapé ---------- */
.footer { background: #0e1013; border-top: 1px solid var(--line); }
.footer__grid {
    display: grid; gap: 36px;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    padding-top: 70px; padding-bottom: 50px;
}
.footer__logo { height: 44px; width: auto; margin-bottom: 18px; }
.footer__about { color: var(--muted); font-size: .9rem; max-width: 320px; }
.footer__col h3 {
    font-size: .8rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--amber);
    margin-bottom: 16px; font-family: var(--font-body);
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col ul a, .footer__contact li { color: var(--ink-dim); font-size: .9rem; transition: color .25s; }
.footer__col ul a:hover { color: var(--amber); }
.footer__bottom {
    border-top: 1px solid var(--line);
    padding: 20px 28px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    max-width: 1200px; margin: 0 auto;
    color: var(--muted); font-size: .82rem;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--wa); color: #08130c;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
    transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal (seções regulares) ---------- */
.reveal { opacity: 0; transform: translateY(34px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion / fallback ---------- */
.reduced .cine-story {
    height: auto;
    overflow: visible;
}
.reduced .cine-story > .cine {
    position: relative; inset: auto;
    width: auto; height: auto;
    opacity: 1; visibility: visible;
}
.reduced .cine__stage { height: auto; min-height: 88vh; }
.reduced .cine__canvas { display: none; }
.reduced .cine__stage {
    background-size: cover; background-position: center;
    display: flex; align-items: center;
}
.reduced .cine__overlay {
    position: relative; opacity: 1 !important; visibility: visible !important;
    transform: none !important;
    top: auto; bottom: auto;
    padding-top: 12vh; padding-bottom: 12vh;
}
.reduced .cine__overlay--corner, .reduced .cine__overlay--chips,
.reduced .cine__overlay[data-step]:not([data-step="0"]):not(.cine__overlay--final) { display: none; }
.reduced #contato .cine__overlay--final { display: flex; }
.reduced .cine__scrollcue { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(78vw, 330px);
        background: rgba(19, 21, 24, .97);
        backdrop-filter: blur(18px);
        flex-direction: column; align-items: flex-start;
        padding: 100px 34px 34px; gap: 22px;
        transform: translateX(100%);
        transition: transform .4s cubic-bezier(.22, 1, .36, 1);
        z-index: 99;
        border-left: 1px solid var(--line);
    }
    .nav.is-open { transform: translateX(0); }
    .nav__link { font-size: 1.1rem; }
    .nav-toggle { display: flex; z-index: 100; }
    .nav__cta { margin-top: 10px; }

    .cine__overlay--hero h1 { font-size: clamp(2rem, 8.4vw, 2.7rem); }
    .cine__overlay--service h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .cine__overlay--chips { bottom: 6vh; }
    .chips li { font-size: .78rem; padding: 7px 12px; }
    .cine__trust { font-size: .74rem; }
    .cine__scrollcue { display: none; }
    .btn--xl { padding: 16px 30px; font-size: 1rem; }
    .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .footer__grid { grid-template-columns: 1fr; }
    .cine__actions .btn { width: 100%; justify-content: center; }
    .cine__contacts { flex-direction: column; gap: 12px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cine__scrollcue { animation: none; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
