/* CLIMAAGRO – Base & variables */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
}

:root {
  --color-primary: #2d5a3d;
  --color-primary-dark: #1e3d2a;
  --color-accent: #4a7c59;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-background: #fafafa;
  --color-surface: #fff;
  --color-border: #e0e0e0;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --spacing-unit: 1rem;
  --max-width: 960px;
  --header-height: 4rem;
  --radius: 6px;
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-unit) 0;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-unit);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.logo:hover { color: var(--color-primary-dark); }

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
}

/* Banner */
.site-banner {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-primary) url("https://picsum.photos/seed/climaagro-banner/1200/400") center/cover no-repeat;
}

.site-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 61, 42, 0.75);
}

.site-banner-inner {
  position: relative;
  z-index: 1;
  padding: var(--spacing-unit);
}

.site-banner p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.site-banner a {
  color: #fff;
  text-decoration: none;
}

.site-banner a:hover { text-decoration: underline; }

/* Content images */
.content-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin: 1rem 0;
  border: 1px solid var(--color-border);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1.25rem -1.25rem 1rem -1.25rem;
}

.card.has-img { padding-top: 0; }

.leader-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--color-primary);
}

.section-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

main {
  padding: calc(var(--spacing-unit) * 2) 0;
  min-height: 50vh;
}

main .container {
  padding-left: var(--spacing-unit);
  padding-right: var(--spacing-unit);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  margin-top: 0;
  line-height: 1.25;
}

h1 { font-size: 2rem; color: var(--color-primary-dark); }
h2 { font-size: 1.5rem; margin-bottom: 0.75em; color: var(--color-primary); }
h3 { font-size: 1.2rem; margin-bottom: 0.5em; }

p { margin-top: 0; margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

li { margin-bottom: 0.35em; }

/* Hero */
.hero {
  text-align: center;
  padding: calc(var(--spacing-unit) * 3) 0;
  background: linear-gradient(180deg, rgba(45, 90, 61, 0.08) 0%, transparent 100%);
}

.hero h1 { margin-bottom: 0.5em; }
.hero .tagline {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1.5em;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-unit);
  margin: 2rem 0;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 { margin-top: 0; }

/* Buttons / CTAs */
.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--color-primary-dark); }

/* Sections */
.section { margin-bottom: 2.5rem; }
.section:last-child { margin-bottom: 0; }

/* Leadership cards */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.leadership-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.leadership-card h3 { margin-bottom: 0.25em; }
.leadership-card .role { color: var(--color-primary); font-weight: 600; margin-bottom: 0.75em; }

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #eee;
  padding: calc(var(--spacing-unit) * 2) 0;
  margin-top: 3rem;
}

.site-footer a { color: #c8e6c9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.footer-grid h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.5em;
  color: #fff;
}

.footer-grid p, .footer-grid address { margin: 0; font-style: normal; opacity: 0.95; }

.copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Contact page */
.contact-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.contact-block h3 { margin-top: 0; }
.contact-block a { color: var(--color-primary); }

/* Responsive */
@media (max-width: 640px) {
  .main-nav ul { flex-direction: column; }
  .hero { padding: 2rem 0; }
  h1 { font-size: 1.6rem; }
  .site-banner { min-height: 140px; }
  .site-banner p { font-size: 1rem; }
}
