/* Jeane Silva Interiores
   Paleta caramelo aprovada pelo Lucas (extraída das fotos da CASACOR BC:
   madeira caramelo, bouclé cru, pedra clara). Logos oficiais do manual
   da Marques Branding aplicados. Tema único claro, proposital.
   Cores institucionais do manual, se voltarem a ser desejadas:
   slate #455657 · sálvia #7b9090 / #becfc5 · quase-preto #0c1112. */

:root {
  --paper: #faf9f7;
  --paper-deep: #f1eee9;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --accent: #99562b;
  --accent-deep: #7c451f;
  --line: #e5e0d8;
  --dark: #201b16;
  --dark-soft: #2b241d;
  --cream-on-dark: #efe9e0;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --card: #ffffff;
  --link: #7c451f;

  --w-max: 1320px;
  --pad-x: clamp(20px, 5vw, 64px);
  --sec-y: clamp(72px, 11vw, 150px);
  /* Regra de formas: botões e chips em pílula (999px), cartões, molduras e
     fotos em 18px, campos de formulário em 12px. Nada fora dessas três. */
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { color-scheme: light; }
html[data-tema="escuro"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--w-max); margin: 0 auto; padding-inline: var(--pad-x); }

/* ---------- Tipografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.display-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.display-lg { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.display-md { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.body-soft { color: var(--ink-soft); max-width: 62ch; }

em, .it { font-style: italic; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); }

.btn-whats { background: var(--accent); color: #fff; }
.btn-whats:hover { background: var(--accent-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-on-dark { background: var(--cream-on-dark); color: var(--dark); }
.btn-on-dark:hover { background: #fff; }

.link-arrow {
  font-weight: 600;
  color: var(--link);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease);
}
.link-arrow:hover { color: var(--ink); }

/* ---------- Header ---------- */

/* Cabeçalho flutuante em liquid glass: uma caixa em pílula descolada do topo,
   com o conteúdo passando desfocado por baixo dos quatro lados ao rolar.
   Aproximação web com backdrop-filter, não é a API da Apple. */
.site-header {
  position: sticky;
  top: 7px;
  z-index: 40;
  padding-inline: clamp(10px, 2vw, 24px);
  margin-block: 7px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 64px;
  gap: 18px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(32px) saturate(190%) contrast(1.05);
  -webkit-backdrop-filter: blur(32px) saturate(190%) contrast(1.05);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 8px 30px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled .header-inner {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 14px 40px rgba(0, 0, 0, 0.14);
}
@supports not (backdrop-filter: blur(1px)) {
  .header-inner { background: rgba(250, 249, 247, 0.96); }
}
.main-nav { margin-left: auto; }
.nav-toggle { margin-left: auto; }

.brand { display: inline-flex; align-items: center; }
.brand-img { height: 52px; width: auto; }
.brand-img-footer { height: 110px; width: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }

.main-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.35);
  transition: color 0.2s var(--ease);
}
html[data-tema="escuro"] .main-nav a:not(.btn) { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.main-nav a:not(.btn):hover { color: var(--accent-deep); }
.main-nav a.current { color: var(--accent-deep); font-weight: 600; }

.main-nav .btn { padding: 11px 22px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

/* ---------- Hero da home ---------- */

.hero {
  position: relative;
  min-height: min(88dvh, 860px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(18, 12, 7, 0.78) 0%, rgba(18, 12, 7, 0.25) 45%, rgba(18, 12, 7, 0.08) 100%);
}
.hero-content {
  width: 100%;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero h1 { max-width: 13em; text-wrap: balance; }
.hero .lead { color: rgba(255, 255, 255, 0.88); margin-top: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Seções ---------- */

.section { padding-block: var(--sec-y); }
.section-tight { padding-block: calc(var(--sec-y) * 0.62); }

.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 16px; }

/* Faixa de credenciais */

.creds {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.creds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 64px);
}
.cred h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  margin-bottom: 8px;
}
.cred p { color: var(--ink-soft); font-size: 0.95rem; max-width: 30ch; }

/* Projetos em destaque (grade assimétrica) */

.feature-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}
.project-card { position: relative; display: block; }
.project-card .frame {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}
.feature-grid .project-card:nth-child(2) .frame { aspect-ratio: 4 / 4.6; }
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project-card:hover img { transform: scale(1.045); }
.project-card figcaption { margin-top: 16px; }
.project-card figcaption strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  display: block;
}
.project-card figcaption span { color: var(--ink-soft); font-size: 0.92rem; }

