/* ============================================================
   CUSTOM PROPERTIES (CHANGE 8)
   All repeated colours, radii, and design values centralised.
   ============================================================ */
:root {
  /* Colours */
  --colour-navy:         #071344;
  --colour-navy-dark:    #000d42;
  --colour-navy-mid:     #0e1d5c;
  --colour-navy-footer:  #040e2e;
  --colour-gold:         #f5a623;
  --colour-gold-dark:    #e8a52a;
  --colour-card:         #5c5c6a;
  --colour-light-bg:     #d9dde3;
  --colour-white:        #ffffff;
  --colour-text-light:   #d2d2d7;
  /* CHANGE 4: Replaced low-contrast #626a7a with accessible #9aa3b8
     (approx 4.6:1 contrast ratio on navy backgrounds — passes WCAG AA) */
  --colour-subtitle:     #9aa3b8;
  --colour-body-dark:    #444444;

  /* Radii */
  --radius-card:   28px;
  --radius-pill:   999px;
  --radius-input:  14px;

  /* Spacing */
  --section-padding-v:      80px;
  --section-padding-v-mob:  60px;
  --section-padding-h:      40px;
  --section-padding-h-mob:  20px;
  --section-gap:            50px;

  /* Header height — used to offset sections so anchors aren't hidden behind sticky header */
  --header-height: 68px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* CHANGE 6: Offset anchor scroll so sections aren't hidden under sticky header */
  scroll-padding-top: var(--header-height);
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--colour-navy);
  color: var(--colour-white);
}

/* ============================================================
   SKIP LINK (CHANGE 7)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--colour-gold);
  color: var(--colour-white);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-input) 0;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   SITE HEADER / NAV (CHANGE 6)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 19, 68, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--colour-white);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.site-header__logo:hover {
  color: var(--colour-gold);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--colour-text-light);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.site-header__nav a:hover {
  color: var(--colour-white);
  background: rgba(255, 255, 255, 0.08);
}

.site-header__nav-cta {
  background: var(--colour-gold) !important;
  color: var(--colour-white) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  margin-left: 8px;
}

.site-header__nav-cta:hover {
  opacity: 0.9;
  background: var(--colour-gold-dark) !important;
}

/* Hamburger toggle — hidden on desktop */
.site-header__menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--colour-white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.site-header__menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   HERO SECTION
   CHANGE 13: Removed asymmetric magic-number paddings.
   Parent section now handles symmetric horizontal padding.
   ============================================================ */

/* Offset hero so it's not hidden behind the fixed header */
.hero {
  min-height: 100vh;
  background-color: var(--colour-navy);
  padding: calc(var(--header-height) + 60px) var(--section-padding-h) 60px;
  display: flex;
  align-items: center;
}

.hero__content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  /* CHANGE 13: Removed padding-left: 50px — was asymmetric and caused layout issues */
}

.hero__text {
  max-width: 500px;
}

.hero__text h1 {
  font-size: 4rem;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.5rem;
  line-height: 1.4;
  color: #f2f2f2;
}

.hero__subtitle--bold {
  font-weight: 700;
}

.hero__buttons {
  display: flex;
  gap: 18px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* Shared button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--colour-gold);
  color: var(--colour-white);
  border: none;
}

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

.btn--secondary {
  border: 2px solid var(--colour-white);
  color: var(--colour-white);
  background-color: transparent;
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.hero__image-wrapper {
  flex: 1;
  display: flex;
  /* CHANGE 13: Removed padding-right: 100px — was asymmetric and caused overflow on mid-width viewports */
  justify-content: flex-end;
}

.hero__image {
  width: 100%;
  max-width: 500px;
  border-radius: 48px;
  display: block;
  object-fit: cover;
}

/* ============================================================
   SHARED SECTION HEADING UTILITIES (CHANGE 9)
   Replaces ~6 repeated heading/subtitle blocks across sections.
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: var(--section-gap);
}

.section-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-title--light {
  color: var(--colour-white);
}

.section-title--dark {
  color: #000000;
}

/* CHANGE 4: Subtitle now uses --colour-subtitle (#9aa3b8) which passes WCAG AA
   contrast on all dark navy backgrounds used in this design */
.section-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--colour-subtitle);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background: var(--colour-light-bg);
  min-height: 100vh;
  padding: 80px 120px;
  display: flex;
  align-items: center;
}

