/* ============================================================
   Studio Miky Arruda · landing page
   Paleta e direção: ver DESIGN.md
   ============================================================ */

:root {
  /* superfícies */
  --canvas: hsl(24, 33%, 97%);
  --superficie: hsl(18, 30%, 93%);
  --canvas-tom: hsl(16, 26%, 90%);
  --canvas-escuro: hsl(15, 9%, 10%);
  --canvas-escuro-2: hsl(14, 8%, 14%);

  /* tinta */
  --tinta: hsl(14, 14%, 16%);
  --texto-suave: hsl(12, 9%, 38%);
  --texto-inverso: hsl(24, 33%, 96%);
  --texto-inverso-suave: hsl(16, 16%, 74%);

  /* acento */
  --acento: hsl(12, 38%, 42%);
  --acento-hover: hsl(12, 40%, 35%);
  --rose: hsl(12, 30%, 60%);
  --rose-claro: hsl(14, 34%, 82%);
  --dourado: hsl(38, 45%, 55%);

  /* linhas e sombras */
  --hairline: hsla(14, 14%, 16%, .12);
  --hairline-forte: hsla(14, 14%, 16%, .24);
  --hairline-inversa: hsla(24, 33%, 96%, .16);
  --sombra: 0 18px 55px hsla(14, 20%, 20%, .10);
  --sombra-hover: 0 26px 70px hsla(14, 20%, 20%, .16);

  /* tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Sora", "Segoe UI", Arial, sans-serif;
  --text-h1: clamp(2.4rem, 7vw, 4.4rem);
  --text-h2: clamp(1.85rem, 3.6vw, 3rem);
  --text-h3: clamp(1.15rem, 2vw, 1.35rem);
  --text-body: clamp(1rem, calc(.4vw + .93rem), 1.125rem);
  --text-number: clamp(3.4rem, 8vw, 6rem);
  --text-kicker: .75rem;

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 72px;

  /* raios, easing e durações */
  --r-sm: 12px; --r-md: 20px; --r-lg: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --dur-micro: 200ms;
  --dur-reveal: 650ms;
  --dur-hero: 800ms;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--tinta);
  background: var(--canvas);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
}

h1 { font-size: var(--text-h1); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--rose); }

.sec--claro h2 em, .sec--tom h2 em { color: hsl(12, 35%, 46%); }

p { margin: 0 0 1em; }

a { color: var(--acento); }

:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
  border-radius: 4px;
}

.sec--escuro :focus-visible,
#topo :focus-visible,
.sec-hero :focus-visible { outline-color: var(--rose-claro); }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--estreito { max-width: 860px; }

.sec { padding-block: var(--section-space); }
.sec--claro { background: var(--canvas); }
.sec--tom { background: var(--canvas-tom); }
.sec--escuro { background: var(--canvas-escuro); color: var(--texto-inverso); }

.kicker {
  font-size: var(--text-kicker);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--acento);
  margin-bottom: 1em;
}

.sec--escuro .kicker { color: var(--rose-claro); }

.sec-cabeca { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-sub { color: var(--texto-suave); max-width: 56ch; }
.sec--escuro .sec-sub { color: var(--texto-inverso-suave); }

.estrelas { color: var(--dourado); letter-spacing: .08em; }

.microcopy { font-size: .82rem; color: var(--texto-suave); margin-top: .75em; }
.sec--escuro .microcopy, .sec-hero .microcopy { color: var(--texto-inverso-suave); }

/* ---------- traço assinatura (sobrancelha) ---------- */

.traco {
  display: block;
  width: clamp(90px, 12vw, 140px);
  height: auto;
  color: var(--rose);
  margin: .25rem 0 1rem;
}

.traco path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s var(--ease) .3s;
}

.is-in .traco path { stroke-dashoffset: 0; }

.traco--hero path { animation: traco-desenha 1s var(--ease) .9s both; }

@keyframes traco-desenha {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease),
              box-shadow var(--dur-micro) var(--ease),
              background-color var(--dur-micro) var(--ease),
              border-color var(--dur-micro) var(--ease),
              color var(--dur-micro) var(--ease);
}

.btn--primario {
  background: var(--acento);
  color: #fff;
  box-shadow: var(--sombra);
}

.btn--primario:hover { background: var(--acento-hover); transform: translateY(-2px); box-shadow: var(--sombra-hover); }
.btn--primario:active { transform: translateY(0); box-shadow: var(--sombra); }

.btn--ghost-claro {
  background: transparent;
  color: var(--texto-inverso);
  border: 1px solid hsla(24, 33%, 96%, .38);
}

.btn--ghost-claro:hover { border-color: var(--rose-claro); color: var(--rose-claro); transform: translateY(-2px); }

.btn--compacto { min-height: 44px; padding: 10px 20px; font-size: .9rem; box-shadow: none; }
.btn--grande { min-height: 56px; padding: 16px 34px; font-size: 1.05rem; }

