/* RabbitStack — site institucional.
   Sem framework: variáveis de tema, modo escuro automático, tipografia
   fluida (clamp), @container, :has() e animação por rolagem (só quando o
   navegador suporta e a pessoa não pediu menos movimento). */

@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/jakarta-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215;
}
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/jakarta-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tema ---- */
:root {
  --verde: #8fd13f;        /* folha do logo */
  --verde-forte: #3f8f1f;  /* verde legível em texto sobre claro */
  --laranja: #f7a21b;
  --azul: #0b6aa8;
  --marinho: #0f2a44;

  --fundo: #f7f9f4;
  --superficie: #ffffff;
  --superficie-2: #eef3e8;
  --texto: #14202e;
  --texto-suave: #4c5a69;
  --linha: #dde5d6;
  --destaque: var(--azul);
  --sombra: 0 1px 2px rgb(15 42 68 / .06), 0 12px 32px -12px rgb(15 42 68 / .18);

  --raio: 18px;
  --raio-pequeno: 10px;
  --largura: 1160px;
  --fonte: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #0b1724;
    --superficie: #11202f;
    --superficie-2: #0f2a44;
    --texto: #e8eef5;
    --texto-suave: #a7b6c6;
    --linha: #223649;
    --destaque: #6cc0f5;
    --verde-forte: #a6e05f;
    --sombra: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px -16px rgb(0 0 0 / .55);
  }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  line-height: 1.65;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--destaque); text-underline-offset: .2em; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 0 0 .5em; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--marinho); color: #fff; border-radius: var(--raio-pequeno); }
.pular:focus { top: 1rem; }
.largura { width: min(var(--largura), 100% - 2.5rem); margin-inline: auto; }
.largura--estreita { width: min(820px, 100% - 2.5rem); }

