/* =====================================================================
   Associação Geral Alphaville Brasília — Estilo principal
   Direção: institucional-natural refinada. Verde-floresta + verde-marca.
   ===================================================================== */

:root {
  /* Marca */
  --brand:        #8abf40;   /* verde-marca (lima) */
  --brand-dark:   #6ea02f;
  --brand-glow:   #b6e05a;
  --forest:       #16351f;   /* verde-floresta profundo (âncora) */
  --forest-2:     #1e4a2c;
  --pine:         #2f7d43;

  /* Neutros quentes */
  --paper:        #f7f6f0;   /* fundo papel */
  --paper-2:      #efeee6;
  --card:         #ffffff;
  --ink:          #17251b;   /* texto principal */
  --muted:        #5d6b60;   /* texto secundário */
  --line:         #e3e2d8;   /* linhas/bordas */

  --radius:       18px;
  --radius-sm:    12px;
  --shadow:       0 18px 40px -22px rgba(22, 53, 31, .45);
  --shadow-lg:    0 40px 80px -40px rgba(22, 53, 31, .55);
  --container:    1180px;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Instrument Sans", -apple-system, "Segoe UI", Roboto, sans-serif;

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--forest);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-dark);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-glow));
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .85em 1.6em; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--pine));
  color: #fff; box-shadow: 0 12px 24px -12px rgba(47,125,67,.8);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 18px 30px -12px rgba(47,125,67,.9); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--forest); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { transform: translateY(-2px); color: var(--forest); box-shadow: var(--shadow); }

/* =====================================================================
   Cabeçalho
   ===================================================================== */
