/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:    #ffffff;
  --light-blue: #e6f4fb;
  --teal:     #00a8a8;
  --teal-dark:#007a7a;
  --gold:     #f5b400;
  --gold-dark:#c78f00;
  --charcoal: #2b2b2b;
  --gray-mid: #6b7280;
  --gray-light: #f4f6f8;
  --radius:   8px;
  --shadow:   0 2px 12px rgba(0,0,0,0.09);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.25;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--teal-dark); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

/* === Navigation === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal);
  text-decoration: none;
}

.nav-brand span.brand-leaf { font-size: 1.4rem; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--charcoal);
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover {
  background: var(--light-blue);
  color: var(--teal);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.25s;
}

/* === Page wrapper === */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* === Hero / Home Section === */
#home {
  background: linear-gradient(135deg, var(--light-blue) 0%, #d0ecf8 60%, #c5e8f5 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

#home h1 {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  color: var(--charcoal);
  max-width: 820px;
  margin: 0 auto 1rem;
}

#home h1 span { color: var(--teal); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-mid);
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  text-decoration: none;
  color: var(--charcoal);
}

.btn-secondary {
  background: var(--white);
  color: var(--teal);
  border-color: var(--teal);
}

.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  text-decoration: none;
}

/* === Section common === */
section { padding: 4rem 1.5rem; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-mid);
  max-width: 640px;
  margin: 0 auto;
}

/* === Curriculum Section === */
#curriculum { background: var(--white); }

.curriculum-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--light-blue);
  border-radius: var(--radius);
}

.curriculum-stat {
  text-align: center;
}

.curriculum-stat .stat-num {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--teal);
}

.curriculum-stat .stat-label {
  font-size: 0.85rem;
  color: var(--gray-mid);
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.curriculum-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow);
  transition: transform 0.18s;
}

.curriculum-card:hover { transform: translateY(-3px); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.curriculum-card h3 {
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.curriculum-card p {
  font-size: 0.875rem;
  color: var(--gray-mid);
}

/* === Garden Applications Section === */
#applications { background: var(--light-blue); }

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s;
}

.app-card:hover { transform: translateY(-3px); }

.app-img-wrap {
  background: #d9ecf7;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #cde8f5, #b8dff0);
  gap: 0.5rem;
}

.img-placeholder .placeholder-icon { font-size: 2.5rem; }
.img-placeholder .placeholder-label {
  font-size: 0.8rem;
  color: var(--gray-mid);
  font-style: italic;
}

.app-body { padding: 1.25rem; }
.app-body h3 { font-size: 1rem; color: var(--charcoal); margin-bottom: 0.4rem; }
.app-body p { font-size: 0.875rem; color: var(--gray-mid); }

/* === Learning Resources Section === */
#resources { background: var(--white); }

.resource-groups { display: flex; flex-direction: column; gap: 1.25rem; }

.resource-group {
  border: 1px solid #d1e8f0;
  border-radius: var(--radius);
  overflow: hidden;
}

.resource-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--light-blue);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.resource-summary::-webkit-details-marker { display: none; }

.resource-summary h3 {
  font-size: 1rem;
  color: var(--charcoal);
  font-family: 'Montserrat', Arial, sans-serif;
}

.resource-summary .toggle-arrow {
  font-size: 0.8rem;
  color: var(--teal);
  transition: transform 0.2s;
}

details[open] .toggle-arrow { transform: rotate(180deg); }

.resource-details {
  padding: 1.25rem;
  background: var(--white);
}

.resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.resource-list .file-icon { font-size: 1.1rem; }

.resource-list a {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 600;
}

.resource-list a:hover { color: var(--teal-dark); }

.ext-tools-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fffbea;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--gray-mid);
}

/* === Download Materials Section === */
#downloads { background: var(--gray-light); }

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.download-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.download-icon { font-size: 2.5rem; }

.download-card h3 {
  font-size: 0.95rem;
  color: var(--charcoal);
}

.download-card p {
  font-size: 0.82rem;
  color: var(--gray-mid);
  flex-grow: 1;
}

.download-note {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--gray-mid);
}

/* === Partner Section === */
#partner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 1.5rem;
}

#partner .section-label { color: var(--gold); }
#partner h2 { color: var(--white); margin-bottom: 1rem; }
#partner p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 2rem; }

.partner-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.partner-chip {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  color: var(--white);
}

.contact-block {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.contact-block a {
  color: var(--gold);
  font-weight: 700;
}

.contact-block a:hover { color: #fff; }

/* === Footer === */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
}

footer a { color: var(--gold); }

/* === Mobile === */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--teal); padding: 1rem; gap: 0.25rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  nav { position: relative; }
  .nav-inner { flex-wrap: wrap; }
  section { padding: 2.5rem 1rem; }
  #home { padding: 3rem 1rem 2.5rem; }
  .curriculum-meta { gap: 1.25rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }
}

@media (max-width: 480px) {
  .curriculum-grid, .applications-grid, .downloads-grid { grid-template-columns: 1fr; }
  .partner-options { flex-direction: column; align-items: center; }
}

/* === Download icon inline === */
.dl-icon {
  font-size: 1rem;
  margin-left: 0.4rem;
  color: var(--teal);
  text-decoration: none;
}
.dl-icon:hover { color: var(--teal-dark); }

/* === Training Mode button in nav === */
.btn-training-mode {
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  border-radius: 5px;
  padding: 0.4rem 0.85rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
}
.btn-training-mode:hover { background: var(--gold-dark); }
.btn-training-mode[aria-pressed="true"] {
  background: var(--teal);
  color: var(--white);
}

/* === Training Mode active === */
body.training-mode {
  font-size: 20px;
}
body.training-mode h1  { font-size: clamp(2rem, 5vw, 3.4rem); }
body.training-mode h2  { font-size: clamp(1.8rem, 4vw, 2.8rem); }
body.training-mode h3  { font-size: 1.3rem; }
body.training-mode p, body.training-mode li { font-size: 1.1rem; line-height: 1.9; }
body.training-mode section { padding: 3.5rem 2rem; }
body.training-mode .nav-links li:not(:last-child) a { font-size: 1rem; padding: 0.6rem 1rem; }
body.training-mode nav { border-bottom-width: 5px; }
body.training-mode .curriculum-card, body.training-mode .app-card { padding: 2rem; }
body.training-mode .card-icon { font-size: 2.8rem; }
body.training-mode .curriculum-stat .stat-num { font-size: 2.8rem; }
body.training-mode .btn { padding: 1rem 2rem; font-size: 1.05rem; }
body.training-mode .resource-summary h3 { font-size: 1.15rem; }
body.training-mode footer { font-size: 0.95rem; }