.about__content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 100px;
  align-items: center;
  width: 100%;
}

.about__image-wrapper {
  width: 100%;
}

.about__image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 40px;
  display: block;
}

/* CHANGE 3: .about__text now targets h2, not h1 */
.about__text h2 {
  font-size: 4.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #000;
}

/* CHANGE: Renamed .about__paragraph_text → .about__body (cleaner BEM) */
.about__body {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: #000;
  max-width: 900px;
}

/* ============================================================
   VIDEO / SOCIAL SECTION
   ============================================================ */
.social {
  background: var(--colour-navy-mid);
  padding: var(--section-padding-v) var(--section-padding-h) 100px;
}

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

.social__grid {
  display: flex;
  justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
}

.social__video-card {
  background: var(--colour-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social__video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.social__video-wrapper {
  position: relative;
  width: 100%;
}

.social__video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.social__mute-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--colour-white);
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social__mute-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Focus ring for keyboard users */
.social__mute-btn:focus-visible {
  outline: 2px solid var(--colour-gold);
  outline-offset: 2px;
}

.social__video-caption {
  font-size: 1rem;
  font-weight: 600;
  color: var(--colour-white);
  text-align: center;
  padding: 16px;
  line-height: 1.4;
}

/* ============================================================
   WHAT YOU'LL LEARN SECTION
   ============================================================ */
.learn {
  background: var(--colour-navy);
  padding: var(--section-padding-v) var(--section-padding-h) 100px;
}

.learn__container {
  max-width: 1400px;
  margin: 0 auto;
}

.learn__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 38px;
}

.learn__card {
  background: var(--colour-card);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.learn__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.learn__card-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--colour-white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.learn__card-text p {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--colour-text-light);
  max-width: 260px;
  margin: 0 auto;
}

/* ============================================================
   WHY CHOOSE US SECTION
   ============================================================ */
.why {
  background: var(--colour-light-bg);
  padding: var(--section-padding-v) var(--section-padding-h) 100px;
}

.why__container {
  max-width: 1400px;
  margin: 0 auto;
}

.why__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 38px;
}

.why__card {
  background: var(--colour-white);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.why__icon {
  font-size: 2.5rem;
  color: var(--colour-gold);
  margin-bottom: 18px;
}

.why__card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--colour-navy);
  margin-bottom: 12px;
  line-height: 1.2;
}

.why__card p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--colour-body-dark);
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
  background: var(--colour-navy-dark);
  padding: var(--section-padding-v) var(--section-padding-h) 100px;
}

.pricing__container {
  max-width: 1400px;
  margin: 0 auto;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing__card {
  background: var(--colour-card);
  border-radius: var(--radius-card);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.pricing__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--colour-white);
  margin-bottom: 16px;
}

.pricing__price {
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 800;
  color: var(--colour-white);
  line-height: 1;
  margin-bottom: 6px;
}

.pricing__duration,
.pricing__billing {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.pricing__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

.pricing__cta-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--colour-white);
  line-height: 1.4;
}

.pricing__badge {
  display: inline-block;
  background: var(--colour-gold);
  color: var(--colour-white);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  line-height: 1.3;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pricing__card:hover .pricing__badge {
  background: var(--colour-gold-dark);
  transform: scale(1.04);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  background: var(--colour-navy);
  padding: var(--section-padding-v) var(--section-padding-h) 100px;
}

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

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* CHANGE 2: Removed width: 250px from mobile query — form is always full width of its container */
  width: 100%;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--colour-text-light);
}

.contact__field input,
.contact__field textarea {
  background: var(--colour-card);
  border: 2px solid transparent;
  border-radius: var(--radius-input);
  padding: 14px 18px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--colour-white);
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
  width: 100%;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-color: var(--colour-gold);
}

.contact__submit {
  margin-top: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  width: 100%;
  padding: 16px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__info-card {
  background: var(--colour-card);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease;
}

.contact__info-card:hover {
  transform: translateY(-3px);
}

.contact__info-icon {
  font-size: 1.6rem;
  color: var(--colour-gold);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.contact__info-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact__info-card a,
.contact__info-card p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--colour-white);
  text-decoration: none;
}

