/* ==========================================================================
   ASSAMA — Associação Amigos do Meio Ambiente
   Site institucional
   ========================================================================== */

:root {
  --green-dark: #1f5e2e;
  --green: #2f7a3f;
  --green-light: #5fa864;
  --green-pale: #eaf4ea;
  --brown: #7a4b25;
  --brown-light: #a9713f;
  --cream: #faf8f2;
  --ink: #1c2620;
  --ink-soft: #4a564c;
  --white: #ffffff;
  --border: #e1e8e0;
  --shadow: 0 10px 30px rgba(31, 94, 46, 0.12);
  --radius: 16px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--green-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brown-light);
  margin-bottom: 0.6rem;
}

.eyebrow.center { display: block; text-align: center; }
.center { text-align: center; }
.center-text { text-align: center; }
.lead { max-width: 720px; margin-left: auto; margin-right: auto; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(47, 122, 63, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--green-dark); }

.btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.main-nav a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.6rem 1.3rem !important;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--green-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,40,20,0.55) 0%, rgba(15,40,20,0.72) 55%, rgba(15,40,20,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  padding-bottom: 60px;
  max-width: 760px;
  color: var(--white);
}

.hero-logo {
  height: 84px;
  width: 84px;
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 8px;
  margin-bottom: 1.6rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.hero-sub {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--green-dark);
  padding: 2.6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--white);
}

.stat-label {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-top: 0.3rem;
  font-family: var(--font-head);
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--green-pale);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-media { order: -1; }

.rounded-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.check-list li {
  padding: 0.5rem 0 0.5rem 1.9rem;
  position: relative;
  color: var(--ink-soft);
  font-weight: 600;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
  background: var(--green-pale);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  top: 0.4rem;
}

/* ---------- Visão / Missão ---------- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.vm-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}

.vm-icon { font-size: 2rem; margin-bottom: 0.6rem; }

.values-block h2 { margin-bottom: 0.6rem; }

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 2rem;
}

.value-chip {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green-dark);
}

/* ---------- Áreas ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.area-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.area-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

/* ---------- Cobertura ---------- */
.province-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.province-pill {
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
}

/* ---------- Projects table ---------- */
.table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.92rem;
}

.projects-table th {
  background: var(--green-dark);
  color: var(--white);
  text-align: left;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.projects-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  vertical-align: top;
}

.projects-table tbody tr:nth-child(even) { background: var(--green-pale); }
.projects-table tbody tr:last-child td { border-bottom: none; }
.projects-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--green-dark); }
.projects-table td:nth-child(2) { font-weight: 600; color: var(--ink); }

/* ---------- Resultados ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 950px;
  margin: 2.5rem auto 0;
}

.result-item {
  background: var(--green-pale);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gallery-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-strip img:hover { transform: scale(1.04); }

/* ---------- ODS ---------- */
.ods-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.ods-badge {
  background: var(--white);
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ---------- Parceiros ---------- */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.partner-chip {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.8rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--brown);
  font-size: 0.92rem;
}

/* ---------- CTA / Contactos ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}

.cta-logo {
  height: 70px;
  width: 70px;
  object-fit: contain;
  background: var(--white);
  border-radius: 14px;
  padding: 8px;
  margin: 0 auto 1.4rem;
}

.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 2.2rem; }

.contact-cards {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  padding: 1.3rem 2rem;
  min-width: 240px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); }

.contact-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.contact-value {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #12231a;
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
}

.footer-brand img {
  height: 32px; width: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.footer-note { font-size: 0.88rem; max-width: 560px; margin: 0 auto 1.2rem; }
.footer-copy { font-size: 0.82rem; opacity: 0.7; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .vm-grid, .areas-grid, .results-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 24px 1.6rem;
    gap: 1rem;
    display: none;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .nav-cta { align-self: flex-start; }
  .hero { min-height: 100vh; }
  .rounded-img { aspect-ratio: 4/3; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip img { height: 180px; }
}
