:root {
  color-scheme: light;
  --ink: #07162d;
  --muted: #536174;
  --blue: #073a79;
  --blue-bright: #075daf;
  --red: #d81420;
  --red-dark: #a90812;
  --paper: #ffffff;
  --soft: #f2f5f8;
  --line: #d8e0e9;
  --shadow: 0 24px 70px rgba(7, 22, 45, 0.14);
  --page-pad: clamp(1.1rem, 5.5vw, 5.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

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

a:focus-visible {
  outline: 3px solid #f4a7ae;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.75rem;
  padding: 0.75rem var(--page-pad);
  border-bottom: 1px solid rgba(216, 224, 233, 0.78);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  line-height: 1.15;
}

.brand small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

nav a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

nav a:hover {
  color: var(--ink);
}

nav a:hover::after {
  transform: scaleX(1);
}

.nav-contact {
  min-height: 2.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--blue);
  border-radius: 0.3rem;
  color: var(--blue);
}

.nav-contact::after {
  display: none;
}

.nav-contact:hover {
  background: var(--blue);
  color: white;
}

.mobile-label {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 25rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  min-height: min(690px, calc(100vh - 4.75rem));
  padding: clamp(4.5rem, 8vw, 7rem) var(--page-pad);
  overflow: hidden;
  color: white;
  background-color: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--page-pad);
  width: 5.5rem;
  height: 0.35rem;
  z-index: -1;
  background: var(--red);
}

.hero::after {
  content: "UK";
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: -0.2em;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(16rem, 33vw, 34rem);
  font-weight: 950;
  line-height: 0.8;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 54rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffd8dc;
}

.hero .eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--red);
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 span {
  display: block;
  margin-top: 0.18em;
  color: #f9bdc2;
  font-size: 0.44em;
  font-weight: 650;
  line-height: 1;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 45rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.12rem, 1.9vw, 1.48rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-height: 3.35rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.35rem;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  min-width: 12rem;
  border-color: var(--red);
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.quick-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 1.6rem;
  border-top: 0.3rem solid var(--red);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #28613b;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.availability::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3e9b5b;
  box-shadow: 0 0 0 0.22rem rgba(62, 155, 91, 0.13);
}

.quick-panel h2 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.05;
}

.quick-panel p {
  margin-bottom: 1.4rem;
  color: var(--muted);
}

.panel-phone {
  display: block;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 900;
}

.panel-location {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 var(--page-pad);
  background: var(--blue);
  color: white;
}

.proof-strip div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.7rem;
  min-height: 5.2rem;
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  font-size: 1.7rem;
}

.proof-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
}

.section,
.teacher,
.contact {
  padding: clamp(4.25rem, 9vw, 7.5rem) var(--page-pad);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  background: white;
}

.intro > p {
  max-width: 44rem;
  margin: 0;
  padding-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0 var(--page-pad) clamp(4.25rem, 9vw, 7.5rem);
  background: white;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(4.25rem, 9vw, 7.5rem) var(--page-pad);
  background: #edf2f7;
}

.steps-heading {
  max-width: 32rem;
}

.steps-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cbd5e0;
}

