/* =========================================================
   Online Reflection Website
   Edit this file to change colours, spacing, and layout.
   ========================================================= */

:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #14b8a6;
  --soft-blue: #eaf2ff;
  --soft-teal: #e8fbf7;
  --soft-yellow: #fff7df;
  --soft-purple: #f2edff;
  --border: #e5e7eb;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

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

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(94%, 1240px);
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 900;
}

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

.nav-links a {
  font-size: 0.92rem;
  padding: 9px 12px;
  border-radius: 999px;
  color: #334155;
  transition: 0.2s ease;
}

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

.menu-toggle {
  display: none;
  border: 0;
  background: var(--soft-blue);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.35rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 78px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.17), transparent 32%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff, #f7f9fc);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--soft-teal);
  color: #0f766e;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

h1, h2, h3 {
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--muted);
  max-width: 780px;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--border);
}

.hero-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: var(--soft-blue);
}

.stat:nth-child(2) { background: var(--soft-teal); }
.stat:nth-child(3) { background: var(--soft-yellow); }
.stat:nth-child(4) { background: var(--soft-purple); }

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--primary-dark);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-title {
  max-width: 840px;
  margin-bottom: 28px;
}

.kicker {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

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

.icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--soft-blue);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.quote-box {
  margin: 28px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--soft-blue), var(--soft-teal));
  border-left: 6px solid var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--primary), var(--secondary));
  transform: translateX(-50%);
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 34px 34px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
}

.timeline-dot {
  position: absolute;
  top: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -23px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -23px;
}

.badge {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--soft-teal);
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th, td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--soft-blue);
  color: var(--primary-dark);
}

tr:last-child td {
  border-bottom: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.media-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--soft-blue), var(--soft-teal));
  color: var(--primary-dark);
  text-align: center;
  font-weight: 800;
}

.media-content {
  padding: 20px;
}

.media-photo {
  width: 100%;
  min-height: 220px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.media-photo.contain {
  object-fit: contain;
  background: linear-gradient(135deg, var(--soft-blue), var(--soft-teal));
}

.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.media-pair .media-photo {
  height: 100%;
}

@media (max-width: 640px) {
  .media-pair {
    grid-template-columns: 1fr;
  }
}

/* Accordion */
.accordion {
  display: grid;
  gap: 14px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.accordion-button {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.accordion-panel {
  display: none;
  padding: 0 20px 20px;
  color: var(--muted);
}

.accordion-item.open .accordion-panel {
  display: block;
}

/* Footer */
.footer {
  padding: 32px 0;
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 40px;
}

.footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .card-grid,
  .card-grid.two,
  .card-grid.three,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline::before {
    left: 22px;
  }

  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 64px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot {
    left: 0;
    right: auto;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 14px;
  }

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

  .nav-links a {
    border-radius: 14px;
    background: #f8fafc;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .card-grid,
  .card-grid.two,
  .card-grid.three,
  .gallery-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 44px 0;
  }
}
