/* =========================================================
   CONECTA VERA CRUZ | ESTILO GLOBAL
   Cabeçalho, rodapé, botões, espaçamentos e regras gerais.
   Cada página possui também o seu próprio arquivo CSS.
   ========================================================= */

:root {
  --green: #007a4d;
  --green-dark: #005f3c;
  --green-soft: #e9f7f0;
  --blue: #0877bd;
  --blue-dark: #00375c;
  --blue-soft: #eaf6fc;
  --sand: #fbf8f1;
  --cream: #fffdf7;
  --white: #ffffff;
  --ink: #21312b;
  --muted: #64736d;
  --line: #d7e5dc;
  --shadow: 0 18px 50px rgba(17, 70, 49, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; background: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215,229,220,.9);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.header-inner { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: max-content; }
.brand img { width: 154px; height: auto; max-height: 64px; object-fit: contain; }
.brand > span { display: none; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 8px; }
.nav-link { position: relative; padding: 12px 11px; border-radius: 999px; text-decoration: none; color: #35433e; font-size: .91rem; }
.nav-link:hover, .nav-link.is-active { color: var(--green); background: var(--green-soft); }
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-cta, .button-primary { color: white; background: var(--green); box-shadow: 0 10px 24px rgba(0,122,77,.18); }
.header-cta:hover, .button-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.button-secondary { background: white; color: var(--green); border: 1px solid var(--line); }
.button-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--green-dark); margin: 5px 0; }

/* Elementos comuns */
.section { padding: 88px 0; }
.section-soft { background: var(--sand); }
.section-green { color: white; background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading h2 {
  margin: 8px 0 12px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 1.08;
  text-wrap: balance;
}
.section-heading p { color: var(--muted); margin: 0; }
.section-green .section-heading h2 { color: white; }
.section-green .section-heading p { color: rgba(255,255,255,.82); }
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 99px; background: #11b9ba; }
.breadcrumbs { color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--green); }

/* Rodapé */
.site-footer { background: #082b20; color: white; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 48px; }
.brand-footer img { width: 210px; max-height: none; border-radius: 10px; }
.footer-grid h2 { font-family: Georgia, serif; font-size: 1.2rem; margin-top: 0; }
.footer-grid p { color: rgba(255,255,255,.72); }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid a:not(.brand) { color: rgba(255,255,255,.86); text-decoration: none; }
.footer-grid a:hover { color: white; text-decoration: underline; }
.footer-button { word-break: break-word; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  margin-top: 35px;
  border-top: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.65);
  font-size: .88rem;
}

@media (max-width: 1080px) {
  .header-inner { gap: 14px; }
  .brand img { width: 132px; }
  .nav-link { padding-inline: 8px; font-size: .84rem; }
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto 1fr; }
  .brand img { width: 145px; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 14px; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand img { width: 126px; max-height: 55px; }
  .main-nav { top: 68px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .brand-footer img { width: 190px; max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
