@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

/* ================================================================
   ApexTutors — Master Stylesheet
   Edit this one file. All pages reference it via:
     <link rel="stylesheet" href="style.css">
   ================================================================ */
:root {
  --navy: #0d1b2a;
  --navy-mid: #1b2f48;
  --gold: #c9a84c;
  --gold-light: #e8c96e;
  --cream: #faf8f3;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #6b7a8d;
  --border: #dde3ec;
  --success: #2d7a4f;
  --error: #c0392b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

/* ====== NAV ====== */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo .logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: var(--navy);
  font-size: 20px;
}

.nav-logo .logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--white);
  font-size: 22px;
  letter-spacing: 0.5px;
}

.nav-logo .logo-text span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

/* ====== HERO ====== */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 80px 24px 90px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27,47,72,0.8) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  margin-left: 12px;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ====== TRUST BAR ====== */
.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.trust-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: 0.3px;
}

.trust-item .icon {
  width: 32px;
  height: 32px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* ====== SECTION ====== */
.section {
  padding: 72px 24px;
}

.section-alt { background: var(--cream); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  font-weight: 300;
}

/* ====== FORM ====== */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 40px rgba(13,27,42,0.08);
  max-width: 760px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

label .req { color: var(--gold); margin-left: 2px; }

input, select, textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,27,42,0.08);
}

textarea { resize: vertical; min-height: 110px; }

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  padding: 8px 14px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  cursor: pointer;
  accent-color: var(--navy);
}

.checkbox-group label:has(input:checked) {
  background: rgba(13,27,42,0.06);
  border-color: var(--navy);
  font-weight: 700;
}

.recaptcha-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-submit {
  padding: 15px 40px;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,27,42,0.2);
}

.form-note {
  font-size: 13px;
  color: var(--text-light);
}

/* ====== STATUS MESSAGES ====== */
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.form-status.success {
  display: block;
  background: #e8f5ed;
  color: var(--success);
  border: 1px solid #b8dfc9;
}

.form-status.error {
  display: block;
  background: #fce8e6;
  color: var(--error);
  border: 1px solid #f5b7b1;
}

/* ====== PRICING CARDS ====== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.pricing-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13,27,42,0.1);
}

.pricing-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.pricing-card.featured .price-amount { color: var(--gold); }
.pricing-card.featured .price-desc { color: rgba(255,255,255,0.7); }
.pricing-card.featured .price-label { color: rgba(255,255,255,0.55); }
.pricing-card.featured li { color: rgba(255,255,255,0.85); }

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.price-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.price-amount sup { font-size: 24px; vertical-align: super; }

.price-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.price-features li {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.price-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ====== SUBJECTS ====== */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.subject-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}

.subject-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(13,27,42,0.08);
  transform: translateY(-3px);
}

.subject-card-header {
  background: var(--navy);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.subject-card-header .grade-icon {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.subject-card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}

.subject-card-header .grade-range {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.subject-card-body { padding: 22px 24px; }

.subject-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.subject-item:last-child { border-bottom: none; }

.subject-item::before {
  content: '▸';
  color: var(--gold);
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}

/* ====== PAYMENT ====== */
.payment-methods {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.payment-method-card {
  flex: 1;
  min-width: 200px;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.payment-method-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,168,76,0.15);
}

.payment-method-card .pm-logo {
  font-size: 36px;
  margin-bottom: 8px;
}

.payment-method-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
}

.payment-method-card p {
  font-size: 13px;
  color: var(--text-light);
}

.payment-method-card .pm-detail {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: white;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  word-break: break-all;
}

/* ====== FOOTER ====== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
  text-align: center;
}

footer .footer-inner { max-width: 800px; margin: 0 auto; }

footer .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

footer .footer-logo span { color: var(--gold); }

footer nav {
  background: transparent;
  position: static;
  padding: 0;
  box-shadow: none;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0;
  list-style: none;
}

footer .footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

footer .copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .recaptcha-wrapper { grid-column: 1; }
  .form-submit { grid-column: 1; }
  .nav-links { display: none; }
  .trust-bar-inner { gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   apply.html — Tutor Application page styles
   ================================================================ */
.divider {
      display: flex; align-items: center; gap: 14px; color: var(--text-light);
      font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
      margin: 20px 0;
    }
    .divider::before, .divider::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }
    .star-notice {
      background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.05));
      border: 1.5px solid rgba(201,168,76,0.4);
      border-radius: 10px;
      padding: 16px 20px;
      margin-bottom: 28px;
      font-size: 14px;
      color: var(--navy-mid);
    }

