/* =================================================================
   AHBA — Australian Hair and Beauty Academy
   Design system: teal #006B6F + gold #B68B3C
   Modern web style — fresh, lifestyle, premium
   ================================================================= */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 7vw, 7rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* AHBA Palette */
  --teal: #006B6F;
  --teal-dark: #004A4D;
  --teal-deep: #002F31;
  --teal-light: #D9ECEC;
  --teal-tint: #F0F7F7;
  --gold: #B68B3C;
  --gold-dark: #8B6A2D;
  --gold-light: #F4EBD8;
  --gold-tint: #FBF7EE;

  /* Neutrals — warm off-white */
  --cream: #FAF7F2;
  --cream-2: #F3EEE5;
  --ink: #1A1A1A;
  --ink-2: #2B2B2B;
  --muted: #6E6E6E;
  --faint: #A8A8A8;
  --line: #E5E2D8;
  --white: #FFFFFF;

  /* Roles */
  --color-bg: var(--cream);
  --color-surface: var(--white);
  --color-surface-2: var(--cream-2);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-text-faint: var(--faint);
  --color-border: var(--line);
  --color-primary: var(--teal);
  --color-primary-hover: var(--teal-dark);
  --color-accent: var(--gold);
  --color-accent-hover: var(--gold-dark);

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-eyebrow: 'Inter', sans-serif;

  /* Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 480ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.16);

  /* Widths */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1320px;
  --content-full: 100%;
}

/* =====================  Base reset & typography  ===================== */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
  max-width: 65ch;
}

::selection {
  background: rgba(0, 107, 111, 0.18);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a,
button,
[role='button'] {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

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

/* =====================  Layout primitives  ===================== */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--default {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.section--tight {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}

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

.section--dark {
  background: var(--teal-deep);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--cream);
}

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

.section--teal h2,
.section--teal h3 {
  color: var(--cream);
}

/* =====================  Typography utilities  ===================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-eyebrow);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.eyebrow--teal {
  color: var(--teal);
}
.eyebrow--teal::before {
  background: var(--teal);
}

.eyebrow--cream {
  color: var(--gold-light);
}
.eyebrow--cream::before {
  background: var(--gold-light);
}

.display-1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.display-2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.heading-xl {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.1;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.15;
}

.heading-md {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
}

.text-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

.muted {
  color: var(--color-text-muted);
}

.divider-gold {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-block: var(--space-6);
}

.divider-gold--center {
  margin-inline: auto;
}

/* =====================  CTA link style  =====================
   AABT-style underline + circle-arrow CTA
*/

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: gap var(--transition-interactive), color var(--transition-interactive), border-color var(--transition-interactive);
}

.cta-link__arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  background: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-interactive);
  flex-shrink: 0;
}

.cta-link__arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: transform var(--transition-interactive);
}

.cta-link:hover {
  gap: var(--space-4);
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.cta-link:hover .cta-link__arrow {
  background: var(--teal);
  border-color: var(--teal);
}

.cta-link:hover .cta-link__arrow svg {
  transform: translateX(2px);
}

.cta-link--light {
  color: var(--cream);
  border-bottom-color: var(--gold-light);
}

.cta-link--light:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.cta-link--light .cta-link__arrow {
  background: var(--gold);
  border-color: var(--gold);
}

/* Solid pill button (for the rare must-click action) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: var(--teal);
  color: var(--cream);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--transition-interactive);
}

.btn-pill:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-pill--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--cream);
}

.btn-pill--outline:hover {
  background: var(--cream);
  color: var(--teal-deep);
}

/* =====================  Top utility bar  ===================== */

.topbar {
  background: var(--teal-deep);
  color: var(--cream);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}

.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-2);
}

.topbar a {
  color: var(--gold-light);
  padding-block: var(--space-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar a:hover {
  color: var(--white);
}

.topbar__login {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gold);
  color: var(--white) !important;
  padding: var(--space-2) var(--space-5) !important;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.topbar__login:hover {
  background: var(--gold-dark);
  color: var(--white) !important;
}

.topbar__login svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* =====================  Main header  ===================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all var(--transition-interactive);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding-block: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--teal-deep);
}

.logo__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--teal-deep);
}

.logo__sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__list {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-block: var(--space-3);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--transition-interactive);
}

.nav__link:hover,
.nav__link[aria-current='page'] {
  color: var(--teal);
}

.nav__link:hover::after,
.nav__link[aria-current='page']::after {
  width: 100%;
}

.nav__caret {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-interactive);
  border-top: 2px solid var(--gold);
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  font-weight: 400;
  transition: all var(--transition-interactive);
}

.nav__dropdown-link:hover {
  background: var(--teal-tint);
  color: var(--teal);
  padding-left: var(--space-5);
}

.nav__icons {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.nav__icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-deep);
  transition: all var(--transition-interactive);
}

.nav__icon-btn:hover {
  background: var(--teal);
  color: var(--white);
}