.contact__info-card a:hover {
  color: var(--colour-gold);
}

/* CHANGE 5: Success message — display:none preserved; JS shows it.
   role="alert" + aria-live="polite" in HTML ensures screen reader announces it. */
.contact__success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--colour-card);
  border-radius: var(--radius-card);
  padding: 60px 40px;
  gap: 16px;
  height: 100%;
}

.contact__success-icon {
  font-size: 3.5rem;
  color: var(--colour-gold);
}

.contact__success h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--colour-white);
}

.contact__success p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--colour-text-light);
  line-height: 1.6;
  max-width: 380px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--colour-navy-footer);
  padding: 50px 40px;
}

.footer__container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer__tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--colour-white);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.footer__nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--colour-text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--colour-gold);
}

.footer__socials {
  display: flex;
  gap: 24px;
}

.footer__socials a {
  font-size: 1.8rem;
  color: var(--colour-text-light);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__socials a:hover {
  color: var(--colour-gold);
  transform: translateY(-3px);
}

.footer__copy {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--colour-subtitle);
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */

/* --- Large tablets (≤ 1000px) --- */
@media (max-width: 1000px) {
  .site-header__inner {
    padding: 0 24px;
  }

  .about {
    padding: 60px 60px;
  }

  .about__content {
    grid-template-columns: 320px 1fr;
    gap: 60px;
  }

  .about__image {
    height: 420px;
    border-radius: var(--radius-card);
  }

  .about__text h2 {
    font-size: 3rem;
  }

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

  .pricing__grid .pricing__card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

/* --- Tablet (≤ 900px) --- */
@media (max-width: 900px) {
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__heading h2,
  .section-title {
    font-size: 3rem;
  }

  /* Collapse nav into mobile menu */
  .site-header__menu-toggle {
    display: flex;
  }

  .site-header__nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(7, 19, 68, 0.98);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .site-header__nav a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .site-header__nav-cta {
    margin-left: 0 !important;
    margin-top: 8px;
    text-align: center;
  }
}

/* CHANGE 14: Explicit 640px breakpoint — videos stack single column before becoming cramped */
@media (max-width: 640px) {
  .social__grid {
    flex-direction: column;
    align-items: center;
  }

  .social__video-card {
    width: 100%;
    max-width: 360px;
  }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {

  .section-title {
    font-size: 2.4rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    padding: calc(var(--header-height) + 40px) 24px 60px;
    min-height: auto;
  }

  .hero__content {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .hero__text h1 {
    font-size: 2.6rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .hero__buttons {
    justify-content: center;
    margin-top: 32px;
  }

  .hero__image-wrapper {
    justify-content: center;
  }

  .hero__image {
    max-width: 320px;
  }

  /* About */
  .about {
    padding: 40px 20px;
    min-height: auto;
  }

  .about__content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about__image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .about__image {
    height: auto;
  }

  .about__text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }

  .about__body {
    font-size: 1rem;
  }

  /* Social / Videos */
  .social {
    padding: var(--section-padding-v-mob) var(--section-padding-h-mob) 70px;
  }

  /* Learn */
  .learn {
    padding: var(--section-padding-v-mob) var(--section-padding-h-mob) 70px;
  }

  .learn__card {
    width: 100%;
    max-width: 400px;
  }

  .learn__card-text h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  .learn__card-text p {
    font-size: 1rem;
    line-height: 1.35;
  }

  /* Why */
  .why {
    padding: var(--section-padding-v-mob) var(--section-padding-h-mob) 70px;
  }

  .why__card {
    width: 100%;
    max-width: 400px;
  }

  /* Pricing */
  .pricing {
    padding: var(--section-padding-v-mob) var(--section-padding-h-mob) 70px;
  }

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

  .pricing__grid .pricing__card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  /* Contact */
  .contact {
    padding: var(--section-padding-v-mob) var(--section-padding-h-mob) 70px;
  }

  /* CHANGE 2: Removed width: 250px — form is width: 100% via .contact__form base rule */

  /* Footer */
  .footer {
    padding: 40px 20px;
  }

  .footer__nav {
    gap: 10px 20px;
  }

  .footer__tagline {
    font-size: 1rem;
  }
}
