/* ============================================================
   Jonata Gonçalves — Fotografia
   Estética: minimalista, fluida, editorial
   ============================================================ */

:root {
  --bg:        #FAF8F5;
  --bg-alt:    #F2EEE8;
  --ink:       #17171b;
  --ink-soft:  #43424a;
  --muted:     #7c7a74;
  --line:      #E4DFD6;
  --dark:      #121212;
  --dark-soft: #1c1c1c;
  --on-dark:   #f4f2ee;

  --accent-red:   #E23B33;
  --accent-green: #2FA84F;
  --accent-blue:  #2B7DB8;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 12vw, 160px);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: .2px; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--flush { padding-block: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 44px; } }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.eyebrow--light { color: rgba(244,242,238,.6); }

.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__lead, .section__head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95em 2em;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--dark   { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #000; }
.btn--light  { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   CABECALHO
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 22px;
}
/* legibilidade da nav sobre a foto do hero (estado nao rolado) */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 100%);
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled {
  background: rgba(250,248,245,.9);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; color: #fff; }
.site-header.is-scrolled .brand { color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; letter-spacing: .3px; }
.brand__tag { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav a {
  position: relative;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: #fff;
}
.site-header.is-scrolled .nav a { color: var(--ink); }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: currentColor; transition: width .35s var(--ease);
}
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid currentColor; padding: .7em 1.4em; border-radius: 2px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.site-header.is-scrolled .nav__cta:hover { background: var(--ink); color: var(--bg); }
.nav__cta:hover { background: rgba(255,255,255,.14); }

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span {
  position: absolute; left: 8px; right: 8px; height: 1.5px; background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
/* menu aberto = fundo claro atrás do botão; o X precisa ficar escuro
   independente do header estar "is-scrolled" ou não */
body.menu-open .nav-toggle span { background: var(--ink); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 28px; background: var(--bg);
    /* fechado: desliza pra fora pela LARGURA (estável no iOS, ao contrário
       da altura/barra de endereço) + visibility:hidden como trava dura
       depois que a animação termina */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .nav a, .site-header .nav a { color: var(--ink); font-size: 1rem; }
  body.menu-open .nav {
    transform: translateX(0);
    visibility: visible;
    transition: transform .4s var(--ease), visibility 0s linear 0s;
  }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter no header cria containing-block e prende o menu fixo:
     desliga enquanto o menu estiver aberto */
  body.menu-open .site-header {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: transparent; box-shadow: none;
  }
  body.menu-open .site-header::before { opacity: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-bottom: clamp(64px, 12vh, 130px); overflow: hidden;
  /* fundo base (aparece enquanto nao houver foto de topo) */
  background:
    radial-gradient(120% 90% at 70% 15%, #23201e 0%, #16130f 55%, #0c0a09 100%);
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.hero__bg[hidden] { display: none; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,8,8,.6) 0%, rgba(8,8,8,.28) 22%, rgba(8,8,8,.3) 48%, rgba(8,8,8,.86) 100%),
    linear-gradient(75deg, rgba(8,8,8,.62) 0%, rgba(8,8,8,.2) 45%, rgba(8,8,8,0) 70%);
}
.hero__content {
  position: relative; z-index: 2; color: #fff; max-width: 900px;
  text-shadow: 0 1px 24px rgba(0,0,0,.35);
}
.hero__eyebrow {
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: 1.4rem; color: rgba(255,255,255,.85);
}
.hero__title {
  font-size: clamp(2.4rem, 7vw, 5.2rem); font-weight: 400; letter-spacing: .3px;
}
.hero__sub {
  margin-top: 1.3rem; font-size: 1rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.hero__actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 2;
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; translate: -50% 0;
  width: 3px; height: 8px; border-radius: 2px; background: #fff;
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ============================================================
   SOBRE
   ============================================================ */
.sobre { background: var(--bg); }
.sobre__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px;
}
.sobre__text h2 { margin-bottom: 1.2rem; }
.sobre__text p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 46ch; }

.stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px);
  margin: 2rem 0 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 500; }
.stats span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--bg-alt); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: row dense; /* preenche buracos deixados por itens largos/altos */
  gap: clamp(10px, 1.5vw, 18px);
}
.gallery__item { position: relative; overflow: hidden; border-radius: 2px; background: var(--line); }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item[data-span="tall"] { grid-row: span 2; }
.gallery__item[data-span="wide"] { grid-column: span 2; }
.gallery__item.is-ph, .gallery__item img.is-ph { }

@media (max-width: 820px) {
  /* 2 colunas uniformes — sem spans, sem buracos */
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery__item[data-span] { grid-column: auto; grid-row: auto; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 300px; }
}