/* ---- Botões ---- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: linear-gradient(135deg, var(--verde) 0%, var(--laranja) 100%);
  color: var(--marinho); font: 700 1rem/1 var(--fonte); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgb(247 162 27 / .8);
  transition: transform .2s, box-shadow .2s;
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgb(247 162 27 / .9); }
.botao:disabled { opacity: .6; cursor: progress; transform: none; }
.botao--contorno { background: transparent; color: var(--texto); border-color: var(--linha); box-shadow: none; }
.botao--contorno:hover { border-color: var(--verde); box-shadow: none; }
.botao--pequeno { padding: .6rem 1.1rem; font-size: .92rem; }
.botao--largo { width: 100%; }
.link-seta { font-weight: 700; text-decoration: none; }
.link-seta::after { content: " →"; transition: margin-left .2s; }
.link-seta:hover::after { margin-left: .25rem; }

/* ---- Topo ---- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fundo) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topo[data-rolou] { border-bottom-color: var(--linha); }
.topo__interno { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--texto); margin-right: auto; }
.marca__nome { font-size: 1.35rem; font-weight: 500; letter-spacing: -.03em; }
.marca__nome strong { font-weight: 800; color: var(--destaque); }
.navegacao { display: flex; align-items: center; gap: 1.6rem; }
.navegacao a:not(.botao) { color: var(--texto-suave); text-decoration: none; font-weight: 600; font-size: .96rem; }
.navegacao a:not(.botao):hover { color: var(--texto); }
.topo__menu { display: none; }

@media (max-width: 880px) {
  .topo__menu {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--linha); border-radius: 12px; background: var(--superficie); cursor: pointer;
  }
  .topo__menu span[aria-hidden],
  .topo__menu span[aria-hidden]::before,
  .topo__menu span[aria-hidden]::after {
    display: block; width: 20px; height: 2px; background: var(--texto); border-radius: 2px; position: relative; transition: transform .25s, opacity .25s;
  }
  .topo__menu span[aria-hidden]::before, .topo__menu span[aria-hidden]::after { content: ""; position: absolute; left: 0; }
  .topo__menu span[aria-hidden]::before { top: -6px; }
  .topo__menu span[aria-hidden]::after { top: 6px; }
  .topo__menu[aria-expanded="true"] span[aria-hidden] { background: transparent; }
  .topo__menu[aria-expanded="true"] span[aria-hidden]::before { transform: translateY(6px) rotate(45deg); }
  .topo__menu[aria-expanded="true"] span[aria-hidden]::after { transform: translateY(-6px) rotate(-45deg); }

  .navegacao {
    position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem; background: var(--fundo); border-bottom: 1px solid var(--linha);
    box-shadow: var(--sombra);
  }
  .navegacao a:not(.botao) { padding: .85rem 0; border-bottom: 1px solid var(--linha); font-size: 1.05rem; }
  .navegacao .botao { margin-top: 1rem; }
  .topo:not(:has([aria-expanded="true"])) .navegacao { display: none; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: clip; padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero__fundo { position: absolute; inset: 0; pointer-events: none; }
.bolha { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; }
.bolha--verde { width: 38vw; aspect-ratio: 1; background: var(--verde); top: -12vw; left: -10vw; }
.bolha--laranja { width: 30vw; aspect-ratio: 1; background: var(--laranja); bottom: -14vw; right: 6vw; opacity: .35; }
.bolha--azul { width: 22vw; aspect-ratio: 1; background: var(--azul); top: 8%; right: -6vw; opacity: .3; }
@media (prefers-color-scheme: dark) { .bolha { opacity: .22; } }
.hero__interno { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.selo {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem;
  padding: .4rem .9rem; border: 1px solid var(--linha); border-radius: 999px; background: var(--superficie);
  font-size: .88rem; font-weight: 600; color: var(--texto-suave);
}
.selo__ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgb(143 209 63 / .6); animation: pulso 2.2s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 9px rgb(143 209 63 / 0); } 100% { box-shadow: 0 0 0 0 rgb(143 209 63 / 0); } }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 800; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--verde-forte), var(--azul) 55%, var(--laranja));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--texto-suave); max-width: 38em; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.2rem; }
.hero__pilha { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.hero__pilha li { padding: .3rem .75rem; border-radius: 999px; background: var(--superficie-2); color: var(--texto-suave); font-size: .82rem; font-weight: 600; }
.hero__visual { position: relative; }
.janela {
  border-radius: var(--raio); overflow: hidden; background: #0d1b2a; color: #d6e2ee;
  box-shadow: var(--sombra), 0 0 0 1px rgb(255 255 255 / .06) inset;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.janela__barra { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; background: #13263a; font: 600 .78rem var(--mono); color: #8aa0b5; }
.janela__barra span { width: 11px; height: 11px; border-radius: 50%; background: #ff6b5b; }
.janela__barra span:nth-child(2) { background: #f7c33b; }
.janela__barra span:nth-child(3) { background: #47c96b; }
.janela__barra b { margin-left: .6rem; font-weight: 600; }
.janela__codigo { margin: 0; padding: 1.3rem 1.4rem 1.6rem; font: .9rem/1.9 var(--mono); white-space: pre-wrap; }
.c-cinza { color: #6f859b; } .c-verde { color: #9fe36a; } .c-laranja { color: #f7a21b; } .c-azul { color: #6cc0f5; }
.cursor { display: inline-block; width: .55em; height: 1.05em; margin-left: .2em; vertical-align: -.15em; background: #9fe36a; animation: piscar 1.1s steps(1) infinite; }
@keyframes piscar { 50% { opacity: 0; } }
.hero__marca { position: absolute; width: clamp(90px, 12vw, 150px); right: -1.5rem; bottom: -2.5rem; filter: drop-shadow(0 18px 24px rgb(15 42 68 / .25)); animation: flutuar 6s ease-in-out infinite; }
@keyframes flutuar { 50% { transform: translateY(-10px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .hero__marca, .cursor, .selo__ponto { animation: none; } }
@media (max-width: 880px) {
  .hero__interno { grid-template-columns: 1fr; }
  .janela { transform: none; }
  .hero__marca { right: .5rem; bottom: -2rem; }
}

/* ---- Seções ---- */
.secao { padding: clamp(4rem, 8vw, 7rem) 0; }
.secao--tingida { background: var(--superficie-2); }
@media (prefers-color-scheme: dark) { .secao--tingida { background: #0e1f31; } }
.secao__cabecalho { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.secao__cabecalho h2, .sobre h2, .contato h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); font-weight: 800; }
.secao__cabecalho p:last-child { color: var(--texto-suave); font-size: 1.08rem; }
.secao__sobretitulo { margin-bottom: .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--verde-forte); }

/* ---- Serviços ---- */
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.cartao {
  container-type: inline-size;
  padding: 1.7rem; border-radius: var(--raio); background: var(--superficie); border: 1px solid var(--linha);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cartao:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: color-mix(in srgb, var(--verde) 55%, var(--linha)); }
