/* ============================================================
   Rooted Paths CIC — Static Website Stylesheet
   Brand Colours:
     Soft Sage Green:    #B8C8B0
     Deep Olive Green:   #6E7F4E
     Warm Neutral Cream: #F6F6F2
     Charcoal:           #3A3A3A
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  background-color: #F6F6F2;
  color: #3A3A3A;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: #6E7F4E; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', Georgia, serif;
  color: #3A3A3A;
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.container--mid    { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }
.section--cream  { background: #F6F6F2; }
.section--white  { background: #ffffff; }
.section--sage   { background: #e8efe5; }
.section--green  { background: #6E7F4E; color: #fff; }
.section--green h2,
.section--green h3,
.section--green p { color: #fff; }

.text-center { text-align: center; }
.text-green  { color: #6E7F4E; }
.text-muted  { color: #666; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: #6E7F4E;
  color: #fff;
  border-color: #6E7F4E;
}
.btn-primary:hover { background: #5a6940; border-color: #5a6940; text-decoration: none; color: #fff; }

.btn-outline {
  background: transparent;
  color: #3A3A3A;
  border-color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); text-decoration: none; color: #3A3A3A; }

.btn-white {
  background: #fff;
  color: #6E7F4E;
  border-color: #fff;
}
.btn-white:hover { background: #F6F6F2; text-decoration: none; color: #6E7F4E; }

.btn-paypal {
  background: #003087;
  color: #fff;
  border-color: #003087;
  font-size: 1.2rem;
  padding: 1rem 3rem;
}
.btn-paypal:hover { background: #002070; text-decoration: none; color: #fff; }

.btn-lg { font-size: 1.15rem; padding: 1rem 2.5rem; }

/* ---------- Navigation ---------- */
.nav {
  background: #fff;
  border-bottom: 3px solid #B8C8B0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
}
.nav__brand-text { line-height: 1.1; }
.nav__brand-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #3A3A3A;
  display: block;
}
.nav__brand-sub {
  font-size: 0.75rem;
  color: #6E7F4E;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__links a {
  padding: 0.5rem 0.85rem;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3A3A3A;
  transition: background 0.15s;
}
.nav__links a:hover,
.nav__links a.active { background: #e8efe5; color: #6E7F4E; text-decoration: none; }
.nav__links a.btn-nav-donate {
  background: #6E7F4E;
  color: #fff;
  margin-left: 0.5rem;
}
.nav__links a.btn-nav-donate:hover { background: #5a6940; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #3A3A3A;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58,58,58,0.72) 0%, rgba(110,127,78,0.65) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero__content h1 { color: #fff; margin-bottom: 1rem; }
.hero__content p   { color: rgba(255,255,255,0.92); font-size: 1.2rem; max-width: 640px; margin-bottom: 2rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.92);
  color: #3A3A3A;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
}
.hero__badge svg { width: 18px; height: 18px; stroke: #6E7F4E; fill: none; stroke-width: 2; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110,127,78,0.82) 0%, rgba(58,58,58,0.65) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.page-hero__content h1 { color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}
.card--bordered { border: 2px solid #6E7F4E; }
.card__body { padding: 2rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Icon Circle ---------- */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8efe5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1rem;
}
.icon-circle svg { width: 26px; height: 26px; stroke: #6E7F4E; fill: none; stroke-width: 2; }
.icon-circle--lg { width: 72px; height: 72px; }
.icon-circle--lg svg { width: 34px; height: 34px; }

/* ---------- Class Cards ---------- */
.class-card { margin-bottom: 2rem; }
.class-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.class-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.class-card__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #555;
}
.class-card__meta-item svg { width: 20px; height: 20px; stroke: #6E7F4E; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 3px; }
.class-card__meta-item strong { color: #3A3A3A; }
.class-card__note {
  background: #e8efe5;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.class-card__note p { margin-bottom: 0.5rem; }

/* ---------- Two-column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col__image {
  border-radius: 12px;
  overflow: hidden;
  height: 460px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.two-col__image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin-bottom: 2rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 1rem;
}
.checklist__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6E7F4E;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}
.stat-strip__num { font-size: 2.8rem; font-weight: 800; color: #6E7F4E; line-height: 1; }
.stat-strip__label { font-size: 0.95rem; color: #555; margin-top: 0.4rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-left: 4px solid #6E7F4E;
}
.testimonial__quote { font-style: italic; font-size: 1.05rem; margin-bottom: 1rem; color: #444; }
.testimonial__author { font-weight: 700; color: #6E7F4E; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-info-item svg { width: 24px; height: 24px; stroke: #6E7F4E; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 3px; }
.contact-info-item h4 { margin-bottom: 0.25rem; }
.contact-info-item a { color: #6E7F4E; font-weight: 600; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.95rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #B8C8B0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #3A3A3A;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #6E7F4E; }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ---------- Donation tiers ---------- */
.donation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.donation-tier {
  border: 2px solid #B8C8B0;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.donation-tier:hover,
.donation-tier.selected { border-color: #6E7F4E; background: #e8efe5; }
.donation-tier__amount { font-size: 2rem; font-weight: 800; color: #6E7F4E; }
.donation-tier__desc { font-size: 0.9rem; color: #555; margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.footer {
  background: #3A3A3A;
  color: #ccc;
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__brand { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.footer__logo { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; }
.footer__brand-name { font-family: 'Merriweather', Georgia, serif; font-size: 1.1rem; font-weight: 700; color: #fff; display: block; }
.footer__brand-sub  { font-size: 0.75rem; color: #B8C8B0; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { color: #aaa; font-size: 0.9rem; transition: color 0.15s; }
.footer ul li a:hover { color: #B8C8B0; text-decoration: none; }
.footer__social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s;
  text-decoration: none;
}
.footer__social a:hover { background: #6E7F4E; color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #888;
}
.footer__bottom a { color: #888; }
.footer__bottom a:hover { color: #B8C8B0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col__image { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav__links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 2px solid #B8C8B0; padding: 1rem; gap: 0.25rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .nav__links.open { display: flex; }
  .nav__links a { display: block; padding: 0.75rem 1rem; border-radius: 6px; }
  .nav__toggle { display: flex; }
  .nav { position: relative; }
  .class-card__meta { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; text-align: center; }
}

@media (max-width: 500px) {
  .section { padding: 3rem 0; }
  .card__body { padding: 1.25rem; }
}

/* ---------- Donation Grid (static HTML version) ---------- */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.donation-tier {
  position: relative;
  border: 2px solid #d4dece;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.donation-tier:hover,
.donation-tier.selected {
  border-color: #6E7F4E;
  background: #e8efe5;
}

.donation-tier__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #6E7F4E;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.donation-tier__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6E7F4E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.donation-tier__desc {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.75rem;
}
