/* ===================================================================
   Associação ATOS — site institucional
   Identidade própria · sem framework CSS · mobile-first
   Fase 1: institucional + cursos + doação (PIX). Loja e doação
   internacional ficam para a Fase 2.
   =================================================================== */

:root {
  /* ---- Marca ATOS ---- */
  --terra-700: #9c3d21;
  --terra-600: #b8482a;
  --terra-500: #cf5a37;
  --terra-400: #e07a54;
  --terra-050: #fbeee7;

  --verde-700: #14584a;
  --verde-600: #1f6f5c;
  --verde-500: #2a8a73;
  --verde-050: #e6f2ee;

  --ocre-500: #d99a2b;
  --ocre-050: #fbf1dc;

  /* ---- Neutros quentes ---- */
  --ink-900: #241d19;
  --ink-800: #2f2621;
  --ink-700: #443a33;
  --ink-600: #5c5048;
  --stone-500: #7a6d63;
  --stone-400: #9a8d82;
  --stone-300: #c8bcb0;
  --stone-200: #e6ddd2;
  --stone-100: #f1ebe2;
  --cream: #faf6f0;
  --white: #ffffff;

  /* ---- Tipografia ---- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --h1: clamp(2.4rem, 5vw, 3.9rem);
  --h2: clamp(1.85rem, 3.4vw, 2.7rem);
  --h3: 1.15rem;
  --lh-tight: 1.14;
  --lh-normal: 1.62;

  /* ---- Layout ---- */
  --container: 1160px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --section-pad: clamp(4rem, 8vw, 7rem);

  --shadow-sm: 0 1px 2px rgba(36, 29, 25, 0.06);
  --shadow-md: 0 12px 30px -16px rgba(36, 29, 25, 0.22);
  --shadow-lg: 0 24px 50px -20px rgba(36, 29, 25, 0.28);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--white);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
section { padding-block: var(--section-pad); }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; background: var(--ink-900); color: var(--white);
  padding: 0.7rem 1.1rem; border-radius: var(--r-sm); z-index: 999; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--verde-600); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--terra-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--terra-500); border-radius: 2px; }
.eyebrow--invert { color: var(--ocre-500); }
.eyebrow--invert::before { background: var(--ocre-500); }

.section-head { max-width: 640px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
  font-family: var(--font-display); font-size: var(--h2); font-weight: 600;
  letter-spacing: -0.005em; line-height: var(--lh-tight); color: var(--ink-900); margin-top: 0.9rem;
}
.section-head p { font-size: 1.06rem; color: var(--stone-500); margin-top: 1rem; }
.section-head.center p { max-width: 52ch; margin-inline: auto; }

.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink-900); color: var(--stone-200); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.95rem; border: 1.5px solid transparent;
  transition: background 0.18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--terra-500); color: var(--white); }
.btn-primary:hover { background: var(--terra-600); }
.btn-donate { background: var(--verde-600); color: var(--white); }
.btn-donate:hover { background: var(--verde-700); }
.btn-outline { background: transparent; color: var(--ink-800); border-color: var(--stone-300); }
.btn-outline:hover { border-color: var(--ink-700); }
.btn-ghost-invert { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.32); }
.btn-ghost-invert:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; padding-block: 1.05rem;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), padding 0.25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header.is-scrolled {
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm); border-color: var(--stone-200); padding-block: 0.65rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--ink-900); }
.brand img { height: 44px; width: auto; }
.brand__logo { height: 54px; width: auto; }
.site-header.is-scrolled .brand__logo { height: 44px; }
@media (max-width: 520px) { .brand__logo { height: 46px; } }
.brand__fallback {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.5rem;
}
.brand__fallback span:first-child {
  width: 38px; height: 38px; border-radius: 50%; background: var(--terra-500); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; letter-spacing: 0;
}

.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav > .btn { display: none; }
.main-nav a:not(.btn) {
  font-size: 0.92rem; font-weight: 600; color: var(--ink-600); position: relative;
  padding-block: 0.3rem; transition: color 0.15s var(--ease);
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--terra-500); border-radius: 2px; transition: right 0.22s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--ink-900); }
.main-nav a:not(.btn):hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle { display: none; background: none; border: none; padding: 0.4rem; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-800); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html.nav-open { overflow: hidden; }

