/* ══════════════════════════════════════════════════════════
   29º Leilão APAE Batatais — Design System Compartilhado
   Usado por todas as páginas do hotsite
══════════════════════════════════════════════════════════ */

:root {
  --brand:        #00571A;   /* verde principal (igual ao flyer) */
  --brand-dark:   #003D12;
  --accent:       #1A6E2E;   /* verde secundário (botões/cards) */
  --accent-mid:   #228B38;
  --accent-light: #E8F5EB;
  --gold:         #F5C800;
  --gold-dark:    #C8860A;
  --gold-soft:    #FFF3B0;
  --red:          #D62828;
  --white:        #FFFFFF;
  --ink:          #0E2A14;
  --ink-mid:      #3D5940;
  --ink-soft:     #4F6B53;   /* contraste AA verificado (5.6:1) */
  --surface:      #F4FAF5;
  --border:       #D0E8D4;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card:  0 2px 8px rgba(0,87,26,.10), 0 8px 28px rgba(0,87,26,.09);
  --shadow-float: 0 8px 28px rgba(0,0,0,.25);

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ══════════════════════════════════════════════════════
   HEADER / NAVEGAÇÃO — presente em todas as páginas
══════════════════════════════════════════════════════ */
.site-header {
  background: var(--brand);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.site-logo img { height: 42px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: .5rem .9rem;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.site-nav a:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
}
.site-nav a.active {
  background: var(--gold);
  color: var(--ink);
}
.site-nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  color: var(--white);
  padding: .4rem;
  border-radius: var(--radius-sm);
}
.nav-toggle:focus-visible { outline: 2px solid var(--gold); }

@media (max-width: 880px) {
  .site-nav {
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: var(--brand-dark);
    flex-direction: column;
    align-items: stretch;
    padding: .6rem;
    gap: .2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
  }
  .site-nav.open { max-height: 420px; }
  .site-nav a { padding: .75rem 1rem; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }
}

/* ══════════════════════════════════════════════════════
   FOOTER — presente em todas as páginas
══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.6);
  padding: 2.4rem 1.5rem 2rem;
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-brand .gold { color: var(--gold); }
.footer-col { font-size: .82rem; line-height: 1.8; min-width: 200px; }
.footer-col h4 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: .6rem;
  font-weight: 700;
}
.footer-col a { display: block; color: rgba(255,255,255,.6); transition: color .18s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .74rem;
  text-align: center;
  color: rgba(255,255,255,.45);
}

/* ══════════════════════════════════════════════════════
   BOTÃO FLUTUANTE WHATSAPP
══════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 900;
  background: #25D366;
  color: var(--white);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ══════════════════════════════════════════════════════
   HERO DE PÁGINA (título + subtítulo, páginas internas)
══════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 3rem 1.5rem 3.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.page-hero-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  position: relative; z-index: 1;
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
  position: relative; z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  position: relative; z-index: 1;
}
.page-hero p {
  max-width: 560px;
  margin: .9rem auto 0;
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════════════════════
   CONTEÚDO GERAL DE PÁGINA
══════════════════════════════════════════════════════ */
.page-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand);
  margin-bottom: .6rem;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 2.2rem;
  font-size: .95rem;
  line-height: 1.6;
}

/* ── Grid de categorias/itens (ícone + título + texto) ── */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.item-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}
.item-card-icon {
  width: 56px; height: 56px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.item-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .45rem;
}
.item-card p {
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── Passos numerados ────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
}
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
}
.step-body h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .3rem;
}
.step-body p {
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── Card de destaque (preço/condição) ──────────────── */
.highlight-card {
  background: linear-gradient(155deg, var(--brand) 0%, var(--accent) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.highlight-label {
  position: relative; z-index: 1;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.75);
  margin-bottom: .5rem;
  font-weight: 700;
}
.highlight-value {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .3rem;
}
.highlight-desc {
  position: relative; z-index: 1;
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
}

/* ── Lista com check ─────────────────────────────────── */
.check-list {
  max-width: 480px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  font-size: .9rem;
  color: var(--ink-mid);
}
.check-item svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* ── CTA (chamada para ação) ─────────────────────────── */
.cta-section {
  text-align: center;
  padding: 2.4rem 1.5rem;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  margin: 0 auto;
  max-width: 640px;
}
.cta-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: .5rem;
}
.cta-section p {
  font-size: .88rem;
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  padding: .85rem 1.8rem;
  border-radius: 99px;
  transition: transform .18s, box-shadow .18s, background .18s;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.btn-primary:hover { background: #FFD700; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.btn-primary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-outline:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ══════════════════════════════════════════════════════
   GRID DE NAVEGAÇÃO (página inicial → páginas internas)
══════════════════════════════════════════════════════ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hub-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,87,26,.16);
  border-color: var(--accent);
}
.hub-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.hub-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
}
.hub-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.hub-card p {
  font-size: .84rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.hub-card .hub-link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
}
.hub-card:hover .hub-link { color: var(--brand); }

.hub-icon.c-lotes    { background: #1A6E2E; }
.hub-icon.c-doador   { background: #C8860A; }
.hub-icon.c-arrem    { background: #0A5FA8; }
.hub-icon.c-carro    { background: #1E88C7; }
.hub-icon.c-adesao   { background: #D62828; }
.hub-icon.c-patrocinador { background: #0A5FA8; }

/* ══════════════════════════════════════════════════════
   RESPONSIVO GERAL
══════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .page-hero { padding: 2.2rem 1.2rem 2.8rem; }
  .page-content { padding: 2.2rem 1.2rem 3rem; }
  .highlight-value { font-size: 2.1rem; }
  .site-footer-inner { flex-direction: column; gap: 1.5rem; }
}