.portfolio__more { margin-top: 2.6rem; text-align: center; color: var(--muted); font-size: .95rem; }
.portfolio__more a { border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-left: .3rem; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(12,12,12,.94); opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 2px; }
.lightbox__close, .lightbox__nav {
  position: absolute; color: #fff; width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 1.5rem; opacity: .8; transition: opacity .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 14px; right: 16px; }
.lightbox__nav { top: 50%; translate: 0 -50%; font-size: 2rem; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* ============================================================
   SERVICOS
   ============================================================ */
.servicos { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: 2px; background: var(--bg);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.25); border-color: transparent; }
.card h3 { margin-bottom: .8rem; }
.card h3::before {
  content: ""; display: block; width: 34px; height: 1px; margin-bottom: 1rem;
  background: var(--ink);
}
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.depoimentos { background: var(--dark); color: var(--on-dark); }
.depoimentos__inner { max-width: 820px; margin-inline: auto; text-align: center; }
.depoimentos blockquote {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.4rem, 3.6vw, 2.3rem); line-height: 1.4; letter-spacing: .3px;
}
.depoimentos cite { display: block; margin-top: 1.6rem; font-style: normal;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,242,238,.55); }

/* ============================================================
   CONTATO
   ============================================================ */
.contato { background: var(--bg); }
.contato__info h2 { margin-bottom: 1.1rem; }
.contato__info > p { color: var(--ink-soft); max-width: 44ch; }
.contato__list { list-style: none; margin: 2rem 0; border-top: 1px solid var(--line); }
.contato__list li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.contato__list span:first-child { color: var(--muted); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.contato__list a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.contato__list a:hover { border-color: currentColor; }

.contato__social { display: flex; gap: 12px; margin-top: 1.6rem; }
.contato__social a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.contato__social a:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }
.contato__social svg { width: 18px; height: 18px; }

/* form */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field span {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: .85em 1em;
  background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__submit { align-self: flex-start; margin-top: .4rem; }
.form__status { font-size: .9rem; min-height: 1.2em; }
.form__status.is-ok { color: var(--accent-green); }
.form__status.is-err { color: var(--accent-red); }
.form.is-sending .form__submit { opacity: .6; pointer-events: none; }

/* ============================================================
   RODAPE
   ============================================================ */
.site-footer { background: var(--dark); color: rgba(244,242,238,.75); padding-block: clamp(48px, 8vw, 84px); }
@media (max-width: 640px) {
  /* reserva espaço pro botão flutuante do WhatsApp não cobrir o rodapé */
  .site-footer { padding-bottom: calc(clamp(48px, 8vw, 84px) + 64px); }
}
.footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 24px; } }
.brand--footer { color: var(--on-dark); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; }
.footer__nav a { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.footer__nav a:hover { color: #fff; }
.footer__meta { font-size: .8rem; line-height: 1.8; text-align: right; color: rgba(244,242,238,.5); }
@media (max-width: 760px) { .footer__meta { text-align: center; } }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float {
  position: fixed; right: clamp(16px, 4vw, 30px); bottom: clamp(16px, 4vw, 30px); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25D366;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } .hero__scroll span { animation: none; } }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   ACESSIBILIDADE  (adições — não alteram o layout existente)
   ============================================================ */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--ink); color: var(--bg);
  padding: .7em 1.2em; border-radius: 2px;
  font-size: .82rem; letter-spacing: .06em;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* anel de foco visível apenas para navegação por teclado */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.depoimentos :focus-visible,
.site-footer :focus-visible,
.wa-float:focus-visible { outline-color: #fff; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* linha de contato oculta (telefone só aparece se configurado) */
.contato__list li[hidden] { display: none; }

/* ============================================================
   FAQ  (nova seção — usa os mesmos tokens do site)
   ============================================================ */
.faq { background: var(--bg); }
.faq__inner { max-width: 820px; margin-inline: auto; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500; line-height: 1.25;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-sans); font-size: 1.4rem; line-height: 1;
  color: var(--muted);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 1.5rem; max-width: 62ch; }
.faq__answer p { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }

/* ============================================================
   AVISO DE COOKIES  (aparece só se SITE.analytics.requireConsent = true)
   ============================================================ */
.consent {
  position: fixed; left: clamp(16px, 4vw, 30px); bottom: clamp(16px, 4vw, 30px);
  z-index: 95; display: none;
  max-width: 380px;
  background: var(--dark); color: var(--on-dark);
  padding: 1.1rem 1.2rem; border-radius: 4px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
  font-size: .85rem; line-height: 1.6;
}
.consent.is-visible { display: block; }
.consent p { margin-bottom: .8rem; }
.consent a { text-decoration: underline; }
.consent__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.consent button {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .7em 1.3em; border-radius: 2px;
}
.consent__accept { background: var(--on-dark); color: var(--dark); }
.consent__reject { border: 1px solid rgba(244,242,238,.4); color: var(--on-dark); }
@media (max-width: 480px) { .consent { left: 12px; right: 12px; max-width: none; } }
