/* === Base layout & typography === */
:root {
  --ink: #0b1220;
  --muted: #5b6b79;
  --border: #e5e7eb;
  --panel: #ffffffd9;
  --bg: #f7f4ee;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* === Top nav === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.nav .brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}

.nav .logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #2563eb;
}

.nav .links a {
  margin-left: 18px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.nav .links a:hover {
  opacity: 1;
}

/* === HERO (forest background, crisp & readable) === */
.hero {
  position: relative;
  min-height: clamp(60vh, 70vh, 85vh);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  /* background image + overlay */
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* stronger at top, softer mid so text stays readable */
    linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.35) 40%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.35)),
    url("assets/forest-hero.jpg") center/cover no-repeat;
  filter: saturate(1.15) brightness(1.03);
  z-index: 0;

  /* tasteful parallax (respects reduced motion) */
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { background-attachment: scroll; }
}

/* bottom fade so next section doesn’t clash */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.15), rgba(0,0,0,.25));
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  padding: clamp(1.5rem, 2.5vw + 1rem, 3rem) clamp(1rem, 2vw, 1.25rem);
}

/* Hero heading & text */
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw + 1rem, 4rem);
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
  color: #EAF2FF;
}

.hero p.lead {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.2vw + 0.9rem, 1.35rem);
  opacity: 0.98;
  color: #E7F7F1;
}

.hero p.sublead {
  margin: 0;
  font-size: 0.98rem;
  color: #DAE6FF;
}

/* call-to-action button: confident but clean */
.button-primary,
.hero .button-primary {
  display: inline-block;
  font-weight: 700;
  padding: 0.9rem 1.4rem;
  border-radius: 0.75rem;
  background: #2563eb;         /* modern blue */
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,99,235,.25);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  border: 1px solid #1d4ed8;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,99,235,.35);
  filter: brightness(1.05);
}

/* mobile crop slight upward bias so the path stays visible */
@media (max-width: 640px) {
  .hero::before { background-position: 50% 35%; }
}

/* === Global headings & text === */
h1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3rem);
  line-height: 1.1;
  margin: 0;
  color: #0b1220;
}

.lead {
  font-size: 1.25rem;
  max-width: 900px;
  margin: 14px auto 10px;
  color: #374151;
  text-align: center;
}

.sublead {
  font-size: 1rem;
  max-width: 900px;
  margin: 0 auto 28px;
  color: #4b5563;
  text-align: center;
}

/* === Buttons & cards === */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37,99,235,.25);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37,99,235,.35);
  filter: brightness(1.03);
}

.center { display: flex; justify-content: center; }

.section { padding: 28px 0; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

/* === Layout grids === */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .nav .links { display: none; }
}

/* === Forms === */
form input,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
}

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  form .row {
    grid-template-columns: 1fr;
  }
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  color: #6b7280;
  padding: 24px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* === About section === */
.about {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: flex-start;
}

.about img {
  width: 160px;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
}

@media (max-width: 700px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* === Guides === */
.guide h3 { margin: 0 0 6px 0; }
.guide p { margin: 0; }

/* === Badges for credentials === */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.badges span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e293b;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* === Helper text === */
.notice {
  color: #6b7280;
  font-size: 0.9rem;
}
