:root {
    --bg: #ffffff;
    --ink: #000000;
    --muted: rgba(0, 0, 0, .68);
    --muted2: rgba(0, 0, 0, .5);
    --line: rgba(0, 0, 0, .12);
    --line2: rgba(255, 255, 255, .16);

    --radius: 18px;
    --radius2: 26px;

    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --shadow2: 0 10px 30px rgba(0, 0, 0, .18);

    --max: 1140px;

    --brand: #000000;
    --stroke: rgba(0, 0, 0, .12);
    --text: #000000;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav__link {
    color: rgba(255, 255, 255, .78);
}

.nav__link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.header__actions .btn--primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.header__actions .btn--primary:hover {
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 14px;
    transition: 160ms ease;
    white-space: nowrap;
}

.btn--primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn--primary:hover {
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
}

.btn--ghost:hover {
    background: rgba(0, 0, 0, .04);
}

.btn--ghost-dark {
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}

.btn--ghost-dark:hover {
    background: rgba(255, 255, 255, .08);
}

.btn--block {
    width: 100%;
}

/* Sections */
.section {
    padding: 84px 0;
}

.section--light {
    background: #fff;
}

.section--dark {
    background: #000;
    color: #fff;
}

.section__head {
    margin-bottom: 28px;
    max-width: 780px;
}

.section__head--dark .section__subtitle {
    color: rgba(255, 255, 255, .76);
}

.section__title {
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.02em;
    font-size: clamp(26px, 3.6vw, 38px);
    margin: 0 0 10px 0;
}

.section__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Hero */
.hero {
    padding: 76px 0 44px 0;
    border-bottom: 1px solid var(--line);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: center;
}

.kicker {
    margin: 0 0 10px 0;
    letter-spacing: .18em;
    font-weight: 700;
    font-size: 12px;
    color: rgba(0, 0, 0, .7);
}

.hero__title {
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.03em;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.05;
    margin: 0 0 14px 0;
}

.dot {
    opacity: .9;
}

