/* ==========================================================================
   ConstruBloco — Editorial stylesheet
   Paleta: papel/cream + tinta/preto quente + selo vermelho de marca.
   Tipografia: Fraunces (display, serif moderno), Inter (UI), Caveat (manuscrito).
   ========================================================================== */

:root {
  /* Palette */
  --paper: #FAF6F1;
  --paper-soft: #F2EBE2;
  --paper-line: #E1D7C9;
  --ink: #1A1814;
  --ink-soft: #4A413B;
  --ink-mute: #7A6F66;
  --red: #C8102E;
  --red-deep: #9C0A22;
  --red-wash: #F2DCDC;
  --highlight: #FFE2B0;

  /* Tons fixos (não trocam com o tema — usados em elementos que devem
     permanecer sempre "escuros" ou sempre "claros", como o rodapé) */
  --ink-fixed: #1A1814;
  --paper-fixed: #FAF6F1;
  --red-deep-fixed: #9C0A22;
  --header-bg: rgba(250, 246, 241, 0.88);

  /* Layout */
  --container: 1240px;
  --gutter: 1.25rem;

  /* Motion */
  --t: 240ms cubic-bezier(.2, .7, .2, 1);

  /* Type scale */
  --display-xl: clamp(2.6rem, 1.6rem + 5vw, 6.5rem);
  --display-lg: clamp(2.1rem, 1.4rem + 3vw, 4rem);
  --display-md: clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
  --lead-xl:    clamp(1.15rem, 1rem + .8vw, 1.6rem);
}

/* Tema escuro — segue a preferência do sistema por padrão, ou a escolha
   explícita do visitante (persistida via localStorage, ver js/script.js) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16130F;
    --paper-soft: #2A231A;
    --paper-line: #3E3021;
    --ink: #F3ECE1;
    --ink-soft: #D9CFC0;
    --ink-mute: #A69A89;
    --red: #FF5C72;
    --red-deep: #FF8599;
    --header-bg: rgba(22, 19, 15, 0.88);
  }
}
:root[data-theme="dark"] {
  --paper: #16130F;
  --paper-soft: #2A231A;
  --paper-line: #3E3021;
  --ink: #F3ECE1;
  --ink-soft: #D9CFC0;
  --ink-mute: #A69A89;
  --red: #FF5C72;
  --red-deep: #FF8599;
  --header-bg: rgba(22, 19, 15, 0.88);
}

/* Reset --------------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
/* scroll-padding-top = altura do .masthead (sticky), para âncoras não ficarem
   escondidas atrás dele. A rolagem é nativa: o foco acompanha o alvo (skip
   link) e o prefers-reduced-motion (final do arquivo) é respeitado. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
ul,ol { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--red); }
button { font: inherit; background: transparent; border: 0; cursor: pointer; color: inherit; }
em { font-style: italic; }
strong { color: var(--ink); }
::selection { background: var(--red); color: #fff; }

/* Subtle paper grain — applied via SVG noise data URL */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/></svg>");
  z-index: 1;
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 2; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-fixed); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }
main:focus { outline: none; } /* recebe foco via skip link (tabindex="-1") */

/* Container ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: var(--display-xl);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.display em { font-style: italic; color: var(--red); font-weight: 700; }
.display--lg { font-size: var(--display-lg); }
.display--md { font-size: var(--display-md); line-height: 1.08; }

.lead {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.lead em { color: var(--red); font-style: italic; }
.lead--xl { font-size: var(--lead-xl); }

.handwritten {
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.05;
  color: var(--red);
  margin: .5rem 0 1.25rem;
  letter-spacing: 0;
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* Marker (section index) ---------------------------------------------- */
.marker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.marker__line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--red);
}
.marker__num {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.marker__name { color: var(--ink-mute); font-weight: 500; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 0.005em;
  border-radius: 999px;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 14px rgba(26, 24, 20, .18);
}
.btn--primary:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(200, 16, 46, .35);
}
.btn--ghost {
  color: var(--ink);
  background: transparent;
  padding: .95rem 0;
  border-radius: 0;
}
.btn--ghost:hover { color: var(--red); }
.btn--block { width: 100%; }