.after-grid-cta { margin-top: clamp(36px, 5vw, 56px); }

/* Processo */

.process { background: var(--paper-deep); }
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.process-item { border-top: 1px solid var(--ink); padding-top: 22px; }
.process-item h3 { font-size: 1.5rem; margin-bottom: 10px; }
.process-item p { color: var(--ink-soft); font-size: 0.98rem; }

/* Sobre (split) */

.about-split {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about-split .frame {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.about-split img { width: 100%; height: 100%; object-fit: cover; }
.about-split .lead { margin-block: 18px 26px; }

/* Imprensa destaque */

.press-band { background: var(--dark); color: var(--cream-on-dark); }
.press-band .section-head { color: inherit; }
.press-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
}
.press-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-style: italic;
  line-height: 1.35;
}
.press-quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(239, 233, 224, 0.65);
}
.press-band .after-grid-cta a { color: var(--cream-on-dark); }
.press-band .link-arrow:hover { color: #fff; }

/* CTA final */

.final-cta { text-align: center; }
.final-cta h2 { max-width: 17em; margin-inline: auto; text-wrap: balance; }
.final-cta .lead { margin: 20px auto 36px; }
.final-cta .hero-ctas { justify-content: center; }
.final-cta .form-hint { margin-top: 18px; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Página de projetos ---------- */

.page-head { padding-block: clamp(56px, 8vw, 110px) clamp(32px, 5vw, 64px); }
.page-head h1 { max-width: 14em; text-wrap: balance; }
.page-head .lead { margin-top: 18px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
}
.gallery .frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.gallery .frame:hover img { transform: scale(1.04); }
.g-span-4 { grid-column: span 4; aspect-ratio: 16 / 10; }
.g-span-2 { grid-column: span 2; aspect-ratio: 4 / 5; }
.g-span-3 { grid-column: span 3; aspect-ratio: 4 / 3; }
.g-span-6 { grid-column: span 6; aspect-ratio: 21 / 9; }

.project-block { padding-block: calc(var(--sec-y) * 0.7); }
.project-block .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.project-block + .project-block { border-top: 1px solid var(--line); }

.other-projects { background: var(--paper-deep); }
.other-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.other-item { border-top: 1px solid var(--ink); padding-top: 18px; }
.other-item h3 { font-size: 1.4rem; margin-bottom: 6px; }
.other-item p { color: var(--ink-soft); font-size: 0.95rem; max-width: 44ch; }

/* ---------- Página sobre ---------- */

.timeline { max-width: 720px; }
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-item .year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--link);
}
.timeline-item p { color: var(--ink-soft); }

/* ---------- Página imprensa ---------- */

.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.press-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.press-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.press-card .veiculo {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--link);
}
.press-card h3 { font-size: 1.25rem; line-height: 1.25; }
.press-card .data { font-size: 0.85rem; color: var(--ink-soft); margin-top: auto; }

/* ---------- Página contato ---------- */

