:root {
  --bg: #f6fbf4;
  --surface: #ffffff;
  --surface-2: #f1f7ef;
  --text: #163020;
  --muted: #5f6f65;
  --line: #dbe8da;
  --primary: #2f8f46;
  --primary-dark: #236d35;
  --accent: #84cc16;
  --shadow: 0 14px 34px rgba(31, 55, 38, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fff8 0%, #ffffff 32%, #f6fbf4 100%);
  line-height: 1.65;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--text);
}

ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-sm {
  padding: 2.2rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #cfe7d2;
  background: #f3fbf1;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #eaf8e8;
  color: var(--primary-dark);
}

.btn-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.92rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #47ad5d);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #b6d7ba;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf8e8;
  color: var(--primary);
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

/* ============================= */
/* Header / Responsive Navbar */
/* ============================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #edf3eb;
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.logo {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 10px;
}

.brand span {
  line-height: 1.15;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  color: #385143;
  font-weight: 600;
  font-size: 0.96rem;
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eef8ee;
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-dark);
  background: #eef8ee;
  border: 1px solid #dbe8da;
}

.menu-icon svg {
  width: 24px;
  height: 24px;
}

/* ============================= */
/* Hero Section */
/* ============================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(81, 179, 92, 0.16), transparent 26%),
    radial-gradient(circle at right bottom, rgba(132, 204, 22, 0.14), transparent 22%);
}

.hero-inner {
  padding: 5.2rem 0 4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: 1rem;
}

.hero p {
  font-size: 1.08rem;
  max-width: 60ch;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e3efe1;
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.stat {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #e6f1e3;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--text);
}

.lead {
  font-size: 1.08rem;
  max-width: 72ch;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
}

.feature-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: 900;
}

.highlight-band {
  background: linear-gradient(135deg, #173622, #275332);
  color: #fff;
  border-radius: 30px;
  padding: 2rem;
}

.highlight-band p {
  color: rgba(255, 255, 255, 0.82);
}

/* ============================= */
/* Tables / Status */
/* ============================= */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #edf3eb;
}

th {
  background: #f3faf2;
  color: var(--primary-dark);
  font-size: 0.92rem;
}

.status {
  display: inline-block;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status.available,
.status.completed {
  background: #e8f7ea;
  color: #1f7a34;
}

.status.pending,
.status.upcoming {
  background: #fff6df;
  color: #9b6a00;
}

.status.future {
  background: #eef2ff;
  color: #4b4fb8;
}

/* ============================= */
/* Milestones */
/* ============================= */

.timeline {
  display: grid;
  gap: 1rem;
}

details.milestone {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

details.milestone summary {
  list-style: none;
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.milestone-body {
  border-top: 1px solid #eef3ed;
  padding: 1rem 1.2rem 1.2rem;
}

.kv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.kv .card {
  padding: 1rem;
  box-shadow: none;
}

/* ============================= */
/* Gallery / Moments */
/* ============================= */

.moments-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 1rem;
}

.moment-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ecfdf5;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.moment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.moment-card:hover img {
  transform: scale(1.06);
}

.moment-large {
  grid-column: span 2;
  grid-row: span 2;
}

.moment-wide {
  grid-column: span 2;
}

.moment-tall {
  grid-row: span 2;
}

/* ============================= */
/* Members / About */
/* ============================= */

.member-card {
  transition: 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.member-card img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-radius: 18px;
  background: #edf3eb;
}

.member-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

/* Supervisor section smaller cards */
.section .grid-2 .member-card {
  max-width: 320px;
  margin: 0 auto;
  padding: 1rem;
}

/* Reduce image size */
.section .grid-2 .member-card img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 10px;
}

/* Reduce text size slightly */
.section .grid-2 .member-card h3 {
  font-size: 1.1rem;
}

.section .grid-2 .member-card p {
  font-size: 0.9rem;
}

/* ============================= */
/* Contact / Forms */
/* ============================= */

.inline-link {
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid #cfdccc;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.input:focus,
textarea:focus {
  outline: 2px solid rgba(47, 143, 70, 0.18);
  border-color: #a5cfa8;
}

/* ============================= */
/* Footer */
/* ============================= */

.footer {
  background: #102016;
  color: #dceadf;
  margin-top: 3rem;
  border-top: 1px solid #163321;
}

.footer p,
.footer li,
.footer a {
  color: #c6d7cb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
  gap: 1.5rem;
  padding: 3rem 0 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.centered-title {
  max-width: 760px;
  margin-bottom: 2rem;
}

.shortcut-grid .card,
.doc-card,
.module-card {
  height: 100%;
}

/* ============================= */
/* Responsive Styles */
/* ============================= */

@media (max-width: 1100px) {
  .navbar {
    gap: 0.8rem;
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 0.6rem 0.7rem;
  }

  .brand small {
    font-size: 0.7rem;
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .contact-layout,
  .footer-grid,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .kv {
    grid-template-columns: 1fr;
  }
}

/* Mobile navbar */
@media (max-width: 820px) {
  .navbar {
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .menu-icon {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #dbe8da;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(31, 55, 38, 0.14);
  }

  .nav-links a {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .menu-toggle:checked ~ .nav-links {
    display: flex;
  }
}

@media (max-width: 900px) {
  .moments-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .moment-large,
  .moment-wide {
    grid-column: span 2;
  }

  .moment-tall {
    grid-row: span 1;
  }
}

@media (max-width: 720px) {
  .hero-inner,
  .contact-layout,
  .footer-grid,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.4rem 0;
  }

  .hero-inner {
    padding: 4.2rem 0 3rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .highlight-band {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .moments-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .moment-large,
  .moment-wide,
  .moment-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--max), calc(100% - 1.2rem));
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .menu-icon {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .hero p,
  .lead {
    font-size: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.1rem;
    border-radius: 18px;
  }
}