/* RESET & BASE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4efdd; /* light beige */
  color: #102820; /* dark green text */
  font-size: 16px; /* base size */
  text-align: justify; /* justify all text blocks by default */
}

/* LINKS */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* SIMPLE NAVBAR */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0d332b; /* dark green bar */
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4efdd;
}

/* NAV RIGHT (links + language) */
.nav-right {
  display: flex;
  align-items: center; /* keeps links, button, and lang toggle aligned */
  gap: 24px;
}

/* NAV LINKS + LANGUAGE TOGGLE */
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a {
  color: #f4efdd;
  padding: 4px 0;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* "Sign up" button-style nav item */
.nav-signup {
  padding: 7px 16px; /* a bit taller & wider than regular links */
  border-radius: 999px;
  background: #f4efdd;
  color: #0d332b !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(244, 239, 221, 0.8);
  line-height: 1.2;                 /* keep pill compact */
}

.nav-signup:hover {
  text-decoration: none;
  background: #e7dec3;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f4efdd;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lang-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
}

.lang-btn.active {
  opacity: 1;
  font-weight: 600;
}

.lang-separator {
  opacity: 0.7;
}

/* HAMBURGER TOGGLE (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #f4efdd;
  margin: 3px 0;
}

/* PAGE WRAPPER */
.page {
  max-width: 1100px;
  margin: 40px auto 70px;
  padding: 0 24px;
}

/* HERO / TITLE */
.hero {
  padding: 0 0 36px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero p {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  color: #33473f;
}

.hero-secondary {
  margin-top: 12px;
  font-size: 15px;
}

/* BLOG CAROUSEL */
.blog-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

/* The scrolling area */
.blog-track {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* One full-width card visible at a time, on all screen sizes */
.blog-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin-top: 26px;
  background: #f9f5e4;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 18px;
  line-height: 1.5;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-radius: 8px;
}

/* Image area */
.blog-card .thumb {
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  overflow: hidden;
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Meta + title */
.meta-row {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.pill {
  font-weight: 600;
}

/* Article text */
.blog-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.blog-body p {
  margin: 0 0 10px;
  font-size: 15px;
}

/* Nav buttons (carousel) */
.blog-nav {
  background: rgba(13, 51, 43, 0.06);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: #102820;
}

.blog-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

#blog {
  margin-top: 36px;
}

/* Generic sections / cards */
section {
  padding: 28px 0;
}

section > *:last-child {
  margin-bottom: 0;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title p {
  margin: 0;
  font-size: 16px;
}

section a {
  color: #0b6b4b;
  font-weight: 500;
}

.about-grid {
  margin-top: 22px;
  display: block;
}

.card {
  background: #f9f5e4;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 18px;
  margin-bottom: 20px;
  line-height: 1.5;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-radius: 8px;
}

.card h3 {
  font-size: 20px;
}

/* FIRST 5K banded style */
#first5k {
  background: #f9f5e4;
  border-radius: 8px;
  padding: 32px 20px;
  margin-top: 36px;
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 26px 0 44px;
  font-size: 13px;
  color: #555;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ------------------------- */
/* RESPONSIVE TWEAKS */
/* ------------------------- */

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .page {
    margin: 24px auto 44px;
    padding: 0 18px;
  }

  .blog-card {
    padding: 16px;
  }

  .blog-nav {
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  #first5k {
    padding: 24px 16px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 10px 12px;
  }

  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  /* Language toggle: hidden in burger mode unless menu is open */
  .lang-toggle {
    display: none;
    margin-top: 8px;
  }

  .nav-links.open + .lang-toggle {
    display: flex;
  }

  .nav-signup {
    padding: 5px 12px;
    align-self: flex-start;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p,
  .section-title p,
  .blog-body p {
    font-size: 14px;
  }

  .blog-nav {
    width: 30px;
    height: 30px;
    font-size: 22px;
  }
}