/* ==========================================================================
   Masthead (header)
   ========================================================================== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--paper-line);
}
.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
}
.masthead__seal {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.masthead__wordmark { display: flex; flex-direction: column; line-height: 1; }
.masthead__name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.masthead__tag {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: .15rem;
}

.masthead__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.masthead__toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}
.masthead__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.masthead__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.masthead__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: 76px 0 auto 0;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  max-height: 0;
  overflow: hidden;
  /* fechado: fora da ordem de Tab e do leitor de tela (visibility só muda
     depois que a animação de fechar termina) */
  visibility: hidden;
  transition: max-height var(--t), visibility 0s var(--t);
}
.nav.is-open { max-height: 90vh; overflow-y: auto; visibility: visible; transition: max-height var(--t); }
.nav ul {
  display: flex;
  flex-direction: column;
  padding: .75rem var(--gutter) 1.5rem;
  gap: .15rem;
}
.nav a {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  padding: .9rem .25rem;
  border-bottom: 1px solid var(--paper-line);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  color: var(--ink);
}
.nav a:hover { color: var(--red); }
.nav__num {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .12em;
  min-width: 28px;
}
.nav a.nav__cta {
  margin-top: .85rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: .85rem 1.2rem !important;
  border-bottom: 0 !important;
  text-align: center;
  justify-content: center !important;
  font-family: 'Inter', sans-serif !important;
  font-size: .95rem !important;
  font-weight: 600;
}
.nav a.nav__cta:hover { background: var(--red); color: #fff; }

@media (min-width: 980px) {
  .masthead__row { gap: 1rem; }
  .masthead__toggle { display: none; }
  /* O menu nunca quebra linha nem encolhe: se faltar espaço, quem cede é a
     marca (o slogan quebra em mais linhas) e o header mantém os 76px. */
  .nav {
    position: static;
    background: transparent;
    border: 0;
    max-height: none;
    overflow: visible;
    visibility: visible;
    flex-shrink: 0;
  }
  .nav ul {
    flex-direction: row;
    padding: 0;
    gap: .15rem;
    align-items: center;
  }
  .nav a {
    padding: .55rem .85rem;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    border: 0;
    border-radius: 999px;
    white-space: nowrap;
  }
  .nav a:hover { background: var(--paper-soft); }
  .nav__num { font-size: .68rem; min-width: auto; }
  .nav__cta {
    margin-top: 0;
    margin-left: .35rem;
  }
}
/* 980–1239px: o menu completo (~850px) + a marca não cabem numa linha →
   versão compacta, sem os números e com menos respiro entre os itens. */
@media (min-width: 980px) and (max-width: 1239.98px) {
  .nav__num { display: none; }
  .nav a { padding: .55rem .6rem; }
}

/* ==========================================================================
   Theme toggle (tema claro/escuro)
   ========================================================================== */
.nav__theme {
  display: flex;
  justify-content: center;
  padding: .35rem .25rem .1rem;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--t), color var(--t);
}
.theme-toggle:hover { color: var(--red); }
.theme-toggle__icon { width: 18px; height: 18px; flex-shrink: 0; }
.theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__icon--sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__icon--moon { display: block; }
}

@media (min-width: 980px) {
  .nav__theme { padding: 0; margin-left: .5rem; }
  .theme-toggle {
    width: 40px; height: 40px;
    padding: 0;
    background: transparent;
  }
  .theme-toggle:hover { background: var(--paper-soft); color: var(--red); }
  .theme-toggle__label { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; isolation: isolate; padding: 3rem 0 4rem; }
/* Sem fotos: um quadriculado de prancheta ("o traço") dá textura ao topo */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .6;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 35%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 75% 35%, #000 10%, transparent 75%);
}
.hero__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.hero__lead {
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--paper-line);
}
.hero__chips li {
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: .04em;
  background: var(--paper-soft);
  padding: .3rem .7rem;
  border-radius: 999px;
}