.nav__icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--transition-interactive);
}

@media (max-width: 1100px) {
  .nav {
    display: none;
  }
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    top: 80px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8);
    overflow-y: auto;
  }
  .nav.is-open .nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: var(--space-2);
  }
  .nav.is-open .nav__link {
    font-size: var(--text-lg);
    padding-block: var(--space-4);
  }
  .nav.is-open .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: var(--cream);
    margin-top: var(--space-2);
    width: 100%;
    padding: var(--space-2);
  }
  .nav__toggle {
    display: inline-flex;
  }
}

/* =====================  Hero — full-bleed photo  ===================== */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--teal-deep);
  color: var(--cream);
}

.hero--tall {
  min-height: 88vh;
}

.hero--inner {
  min-height: 60vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 47, 49, 0.20) 0%,
      rgba(0, 47, 49, 0.30) 50%,
      rgba(0, 47, 49, 0.78) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-20);
  width: 100%;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-6);
}

.hero__label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold-light);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 18ch;
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
  font-family: var(--font-display);
}

.hero__sub {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.88);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.hero__ctas {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
}

/* Inner page hero — smaller, just photo + page label */
.hero--inner .hero__content {
  padding-block: var(--space-16);
}

.hero--inner .hero__title {
  font-size: var(--text-3xl);
  max-width: 100%;
}

/* =====================  Section heading block  ===================== */

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: var(--space-12);
  max-width: 56ch;
}

.section-heading--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-heading__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-5);
}

.section-heading__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* =====================  Two-column split  ===================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}

.split--image-right .split__image {
  order: 2;
}

.split__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__image--landscape {
  aspect-ratio: 4 / 3;
}

.split__image--wide {
  aspect-ratio: 5 / 4;
}

.split__content {
  display: flex;
  flex-direction: column;
}

.split__feature-list {
  list-style: none;
  margin-block: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.split__feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-base);
  color: var(--ink-2);
}

.split__feature-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 10px;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--image-right .split__image {
    order: -1;
  }
}

/* =====================  Course cards grid  ===================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(var(--space-6), 2vw, var(--space-8));
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-interactive);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-2);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-3);
}

.card__eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
  color: var(--teal-deep);
}

.card__code {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-top: var(--space-2);
}

.card__cta {
  margin-top: auto;
  padding-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.card__cta-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-interactive);
}

.card:hover .card__cta-arrow {
  background: var(--teal);
  transform: translateX(4px);
}

.card__cta-arrow svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* =====================  Stats counter strip  ===================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-12);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stats--center .stat {
  align-items: center;
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
  margin-bottom: var(--space-3);
  font-feature-settings: 'tnum';
}

.stat__label {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* =====================  Pre-footer CTA band  ===================== */

.cta-band {
  position: relative;
  background: var(--teal-deep);
  color: var(--cream);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(182, 139, 60, 0.18) 0%, transparent 60%);
  z-index: 0;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.1;
  color: var(--cream);
  max-width: 24ch;
}

.cta-band__title em {
  font-style: italic;
  color: var(--gold-light);
}

/* =====================  Testimonial  ===================== */

.testimonial {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: center;
}

.testimonial__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-8);
  position: relative;
}

.testimonial__quote::before {
  content: '"';
  position: absolute;
  top: -0.3em;
  left: -0.3em;
  font-size: 4em;
  color: var(--gold);
  line-height: 1;
  font-style: normal;
}

.testimonial__attribution {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-6);
}

.testimonial__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--teal-deep);
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

@media (max-width: 900px) {
  .testimonial {
    grid-template-columns: 1fr;
  }
}

/* =====================  Feature icon strip  ===================== */

.features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-12));
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: var(--space-3);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.feature__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--teal-deep);
}

.feature__body {
  color: var(--color-text-muted);
}

@media (max-width: 720px) {
  .features-strip {
    grid-template-columns: 1fr;
  }
}

/* =====================  Gallery / photo grid  ===================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: var(--space-4);
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item--lg {
  grid-column: span 6;
  grid-row: span 2;
}

.gallery__item--md {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery__item--sm {
  grid-column: span 3;
  grid-row: span 1;
}

.gallery__item--wide {
  grid-column: span 8;
  grid-row: span 1;
}

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery__item--lg,
  .gallery__item--md,
  .gallery__item--sm,
  .gallery__item--wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* =====================  Forms  ===================== */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--ink);
  transition: all var(--transition-interactive);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 107, 111, 0.12);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.form__checkbox input {
  margin-top: 4px;
  accent-color: var(--teal);
}

@media (max-width: 720px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* =====================  Footer  ===================== */

.footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding-block: var(--space-20) var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__logo-mark {
  width: 48px;
  height: 48px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--cream);
  line-height: 1.1;
}

.footer__brand-sub {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: var(--space-1);
}

