/* =========================================================
   Your Lordships – Registration landing page
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Abril Fatface";
  src: url("../fonts/abril-fatface.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --gold: #cd9b5d;
  --gold-dark: #8d6533;
  --brown: #352f27;
  --brown-deep: #2c271f;
  --maroon: #553a36;
  --cream: #f7f4ef;
  --text: #70695f;
  --text-dark: #4b4339;
  --white: #fff;
  --black: #000;

  --font-display: "Abril Fatface", Georgia, serif;
  --font-body: "Karla", Arial, sans-serif;

  --container: 1140px;
  --section-space: 80px;
  --radius: 10px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 30px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* fallback */
  overflow-x: clip;   /* stops off-screen animations from causing sideways scroll */
}

h1, h2, h3, h4, h5, h6, p, figure, ul {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--brown);
  text-transform: capitalize;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button,
input {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Shared section heading ---------- */
.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 50px;
  line-height: 1.1;
}

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

.section-head .section-title {
  margin-bottom: 20px;
}

.section-intro {
  color: var(--gold-dark);
}

.section-intro--gold {
  color: var(--gold);
  font-size: 20px;
  font-style: italic;
}

.section-intro--italic {
  font-size: 20px;
  font-style: italic;
}

.section-intro--caps {
  font-size: 20px;
  line-height: 26px;
  text-transform: capitalize;
}

.section-sub {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  text-transform: capitalize;
}

.section-sub--small {
  font-size: 18px;
}

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  text-transform: capitalize;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--gold-dark);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: relative;
  z-index: 10;
}

.topbar {
  padding: 10px 0;
  background: var(--brown);
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.topbar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.topbar__item:first-child {
  padding-left: 220px;
}

.brandbar {
  padding: 15px 0;
  background: var(--gold);
}

.brandbar__inner {
  display: flex;
  align-items: center;
  min-height: 76px;
}

.brandbar__logo {
  position: relative;
  align-self: flex-start;
  display: flex;
  justify-content: center;
  width: 228px;
  margin-top: -10px;
}

/* white tab that hangs below the gold bar */
.brandbar__logo::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 133px;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
}

.brandbar__logo img {
  position: relative;
  width: 160px;
  margin-bottom: -50px;
}

.brandbar__title {
  margin-left: 117px;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.1;
  color: var(--brown);
  text-transform: capitalize;
}

/* =========================================================
   HERO + ENQUIRY FORM
   ========================================================= */
.hero {
  position: relative;
  min-height: 755px;
  padding: 50px 10px 65px;
  background: url("../images/banner_img_2.png") top center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brown);
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.hero__text {
  max-width: 570px;
  margin-left: -60px;
  padding-top: 140px;
}

.hero__title {
  margin-bottom: 20px;
  font-size: 55px;
  line-height: 1.2;
  color: var(--white);
}

.hero__tagline {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid #b1aba9;
  font-size: 26px;
  line-height: 1;
  color: var(--white);
  text-transform: capitalize;
}

/* Enquiry box */
.enquiry {
  position: relative;
  flex: 0 0 456px;
  margin-right: -51px;
  padding: 10px 26px 30px;
  border-radius: 15px;
  overflow: hidden;
  isolation: isolate;
}

.enquiry::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #926731;
  opacity: 0.5;
  z-index: -1;
}

.enquiry__head {
  text-align: center;
  color: var(--white);
  font-family: var(--font-display);
  text-transform: capitalize;
}

.enquiry__title {
  font-size: 40px;
  line-height: 1.1;
  color: var(--white);
}

.enquiry__sub {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.1;
}

.enquiry__note {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 1px;
}

.enquiry-form {
  margin-top: 25px;
}

.field {
  padding: 15px 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  height: 31px;
  padding: 0 9px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  background: #e2e2e2;
  color: var(--black);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(205, 155, 93, 0.35);
}

.field input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.field--check input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0 2px;
  accent-color: var(--gold);
}

.field--check label,
.field--captcha label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.3;
}

.field--captcha {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.field--captcha input[type="text"] {
  width: 70px;
}

.enquiry-form__submit {
  margin-top: 10px;
  height: 41px;
  padding: 0 15px;
  border: 0;
  border-radius: 3px;
  background: #5e3333;
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.enquiry-form__submit:hover {
  background: #4a2626;
}

.enquiry-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* validation */
.field.has-error input {
  border-color: #d63637 !important;
}

.field-error {
  display: block;
  width: 100%;
  margin-top: 4px;
  color: #ffd0d0;
  font-size: 13px;
  font-style: normal;
  line-height: 1.3;
}

.form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1.4;
}

.form-message--ok {
  background: #e6f6ea;
  border: 1px solid #9fd6ae;
  color: #1d6b33;
}

.form-message--error {
  background: #fdecea;
  border: 1px solid #f1aaa6;
  color: #a12622;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: var(--section-space) 0;
  background: url("../images/bg_1.png") left bottom no-repeat;
}

.about__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.about__intro,
.about__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 35px;
  align-items: center;
}

