:root {
  --navy: #12345b;
  --blue: #1769d1;
  --sky: #e9f5ff;
  --aqua: #d7f6f4;
  --gold: #f4b740;
  --ink: #172033;
  --muted: #627086;
  --line: #d9e7f5;
  --white: #ffffff;
  --soft: #f7fbff;
  --shadow: 0 18px 42px rgba(18, 52, 91, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  margin-right: auto;
  white-space: nowrap;
}

.brand-mark,
.avatar {
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue), var(--navy));
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
  background: var(--sky);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(23, 105, 209, 0.22);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px) 48px;
  background: linear-gradient(115deg, #f5fbff 0%, #ffffff 47%, #e7f6ff 100%);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.7rem, 5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.2rem;
}

.hero-text {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stats div,
.info-card,
.subject-card,
.tutor-card,
.price-card,
.faq,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 16px;
}

.hero-stats strong {
  display: block;
  color: var(--blue);
  font-size: 1.55rem;
  line-height: 1.1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-image {
  min-height: min(68vh, 680px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 52, 91, 0.06), rgba(18, 52, 91, 0.2)), url("assets/tutoring-hero.png") center / cover;
  box-shadow: 0 26px 70px rgba(18, 52, 91, 0.22);
}

.page-hero {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
  background: linear-gradient(115deg, #f5fbff 0%, #ffffff 55%, #e7f6ff 100%);
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero .hero-text {
  max-width: 720px;
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.intro-band,
.soft-section {
  background: var(--soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.overview-grid,
.tutor-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
}

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

.info-card,
.subject-card,
.tutor-card,
.price-card {
  padding: 24px;
}

.icon,
.subject-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--aqua);
  font-size: 0.82rem;
  font-weight: 800;
}

.subject-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.subject-card span {
  margin-top: auto;
  margin-bottom: 0;
  background: var(--sky);
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin-bottom: 18px;
  font-size: 1rem;
}

.qualification {
  color: var(--blue);
  font-weight: 800;
}

.price-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(244, 183, 64, 0.8);
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.price {
  color: var(--navy);
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.price-card .button {
  margin-top: auto;
}

.faq {
  margin-top: 22px;
  padding: 24px;
}

details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
}

.contact-section {
  background: linear-gradient(135deg, var(--navy), #0d5e9d);
}

.page-contact {
  min-height: calc(100vh - 72px);
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
}

.contact-panel h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4.5vw, 4.7rem);
}

.contact-panel h1,
.contact-panel h2 {
  color: var(--navy);
}

.contact-info {
  margin-top: 28px;
}

.inquiry-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fbfdff;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #f4f8fc;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: var(--navy);
}

.cta-band h2 {
  max-width: 820px;
  color: var(--white);
}

.cta-band .eyebrow {
  color: var(--gold);
}

@media (max-width: 1100px) {
  .subjects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-image {
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  .site-header {
    gap: 12px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-stats,
  .overview-grid,
  .tutor-grid,
  .pricing-grid,
  .section-heading,
  .contact-panel,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    display: grid;
    justify-items: start;
  }

  .hero-image {
    min-height: 360px;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.96rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .section {
    padding-block: 56px;
  }

  .site-footer {
    display: block;
  }
}