.footer__tagline {
  color: rgba(250, 247, 242, 0.7);
  max-width: 36ch;
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244, 235, 216, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  transition: all var(--transition-interactive);
}

.footer__social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal-deep);
}

.footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--gold-light);
  margin-bottom: var(--space-3);
}

.footer__col a {
  color: rgba(250, 247, 242, 0.75);
  font-size: var(--text-sm);
  transition: color var(--transition-interactive);
}

.footer__col a:hover {
  color: var(--cream);
}

.footer__location {
  margin-bottom: var(--space-5);
}

.footer__location-name {
  font-weight: 500;
  color: var(--cream);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.footer__location-address,
.footer__location-phone {
  font-size: var(--text-sm);
  color: rgba(250, 247, 242, 0.7);
  line-height: 1.4;
}

.footer__bottom {
  border-top: 1px solid rgba(244, 235, 216, 0.16);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.55);
  letter-spacing: 0.06em;
}

/* =====================  Sidebar (VET) ===================== */

.layout-sidebar {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}

@media (max-width: 900px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: sticky;
  top: 140px;
}

.sidebar-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--teal-deep);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.sidebar-card__group {
  margin-bottom: var(--space-5);
}

.sidebar-card__group-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.sidebar-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
}

.sidebar-card__link:hover {
  color: var(--teal);
  border-bottom-color: var(--gold);
}

.sidebar-card__link::after {
  content: '↓';
  color: var(--gold);
  font-size: 0.75rem;
}

/* =====================  Article body  ===================== */

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--teal-deep);
  margin-top: var(--space-12);
  margin-bottom: var(--space-5);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose p {
  margin-bottom: var(--space-5);
  font-size: var(--text-base);
  color: var(--ink-2);
  max-width: 65ch;
}

.prose ul {
  margin-bottom: var(--space-5);
  padding-left: var(--space-5);
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--ink-2);
}

.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

/* =====================  Pull quote / callout  ===================== */

.callout {
  background: var(--teal-tint);
  border-left: 3px solid var(--gold);
  padding: var(--space-6) var(--space-8);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-block: var(--space-8);
}

.callout__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--teal-deep);
  margin-bottom: var(--space-2);
}

/* =====================  Full-bleed image  ===================== */

.fullbleed-image {
  width: 100%;
  height: clamp(360px, 60vh, 640px);
  overflow: hidden;
  position: relative;
}

.fullbleed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullbleed-image__quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  padding-inline: var(--space-8);
  background: rgba(0, 47, 49, 0.55);
}

.fullbleed-image__quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--cream);
  max-width: 28ch;
  line-height: 1.2;
}

.fullbleed-image__quote-attribution {
  display: block;
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* =====================  Scroll-fade animation  ===================== */

.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================  Course card big variant ===================== */

.course-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--line);
}

.course-block:last-child {
  border-bottom: none;
}

.course-block:nth-child(even) .course-block__image {
  order: 2;
}

.course-block__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.course-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-block__code {
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.course-block__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--teal-deep);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.course-block__meta {
  display: flex;
  gap: var(--space-8);
  margin-block: var(--space-5);
  padding-block: var(--space-4);
  border-block: 1px solid var(--line);
}

.course-block__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.course-block__meta-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.course-block__meta-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink);
}

@media (max-width: 900px) {
  .course-block {
    grid-template-columns: 1fr;
  }
  .course-block:nth-child(even) .course-block__image {
    order: -1;
  }
}

/* ===================== Additional state classes ===================== */
.header--scrolled {
  box-shadow: 0 4px 24px rgba(0, 47, 49, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

body.nav-locked {
  overflow: hidden;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Prose styling */
.prose p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  color: var(--ink-2);
}
.prose ul {
  margin-bottom: var(--space-4);
  padding-left: 1.2rem;
}
.prose ul li {
  margin-bottom: var(--space-2);
  line-height: 1.65;
  color: var(--ink-2);
}
.prose ul li::marker {
  color: var(--gold);
}
.prose table th,
.prose table td {
  text-align: left;
}

/* Table outside .prose */
table th, table td {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* Stats on teal section — override colors */
.section--teal .stat__value {
  color: var(--gold-light);
}
.section--teal .stat__label {
  color: var(--cream);
  opacity: 0.78;
}
.section--teal .eyebrow {
  color: var(--gold-light);
}
.section--teal .eyebrow::before {
  background: var(--gold-light);
}
.section--teal .section-heading__sub,
.section--teal p {
  color: var(--cream);
}

/* CTA band override for embedded eyebrow/text */
.cta-band .eyebrow {
  color: var(--gold-light);
}
.cta-band .eyebrow::before {
  background: var(--gold-light);
}

/* When .course-block is used as the main column of layout-sidebar
   it should NOT be a 2-column grid. */
.layout-sidebar > .course-block {
  display: block;
  grid-template-columns: none;
  padding-block: 0;
  border-bottom: none;
}
.course-block__meta {
  flex-wrap: wrap;
}