.steps-list li {
  display: grid;
  grid-template-columns: 3.5rem minmax(10rem, 0.75fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid #cbd5e0;
}

.steps-list li > span {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
}

.steps-list strong {
  font-size: 1.08rem;
}

.steps-list p {
  margin: 0;
  color: var(--muted);
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 20rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  transition: z-index 0s, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.course-card:hover {
  z-index: 2;
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.course-card::after {
  content: "";
  position: absolute;
  right: -3.5rem;
  bottom: -3.5rem;
  width: 8rem;
  height: 8rem;
  border: 1rem solid rgba(7, 58, 121, 0.055);
  transform: rotate(15deg);
}

.course-card.red::after {
  border-color: rgba(216, 20, 32, 0.06);
}

.course-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.course-number {
  color: #9aa6b5;
  font-size: 0.78rem;
  font-weight: 900;
}

.course-level {
  display: grid;
  place-items: center;
  min-width: 3.5rem;
  min-height: 3.5rem;
  padding: 0.55rem;
  border: 1px solid rgba(7, 58, 121, 0.22);
  border-radius: 50%;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
}

.red .course-level {
  border-color: rgba(216, 20, 32, 0.24);
  color: var(--red);
}

.course-card p {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.course-use {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.red .course-use {
  color: var(--red);
}

.teacher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 28rem);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  background: var(--ink);
  color: white;
}

.teacher .section-kicker {
  color: #ffb8bf;
}

.teacher p {
  max-width: 52rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
}

.trust-box {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 0.3rem solid var(--red);
  background: rgba(255, 255, 255, 0.06);
}

.trust-mark {
  display: grid;
  place-items: center;
  width: 5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  font-weight: 950;
}

.trust-box strong,
.trust-box div > span {
  display: block;
}

.trust-box strong {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.trust-box div > span {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.92rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  background: white;
}

.contact-heading > p:last-child {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  align-content: start;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-card {
  min-height: 8.5rem;
  padding: 1.4rem;
  background: #fbfcfe;
  transition: background 160ms ease;
}

.contact-card:hover {
  background: #eef5fc;
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  margin-bottom: 1.3rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--blue);
  font-size: clamp(0.95rem, 1.45vw, 1.18rem);
  overflow-wrap: anywhere;
}

.contact-card small {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.location-card {
  position: relative;
  border-left: 0.22rem solid var(--red);
}

.hours-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
}

.hours-card dl > div {
  display: grid;
  gap: 0.25rem;
}

.hours-card dt {
  color: var(--muted);
  font-weight: 750;
}

.hours-card dd {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.hours-card {
  grid-column: 1 / -1;
}

.map-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  background: #eef2f6;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: clamp(18rem, 34vw, 28rem);
  border: 0;
  filter: saturate(0.82) contrast(1.02);
}

.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: white;
}

.map-caption span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.map-caption a {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem var(--page-pad);
  background: var(--blue);
  color: white;
  text-align: center;
}

footer p {
  margin: 0;
  font-weight: 800;
}

.flag-dot {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(35deg, transparent 42%, white 42% 48%, var(--red) 48% 54%, white 54% 60%, transparent 60%),
    linear-gradient(145deg, transparent 42%, white 42% 48%, var(--red) 48% 54%, white 54% 60%, transparent 60%),
    linear-gradient(90deg, transparent 42%, white 42% 48%, var(--red) 48% 56%, white 56% 62%, transparent 62%),
    linear-gradient(0deg, transparent 42%, white 42% 48%, var(--red) 48% 56%, white 56% 62%, transparent 62%),
    var(--blue);
  box-shadow: inset 0 0 0 2px white;
}

.mobile-contact {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .hero,
  .intro,
  .steps,
  .teacher,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .quick-panel {
    max-width: 36rem;
  }

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

  .teacher {
    align-items: start;
  }

  .trust-box {
    max-width: 32rem;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 4rem;
  }

  .site-header {
    min-height: 4.1rem;
  }

  .brand-mark {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1.5rem;
  }

  .brand small {
    display: none;
  }

  nav {
    gap: 0.9rem;
  }

  nav > a:not(.nav-contact) {
    display: none;
  }

  .nav-contact {
    min-height: auto;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }

  .nav-contact:hover {
    background: var(--blue);
    color: white;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label {
    display: inline;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero::before {
    right: var(--page-pad);
    width: 3.5rem;
  }

  .hero::after {
    right: -0.08em;
    bottom: 0.1em;
    font-size: 17rem;
  }

  h1 {
    max-width: 9ch;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .proof-strip div {
    justify-content: flex-start;
    min-height: 4rem;
    padding: 0.8rem var(--page-pad);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .intro > p {
    padding-top: 0;
  }

  .courses,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hours-card {
    grid-column: auto;
  }

  .hours-card dl {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .steps-list li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .steps-list p {
    grid-column: 2;
  }

  .course-card {
    min-height: 18rem;
  }

  .contact-card {
    min-height: 7.5rem;
  }

  .map-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    padding-bottom: 1.5rem;
  }

  .mobile-contact {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 4rem;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(7, 22, 45, 0.12);
  }

  .mobile-contact a {
    display: grid;
    place-items: center;
    color: var(--blue);
    font-weight: 900;
  }

  .mobile-contact a:first-child {
    background: var(--red);
    color: white;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