/* Desktop: título grande à esquerda, texto + ações à direita, alinhados pela base */
@media (min-width: 900px) {
  .hero { padding: 6rem 0 7rem; }
  .hero__grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 4rem;
    align-items: end;
  }
  .hero__title .handwritten { margin-bottom: 0; }
}

/* ==========================================================================
   Block — generic section frame
   ========================================================================== */
.block { padding: 4rem 0; }
.block--rule { border-top: 1px solid var(--paper-line); }
.block--soft { background: var(--paper-soft); }
.block__head { margin-bottom: 2.5rem; max-width: 36ch; }
.block__head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: none;
  align-items: end;
  margin-bottom: 2.5rem;
}
.block__head-text {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0;
}
.block__head:last-child { margin-bottom: 0; }

@media (min-width: 800px) {
  .block { padding: 6rem 0; }
  .block__head--split { grid-template-columns: 1.4fr 1fr; }
  .block__head-text { justify-self: end; text-align: right; }
}

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto__grid {
  display: grid;
  gap: 2rem;
}
.manifesto__cols {
  display: grid;
  gap: 1.5rem;
}
.signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  margin-top: 1rem;
}
.signature__line {
  font-size: .85rem;
  color: var(--ink-mute);
  letter-spacing: .08em;
  text-transform: lowercase;
}
.signature__name {
  margin: 0;
  transform: rotate(-2deg);
}

@media (min-width: 900px) {
  .manifesto__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
  .lead--xl { grid-column: 1 / 2; }
  .manifesto__cols {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .signature { grid-column: 1 / 2; }
}

/* ==========================================================================
   Ofício (services)
   ========================================================================== */
.ofice-list {
  display: grid;
  gap: 0;
  margin-top: 1rem;
}
.ofice {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--paper-line);
  align-items: start;
  transition: padding-left var(--t);
}
.ofice:last-child { border-bottom: 1px solid var(--paper-line); }
.ofice:hover { padding-left: 1rem; }
.ofice__num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--red);
  line-height: 1;
}
.ofice__body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  color: var(--ink);
  margin: 0 0 .35rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.ofice__body p {
  margin: 0 0 .85rem;
  max-width: 60ch;
}
.ofice__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  font-size: .8rem;
}
.ofice__tags li {
  color: var(--ink-mute);
  letter-spacing: .03em;
  position: relative;
  padding-right: .65rem;
}
.ofice__tags li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 0;
  color: var(--paper-line);
}

@media (min-width: 800px) {
  .ofice {
    grid-template-columns: 80px 1fr 1.4fr;
    align-items: baseline;
    gap: 2rem;
  }
  .ofice__num { font-size: 2.2rem; }
}

/* ==========================================================================
   Vozes (testimonials)
   ========================================================================== */
.quotes {
  display: grid;
  gap: 2.5rem;
  margin-top: 1rem;
}
.quote {
  position: relative;
  padding-left: 0;
  max-width: 60ch;
}
.quote__mark {
  position: absolute;
  top: -1.25rem;
  left: -.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 6rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  opacity: .6;
  transform: rotate(-4deg);
}
.quote p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem);
  font-weight: 500;
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
}
.quote p em { color: var(--red); font-style: italic; }
.quote footer {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .55rem;
  font-size: .85rem;
  color: var(--ink-mute);
  letter-spacing: .04em;
}
.quote__name {
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
}

