:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #f4f6f1;
  --text: #1f2a1f;
  --text-muted: #556058;
  --green: #2f7a44;
  --green-dark: #1f5a37;
  --orange: #d18b39;
  --border: #dee4db;
  --shadow: 0 22px 60px rgba(17, 34, 22, 0.1);
  --radius: 24px;
  --radius-sm: 14px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(17, 34, 22, 0.08);
  padding: 0.75rem 2rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-brand img {
  border-radius: 50%;
}

.nav-brand-text .name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-brand-text .tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 550;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-cta {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--green);
  color: var(--green);
}

.hamburger {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span + span {
  margin-top: 6px;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  padding: 6rem 2rem 2rem;
  background: rgba(255, 255, 255, 0.98);
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 90;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 600;
}

section,
#stats,
#farm,
#quote-band,
footer {
  padding: 8rem 0;
}

#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding-top: 6rem;
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
  color: var(--green);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 1.02;
}

.hero-desc {
  margin: 1.5rem 0 2rem;
  max-width: 44rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.55rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-outline-green {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.social-btn.facebook {
  background: #1877f2;
  color: #fff;
  border-color: transparent;
}

.social-btn.instagram {
  background: radial-gradient(circle at 30% 30%, #fccc63 0%, #f56040 45%, #c13584 100%);
  color: #fff;
  border-color: transparent;
}

.social-btn.whatsapp {
  background: #25d366;
  color: #fff;
  border-color: transparent;
}

.community-card {
  margin: 2.5rem 0 1.5rem;
  display: grid;
  place-items: center;
}

.community-card-inner {
  width: min(980px, 100%);
  background: linear-gradient(180deg, #f2fbf4 0%, #ffffff 100%);
  border: 1px solid rgba(47, 122, 68, 0.14);
  border-radius: 28px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.community-card-inner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 560px;
}

@media (max-width: 768px) {
  .community-card-inner {
    flex-direction: column;
    text-align: center;
  }
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.trust-item {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.25rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.trust-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
}

.trust-lbl {
  margin-top: 0.35rem;
  color: var(--text-muted);
}

#hero .hero-visual {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  min-height: 420px;
  max-height: 740px;
  object-fit: cover;
  border-radius: 32px;
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(15, 55, 25, 0.06) 0%, rgba(8, 47, 28, 0.35) 100%);
}

.hero-badge {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  max-width: 260px;
  box-shadow: var(--shadow);
}

.hero-badge-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}

.hero-badge-text {
  font-weight: 700;
}

.scroll-indicator {
  margin-top: 4rem;
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.scroll-indicator .arrow {
  width: 24px;
  height: 24px;
  border-bottom: 2px solid var(--text);
  border-right: 2px solid var(--text);
  transform: rotate(45deg);
  margin-bottom: 0.25rem;
}

#stats {
  background: #eef5eb;
}

#stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-item {
  background: var(--surface);
  padding: 2rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
}

.stat-lbl {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

section {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section-eyebrow {
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.4rem, 3vw, 3.75rem);
  margin: 0;
  line-height: 1.05;
}

.section-lead {
  max-width: 680px;
  color: var(--text-muted);
  margin: 1rem 0 2rem;
}

.about-images {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.5fr 1fr;
}

.about-images img {
  width: 100%;
  border-radius: 26px;
  object-fit: cover;
}

.about-badge-float {
  position: relative;
  align-self: end;
  background: var(--surface);
  border-radius: 26px;
  padding: 1.3rem 1.3rem 1rem;
  box-shadow: var(--shadow);
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 700;
}

.about-text {
  margin-top: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.value-pill {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.programs-grid,
.courses-grid,
.team-grid,
.gallery-grid,
.admissions-grid {
  display: grid;
  gap: 1.5rem;
}

.programs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-card,
.course-card,
.team-card,
.portal-card,
.contact-card,
.intake-table,
.lib-features .lib-feat,
.g-item {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.program-card {
  overflow: hidden;
}

.pc-img {
  position: relative;
}

.pc-img img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
}

.pc-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.pc-body {
  padding: 1.6rem;
}

.pc-body h3 {
  margin-top: 0;
}

.pc-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--green);
  font-weight: 700;
}

.courses-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-card {
  padding: 2rem;
}

.course-card h3 {
  margin-top: 0;
}

.course-meta {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-muted);
}

#farm {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(180deg, #f2fbf4 0%, #eff9ee 100%);
}

.farming-img,
.lib-img {
  border-radius: 28px;
  overflow: hidden;
}

.farming-content,
.lib-content {
  padding: 2rem;
}

.farming-content {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.farming-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.85rem;
}

.farming-list li,
.lib-feat {
  padding-left: 1.2rem;
  position: relative;
}

.farming-list li::before,
.lib-feat::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--green);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-extended {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.g-item {
  overflow: hidden;
  position: relative;
}

.g-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.g-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.45) 100%);
}