.ico-zap { width: 20px; height: 20px; flex: none; }

.link-claro {
  color: var(--rose-claro);
  text-decoration: none;
  position: relative;
  display: inline-block;
  min-height: 44px;
  padding-block: 8px;
}

.link-claro::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-micro) var(--ease);
}

.link-claro:hover::after { transform: scaleX(1); }

/* ---------- header (fixo por ID, nunca por tag) ---------- */

#topo {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  color: var(--texto-inverso);
  transition: background-color var(--dur-micro) var(--ease),
              box-shadow var(--dur-micro) var(--ease);
}

#topo.is-scrolled {
  background: hsla(15, 9%, 10%, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--hairline-inversa), 0 12px 34px hsla(15, 9%, 5%, .35);
}

.topo-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--texto-inverso);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
@media (max-width: 420px) { .logo { font-size: 1.08rem; } }

.logo em { font-style: italic; font-weight: 500; color: var(--rose-claro); margin-left: .3ch; }

.topo-nav { display: flex; gap: clamp(14px, 2.5vw, 30px); }

.topo-nav a {
  color: var(--texto-inverso);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.topo-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 2px;
  background: var(--rose-claro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-micro) var(--ease);
}

.topo-nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */

.sec-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--canvas-escuro);
  color: var(--texto-inverso);
  display: flex;
  align-items: flex-end;
}

.hero-foto {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  animation: hero-zoom 1.2s var(--ease-expo) both;
}

@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  /* miolo escuro o bastante pro H1/sub lerem bem sobre a foto (antes .22) */
  background: linear-gradient(180deg,
    hsla(15, 9%, 10%, .62) 0%,
    hsla(15, 9%, 10%, .50) 30%,
    hsla(15, 9%, 10%, .86) 60%,
    hsla(15, 9%, 10%, .96) 100%);
}

.hero-conteudo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}

.hero-conteudo > * { animation: hero-rise var(--dur-hero) var(--ease) both; }
.hero-conteudo > *:nth-child(2) { animation-delay: .10s; }
.hero-conteudo > *:nth-child(3) { animation-delay: .18s; }
.hero-conteudo > *:nth-child(4) { animation-delay: .26s; }
.hero-conteudo > *:nth-child(5) { animation-delay: .34s; }
.hero-conteudo > *:nth-child(6) { animation-delay: .42s; }
.hero-conteudo > *:nth-child(7) { animation-delay: .50s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.sec-hero .kicker { color: var(--rose-claro); }

.sec-hero h1 { max-width: 14ch; margin-bottom: .2em; }

.hero-sub {
  max-width: 46ch;
  color: var(--texto-inverso-suave);
  margin-bottom: 1.6em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge-nota {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid hsla(24, 33%, 96%, .28);
  border-radius: 999px;
  color: var(--texto-inverso);
  text-decoration: none;
  font-size: .9rem;
  transition: border-color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease);
}

.badge-nota:hover { border-color: var(--rose-claro); transform: translateY(-2px); }
.badge-nota strong { font-size: 1.05rem; }

@media (min-width: 1024px) {
  .sec-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .hero-foto {
    position: relative;
    inset: auto;
    order: 2;
    height: 100%;
    min-height: 100svh;
  }

  .hero-foto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--canvas-escuro) 0%, transparent 24%),
                linear-gradient(0deg, hsla(15, 9%, 10%, .30), transparent 32%);
  }

  .hero-scrim { display: none; }

  .hero-conteudo {
    order: 1;
    padding: calc(var(--header-h) + 2rem) clamp(2rem, 5vw, 5rem) 4rem var(--gutter);
  }
}

/* ---------- trust strip ---------- */

.trust-strip {
  background: var(--canvas-tom);
  border-block: 1px solid var(--hairline);
}

.trust-strip ul {
  list-style: none;
  margin: 0;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--texto-suave);
}

.trust-strip li { display: inline-flex; align-items: center; gap: 8px; }

.trust-strip li + li::before {
  content: "·";
  margin-right: 12px;
  color: var(--rose);
}

/* ---------- serviços ---------- */

.cards-servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card-servico {
  background: var(--superficie);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
  position: relative;
}

.card-servico::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--sombra-hover);
  opacity: 0;
  transition: opacity var(--dur-micro) var(--ease);
  pointer-events: none;
}

.card-servico:hover { transform: translateY(-4px); border-color: var(--rose); }
.card-servico:hover::after { opacity: 1; }

.card-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--acento);
  margin-bottom: 1.1rem;
}

.card-icone svg { width: 26px; height: 26px; }

.card-servico h3 { margin-bottom: .35em; }
.card-servico p { margin: 0; color: var(--texto-suave); font-size: .95rem; }

.servicos-rodape {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.servicos-prova {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--texto-suave);
  max-width: 42ch;
}

.servicos-prova span {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .8rem;
  margin-top: .2em;
  color: var(--acento);
}