.topbar {
  background: var(--forest);
  color: #d7e6d0; font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #d7e6d0; }
.topbar a:hover { color: var(--brand-glow); }
.topbar .tb-group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .45em; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,246,240,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(22,53,31,.4); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.brand-logo { flex-shrink: 0; line-height: 0; }
.brand-logo img { height: 54px; width: auto; max-width: none; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-family: var(--sans); font-weight: 500; font-size: .9rem; color: var(--forest);
  padding: .5em .72em; border-radius: 100px; position: relative; white-space: nowrap;
  transition: color .2s, background .2s;
}
.main-nav a:hover { background: rgba(138,191,64,.12); color: var(--brand-dark); }
.main-nav a.active { color: var(--brand-dark); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: .18em; transform: translateX(-50%);
  width: 18px; height: 2.5px; border-radius: 2px; background: var(--brand);
}
.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--forest); }
.nav-toggle svg { width: 30px; height: 30px; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,30,16,.30) 0%, rgba(11,30,16,.55) 55%, rgba(11,30,16,.85) 100%),
    linear-gradient(90deg, rgba(11,30,16,.70) 0%, rgba(11,30,16,.15) 70%);
}
.hero .container { position: relative; z-index: 2; padding-block: 120px; }
.hero-inner { max-width: 720px; }
.hero .eyebrow { color: var(--brand-glow); }
.hero h1 { color: #fff; margin-bottom: .35em; text-wrap: balance; }
.hero p { font-size: 1.2rem; color: #e7f0e2; max-width: 560px; margin-bottom: 2em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 2; margin-top: 60px;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); overflow: hidden; max-width: 640px;
  backdrop-filter: blur(6px);
}
.hero-stats .stat { background: rgba(11,30,16,.35); padding: 22px 24px; }
.hero-stats .num { font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1; }
.hero-stats .lbl { font-size: .82rem; color: #cfe0c8; margin-top: 6px; }

/* Onda decorativa */
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 2; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }
.hero-wave path { fill: var(--paper); }

/* =====================================================================
   Seções genéricas
   ===================================================================== */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section.alt { background: var(--paper-2); }
.section.forest { background: var(--forest); color: #e7f0e2; }
.section.forest h1, .section.forest h2, .section.forest h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section.forest .section-head p { color: #bcd3b4; }

.lead { font-size: 1.25rem; color: var(--muted); }

/* Split intro (imagem + texto) */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split-media .badge {
  position: absolute; left: -22px; bottom: 26px;
  background: #fff; color: var(--forest); border-radius: var(--radius-sm);
  padding: 16px 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center;
}
.split-media .badge .big { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--pine); }
.split-media .badge .small { font-size: .82rem; color: var(--muted); }

/* =====================================================================
   Cards de serviços / pilares
   ===================================================================== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--pine)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(138,191,64,.18), rgba(47,125,67,.12));
  color: var(--pine); margin-bottom: 20px;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h3 { margin-bottom: .4em; }
.pillar p { color: var(--muted); font-size: .98rem; margin: 0; }

/* =====================================================================
   Cards de informativos (posts)
   ===================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-dark); background: rgba(138,191,64,.14); padding: .35em .8em; border-radius: 100px; margin-bottom: 14px;
}
.post-card h3 { font-size: 1.28rem; margin-bottom: .35em; }
.post-card h3 a { color: var(--forest); }
.post-card h3 a:hover { color: var(--brand-dark); }
.post-card .excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card .meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; margin-top: 18px; }
.post-card .readmore { margin-top: 16px; font-weight: 600; color: var(--pine); display: inline-flex; align-items: center; gap: .4em; }
.post-card .readmore svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.post-card:hover .readmore svg { transform: translateX(4px); }

/* =====================================================================
   Página interna: cabeçalho
   ===================================================================== */
.page-hero {
  position: relative; color: #fff; padding-block: clamp(90px, 14vw, 150px);
  display: flex; align-items: flex-end; overflow: hidden;
}
.page-hero .hero-bg::after {
  background: linear-gradient(180deg, rgba(11,30,16,.45), rgba(11,30,16,.82));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #dce8d5; font-size: 1.15rem; max-width: 620px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: #b9cfb0; margin-bottom: 18px; }
.breadcrumb a { color: #d7e6d0; }
.breadcrumb a:hover { color: var(--brand-glow); }

/* Conteúdo rich text */
.prose { max-width: 820px; overflow-wrap: break-word; word-break: break-word; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--pine); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: #33443a; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--brand); }
.prose ol li::marker { color: var(--pine); font-weight: 700; }
.prose strong { color: var(--forest); }
.prose blockquote {
  border-left: 4px solid var(--brand); padding: .3em 0 .3em 1.3em; margin: 1.5em 0;
  color: var(--muted); font-style: italic; font-size: 1.15rem;
}

/* =====================================================================
   FAQ (acordeão)
   ===================================================================== */
.faq-list { max-width: 860px; margin-inline: auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--forest);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(138,191,64,.14); color: var(--pine); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.faq-item[open] .chev { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-item .chev svg { width: 18px; height: 18px; }
.faq-answer { padding: 0 26px 24px; color: #3a4a40; }
.faq-answer p { margin: 0 0 .8em; }

/* =====================================================================
   Documentos
   ===================================================================== */
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.doc-card {
  display: flex; gap: 20px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.doc-ico {
  flex-shrink: 0; width: 54px; height: 60px; border-radius: 10px; position: relative;
  background: linear-gradient(160deg, #fff, #eef3e6); border: 1.5px solid var(--line);
  display: grid; place-items: center; color: #c0392b; font-weight: 700; font-size: .68rem;
}
.doc-ico svg { width: 26px; height: 26px; }
.doc-card .info h3 { font-size: 1.12rem; margin-bottom: .2em; }
.doc-card .info p { font-size: .9rem; color: var(--muted); margin: 0 0 .5em; }
.doc-card .info .dl { font-weight: 600; color: var(--pine); font-size: .9rem; display: inline-flex; align-items: center; gap: .4em; }

/* =====================================================================
   Contato
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-single .contact-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) { .contact-single .contact-cards { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; }
.contact-card .ci { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, rgba(138,191,64,.18), rgba(47,125,67,.12)); color: var(--pine); display: grid; place-items: center; }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .15em; }
.contact-card p, .contact-card a { font-size: .95rem; color: var(--muted); margin: 0; }
.contact-card a:hover { color: var(--brand-dark); }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--forest); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(138,191,64,.18); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 20px; }
.alert-success { background: rgba(138,191,64,.15); color: #35651c; border: 1px solid rgba(138,191,64,.4); }
.alert-error { background: #fdecea; color: #9b2c22; border: 1px solid #f5c6c0; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); line-height: 0; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; }

/* =====================================================================
   CTA faixa
   ===================================================================== */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: #fff; border-radius: var(--radius); padding: clamp(40px, 6vw, 64px); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(138,191,64,.35), transparent 70%); }
.cta-band .inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: #cfe0c8; margin: 0; }

/* =====================================================================
   Rodapé
   ===================================================================== */
.site-footer { background: var(--forest); color: #b9cfb0; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.site-footer .flogo { height: 52px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.site-footer p { font-size: .92rem; line-height: 1.7; }
.site-footer h4 { font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: #b9cfb0; font-size: .95rem; }
.footer-links a:hover { color: var(--brand-glow); padding-left: 4px; }
.foot-contact { display: grid; gap: 12px; }
.foot-contact .fc { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.foot-contact svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8faa86; }
.footer-bottom a { color: var(--brand-glow); }

/* =====================================================================
   WhatsApp flutuante
   ===================================================================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* =====================================================================
   Reveal on scroll
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   Responsivo
   ===================================================================== */
@media (max-width: 980px) {
  .grid-3, .grid-4, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .main-nav {
    position: fixed; inset: 82px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px 24px;
    transform: translateY(-140%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .9em 1em; border-radius: var(--radius-sm); }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-header { display: none; }
  .grid-3, .grid-4, .post-grid, .grid-2, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; max-width: 100%; }
  .hero .container { padding-block: 90px; }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
  .split-media .badge { left: 16px; }
}

/* Acessibilidade: respeitar preferências de movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