@media (min-width: 900px) {
  .quotes { grid-template-columns: 1fr; gap: 3.5rem; }
  .quote { padding-left: 4rem; }
  .quote__mark { left: 0; top: -1rem; font-size: 8rem; }
  .quote--alt {
    margin-left: auto;
    text-align: right;
    padding-left: 0;
    padding-right: 4rem;
  }
  .quote--alt .quote__mark { left: auto; right: 0; transform: rotate(176deg); }
  .quote--alt footer { justify-content: flex-end; }
}

/* ==========================================================================
   Contact + path
   ========================================================================== */
.contact { background: var(--paper-soft); }

.contact__grid {
  display: grid;
  gap: 3rem;
}

.path { display: grid; gap: 1.75rem; }
.path__step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--paper-line);
}
.path__step:last-child { border-bottom: 0; padding-bottom: 0; }
.path__num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
  font-style: italic;
}
.path__step h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 .35rem;
  letter-spacing: -0.01em;
}
.path__step p { margin: 0; font-size: .95rem; }

/* Form */
.form {
  background: var(--paper);
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--paper-line);
}
.form__eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.form__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.form__field label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: .35rem;
  text-transform: uppercase;
}
.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  padding: .65rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--paper-line);
  color: var(--ink);
  border-radius: 0;
  transition: border-color var(--t);
}
.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--ink-mute);
  opacity: .65;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 0;
  border-bottom-color: var(--red);
}
.form__field textarea { resize: vertical; min-height: 110px; }
.form__hint {
  margin: .85rem 0 0;
  font-size: .8rem;
  color: var(--ink-mute);
  text-align: center;
}
.form__hint a { color: var(--red); text-decoration: underline; }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
  .form { padding: 2.5rem; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__list {
  margin-top: 1rem;
}
.faq__item {
  border-top: 1px solid var(--paper-line);
}
.faq__item:last-child { border-bottom: 1px solid var(--paper-line); }
.faq__question {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 28px;
  gap: 1rem;
  align-items: center;
  text-align: left;
  padding: 1.4rem 0;
  color: var(--ink);
  transition: color var(--t);
}
.faq__question:hover { color: var(--red); }
.faq__num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--red);
}
.faq__text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.05rem, .95rem + .6vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.faq__plus {
  position: relative;
  width: 22px; height: 22px;
  justify-self: end;
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink);
  transition: transform var(--t), background var(--t);
}
.faq__plus::before { width: 18px; height: 2px; transform: translate(-50%,-50%); }
.faq__plus::after  { width: 2px;  height: 18px; transform: translate(-50%,-50%); }
.faq__question[aria-expanded="true"] .faq__plus::before { background: var(--red); }
.faq__question[aria-expanded="true"] .faq__plus::after  { transform: translate(-50%,-50%) rotate(90deg); background: var(--red); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  visibility: hidden; /* fechada: o leitor de tela também não lê */
  transition: max-height var(--t), visibility 0s var(--t);
}
.faq__answer p {
  margin: 0;
  padding: 0 0 1.5rem 56px;
  max-width: 70ch;
}
.faq__item.is-open .faq__answer { max-height: 500px; visibility: visible; transition: max-height var(--t); }

/* ==========================================================================
   Colophon (footer)
   ========================================================================== */