/* ---------- galeria ---------- */

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.75rem, 1.6vw, 1rem);
}

.galeria-grid figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--superficie);
}

.galeria-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.g-esq img { object-position: 18% 50%; filter: brightness(1.05); }
.g-topo img { filter: brightness(1.08); }
.g-alta img { filter: brightness(1.04); }

@media (pointer: fine) {
  .galeria-grid figure:hover img { transform: scale(1.03); }
}

@media (min-width: 900px) {
  .galeria-grid {
    grid-template-columns: 5fr 4fr 4fr;
    grid-template-areas:
      "alta topo topo"
      "alta esq dir";
    grid-auto-rows: 285px;
  }

  .galeria-grid figure { aspect-ratio: auto; height: 100%; }

  .g-alta { grid-area: alta; }
  .g-topo { grid-area: topo; }
  .g-esq { grid-area: esq; }
  .g-dir { grid-area: dir; }
}

/* ---------- avaliações ---------- */

.nota-bloco {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.nota-num {
  font-family: var(--font-display);
  font-size: var(--text-number);
  font-weight: 600;
  line-height: 1;
  margin: 0;
  color: var(--rose-claro);
}

.nota-detalhe p { margin: .2em 0 0; color: var(--texto-inverso-suave); }
.estrelas--grandes { font-size: 1.4rem; }

.cards-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card-review {
  margin: 0;
  background: var(--canvas-escuro-2);
  border: 1px solid var(--hairline-inversa);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  transition: transform var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}

.card-review:hover { transform: translateY(-4px); border-color: var(--rose); }

.card-review::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--rose);
  opacity: .55;
  display: block;
  margin-bottom: .3rem;
}

.card-review p { color: var(--texto-inverso); margin-bottom: 1.2em; }

.card-review footer {
  font-size: .88rem;
  font-weight: 600;
  color: var(--texto-inverso-suave);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-review footer .estrelas { font-size: .8rem; }

.avaliacoes-ctas {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- FAQ ---------- */

.faq-lista details {
  border-bottom: 1px solid var(--hairline);
}

.faq-lista details:first-child { border-top: 1px solid var(--hairline); }

.faq-lista summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 4px;
  font-weight: 600;
  font-size: 1.02rem;
}

.faq-lista summary::-webkit-details-marker { display: none; }

.faq-chev {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--acento);
  transition: transform .3s var(--ease);
}

details[open] .faq-chev { transform: rotate(180deg); }

.faq-corpo { padding: 0 4px 18px; color: var(--texto-suave); max-width: 62ch; }
.faq-corpo p { margin: 0; }

details[open] .faq-corpo { animation: faq-abre .3s var(--ease); }

@keyframes faq-abre {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- fechamento ---------- */

.sec-fechamento .sec-cabeca { margin-bottom: 1.5rem; }

.fechamento-cta { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.fechamento-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--hairline-inversa);
}

.fechamento-info h3 {
  font-family: var(--font-body);
  font-size: var(--text-kicker);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--rose-claro);
  margin-bottom: 1em;
}

.fechamento-info p { margin: 0 0 .4em; color: var(--texto-inverso-suave); }

/* ---------- rodapé ---------- */

.rodape {
  background: hsl(15, 9%, 7%);
  color: var(--texto-inverso-suave);
  padding: clamp(2rem, 4vw, 3rem) 0 calc(clamp(2rem, 4vw, 3rem) + 76px);
  font-size: .85rem;
}

.rodape p { margin: 0 0 .5em; }
.rodape strong { color: var(--texto-inverso); }
.rodape a { color: var(--rose-claro); }
.rodape-compliance { opacity: .75; }

@media (min-width: 769px) {
  .rodape { padding-bottom: clamp(2rem, 4vw, 3rem); }
}

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  [data-reveal="left"],
  [data-reveal="right"] { transform: translateY(28px); }
}

/* ---------- sticky CTA mobile ---------- */

.cta-fixa {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: hsla(24, 33%, 97%, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}

.cta-fixa .btn { width: 100%; }
.cta-fixa.is-on { transform: none; }
.cta-fixa.is-off { transform: translateY(110%); }

@media (max-width: 768px) {
  .cta-fixa { display: block; }
}

/* ---------- zap float (desktop) ---------- */

.zap-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: hsl(145, 65%, 38%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px hsla(145, 65%, 20%, .4);
  animation: zap-entra .4s var(--ease) 1.2s both;
  transition: opacity var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease);
}

.zap-float .ico-zap { width: 28px; height: 28px; }

.zap-float:hover { transform: scale(1.08); }

.zap-float.is-hidden {
  opacity: 0;
  transform: scale(.6);
  pointer-events: none;
}

@keyframes zap-entra {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .zap-float { display: none; }
}

/* ---------- mobile ---------- */

@media (max-width: 768px) {
  .topo-nav { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- reduced motion (regra dura) ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
