:root {
  --cta-gold: #b8860b;
  --cta-darker: #9a7209;
  --error-red: #e53935;
  --success-green: #6cbf6c;
  --primary-font: "Arial", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--primary-font);
  line-height: 1.6;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

.text-main, a {
  color: var(--cta-gold);
}

.fs-lg {
  font-size: 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

section {
  scroll-margin-top: 4.5rem; /* Offset the scroll to account for the fixed navbar */
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
  text-decoration: none;
  background-image: url(/img/logo_black.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 150px;
  height: 40px;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #000;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--cta-gold);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cta-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile navbar */
@media (max-width: 768px) {
  .navbar {
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  }

  .navbar.show-mobile {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    display: none;
  }
}

.container {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.text-dark-gray {
  color: #666;
}
.text-muted {
  color: #9a9a9a;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 8rem 6vw 4rem;
  background-image: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0) 70%), url("/img/hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 70% center;
  color: white;
}

.hero-content {
  max-width: 640px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: white;
}

@media (max-width: 768px) {
  .hero {
    position: relative;
    justify-content: center;
    align-items: flex-start;
    padding: 40svh 5% 2.5rem;
    background-color: #111;
    background-image: linear-gradient(to bottom, rgba(17,17,17,0.5) 0, rgba(17,17,17,0) 14svh, rgba(17,17,17,0) 30svh, #111 52svh), url("/img/hero.jpg");
    background-size: 100% 100%, auto 55svh;
    background-position: top center, 60% top;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.6s forwards;
}

/* Gold outline gets lost over the photo, white keeps contrast */
.hero-ctas .cta-button.secondary {
  color: white;
  box-shadow: inset 0 0 0 2px white;
}

.hero-ctas .cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-logo {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  object-fit: contain;
  width: 140px;
  height: 37px;
  display: none;
}

/* The navbar (and its logo) is hidden on mobile, so the hero carries the brand there */
@media (max-width: 768px) {
  .hero-logo {
    display: block;
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    margin-inline: auto;
  }
}

/* Visually hidden, still announced by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-headline {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 600px;
  text-wrap: balance;
  color: #f3f3f3;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-note {
  font-size: 0.9rem;
  margin-top: 1rem;
  color: #d9d9d9;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.8s forwards;
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 1.9rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
}

/* Courses Section */
.courses {
  background-color: #f5f5f5;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

.course-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
}

.course-item.right {
  flex-direction: row-reverse;
  text-align: right;
}

.course-icon {
  width: 80px;
  height: 80px;
  background: var(--cta-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 3rem;
  flex-shrink: 0;
}

.course-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.course-content p {
  line-height: 1.8;
}

@media (max-width: 768px) {
  .course-item {
    flex-direction: column !important;
    text-align: center !important;
  }

  .course-icon {
    margin: 0 0 2rem 0;
  }
}

/* Family Discount Section */
.family-discount {
  background-color: #f5f5f5;
  text-align: center;
}
/* Referral Section */
.referral {
  text-align: center;
}

/* Hiring Section */
.hiring {
  text-align: center;
}

/* Why Us Section */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.why-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.why-card p {
  line-height: 1.8;
  text-align: justify;
}

/* Free Trial Section */
.free-trial {
  background: #000;
  color: white;
  padding: 3rem 2rem;
  max-width: 100%;
}

.trial-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trial-text {
  font-size: 2rem;
  font-weight: 300;
  flex: 1;
}

.cta-button {
  background: var(--cta-gold);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  background: var(--cta-darker);
}

.cta-button:disabled {
  opacity: .65;
}

.cta-button.secondary {
  background: transparent;
  color: var(--cta-gold);
  box-shadow: inset 0 0 0 2px var(--cta-gold);
}

.cta-button.secondary:hover {
  background: rgba(184, 134, 11, 0.08);
}


@media (max-width: 768px) {
  .trial-content {
    flex-direction: column;
    text-align: center;
  }

  .trial-text {
    margin-bottom: 2rem;
    font-size: 1.5rem;
  }
}

/* Pricing Section */
.pricing-wrapper {
  --pricing-gap: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pricing-gap);
  margin-top: 3rem;
}

.pricing-card {
  flex: 0 1 calc((100% - 2 * var(--pricing-gap)) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 4rem 2rem 3rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
  border: 2px solid var(--cta-gold);
  background: #fffbf2;
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.15);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-tagline {
  font-size: 0.85rem;
  color: #666;
  min-height: 2.8em;
}

.pricing-card .price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--cta-gold);
  margin: 1rem 0 2rem;
  white-space: nowrap;
}
.pricing-card .price .per-month {
  font-size: 1.25rem;
  color: var(--cta-gold);
}
.pricing-card .price .disclaimer-asterisk {
  font-size: 1.1rem;
  vertical-align: super;
}

.pricing-card .cta-button {
  margin-top: auto;
}


@media (max-width: 768px) {
  .pricing-wrapper {
    flex-direction: column;
    --pricing-gap: 2rem;
  }
  .pricing-card {
    flex-basis: auto;
    order: 2;
  }
  .pricing-card.featured {
    order: 1;
  }
}

.pricing .pricing-disclaimer {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 3rem;
}

/* FAQ Section */
#faq {
  font-size: 1.5rem;
  background-color: #f5f5f5;
}
.faqIcon {
  display: inline-block;
  width: 1.5rem;
}
.faq-item button {
  font-size: 1.5rem;
  cursor: pointer;
  background: white;
  border: none;
  outline: none;
  border-radius: .25rem;
  padding: 1rem;
  margin-block: 1rem;
  color: var(--cta-gold);
  width: 100%;
  text-align: start;
}

/* Contact Section */
.contact {
  background: #f5f5f5;
}

.contact p {
  font-size: 1.45rem;
  margin-bottom: 4rem;
  margin-top: -1rem;
  text-align: center;
}

.contact-info {
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 1rem;
}
.contact-info a {
  text-decoration: none;
  color: var(--cta-gold);
}
.contact-info a:visited {
  color: var(--cta-gold);
}

.contact-wrapper {
  display: grid;
  grid-template-rows: 100%;
  grid-template-columns: 50% 50%;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-success {
  align-self: center;
  text-align: center;
}

.contact-success h3 {
  font-size: 1.75rem;
  margin-bottom: .5rem;
}

.contact .contact-success p {
  font-size: 1.2rem;
  margin: 0;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Forms */
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: .25rem;
}

.form-label .text-muted {
  font-weight: 400;
}

.form-label .form-input {
  margin-top: .25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* intl-tel-input wrapper is inline-block by default */
.iti {
  width: 100%;
}

.form-input {
  font-family: var(--primary-font);
  font-size: 1.2rem;
  border: 2px solid #d1d5dc;
  outline: none;
  padding: .5rem 1rem;
  width: 100%;
  border-radius: 8px;
  background: white;
}

textarea.form-input {
  resize: none;
}

.form-input:focus {
  border: 2px solid var(--cta-gold);
}

.form-input::placeholder {
  font-size: 1.2rem;
}

.form-hint {
  display: block;
  margin-bottom: .25rem;
}

.inline-radios {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  border: none;
}

.inline-radios legend {
  margin-bottom: .5rem;
}

.inline-radios label {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border: 2px solid #d1d5dc;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

.inline-radios label:has(input:checked) {
  border-color: var(--cta-gold);
}

.inline-radios input {
  accent-color: var(--cta-gold);
}

.text-error {
  color: var(--error-red);
}

.validation-error {
  color: var(--error-red)
}

.form-error {
  color: var(--error-red);
  margin-top: 1rem;
  text-align: center;
}

.form-input.is-invalid {
  border: 2px solid var(--error-red) !important;
}
.form-input.is-valid {
  border: 2px solid var(--success-green) !important;
}

button:disabled {
  cursor: not-allowed;
}

/* Subpages: keep the footer at the bottom and clear the fixed navbar */
body.subpage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.subpage main {
  flex: 1;
  padding-top: 4.5rem;
}

/* Enroll Page */
.enroll-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  list-style: none;
  counter-reset: step;
  margin-bottom: 3rem;
}

.enroll-progress li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #666;
  counter-increment: step;
}

.enroll-progress li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #d1d5dc;
  color: white;
  font-weight: 700;
}

.enroll-progress li[aria-current="step"] {
  color: #000;
  font-weight: 600;
}

.enroll-progress li[aria-current="step"]::before {
  background: var(--cta-gold);
}

.enroll-form,
.enroll-success {
  max-width: 600px;
  margin: 0 auto;
}

.enroll-step h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.enroll-step fieldset {
  border: none;
}

.enroll-step h3 {
  font-size: 1.2rem;
  margin-bottom: .75rem;
}

.student-fields {
  margin-bottom: 1.5rem;
}

.form-row.name-age-row {
  grid-template-columns: 1fr 7rem;
}

#per-student-hint {
  margin-bottom: 1.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid #d1d5dc;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

.radio-option:has(input:checked) {
  border-color: var(--cta-gold);
}

.radio-option input {
  accent-color: var(--cta-gold);
}

.children-count {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.children-count output {
  min-width: 2ch;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.stepper-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--cta-gold);
  background: white;
  color: var(--cta-gold);
  font-size: 1.25rem;
  cursor: pointer;
}

.stepper-button:disabled {
  opacity: .4;
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.step-actions .previous-button {
  margin-right: auto;
}

.enroll-success {
  text-align: center;
}

.enroll-success h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.enroll-success p {
  font-size: 1.25rem;
}

/* Careers Page */
/* On main rather than the section so the grey reaches the footer on tall screens */
main:has(> .careers) {
  background-color: #f5f5f5;
}

/* Benefits on the left stay in view while the longer form scrolls past */
.careers-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}

.careers-intro {
  position: sticky;
  top: 7rem;
}

.careers-intro h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.careers-benefits {
  list-style: none;
}

.careers-benefits li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.careers-benefits li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #49b80b;
  color: white;
  font-weight: 700;
}

.careers-card {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.careers-form {
  display: flex;
  flex-direction: column;
}

.careers-form .cta-button {
  margin-top: 1.5rem;
}

.upload-progress {
  width: 100%;
  margin-top: .75rem;
  accent-color: var(--cta-gold);
}

.careers-form input[type="file"] {
  font-size: 1rem;
  padding: .5rem;
  cursor: pointer;
}

.careers-form input[type="file"]::file-selector-button {
  font-family: var(--primary-font);
  font-weight: 600;
  margin-right: 1rem;
  padding: .5rem 1rem;
  border: none;
  border-radius: 4px;
  background: rgba(184, 134, 11, 0.12);
  color: var(--cta-darker);
  cursor: pointer;
}

.ai-warning {
  margin: .25rem 0 .75rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--error-red);
  border-radius: 4px;
  background: #fdecea;
  color: #444;
}

.careers-success {
  text-align: center;
  padding: 2rem 0;
}

.careers-success h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.careers-success p {
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .careers-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .careers-intro {
    position: static;
  }
}

@media (max-width: 768px) {
  .careers .container {
    padding-inline: 1rem;
  }

  .careers-card {
    padding: 2rem 1.25rem;
  }
}

/* Footer */
.footer {
  background: #000;
  color: white;
  padding: 2rem;
  text-align: center;
}

.footer p {
  color: #999;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal. An animation rather than a transition so it doesn't clobber elements' own hover transitions */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.from-left {
  transform: translateX(-50px);
}

.reveal.from-right {
  transform: translateX(50px);
}

.reveal.visible {
  animation: fadeInUp 0.8s ease var(--reveal-delay, 0s) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-content > * {
    opacity: 1;
    transform: none !important;
    animation: none !important;
  }
}
