/* Abundelo — shared styles
   Colors sampled directly from the current live site export */

:root {
  --bg: #16201c;
  --bg-darker: #0f1613;
  --green: #0a855d;
  --green-deep: #075c40;
  --olive: #58714c;
  --olive-light: #6d8a5e;
  --text: #f2f0e6;
  --text-muted: #c9d1c2;
  --border: rgba(242, 240, 230, 0.18);
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 22, 19, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--text);
}

.brand img { width: 36px; height: 36px; border-radius: 8px; }

nav.main-nav { display: flex; gap: 28px; }

nav.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--text); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.main-nav {
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--bg-darker);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    font-size: 22px;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
  }
  nav.main-nav.open { transform: translateY(0); }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    font-size: 26px;
    cursor: pointer;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  height: clamp(420px, 60vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,22,19,0.55) 0%, rgba(15,22,19,0.78) 55%, rgba(15,22,19,0.95) 100%);
}

.hero-content { position: relative; z-index: 2; padding: 60px 24px; }

.hero .brandmark {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 12px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 74px);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.hero .tagline {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 20px;
  border-top: 1px solid var(--border);
  display: inline-block;
  padding-top: 14px;
  margin-top: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}

/* ---------- Stat badges ---------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: -30px auto 60px;
  position: relative;
  z-index: 3;
  padding: 0 24px;
}

.stat-pill {
  background: var(--green);
  border: 1px solid rgba(242,240,230,0.35);
  border-radius: 999px;
  padding: 14px 30px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Sections ---------- */

section { padding: 70px 0; }
section.tight { padding: 40px 0; }

.eyebrow-box {
  display: inline-block;
  background: var(--olive);
  padding: 10px 26px;
  border-radius: 4px;
  margin-bottom: 26px;
}
.eyebrow-box h2 { margin: 0; font-size: 26px; }

.section-title { text-align: center; margin-bottom: 34px; }

.panel {
  background: var(--olive);
  border-radius: 6px;
  padding: 28px 32px;
  color: var(--text);
}

.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.two-col > .panel,
.two-col > .figure {
  flex: 1 1 420px;
  min-width: 0;
}

.two-col.reverse .panel { order: 2; }
.two-col.reverse .figure { order: 1; }

@media (max-width: 800px) {
  .two-col.reverse .panel,
  .two-col.reverse .figure { order: unset; }
}

.figure img { border-radius: 6px; width: 100%; height: auto; object-fit: cover; }

.centered { text-align: center; }

.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 28px;
  border: 1px solid var(--text-muted);
  border-radius: 999px;
  text-decoration: none;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--text); color: var(--bg-darker); }

/* ---------- Banner (forest canopy top) ---------- */

.page-banner {
  position: relative;
  height: clamp(230px, 34vh, 340px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,22,19,0.15), rgba(15,22,19,0.55));
}
.page-banner .banner-content { position: relative; z-index: 2; max-width: 640px; padding: 0 20px; }
.page-banner .eyebrow-box { background: rgba(88,113,76,0.9); }
.page-banner p { margin: 0; color: var(--text); font-size: 18px; }

/* ---------- Logo mark block ---------- */

.logo-block { text-align: center; margin: 50px 0; }
.logo-block img { width: 220px; margin: 0 auto; border-radius: 8px; }

/* ---------- Team grid ---------- */

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.team-grid .team-card { flex: 1 1 280px; max-width: calc(33.333% - 15px); }
@media (max-width: 720px) { .team-grid .team-card { max-width: calc(50% - 11px); } }
@media (max-width: 460px) { .team-grid .team-card { max-width: 100%; } }

.team-card { background: var(--bg-darker); border-radius: 6px; overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.team-card .caption {
  background: var(--olive);
  padding: 14px 12px;
  text-align: center;
}
.team-card .role { font-weight: 600; font-size: 16px; }
.team-card .name { font-style: italic; color: var(--text-muted); font-size: 15px; margin-top: 2px; }

/* ---------- Partners ---------- */

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: var(--olive);
  border-radius: 6px;
  padding: 28px;
  flex-wrap: wrap;
}
.partner-logos img { height: 54px; width: auto; background: #fff; border-radius: 6px; padding: 8px 14px; }
.partner-logos img.dark-ok { background: transparent; padding: 0; }

.partner-detail {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--olive);
  border-radius: 6px;
  padding: 26px;
  margin-top: 20px;
}
.partner-detail img { flex: 0 0 140px; width: 140px; background: #fff; border-radius: 6px; padding: 10px; }
.partner-detail p { flex: 1 1 320px; margin: 0; }
.partner-detail.reverse { flex-direction: row-reverse; }

@media (max-width: 640px) {
  .partner-detail, .partner-detail.reverse { flex-direction: column; }
  .partner-detail img { width: 120px; }
}

/* ---------- Course page ---------- */

.course-shot { position: relative; max-width: 760px; margin: 80px auto 0; }
.course-shot img { border-radius: 10px; border: 1px solid var(--border); }
.course-hint {
  position: absolute;
  top: -46px;
  left: 0;
  font-style: italic;
  color: var(--olive-light);
  font-size: 15px;
  max-width: 200px;
  line-height: 1.3;
}

/* ---------- Map figure ---------- */

.map-wrap { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--olive);
  padding: 32px 0;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 16px;
}
.footer-grid a { text-decoration: underline; }
.footer-grid h4 { margin: 0 0 10px; font-family: 'EB Garamond', Georgia, serif; font-style: normal; font-weight: 600; }
.footer-col p { margin: 4px 0; }
.footer-col.right { text-align: right; }
@media (max-width: 560px) { .footer-col.right { text-align: left; } }