@media (max-width: 920px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 auto 0; top: 0; background: var(--cream);
    flex-direction: column; align-items: stretch; padding: 5.5rem 1.5rem 2rem; gap: 0.1rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s var(--ease); box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a:not(.btn) { padding: 0.95rem 0.2rem; border-bottom: 1px solid var(--stone-200); font-size: 1.05rem; }
  .main-nav > .btn { display: inline-flex; margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding-top: clamp(7.5rem, 14vw, 10.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background: radial-gradient(120% 120% at 85% 0%, var(--terra-050) 0%, var(--cream) 55%);
  border-bottom: 1px solid var(--stone-200); overflow: clip;
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 1.3rem; }
.hero h1 {
  font-family: var(--font-display); font-size: var(--h1); font-weight: 600;
  letter-spacing: -0.01em; line-height: var(--lh-tight); color: var(--ink-900);
}
.hero h1 em { font-style: italic; color: var(--terra-600); }
.hero .lede { margin-top: 1.35rem; font-size: 1.16rem; color: var(--stone-500); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.hero-stats { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 3vw, 2.4rem); }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--terra-600); }
.hero-stats .stat span { font-size: 0.83rem; color: var(--stone-500); }

.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--stone-200); aspect-ratio: 4 / 5; background: var(--stone-100);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo--placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  color: var(--stone-400); text-align: center; padding: 2rem;
  background: repeating-linear-gradient(45deg, var(--stone-100) 0 14px, var(--cream) 14px 28px);
}
.hero-photo--placeholder svg { width: 48px; height: 48px; }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; background: var(--white);
  border-radius: var(--r); padding: 0.9rem 1.15rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 0.7rem; max-width: 240px;
}
.hero-badge svg { width: 26px; height: 26px; color: var(--verde-600); flex: none; }
.hero-badge b { display: block; font-size: 0.92rem; color: var(--ink-900); }
.hero-badge span { font-size: 0.76rem; color: var(--stone-500); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; max-width: 380px; }
  .hero-photo { aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) { .hero-badge { display: none; } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 65ms); }

