/* ============ Tokens ============ */
:root {
  --verde: #2EB228;
  --verde-escuro: #23901f;
  --dourado: #FED406;
  --azul: #1C86D6;
  --texto: #1B231C;
  --texto-suave: #4B564C;
  --branco: #FFFFFF;
  --bg-alt: #F5F9F4;
  --borda: #E3E9E2;
  --sombra: 0 10px 30px rgba(20, 40, 20, 0.08);
  --raio: 14px;
  --font-titulo: 'Poppins', system-ui, sans-serif;
  --font-corpo: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-corpo);
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-titulo);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--verde-escuro); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 720px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--verde);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-titulo);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--verde);
  color: #fff;
}
.btn-primary:hover {
  background: var(--verde-escuro);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(46, 178, 40, 0.3);
}
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; text-align: center; }
.btn-outline {
  background: transparent;
  color: var(--texto);
  border: 2px solid var(--borda);
}
.btn-outline:hover { border-color: var(--verde); color: var(--verde-escuro); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--borda);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--texto);
  margin-right: auto;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--texto);
}
.main-nav {
  display: none;
  gap: 26px;
}
.main-nav a {
  color: var(--texto);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--verde-escuro); }

.btn-nav { display: none; }

.nav-toggle {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--texto);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s 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); }

.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px 20px 22px;
  border-bottom: 1px solid var(--borda);
  gap: 16px;
}

.main-nav a.btn-nav-mobile {
  color: #fff;
  margin-top: 8px;
  text-align: center;
}
.main-nav a.btn-nav-mobile:hover { color: #fff; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .main-nav.open { position: static; padding: 0; border: none; flex-direction: row; }
  .btn-nav { display: inline-block; }
  .btn-nav-mobile { display: none; }
  .nav-toggle { display: none; }
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #ffffff 100%);
  padding: 56px 0 60px;
  text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto 20px;
}
.hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--texto);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--verde-escuro);
  font-weight: 600;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 2.7rem; }
}

/* ============ Sections ============ */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.7rem;
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--texto-suave);
  max-width: 560px;
  margin: 0 auto 36px;
}
.section-footnote {
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.9rem;
  margin-top: 32px;
}

.problema { text-align: center; }
.problema h2 { font-size: 1.6rem; }
.problema p { color: var(--texto-suave); }

/* ============ Cards ============ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 26px 22px;
  box-shadow: var(--sombra);
}
.card-icon {
  width: 48px;
  height: 48px;
  color: var(--verde);
  margin-bottom: 14px;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--texto-suave); font-size: 0.95rem; margin-bottom: 10px; }

.card details { font-size: 0.88rem; }
.card summary {
  cursor: pointer;
  color: var(--verde-escuro);
  font-weight: 600;
  margin-bottom: 8px;
  list-style: none;
}
.card summary::-webkit-details-marker { display: none; }
.card summary::after {
  content: "+";
  margin-left: 6px;
}
.card details[open] summary::after { content: "-"; }
.card details ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--texto-suave);
}
.card details li { margin-bottom: 4px; }

/* ============ Steps ============ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(6, 1fr); }
}
.step { text-align: center; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-family: var(--font-titulo);
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--texto-suave); font-size: 0.88rem; margin: 0; }

/* ============ Map ============ */
.map-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .map-wrap { flex-direction: row; justify-content: center; }
}
.pt-map { width: 220px; height: auto; flex-shrink: 0; }
.pt-outline { fill: #fff; stroke: var(--borda); stroke-width: 1.5; stroke-linejoin: round; }
.zone ellipse { opacity: 0.28; }
.zone .pin { stroke: #fff; stroke-width: 2; }
.zone-santarem ellipse, .zone-santarem .pin { fill: var(--dourado); }
.zone-lisboa ellipse, .zone-lisboa .pin { fill: var(--azul); }
.zone-setubal ellipse, .zone-setubal .pin { fill: var(--verde); }

.zone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}
.zone-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-1 { background: var(--dourado); }
.dot-2 { background: var(--azul); }
.dot-3 { background: var(--verde); }

/* ============ Trust grid ============ */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.trust-item { text-align: center; }
.trust-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  color: var(--verde-escuro);
}
.trust-icon svg { width: 100%; height: 100%; }
.trust-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.trust-item p { color: var(--texto-suave); font-size: 0.92rem; margin: 0; }

/* ============ Gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { gap: 18px; }
}
.gallery-item {
  display: block;
  border-radius: var(--raio);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--sombra);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ============ Contact form ============ */
.contact-form {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 30px 24px;
  box-shadow: var(--sombra);
}
.hidden-field { display: none !important; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  font-family: var(--font-corpo);
  font-size: 0.98rem;
  background: #fff;
  color: var(--texto);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(46, 178, 40, 0.15);
}
.form-status {
  min-height: 1.2em;
  margin: 14px 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-status.ok { color: var(--verde-escuro); }
.form-status.err { color: #C0392B; }

.contact-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.contact-info a {
  text-decoration: none;
  font-weight: 600;
  color: var(--texto);
}
.contact-info a:hover { color: var(--verde-escuro); }

/* ============ Footer ============ */
.site-footer {
  background: #14201a;
  color: #cfe0d0;
  padding: 44px 0 26px;
  text-align: center;
}
.footer-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin: 0 auto 14px;
}
.footer-tagline {
  font-family: var(--font-titulo);
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.footer-links a, .link-btn {
  color: #cfe0d0;
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.footer-links a:hover, .link-btn:hover { color: var(--dourado); }
.footer-legal, .footer-copy {
  font-size: 0.8rem;
  color: #8ea391;
  margin: 4px 0;
}

/* ============ Modal ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}
.modal.open { display: block; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 10, 0.55);
}
.modal-panel {
  position: relative;
  background: #fff;
  max-width: 640px;
  margin: 6vh auto;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--raio);
  padding: 34px 28px;
}
.modal-panel h2 { font-size: 1.4rem; }
.modal-panel h3 { font-size: 1rem; margin-top: 22px; }
.modal-panel p { color: var(--texto-suave); font-size: 0.95rem; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--texto-suave);
}

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  background: #fff;
  border-top: 1px solid var(--borda);
  box-shadow: 0 -10px 30px rgba(20, 40, 20, 0.12);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.cookie-banner-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--texto-suave);
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-actions .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}
@media (min-width: 720px) {
  .cookie-banner-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