.g-caption {
  color: #fff;
  font-weight: 700;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  padding: 2rem;
}

.staff-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.portrait-rickon { background: linear-gradient(135deg, #2f7a44, #1f5a37); }
.portrait-winsa { background: linear-gradient(135deg, #4e7f5f, #2f6644); }
.portrait-shadreck { background: linear-gradient(135deg, #3f7855, #24603d); }
.portrait-yarred { background: linear-gradient(135deg, #41734e, #2b5a38); }

.team-card h4 {
  margin: 1rem 0 0.25rem;
}

.team-card p {
  margin: 0;
  color: var(--text-muted);
}

#quote-band {
  background: var(--green);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.quote-band-text {
  font-size: clamp(1.75rem, 2.3vw, 2.75rem);
  margin: 0 0 1rem;
}

.quote-band-cite {
  margin: 0;
  opacity: 0.9;
}

.lib-img,
.farming-img {
  background: var(--surface-soft);
}

.lib-content {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.lib-features {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.lib-feat {
  padding: 1rem 1rem 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(47, 122, 68, 0.09);
}

.lib-feat-icon {
  margin-right: 0.75rem;
}

.admissions-grid {
  grid-template-columns: 1.35fr 0.75fr;
  gap: 2rem;
}

.admission-copy {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.admission-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0;
  display: grid;
  gap: 0.8rem;
}

.admission-list li::before {
  content: '•';
  color: var(--green);
  margin-right: 0.75rem;
}

.intake-table {
  overflow: hidden;
  border-radius: 28px;
}

.intake-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  align-items: center;
}

.intake-header {
  background: var(--surface-soft);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  background: var(--surface);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.contact-detail-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.contact-detail-body strong {
  display: block;
  margin-bottom: 0.35rem;
}

.contact-form {
  display: grid;
}

.contact-card {
  border-radius: 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.85fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: grid;
  gap: 1rem;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-col h5 {
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.whatsapp-btn {
  position: fixed;
  right: 1.5rem;
  border-radius: 999px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.25);
  transition: transform 0.2s ease;
  z-index: 25;
}

.whatsapp-btn svg {
  width: 24px;
  height: 24px;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
}

.whatsapp-main {
  bottom: 5.625rem; /* 90px from bottom */
}

.whatsapp-secondary {
  bottom: 1.5rem; /* 24px from bottom */
  background: #20b859;
}

#back-top {
  position: fixed;
  right: 5.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--text);
  color: #fff;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 20;
}

#back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-4px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  background: #f1f5ef;
  padding-top: 4rem;
}

@media (max-width: 1240px) {
  section {
    width: min(980px, calc(100% - 2rem));
  }

  #hero {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-visual img {
    min-height: 360px;
  }

  .courses-grid,
  .gallery-grid,
  .gallery-extended,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .programs-grid,
  .admissions-grid,
  .footer-top {
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  #hero,
  #farm,
  .about-images,
  .programs-grid,
  .courses-grid,
  .team-grid,
  .gallery-grid,
  .admissions-grid,
  .footer-top,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  #hero {
    gap: 2rem;
  }

  .hero-trust,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual img,
  .about-images img,
  .g-item img {
    min-height: 320px;
  }

  .gallery-extended {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
  }

  .hero-desc,
  .section-lead {
    max-width: 100%;
  }

  .hero-trust,
  .values-grid,
  .gallery-grid,
  .courses-grid,
  .team-grid,
  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .admissions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .intake-row {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .hero-badge {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 0.9rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  section,
  #stats,
  footer {
    padding: 5rem 1rem;
  }

  .hero-content,
  .hero-visual {
    width: 100%;
  }

  .hero-visual img {
    min-height: 300px;
  }

  .hero-trust,
  .values-grid,
  .courses-grid,
  .gallery-grid,
  .team-grid,
  .admissions-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .course-card,
  .program-card,
  .team-card,
  .lib-content,
  .admission-copy,
  .contact-info,
  .contact-card {
    padding: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-extended {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    margin-top: 1.5rem;
    left: 0;
    right: 0;
    bottom: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  #navbar {
    padding: 0.85rem 0.85rem;
  }

  .hero-eyebrow,
  .section-eyebrow {
    letter-spacing: 0.18em;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  .hero-actions {
    gap: 0.85rem;
  }

  .btn {
    width: 100%;
  }

  .trust-item,
  .value-pill,
  .contact-detail,
  .intake-row {
    padding: 1.2rem;
  }

  .about-images,
  .programs-grid,
  .farming-content,
  .lib-content,
  .contact-info,
  .contact-card,
  .admission-copy {
    padding: 1.5rem;
  }

  .hero-visual img,
  .g-item img,
  .about-images img {
    min-height: 260px;
  }

  .whatsapp-main,
  .whatsapp-secondary {
    right: 0.85rem;
  }

  #back-top {
    right: 0.85rem;
    bottom: 6rem;
  }
}