.contact-split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-info h1 { margin-bottom: 18px; }
.contact-info .lead { margin-bottom: 32px; }
.contact-direct { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-direct .meta { color: var(--ink-soft); font-size: 0.95rem; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field .hint { font-size: 0.83rem; color: var(--ink-soft); margin-top: 6px; }
.form-error { color: #8c2f1b; font-size: 0.88rem; margin-top: 6px; display: none; }
.form-field.invalid .form-error { display: block; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #8c2f1b; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--cream-on-dark);
  padding-block: clamp(48px, 6vw, 80px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(239, 233, 224, 0.15);
}
.site-footer .brand { color: #fff; }
.site-footer p, .site-footer a { color: rgba(239, 233, 224, 0.75); font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-legal {
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(239, 233, 224, 0.5);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 20px;
}
.footer-legal span:nth-child(2) { text-align: center; }
.footer-legal span:last-child { text-align: right; }

/* ---------- Revelação no scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .project-card img, .gallery img { transition: none; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  .creds-grid, .process-list, .press-quotes { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; align-items: start; }
  .feature-grid .project-card:nth-child(2) .frame { aspect-ratio: 4 / 3; }
  .about-split, .contact-split { grid-template-columns: 1fr; }
  .press-grid, .other-list { grid-template-columns: 1fr; }
  .g-span-4, .g-span-2, .g-span-3, .g-span-6 { grid-column: span 6; aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { grid-template-columns: 1fr; text-align: center; }
  .footer-legal span:last-child { text-align: center; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 92px 12px auto 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--pad-x) 28px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    z-index: 30;
  }
  body.nav-open .main-nav { transform: none; }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Comparador antes e depois ---------- */

.ba-compare {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: var(--paper-deep);
  user-select: none;
}
.ba-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-compare .ba-antes { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-compare .ba-linha {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}
.ba-compare .ba-alca {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0.08em;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.ba-compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-tags span {
  position: absolute;
  bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 15, 10, 0.55);
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}
.ba-tags .tag-antes { left: 14px; }
.ba-tags .tag-depois { right: 14px; }
.ba-legenda { margin-top: 14px; color: var(--ink-soft); font-size: 0.9rem; }
.ba-demo-aviso {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--link);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Botão flutuante de WhatsApp ---------- */

.whats-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 45;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whats-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}
.whats-float:active { transform: scale(0.97); }
.whats-float svg { width: 30px; height: 30px; fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  .whats-float, .whats-float:hover { transform: none; transition: none; }
}

/* ---------- Modo noturno automático (segue a configuração do aparelho) ---------- */

/* O tema é aplicado pelo atributo data-tema no <html>, definido por um script
   no head de cada página: por padrão segue o aparelho (prefers-color-scheme);
   se o visitante usar o botão do cabeçalho, a escolha vence e fica salva. */

html[data-tema="escuro"] {
  --paper: #161310;
  --paper-deep: #1f1b16;
  --ink: #ece7df;
  --ink-soft: #b0a89c;
  --accent: #a5622f;
  --accent-deep: #8a4e22;
  --line: #37302a;
  --dark: #121110;
  --dark-soft: #1b1917;
  --card: #211d18;
  --link: #d9a06b;
}

html[data-tema="escuro"] .header-inner {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(20, 17, 14, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 8px 30px rgba(0, 0, 0, 0.4);
}
html[data-tema="escuro"] .site-header.scrolled .header-inner {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 40px rgba(0, 0, 0, 0.55);
}
@supports not (backdrop-filter: blur(1px)) {
  html[data-tema="escuro"] .header-inner { background: rgba(22, 19, 16, 0.97); }
}

html[data-tema="escuro"] .brand-img { filter: invert(1) brightness(1.05); }
html[data-tema="escuro"] .btn-on-dark { background: var(--cream-on-dark); color: #201b16; }
html[data-tema="escuro"] .form-error { color: #e08a75; }
html[data-tema="escuro"] .form-field.invalid input,
html[data-tema="escuro"] .form-field.invalid textarea { border-color: #c96a52; }
html[data-tema="escuro"] .whats-float { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }

/* ---------- Botão de alternar tema ---------- */

.tema-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.tema-toggle:hover { transform: scale(1.06); }
.tema-toggle:active { transform: scale(0.96); }
.tema-toggle svg { width: 19px; height: 19px; }
.tema-toggle .icone-lua { display: block; }
.tema-toggle .icone-sol { display: none; }
html[data-tema="escuro"] .tema-toggle .icone-lua { display: none; }
html[data-tema="escuro"] .tema-toggle .icone-sol { display: block; }