.hero__subtitle {
    margin: 0 0 22px 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    max-width: 560px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.hero__stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.stat {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    min-width: 160px;
}

.stat strong {
    display: block;
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.02em;
    font-size: 15px;
}

.stat span {
    display: block;
    margin-top: 4px;
    color: var(--muted2);
    font-size: 13px;
}

.hero__visual {
    position: relative;
}

.frame {
    border-radius: var(--radius2);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    filter: grayscale(100%);
}

.badge {
    position: absolute;
    right: 16px;
    bottom: -14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    max-width: 260px;
}

.badge__title {
    display: block;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-weight: 700;
    letter-spacing: .14em;
    font-size: 12px;
    margin-bottom: 6px;
}

.badge__text {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* About cards */
.about {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.about__card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.about__card h3 {
    margin: 0 0 8px 0;
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.02em;
    font-size: 16px;
}

.about__card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

/* Services */
.grid {
    display: grid;
    gap: 14px;
}

.cards {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(255, 255, 255, .02);
}

.card h3 {
    margin: 0 0 8px 0;
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.02em;
    font-size: 16px;
}

.card p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
    font-size: 14px;
}

.card--cta {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .22);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.step {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.step__num {
    font-family: "Space Grotesk", Inter, sans-serif;
    font-weight: 700;
    letter-spacing: .12em;
    font-size: 12px;
    color: rgba(0, 0, 0, .62);
    margin-bottom: 10px;
}

.step h3 {
    margin: 0 0 8px 0;
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.02em;
    font-size: 16px;
}

.step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

/* Portfolio */
.portfolio {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.pitem {
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

.pitem img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    filter: grayscale(100%);
}

.pitem__cap {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}

.pitem__cap strong {
    display: block;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.pitem__cap span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

/* Contact */
.contact {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    align-items: start;
}

.contact__copy h2 {
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.03em;
    font-size: clamp(28px, 3.8vw, 40px);
    margin: 0 0 10px 0;
}

.contact__copy p {
    margin: 0 0 18px 0;
    color: rgba(255, 255, 255, .76);
    line-height: 1.75;
    font-size: 15px;
}

.contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.contact__micro {
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sep {
    opacity: .6;
}

.panel {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius2);
    padding: 18px;
    background: rgba(255, 255, 255, .04);
}

.panel h3 {
    margin: 0 0 6px 0;
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.02em;
    font-size: 16px;
}

.muted {
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
}

.message {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    padding: 12px 12px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, .35);
}

.message p {
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    line-height: 1.6;
}

.hint {
    margin: 10px 0 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    line-height: 1.5;
}

/* Final CTA */
.final-cta {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 54px 0;
}

.final-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius2);
}

.final-cta__inner h2 {
    margin: 0 0 6px 0;
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.03em;
    font-size: 24px;
}

.final-cta__inner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
    max-width: 680px;
}

/* Footer */
.footer {
    padding: 30px 0;
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__name {
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: .12em;
    font-weight: 700;
    font-size: 12px;
}

.footer__tag {
    color: var(--muted);
    font-size: 13px;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.footer__links a {
    color: rgba(0, 0, 0, .72);
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 10px;
}

.footer__links a:hover {
    background: rgba(0, 0, 0, .04);
    color: #000;
}

.footer__copy {
    text-align: right;
    color: rgba(0, 0, 0, .62);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .frame img {
        height: 360px;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__copy {
        text-align: center;
    }

    .footer__links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .nav {
        display: none;
    }

    .hero {
        padding-top: 64px;
    }

    .portfolio {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .final-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Clients */
.clients {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.client {
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: 160ms ease;
}

.client:hover {
    transform: translateY(-2px);
}

.client__left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.client__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-weight: 700;
    letter-spacing: .06em;
    background: #000;
    color: #fff;
    flex: 0 0 auto;
}

.client__meta {
    min-width: 0;
}

.client__name {
    margin: 0;
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: -0.02em;
    font-size: 16px;
}

.client__hint {
    margin: 6px 0 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.client__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.client__link {
    font-size: 13px;
    color: rgba(0, 0, 0, .72);
}

.client__link:hover {
    color: #000;
}

@media (max-width: 760px) {
    .clients {
        grid-template-columns: 1fr;
    }

    .client {
        flex-direction: column;
        align-items: flex-start;
    }

    .client__actions {
        width: 100%;
        align-items: stretch;
    }
}

/* ===== Header premium (sal a mais) ===== */
.header {
    background: rgba(0, 0, 0, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.header__inner {
    padding: 20px 0;
    gap: 18px;
}

/* Links mais premium */
.nav {
    gap: 22px;
}

.nav__link {
    padding: 10px 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: 160ms ease;
}

.nav__link:hover {
    background: rgba(255, 255, 255, .08);
}

/* Botões do header mais “agency” */
.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__actions .btn {
    padding: 12px 18px;
    border-radius: 999px;
    /* pill premium */
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
}

.header__actions .btn--primary {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.header__actions .btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}


.brand__logo {
    height: 64px;
    /* maior no desktop */
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 760px) {
    .brand__logo {
        height: 48px;
    }
}

/* ===== WhatsApp floating button ===== */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
    display: grid;
    place-items: center;
    z-index: 120;
    transition: 160ms ease;
}

.wa-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

.wa-float i {
    font-size: 22px;
    line-height: 1;
}

/* Botão WhatsApp com ícone */
.btn--wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.btn--wa i {
    font-size: 18px;
    line-height: 1;
}

/* Avatar (logo) estilo “perfil” */
.client__avatar {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--av-bg, #fff);
    overflow: hidden;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.client__avatar img {
    width: 100%;
    height: 100%;
    padding: var(--av-pad, 10px);
    object-fit: var(--av-fit, contain);
    transform: scale(var(--av-zoom, 1.12));
    transform-origin: center;
    display: block;
}

.client__initials {
    font-family: "Space Grotesk", Inter, sans-serif;
    font-weight: 700;
    letter-spacing: .08em;
    font-size: 14px;
    color: #000;
    opacity: .72;
    display: none;
}

/* fallback quando não carregar logo */
.client__avatar.is-fallback {
    background: #fff;
}

.client__avatar.is-fallback .client__initials {
    display: inline;
}

/* =========================
   DRAWER (MENU MOBILE)
   ========================= */

/* trava scroll quando drawer abre */
.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* botão burger (ícone) */
.burger {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    display: none;
    /* só aparece no mobile via media query */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    /* SVG usa currentColor */
}

.burger__icon {
    width: 22px;
    height: 22px;
    display: block;
}


/* mobile: mostra burger e esconde nav desktop se você quiser */
@media (max-width: 760px) {
    .burger {
        display: inline-flex;
    }

    /* opcional: esconda menu desktop no mobile
     (ajuste o seletor conforme seu HTML)
  */
    /* .nav-links { display: none; } */
}

/* =========================
   DROPDOWN ABAIXO DO HEADER
   ========================= */

/* container do menu */
.mobile {
    border-top: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* animação */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
}

/* quando estiver aberto (JS coloca data-open="true") */
.mobile[data-open="true"] {
    max-height: 520px;
    /* suficiente pros links + botão */
    opacity: 1;
    transform: translateY(0);
}

/* conteúdo interno */
.mobile__inner {
    padding: .9rem 0 1.1rem;
    display: grid;
    gap: .25rem;
}

/* links */
.mobile__link {
    padding: .85rem .9rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--line);
    color: #111;
    font-weight: 900;
}

.mobile__link:hover {
    background: rgba(0, 0, 0, 0.07);
}

.mobile__link:active {
    background: rgba(0, 0, 0, 0.10);
}

/* Foco (acessível e elegante) */
.mobile__link:focus-visible {
    outline: 2px solid rgba(0, 0, 0, .35);
    outline-offset: 2px;
}

/* botões no final */
.mobile__buttons {
    margin-top: .75rem;
    display: grid;
    gap: .6rem;
}

/* no desktop: some com o menu mobile */
@media (min-width: 981px) {
    .mobile {
        display: none !important;
    }
}

/* Mobile: esconder o botão WhatsApp do header */
@media (max-width: 760px) {
    .header__actions .btn--wa {
        display: none !important;
    }
}

/* Burger alterna hamburger <-> X usando aria-expanded */
.burger .icon-x {
    opacity: 0;
}

.burger[aria-expanded="true"] .icon-ham {
    opacity: 0;
}

.burger[aria-expanded="true"] .icon-x {
    opacity: 1;
}

/* Compensa o header sticky ao navegar por âncoras (#secao) */
:root {
    --header-offset: 92px;
    /* ajuste fino */
}

html {
    scroll-padding-top: var(--header-offset);
}

/* garante que qualquer alvo com id pare no lugar certo */
section[id] {
    scroll-margin-top: var(--header-offset);
}