.colophon {
  background: var(--ink-fixed);
  color: rgba(250, 246, 241, .8);
  padding: 4rem 0 2rem;
  margin-top: 0;
}
.colophon__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250,246,241, .1);
}
.colophon__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.colophon__brand img {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}
.colophon__brand strong {
  display: block;
  color: var(--paper-fixed);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.colophon__brand em {
  font-family: 'Caveat', cursive;
  color: var(--red);
  font-size: 1.1rem;
  display: block;
  margin-top: .15rem;
}
.colophon__list { display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; }
.colophon__heading {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(250,246,241,.5);
  margin-bottom: .25rem;
}
.colophon__list a,
.colophon__link { color: rgba(250, 246, 241, .85); }
.colophon__link { padding: 0; text-align: left; transition: color var(--t); }
.colophon__list a:hover,
.colophon__link:hover { color: var(--red); }

.colophon__base {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-align: center;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: rgba(250,246,241, .5);
}
.colophon__base .handwritten {
  color: var(--red);
  margin: 0;
  transform: rotate(-1deg);
  font-size: 1.4rem;
}

@media (min-width: 800px) {
  .colophon__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
  }
  .colophon__base {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.colophon__credit {
  text-align: center;
  font-size: .78rem;
  color: rgba(250, 246, 241, .45);
  margin: 1.1rem 0 0;
}
.colophon__credit a {
  color: rgba(250, 246, 241, .7);
  text-decoration: underline;
}
.colophon__credit a:hover { color: var(--red); }

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.wpp {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  z-index: 60;
  transition: transform var(--t), box-shadow var(--t);
}
.wpp:hover {
  transform: translateY(-4px) rotate(-6deg);
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 211, 102, .55);
}
.wpp svg { width: 30px; height: 30px; }

/* ==========================================================================
   Cookie banner + modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 80;
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink-fixed);
  color: rgba(250, 246, 241, .85);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  transform: translateY(140%);
  opacity: 0;
  /* escondido (antes de aparecer ou depois do "Entendi"): sem foco nem leitura */
  visibility: hidden;
  transition: transform var(--t), opacity var(--t), visibility 0s var(--t);
}
.cookie-banner.is-visible {
  transform: translateY(0); opacity: 1; visibility: visible;
  transition: transform var(--t), opacity var(--t);
}
.cookie-banner p { margin: 0; font-size: .88rem; line-height: 1.5; flex: 1 1 260px; }
.cookie-banner strong { color: var(--paper-fixed); }
.cookie-banner__link {
  color: var(--paper-fixed);
  text-decoration: underline;
  font-weight: 600;
  margin-left: .35rem;
  cursor: pointer;
}
.cookie-banner__accept {
  background: var(--red-deep-fixed);
  color: #fff;
  box-shadow: none;
  padding: .7rem 1.4rem;
  flex-shrink: 0;
}
.cookie-banner__accept:hover { background: var(--red); color: #fff; transform: none; box-shadow: none; }

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner__accept { width: 100%; }
}

/* <dialog> nativo (showModal): centralização, top layer e fundo inerte vêm do
   navegador. position: fixed explícito porque `body > *` força relative. */
.cookie-modal {
  position: fixed;
  width: calc(100% - 2.5rem);
  max-width: 480px;
  padding: 0;
  border: 0;
  background: transparent;
}
.cookie-modal::backdrop { background: rgba(0,0,0,.55); }
.cookie-modal__panel {
  position: relative;
  background: var(--paper);
  color: var(--ink-soft);
  padding: 2rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.cookie-modal__panel h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 1rem;
}
.cookie-modal__panel p { font-size: .92rem; margin: 0 0 .85rem; }
.cookie-modal__panel a { color: var(--red); text-decoration: underline; }
.cookie-modal__close {
  position: absolute; top: .85rem; right: .85rem;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-mute);
  border-radius: 50%;
}
.cookie-modal__close:hover { background: var(--paper-soft); color: var(--ink); }

/* ==========================================================================
   Privacy page (legal)
   ========================================================================== */
.legal { padding: 3rem 0 4rem; }
.legal__content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  padding: 2rem 1.5rem;
}
.legal__content h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .35rem;
}
.legal__content h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.25rem 0 .65rem;
  letter-spacing: -0.01em;
}
.legal__content ul { padding-left: 1.25rem; list-style: disc; }
.legal__content p, .legal__content li { color: var(--ink-soft); }
.legal__back { margin-top: 2.5rem; }
.legal__updated {
  color: var(--ink-mute);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

@media (min-width: 800px) {
  .legal { padding: 5rem 0 6rem; }
  .legal__content { padding: 3rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
  .handwritten,
  .quote__mark,
  .signature__name { transform: none !important; }
}