.about__kicker {
  font-size: 39px;
  line-height: 1;
  color: var(--black);
}

.about__heading .section-title {
  margin-top: 8px;
}

.about__img {
  width: 100%;
  border-radius: var(--radius);
}

.about__img--main {
  margin-top: 25px;
}

.about__row {
  align-items: start;
  padding: 15px 0 20px;
}

.about__lead {
  margin-top: -60px;
  color: var(--gold-dark);
  font-size: 20px;
  font-style: italic;
  text-align: justify;
}

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

.about__text {
  text-align: justify;
}

.about__photo {
  min-height: 600px;
  background: url("../images/girl_about_img_3-scaled.png") center / cover no-repeat;
}

/* =========================================================
   PROGRAMS
   ========================================================= */
.programs {
  padding: var(--section-space) 0;
  background: var(--maroon);
}

.programs .section-head {
  margin-bottom: 100px;
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 20px;
  padding: 0 10px;
}

.program-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--brown-deep);
  color: var(--white);
}

.program-card__head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: -90px 0 0 -30px;
}

.program-card__head img {
  width: 120px;
  flex-shrink: 0;
}

.program-card__title {
  padding-top: 70px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--white);
}

.program-card__text {
  margin: 25px 0 20px;
  font-size: 16px;
}

.program-card__duration {
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(128, 128, 128, 0.5);
  font-size: 19.8px;
  text-align: center;
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why {
  padding: 40px 0 var(--section-space);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 350px 1fr;
  gap: 30px;
  align-items: center;
}

.why__col {
  display: grid;
  gap: 35px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: justify;
}

.feature--reverse {
  flex-direction: row-reverse;
}

.feature__icon {
  width: 103px;
  flex-shrink: 0;
}

.feature__title {
  margin: 8px 0 10px;
  text-align: left;
  font-size: 20px;
  line-height: 1.5;
}

.feature__text {
  color: var(--black);
}

.why__center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 521px;
  background: url("../images/image-shape.png") center / contain no-repeat;
}

.why__center img {
  width: 175px;
}

/* =========================================================
   TOP ACHIEVERS
   ========================================================= */
.achievers {
  padding: var(--section-space) 0;
  background: rgba(158, 158, 158, 0.25);
}

.achievers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.achievers__grid img {
  width: 315px;
  height: 400px;
  border-radius: var(--radius);
}

/* =========================================================
   STATS + HIGHLIGHTS
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
}

.stats__media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  padding: 80px;
  border-radius: 0 50px 50px 0;
  background: url("../images/college_img-1.png") center / cover no-repeat;
  overflow: hidden;
}

.stats__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(269deg, #0f0909 17%, rgba(240, 145, 18, 0.92) 69%);
  opacity: 0.37;
}

.stat {
  position: relative;
  text-align: right;
  color: var(--white);
}

.stat__icon {
  display: inline-flex;
  width: 87px;
  height: 87px;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
}

.stat__icon svg {
  width: 36px;
  height: 36px;
}

.stat__number {
  margin-bottom: 15px;
  font-family: var(--font-display);
  font-size: 45px;
  line-height: 1;
}

.stat__label {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
}

.stats__content {
  padding: 80px 50px;
}

.stats__content .section-title {
  margin-bottom: 50px;
}

.highlight__title {
  padding: 15px;
  border-radius: var(--radius);
  background: var(--gold);
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
}

.highlight__text {
  padding: 15px;
  color: var(--black);
}

/* =========================================================
   TEACHERS
   ========================================================= */
.teachers {
  padding: var(--section-space) 0;
  background: url("../images/bg_img_3.jpg") center / cover no-repeat;
}

.teacher {
  text-align: center;
}

.teacher img {
  width: 250px;
  margin: 0 auto;
}

.teacher figcaption {
  margin-top: 9px;
  color: var(--black);
  font-weight: 600;
  font-style: italic;
}

/* =========================================================
   SLIDER (teachers + testimonials)
   ========================================================= */
.slider {
  position: relative;
  padding-bottom: 30px;
}

.slider__viewport {
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.slider__track > * {
  flex-shrink: 0;
}

.slider__arrow {
  position: absolute;
  top: calc(50% - 15px);
  z-index: 2;
  display: flex;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  cursor: pointer;
  transform: translateY(-50%);
}

.slider__arrow svg {
  width: 25px;
  height: 25px;
}

.slider__arrow--prev {
  left: 10px;
}

.slider__arrow--next {
  right: 10px;
}

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.slider__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  opacity: 0.2;
  cursor: pointer;
}

.slider__dot.is-active {
  opacity: 1;
}

/* =========================================================
   RESULTS
   ========================================================= */
.results {
  position: relative;
  padding: var(--section-space) 0;
  background: url("../images/bg_img_4.jpg") center / cover no-repeat;
}

.results::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brown);
  opacity: 0.93;
}

.results__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
}

.results__kicker {
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 19px;
  text-transform: capitalize;
}

.results__intro .section-title {
  margin-top: -15px;
}

.checklist {
  margin: 70px 0 30px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--white);
}