.cartao--destaque { background: linear-gradient(160deg, color-mix(in srgb, var(--verde) 14%, var(--superficie)), var(--superficie) 60%); }
.cartao h3 { font-size: 1.25rem; font-weight: 800; }
.cartao p { color: var(--texto-suave); margin: 0; }
.cartao__icone { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.2rem; border-radius: 14px; background: var(--marinho); }
.cartao__icone svg { width: 26px; height: 26px; fill: none; stroke: var(--verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cartao__lista { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1.1rem 0 0; list-style: none; }
.cartao__lista li { padding: .25rem .65rem; border-radius: 999px; background: var(--superficie-2); font-size: .8rem; font-weight: 700; color: var(--texto-suave); }
@container (min-width: 420px) { .cartao h3 { font-size: 1.4rem; } }

/* ---- Portfólio ---- */
.projeto { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.projeto + .projeto { margin-top: clamp(3.5rem, 7vw, 6rem); }
.projeto--invertido .projeto__imagens { order: 2; }
.projeto__imagens { position: relative; display: block; padding: 0 0 2.5rem; }
.projeto__pc { border-radius: var(--raio); box-shadow: var(--sombra); border: 1px solid var(--linha); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .35s; }
.projeto__cel { position: absolute; width: 24%; right: -4%; bottom: 0; border-radius: 16px; border: 4px solid var(--marinho); box-shadow: var(--sombra); aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; transition: transform .35s; }
.projeto__imagens:hover .projeto__pc { transform: translateY(-4px); }
.projeto__imagens:hover .projeto__cel { transform: translateY(-10px); }
.projeto__tipo { margin-bottom: .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
@media (prefers-color-scheme: dark) { .projeto__tipo { color: var(--destaque); } }
.projeto h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; }
.projeto__texto > p { color: var(--texto-suave); }
.projeto__feitos { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.projeto__feitos li { position: relative; padding: .35rem 0 .35rem 1.8rem; }
.projeto__feitos li::before {
  content: ""; position: absolute; left: 0; top: .72rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a44' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
@media (max-width: 880px) {
  .projeto { grid-template-columns: 1fr; }
  .projeto--invertido .projeto__imagens { order: 0; }
  .projeto__cel { right: 2%; }
}

/* ---- Etapas ---- */
.etapas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.2rem; padding: 0; margin: 0; list-style: none; counter-reset: etapa; }
.etapa { position: relative; padding: 1.6rem; border-radius: var(--raio); border: 1px solid var(--linha); background: var(--superficie); }
.etapa__numero {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--verde), var(--laranja)); color: var(--marinho); font-weight: 800; font-size: 1.1rem;
}
.etapa h3 { font-size: 1.15rem; font-weight: 800; }
.etapa p { margin: 0; color: var(--texto-suave); }

/* ---- Sobre ---- */
.sobre { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.sobre__foto { width: clamp(180px, 22vw, 260px); aspect-ratio: 265 / 294; object-fit: cover; border-radius: 28px; box-shadow: var(--sombra); outline: 6px solid var(--superficie); rotate: -2deg; }
.sobre__texto p { color: var(--texto-suave); max-width: 40em; }
.sobre__texto strong { color: var(--texto); }
@media (max-width: 720px) { .sobre { grid-template-columns: 1fr; justify-items: start; } }

/* ---- Dúvidas ---- */
.perguntas { display: grid; gap: .8rem; }
.perguntas details { border: 1px solid var(--linha); border-radius: var(--raio-pequeno); background: var(--superficie); transition: border-color .2s; }
.perguntas details[open] { border-color: color-mix(in srgb, var(--verde) 60%, var(--linha)); }
.perguntas summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 700; cursor: pointer; list-style: none; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--verde-forte); transition: rotate .2s; }
.perguntas details[open] summary::after { rotate: 45deg; }
.perguntas details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--texto-suave); }

/* ---- Contato ---- */
.contato { background: var(--marinho); color: #e8eef5; }
.contato .secao__sobretitulo { color: var(--verde); }
.contato__interno { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contato__texto p { color: #b8c7d6; font-size: 1.08rem; }
.contato__canais { display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.canal {
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .18); color: #fff; text-decoration: none; font-weight: 700;
  transition: background .2s, border-color .2s;
}
.canal:hover { background: rgb(255 255 255 / .08); border-color: var(--verde); }
.canal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.canal--whatsapp { background: #25d366; border-color: #25d366; color: #06301c; }
.canal--whatsapp:hover { background: #20c25d; }
.formulario { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--raio); background: var(--superficie); color: var(--texto); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55); }
.campo { display: grid; gap: .35rem; margin-bottom: 1rem; }
.campo-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .campo-dupla { grid-template-columns: 1fr; } }
.campo label { font-size: .9rem; font-weight: 700; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: .8rem .95rem; border-radius: var(--raio-pequeno); border: 1px solid var(--linha);
  background: var(--fundo); color: var(--texto); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 130px; }
.campo :is(input, select, textarea):focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgb(11 106 168 / .18); }
.campo:has(:user-invalid) :is(input, textarea) { border-color: #d64545; }
.campo:has(:user-invalid) label::after { content: " — confira este campo"; font-weight: 600; color: #d64545; }
.campo-armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario__retorno { display: block; margin-top: 1rem; font-weight: 600; }
.formulario__retorno[data-tipo="ok"] { color: var(--verde-forte); }
.formulario__retorno[data-tipo="erro"] { color: #d64545; }
@media (max-width: 880px) { .contato__interno { grid-template-columns: 1fr; } }

/* ---- Rodapé ---- */
.rodape { padding: 2rem 0; background: #0a1d30; color: #8fa3b8; font-size: .92rem; }
.rodape__interno { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.rodape .marca { color: #fff; }
.rodape .marca__nome strong { color: var(--verde); }
.rodape p { margin: 0; }
.rodape a:not(.marca) { color: #c4d3e2; }

/* ---- Aparecer ao rolar: só com suporte e sem pedido de menos movimento ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .revelar {
      animation: revelar linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
    @keyframes revelar { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
  }
}