/* ================================================================
   volunteer.html — Volunteer page styles
   ================================================================ */
.volunteer-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: start;
      max-width: 1100px;
      margin: 0 auto;
    }
    @media (max-width: 800px) {
      .volunteer-grid { grid-template-columns: 1fr; gap: 32px; }
    }
    .benefit-card {
      background: var(--white);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 24px;
      display: flex;
      gap: 18px;
      align-items: flex-start;
      transition: box-shadow 0.2s, transform 0.2s;
    }
    .benefit-card:hover {
      box-shadow: 0 8px 32px rgba(13,27,42,0.10);
      transform: translateY(-2px);
    }
    .benefit-icon {
      width: 48px;
      height: 48px;
      min-width: 48px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--navy), var(--navy-mid));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
    }
    .benefit-card h3 {
      font-family: 'Playfair Display', serif;
      font-size: 17px;
      color: var(--navy);
      margin-bottom: 6px;
    }
    .benefit-card p {
      font-size: 14px;
      color: var(--text-light);
      line-height: 1.6;
    }
    .hours-badge {
      background: linear-gradient(135deg, #0d1b2a, #1b2f48);
      border-radius: 16px;
      padding: 36px 32px;
      text-align: center;
      position: sticky;
      top: 90px;
    }
    .hours-number {
      font-family: 'Playfair Display', serif;
      font-size: 72px;
      font-weight: 900;
      color: var(--gold);
      line-height: 1;
    }
    .form-section-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 18px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }
    .checkbox-group {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 20px;
    }
    @media (max-width: 600px) {
      .checkbox-group { grid-template-columns: 1fr; }
    }
    .checkbox-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      font-size: 14px;
      color: var(--text);
    }
    .checkbox-item:hover { border-color: var(--gold); background: rgba(201,168,76,0.04); }
    .checkbox-item input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }

/* ================================================================
   reviews.html — Reviews page styles
   ================================================================ */

/* ── Aggregate score box ── */
.agg-box {
  background: var(--navy);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  color: white;
}
.agg-score {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.agg-stars {
  font-size: 26px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 8px;
  line-height: 1;
}
.agg-count {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Rating breakdown bars ── */
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.bar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.6s ease;
  min-width: 0;
}
.bar-count {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 700;
  min-width: 20px;
  text-align: left;
  flex-shrink: 0;
}

/* ── Reviews grid ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.review-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: fadeUp 0.4s ease both;
}
.review-card:hover {
  box-shadow: 0 8px 32px rgba(13,27,42,0.08);
  transform: translateY(-2px);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.review-stars {
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
}
.review-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.review-author {
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}
.review-detail {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.review-date {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.no-reviews {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-light);
}
.no-reviews .icon { font-size: 40px; display: block; margin-bottom: 16px; }

/* ── Interactive star rating input ── */
.star-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Hide radios but keep them accessible */
.star-input-wrapper input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
/* Stars rendered via <label> elements in FORWARD order (1→5) */
.star-row {
  display: flex;
  gap: 6px;
  flex-direction: row;
}
.star-row label {
  font-size: 38px;
  color: #d5d9e0;
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  line-height: 1;
  user-select: none;
}
.star-row label:hover,
.star-row label:hover ~ label { color: #d5d9e0; }  /* reset siblings right of hover */
/* Colour up to and including hovered star */
.star-row label:hover,
.star-row label.hovered { color: var(--gold); }
/* Colour filled stars when a rating is selected */
.star-row label.filled { color: var(--gold); }
.star-row label:active { transform: scale(1.2); }

.rating-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  min-height: 22px;
  transition: opacity 0.2s;
}
.star-rating-note {
  font-size: 12px;
  color: var(--text-light);
}