.checklist li + li {
  margin-top: 15px;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--brown), inset 0 0 0 5px var(--gold);
}

.results__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
}

.results__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

.point__head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.point__head img {
  width: 64px;
  flex-shrink: 0;
}

.point__head h3 {
  font-size: 20px;
  line-height: 1.1;
  color: var(--white);
}

.point p {
  color: var(--white);
  text-align: justify;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  padding: var(--section-space) 0;
  background: var(--cream);
}

.testimonial {
  width: 100%;
  border: 2px solid var(--white);
  border-radius: var(--radius);
}

/* =========================================================
   CTA + FOOTER
   ========================================================= */
.cta {
  padding: var(--section-space) 0 130px;
  background: var(--maroon);
  text-align: center;
}

.cta__quote {
  font-size: 50px;
  line-height: 1.2;
  color: var(--white);
}

.site-footer {
  padding: 16px 0;
}

.site-footer__inner {
  display: flex;
  justify-content: flex-end;
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
[data-animate] {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

[data-animate="fade-left"]   { transform: translateX(-60px); }
[data-animate="fade-right"]  { transform: translateX(60px); }
[data-animate="slide-left"]  { transform: translateX(-100%); }
[data-animate="slide-right"] { transform: translateX(100%); }
[data-animate="zoom-in"]     { transform: scale(0.6); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .slider__track {
    transition: none;
  }
}

/* =========================================================
   RESPONSIVE – tablet
   ========================================================= */
@media (max-width: 1180px) {
  .container {
    padding: 0 20px;
  }
  .hero__text {
    margin-left: 0;
  }
  .enquiry {
    margin-right: 0;
  }
  .topbar__item:first-child {
    padding-left: 0;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-space: 60px;
  }

  .section-title,
  .cta__quote {
    font-size: 38px;
  }

  .brandbar__title {
    margin-left: 40px;
    font-size: 20px;
  }

  .hero {
    min-height: 0;
  }
  .hero__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__text {
    max-width: none;
    padding-top: 80px;
  }
  .hero__title {
    font-size: 46px;
  }
  .enquiry {
    flex-basis: auto;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .about__inner {
    grid-template-columns: 1fr;
  }
  .about__photo {
    min-height: 520px;
  }

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

  .why__grid {
    grid-template-columns: 1fr 1fr;
  }
  .why__center {
    display: none;
  }

  .achievers__grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 315 / 400;
  }

  .stats {
    grid-template-columns: 1fr;
  }
  .stats__media {
    border-radius: 0;
  }

  .results__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =========================================================
   RESPONSIVE – mobile
   ========================================================= */
@media (max-width: 767px) {
  :root {
    --section-space: 50px;
  }

  body {
    font-size: 16px;
    line-height: 28px;
  }

  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-intro--gold,
  .section-intro--italic,
  .section-intro--caps,
  .section-sub {
    font-size: 17px;
    line-height: 1.6;
  }

  /* header */
  .topbar__inner {
    grid-template-columns: 1fr;
  }
  .brandbar__inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .brandbar__logo {
    align-self: center;
    width: auto;
    margin-top: 0;
  }
  .brandbar__logo::before {
    display: none;
  }
  .brandbar__logo img {
    width: 114px;
    margin-bottom: 0;
  }
  .brandbar__title {
    margin-left: 0;
    font-size: 18px;
  }

  /* hero */
  .hero {
    padding: 40px 0;
  }
  .hero__text {
    padding-top: 60px;
    text-align: center;
  }
  .hero__title {
    font-size: 30px;
  }
  .hero__tagline {
    font-size: 22px;
  }
  .enquiry {
    padding: 10px 16px 24px;
  }
  .enquiry__title {
    font-size: 30px;
  }
  .enquiry__sub {
    font-size: 18px;
  }
  .enquiry__note {
    font-size: 16px;
  }

  /* about */
  .about__intro,
  .about__row {
    grid-template-columns: 1fr;
  }
  .about__kicker {
    font-size: 28px;
  }
  .about__lead {
    margin: 0 0 20px;
  }
  .about__thumbs {
    gap: 15px;
  }
  .about__photo {
    min-height: 420px;
    background-position: center top;
  }

  /* programs */
  .programs .section-head {
    margin-bottom: 90px;
  }
  .programs__grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .program-card__title {
    font-size: 16px;
  }

  /* why */
  .why__grid {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature--reverse {
    flex-direction: column;
    align-items: flex-start;
  }

  /* achievers */
  .achievers__grid {
    grid-template-columns: 1fr;
  }
  .achievers__grid img {
    max-width: 340px;
  }

  /* stats */
  .stats__media {
    align-items: center;
    padding: 50px 20px;
  }
  .stat {
    text-align: center;
  }
  .stats__content {
    padding: 50px 15px;
  }

  /* results */
  .checklist {
    margin-top: 40px;
  }
  .results__img {
    height: 220px;
  }
  .results__points {
    grid-template-columns: 1fr;
  }

  /* cta */
  .cta {
    padding-bottom: var(--section-space);
  }
  .cta__quote {
    font-size: 26px;
  }
}