/* ---------- Faixa de destaques ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pillar { text-align: left; }
.pillar .ic {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--terra-050); color: var(--terra-600); margin-bottom: 1rem;
}
.pillar .ic svg { width: 23px; height: 23px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink-900); margin-bottom: 0.4rem; }
.pillar p { font-size: 0.93rem; color: var(--stone-500); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Quem somos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-figure {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--stone-200);
  aspect-ratio: 4 / 5; background: repeating-linear-gradient(45deg, var(--stone-100) 0 14px, var(--cream) 14px 28px);
  display: flex; align-items: center; justify-content: center; color: var(--stone-400);
}
.about-figure svg { width: 46px; height: 46px; }
.about h2 { font-family: var(--font-display); font-size: var(--h2); font-weight: 600; color: var(--ink-900); line-height: var(--lh-tight); margin-top: 0.9rem; }
.about p { margin-top: 1.1rem; color: var(--stone-500); font-size: 1.02rem; }
.mvv { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.mvv li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--r); padding: 1rem 1.15rem;
}
.mvv li svg { width: 20px; height: 20px; color: var(--verde-600); flex: none; margin-top: 3px; }
.mvv li b { display: block; color: var(--ink-900); font-size: 0.95rem; margin-bottom: 0.15rem; }
.mvv li span { font-size: 0.9rem; color: var(--stone-500); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-figure { order: -1; aspect-ratio: 1 / 1; max-width: 460px; margin-inline: auto; } }

/* ---------- Cursos ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 940px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .course-grid { grid-template-columns: 1fr; } }
.course-card {
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--r);
  padding: 1.7rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow .2s var(--ease);
}
.course-card:hover { border-color: var(--terra-400); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.course-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%;
  border-radius: var(--r-sm); margin-bottom: 0.6rem; background: var(--stone-100);
}
.course-card .ic {
  width: 48px; height: 48px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  background: var(--verde-050); color: var(--verde-700); margin-bottom: 0.5rem;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.course-card .ic svg { width: 25px; height: 25px; }
.course-card h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; color: var(--ink-900); }
.course-card p { font-size: 0.92rem; color: var(--stone-500); flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.course-meta span {
  font-size: 0.72rem; font-weight: 600; color: var(--ink-700);
  background: var(--stone-100); border-radius: var(--r-pill); padding: 0.28rem 0.7rem;
}
.course-card .course-cta {
  margin-top: 0.7rem; font-weight: 700; font-size: 0.88rem; color: var(--terra-600);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.course-card .course-cta svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.course-card:hover .course-cta svg { transform: translateX(3px); }
.courses-note { margin-top: 2.5rem; text-align: center; font-size: 0.95rem; color: var(--stone-500); }

/* ---------- Projetos ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 940px) { .projects { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.project-card {
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--r);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem;
  transition: border-color 0.2s var(--ease), box-shadow .2s var(--ease);
}
.project-card:hover { border-color: var(--terra-400); box-shadow: var(--shadow-md); }
.project-logo {
  background: var(--cream); border: 1px solid var(--stone-200); border-radius: var(--r-sm);
  min-height: 128px; display: flex; align-items: center; justify-content: center; padding: 1.1rem 1.3rem;
}
.project-logo img { max-height: 96px; width: auto; max-width: 100%; }
.project-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink-900); }
.project-card p { font-size: 0.92rem; color: var(--stone-500); flex: 1; }
.project-card .course-cta {
  font-weight: 700; font-size: 0.88rem; color: var(--terra-600);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.project-card .course-cta svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.project-card:hover .course-cta svg { transform: translateX(3px); }

/* ---------- Como ajudar / doação ---------- */
.donate { background: var(--verde-700); color: #fff; position: relative; overflow: clip; }
.donate .section-head h2, .donate .section-head p { color: #fff; }
.donate .section-head p { color: rgba(255,255,255,0.82); }
.donate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.donate-copy h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.7rem; }
.donate-copy p { color: rgba(255,255,255,0.85); font-size: 1rem; }
.donate-uses { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.donate-uses li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.94rem; color: rgba(255,255,255,0.9); }
.donate-uses svg { width: 18px; height: 18px; color: var(--ocre-500); flex: none; margin-top: 3px; }

.pix-card {
  background: var(--white); color: var(--ink-800); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); text-align: center;
}
.pix-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink-900); }
.pix-card .pix-sub { font-size: 0.9rem; color: var(--stone-500); margin-top: 0.3rem; }
.pix-qr {
  width: 210px; height: 210px; margin: 1.3rem auto 1rem; padding: 12px; background: #fff;
  border: 1px solid var(--stone-200); border-radius: var(--r); display: flex; align-items: center; justify-content: center;
}
.pix-qr img, .pix-qr canvas, .pix-qr table { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.pix-qr table { border-collapse: collapse; }
.pix-qr td { padding: 0; }
.pix-key {
  display: flex; align-items: center; gap: 0.6rem; justify-content: space-between;
  background: var(--stone-100); border-radius: var(--r-sm); padding: 0.7rem 0.5rem 0.7rem 0.9rem;
  margin-top: 0.5rem;
}
.pix-key code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; color: var(--ink-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pix-key .label { font-size: 0.7rem; color: var(--stone-500); display: block; text-align: left; text-transform: uppercase; letter-spacing: 0.06em; }
.btn-copy {
  border: none; background: var(--verde-600); color: #fff; border-radius: var(--r-sm);
  padding: 0.55rem 0.9rem; font-size: 0.82rem; font-weight: 700; flex: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-copy svg { width: 15px; height: 15px; }
.btn-copy.copied { background: var(--verde-700); }
.pix-steps { margin-top: 1.2rem; text-align: left; display: flex; flex-direction: column; gap: 0.55rem; }
.pix-steps li { display: flex; gap: 0.6rem; font-size: 0.85rem; color: var(--stone-500); }
.pix-steps li b { color: var(--verde-700); flex: none; }
.pix-cnpj { margin-top: 1.1rem; font-size: 0.8rem; color: var(--stone-400); }
.donate-next {
  margin-top: 2.5rem; text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.72);
  border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.5rem;
}
@media (max-width: 860px) { .donate-grid { grid-template-columns: 1fr; } }

/* ---------- Contato ---------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.contact-side h2 { font-family: var(--font-display); font-size: var(--h2); font-weight: 600; color: var(--ink-900); line-height: var(--lh-tight); margin-top: 0.9rem; }
.contact-side p { margin-top: 1rem; color: var(--stone-500); }
.contact-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.94rem; color: var(--ink-700); }
.contact-list svg { width: 20px; height: 20px; color: var(--terra-500); flex: none; margin-top: 2px; }
.contact-list a:hover { color: var(--terra-600); }

.form-card { background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.3rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink-700); }
.field label .req { color: var(--terra-500); }
.field input, .field select, .field textarea {
  border: 1px solid var(--stone-200); border-radius: var(--r-sm); padding: 0.78rem 0.9rem;
  font: inherit; color: var(--ink-800); background: var(--white);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--verde-600); box-shadow: 0 0 0 3px var(--verde-050); outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field small.error { color: #c0392b; font-size: 0.76rem; min-height: 1em; }
.form-foot { margin-top: 1.3rem; }
.form-note { font-size: 0.76rem; color: var(--stone-400); margin-top: 0.8rem; text-align: center; }
.form-success {
  display: none; align-items: flex-start; gap: 0.8rem; background: var(--verde-050); color: var(--verde-700);
  border: 1px solid #bfe0d5; border-radius: var(--r-sm); padding: 1rem 1.1rem; margin-top: 1.2rem; font-size: 0.9rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: none; }
.form-error {
  display: none; background: #fdecec; color: #c0392b; border: 1px solid #f3c6c6;
  border-radius: var(--r-sm); padding: 0.85rem 1rem; margin-top: 1.2rem; font-size: 0.85rem;
}
.form-error.is-visible { display: block; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA faixa ---------- */
.cta-band { background: var(--terra-500); color: #fff; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-size: var(--h2); font-weight: 600; max-width: 720px; margin-inline: auto; }
.cta-band p { margin-top: 1rem; color: rgba(255,255,255,0.9); max-width: 560px; margin-inline: auto; }
.cta-band .btn-outline { background: #fff; border-color: #fff; margin-top: 1.8rem; color: var(--terra-700); }
.cta-band .btn-outline:hover { background: var(--cream); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--stone-400); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand__fallback { color: #fff; }
.footer-logo { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { font-size: 0.88rem; color: var(--stone-400); max-width: 34ch; margin-top: 1rem; }
.footer-brand .cnpj { font-size: 0.8rem; color: var(--stone-500); margin-top: 0.8rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease); }
.footer-social a:hover { background: var(--terra-500); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.88rem; transition: color .15s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.6rem; font-size: 0.8rem; color: var(--stone-500); flex-wrap: wrap; gap: 0.8rem; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: #128c53; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.whatsapp-float svg { width: 27px; height: 27px; }
.whatsapp-float:hover { background: #0f7a47; box-shadow: var(--shadow-lg); }
@media (max-width: 520px) { .whatsapp-float { right: 1rem; bottom: 1rem; width: 50px; height: 50px; } .whatsapp-float svg { width: 25px; height: 25px; } }

/* ---------- Página legal (privacidade / termos) ---------- */
.legal-page main { max-width: 760px; margin-inline: auto; padding: clamp(7rem, 12vw, 9rem) 1.5rem 5rem; }
.legal-page h1 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--ink-900); margin-bottom: 1rem; }
.legal-page h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink-900); margin-top: 2rem; margin-bottom: 0.6rem; }
.legal-page p, .legal-page li { color: var(--ink-600); font-size: 0.96rem; }
.legal-page ul { padding-left: 1.2rem; list-style: disc; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-page a.back { color: var(--terra-600); font-weight: 700; display: inline-block; margin-bottom: 1.5rem; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 95; max-width: 460px;
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem;
}
.cookie-banner p { font-size: 0.85rem; color: var(--stone-500); }
.cookie-banner p a { color: var(--terra-600); font-weight: 700; }
.cookie-actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.cookie-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
