/* =========================================================
   NEW HOPE REHAB CENTER — GLOBAL STYLES (every page)

   1. Fonts
   2. Design tokens  ← change colours / fonts / sizes here
   3. Reset & base
   4. Layout helpers
   5. Buttons
   6. Topbar
   7. Header & navigation
   8. Page title strip
   9. Footer
   10. Utilities (placeholder marker, reveal animation)
   11. Responsive
   ========================================================= */

/* ---------- 1. Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff") format("woff");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* Brand colours — New Hope (client WordPress site) */
  --color-primary: #0072bc; /* blue: header, buttons, headings */
  --color-primary-hover: #005a96; /* darker blue for button hover */
  --color-primary-deep: #17224d; /* navy: topbar line, dark text */
  --color-gold: #7cb928; /* brand green: accents, lines, dots, gold button */
  --color-gold-dark: #4a7f14; /* darker green: small text labels, borders (readable on white) */
  --color-cream: #eaf4fb; /* light blue tint: topbar, hero box, soft sections */
  --color-cream-light: #f5f9fc; /* very light blue: about section, form fields */

  /* Text */
  --color-text: #17224d; /* navy body text, same as client headings */
  --color-text-muted: #4a5573; /* softer navy for paragraphs */
  --color-border: #d6e4ef;
  --color-white: #ffffff;

  /* Fonts */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Type scale (large and readable) */
  --fs-title: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  --fs-h2: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem);
  --fs-h3: clamp(1.55rem, 1.25rem + 1vw, 2.1rem);
  --fs-body: 1.125rem;
  --fs-large: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem);

  /* Layout */
  --container: 1400px;
  --gutter: clamp(20px, 3.2vw, 48px);
  --section-space: clamp(72px, 8vw, 120px);
  --radius: 8px;
  --header-height: 84px;
  /* Fonts */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Type scale (large and readable) */
  --fs-title: clamp(1.9rem, 1.3rem + 2vw, 3rem); /* page title strip */
  --fs-h2: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem);
  --fs-h3: clamp(1.55rem, 1.25rem + 1vw, 2.1rem);
  --fs-body: 1.125rem; /* 18px */
  --fs-large: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem);

  /* Layout */
  --container: 1400px;
  --gutter: clamp(20px, 3.2vw, 48px);
  --section-space: clamp(72px, 8vw, 120px);
  --radius: 8px;
  --header-height: 72px;
}

/* ---------- 3. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.45em;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-primary);
}

h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--color-gold-dark);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

.section--cream {
  background: var(--color-cream);
}

/* Centred section heading (used in most sections) */
.section-head {
  max-width: 880px;
  margin: 0 auto clamp(44px, 5vw, 72px);
  text-align: center;
}

.section-head h2 {
  margin-bottom: 0.35em;
}

.section-head p {
  font-size: var(--fs-large);
  color: var(--color-text-muted);
}

/* Small gold line under headings */
.rule {
  display: block;
  width: 72px;
  height: 2px;
  margin: 22px auto 0;
  background: var(--color-gold);
  border: 0;
}

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0.8rem 1.8rem;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    top 0.1s ease,
    box-shadow 0.1s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

/* Main button: burgundy with a gold "press" edge underneath */
.btn--primary {
  background: #7cb928;
  color: #fff;
  box-shadow: 0 3px 0 var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  top: 3px;
  box-shadow: none;
}

.hero__buttons .btn {
  color: #0072bc;
  transition: color 0.3s ease;
}

.hero__buttons .btn:hover {
  color: #ffffff !important;
}

.herocta .btn--primary {
  color: white;
  background: #0072bc;
}

.herocta .btn--primary:hover {
  background-color: rgb(57, 181, 74);
  color: yellow;
}

/* Outline button for light backgrounds */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1.5px var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Gold button for dark backgrounds */
.btn--gold {
  background: var(--color-gold);
  color: var(--color-primary);
  box-shadow: 0 3px 0 var(--color-gold-dark);
}

.btn--gold:hover {
  background: #e4c191;
}

.btn--gold:active {
  top: 3px;
  box-shadow: none;
}

.btn--block {
  width: 100%;
}

/* ---------- 6. Topbar ---------- */
.topbar {
  background: var(--color-cream);
  /* border-top: 3px solid var(--color-primary-deep); */
  /* border-bottom: 4px solid rgb(30, 196, 30); */
  color: var(--color-primary);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
}

.topbar__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #7cb928; */
  color: #7cb928;
  font-size: 1.35rem;
  font-family: "Inter", sans-serif;
  font-weight: 750;
  border: none;
  text-decoration: none;
}

.topbar__phone .icon {
  width: 25px;
  height: 25px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.topbar__links a,
.topbar__links span {
  font-size: 1.15rem;
  color: var(--color-primary);
  text-decoration: none;
}

.topbar__links a:hover {
  text-decoration: underline;
}

/* ---------- 7. Header & navigation ---------- */
/* ---------- 7. Header & navigation ---------- */

/* Header-only colors. Change them here and the whole menu updates. */
.site-header {
  --nav-text: #ffffff;
  --nav-accent: #f7801e; /* orange: hover + active */
  --nav-sub-bg: #0d3b78; /* navy dropdown panel */
  --nav-sub-hover: rgba(255, 255, 255, 0.07);
  --nav-sub-line: rgba(255, 255, 255, 0.08);

  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: clip; /* hidden fly-outs never cause sideways page scroll */
  background: var(--color-primary);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -16px rgba(5, 20, 45, 0.6);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 215px;
  height: auto;
}

/* Book Appointment button: desktop only. On smaller screens the hero
   "Admissions Enquiry" buttons open the same booking form. */
.header__book {
  display: none;
}

@media (min-width: 1241px) {
  /* Logo left · links centred · Book Appointment right */
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }

  .logo {
    justify-self: start;
  }

  .header__book {
    display: inline-flex;
    justify-self: end;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .header__book .icon {
    transition: transform 0.25s ease;
  }

  .header__book:hover .icon {
    transform: translateX(3px);
  }
}

/* Laptop widths: slightly tighter menu so all links (incl. Media) fit
   on one line between the logo and Book Appointment */
@media (min-width: 1241px) and (max-width: 1400px) {
  .header__inner {
    gap: 16px;
  }
  .nav__link {
    padding-inline: 9px;
  }
  .nav__link::after {
    left: 9px;
    right: 9px;
  }
  .header__book {
    padding-inline: 1rem;
  }
}

/* ---------- Top level ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 18px 14px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--nav-text);
  white-space: nowrap;
  text-decoration: none;
}

/* Orange bar that grows under the hovered / active link */
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 3px;
  border-radius: 3px;
  background: var(--nav-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__item:hover > .nav__parent .nav__link::after,
.nav__item:focus-within > .nav__parent .nav__link::after {
  transform: scaleX(1);
}

.nav__parent {
  display: flex;
  align-items: center;
}

.nav__parent .nav__link {
  padding-right: 4px;
}

.nav__parent .nav__link::after {
  right: 4px;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 40px;
  margin-right: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nav-text);
  cursor: pointer;
}

.nav__toggle .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.nav__item.is-open > .nav__parent .nav__toggle .icon {
  transform: rotate(180deg);
}

.nav__toggle:focus-visible,
.nav__link:focus-visible,
.nav__sub a:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: -2px;
}

/* ---------- Dropdown panels (desktop) ---------- */
@media (min-width: 1241px) {
  .nav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 240px;
    padding: 8px 0;
    background: var(--nav-sub-bg);
    border-top: 3px solid var(--nav-accent);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 22px 40px -18px rgba(5, 20, 45, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s;
  }

  /* Second and third level: open beside their parent row */
  .nav__sub .nav__sub {
    top: -8px; /* lines the first item up with its parent */
    left: 100%;
    border-top: 0;
    border-left: 3px solid var(--nav-accent);
    border-radius: 0 8px 8px 0;
    transform: translateX(10px);
  }

  /* Not enough room on the right? (class added by JS)
     this branch and everything inside it opens to the left */
  .nav__sub li.is-flipped .nav__sub {
    left: auto;
    right: 100%;
    border-left: 0;
    border-right: 3px solid var(--nav-accent);
    border-radius: 8px 0 0 8px;
    transform: translateX(-10px);
  }

  /* Open only the DIRECT child menu (the ">" stops all levels opening together) */
  .nav__item:hover > .nav__sub,
  .nav__item:focus-within > .nav__sub,
  .nav__item.is-open > .nav__sub,
  .nav__sub li:hover > .nav__sub,
  .nav__sub li:focus-within > .nav__sub,
  .nav__sub li.is-open > .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__sub li {
    position: relative;
  }

  .nav__sub a {
    display: block;
    padding: 11px 22px;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--nav-text);
    white-space: nowrap; /* every item stays on one line */
    text-decoration: none;
    transition:
      color 0.2s ease,
      background-color 0.2s ease;
  }

  /* Hover / active row: orange text + soft highlight */
  .nav__sub li:hover > a,
  .nav__sub li:hover > .nav__parent,
  .nav__sub li:focus-within > .nav__parent {
    background: var(--nav-sub-hover);
  }

  .nav__sub a:hover,
  .nav__sub a[aria-current="page"],
  .nav__sub li:hover > .nav__parent > a,
  .nav__sub li:focus-within > .nav__parent > a {
    color: var(--nav-accent);
  }

  /* Rows that have their own fly-out: text left, arrow right */
  .nav__sub .nav__parent {
    justify-content: space-between;
    padding-right: 10px;
    transition: background-color 0.2s ease;
  }

  .nav__sub .nav__parent > a {
    flex: 1;
    padding-right: 6px;
  }

  .nav__sub .nav__toggle {
    margin: 0;
    height: 32px;
  }

  .nav__sub .nav__toggle .icon {
    transform: rotate(-90deg); /* chevron points right */
  }

  .nav__sub li.is-flipped .nav__toggle .icon {
    transform: rotate(90deg); /* points left when menu opens left */
  }

  .nav__sub li:hover > .nav__parent .nav__toggle,
  .nav__sub li:focus-within > .nav__parent .nav__toggle {
    color: var(--nav-accent);
  }

  .nav__item:hover > .nav__parent .nav__toggle .icon {
    transform: rotate(180deg);
  }

  .menu-btn {
    display: none;
  }
}

/* ---------- Mobile, tablet & small laptop menu ---------- */
@media (max-width: 1240px) {
  .logo img {
    width: 170px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--nav-text);
    cursor: pointer;
  }

  .menu-btn .icon {
    width: 24px;
    height: 24px;
  }

  .menu-btn .icon-close,
  .menu-btn[aria-expanded="true"] .icon-open {
    display: none;
  }

  .menu-btn[aria-expanded="true"] .icon-close {
    display: block;
  }

  /* Slide-down panel under the header */
  .nav {
    position: fixed;
    top: var(--nav-top, var(--header-height));
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 12px 20px 32px;
    overflow-y: auto;
    background: var(--nav-sub-bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item {
    border-bottom: 1px solid var(--nav-sub-line);
  }

  .nav__link {
    display: flex;
    flex: 1;
    padding: 15px 0;
    white-space: normal;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link[aria-current="page"],
  .nav__sub a:hover,
  .nav__sub a[aria-current="page"],
  .is-open > .nav__parent > a {
    color: var(--nav-accent);
  }

  .nav__parent .nav__link {
    padding-right: 0;
  }

  /* Bigger tap target for the arrow */
  .nav__toggle {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .is-open > .nav__parent > .nav__toggle .icon {
    transform: rotate(180deg);
  }

  /* Sub-menus become accordions */
  .nav__sub {
    display: none;
    margin: 0 0 10px 6px;
    padding-left: 14px;
    border-left: 2px solid var(--nav-accent);
  }

  .is-open > .nav__sub {
    display: block;
    animation: nav-fade 0.25s ease;
  }

  .nav__sub a {
    display: block;
    flex: 1;
    padding: 11px 0;
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
  }

  .nav__cta {
    justify-content: center;
    width: 100%;
  }

  body.nav-open {
    overflow: hidden; /* stop the page scrolling behind the menu */
  }
}

@keyframes nav-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-header *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Call button only shows inside the mobile menu */
.nav__cta {
  display: none;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(218, 178, 125, 0.5);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-gold);
  cursor: pointer;
}

.menu-btn .icon {
  width: 26px;
  height: 26px;
}

.menu-btn .icon-close {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- 8. Page title strip (white band under the hader) ---------- */
.page-title {
  padding: clamp(12px, 1.2vw, 36px) 0;
  background: var(--color-white);
  text-align: center;
}

.page-title h1 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---------- 9. Footer ---------- */
/* Footer-only colours. Change them here and the whole footer updates. */
.site-footer {
  --footer-bg: var(--color-primary); /* header blue */
  --footer-bar: var(--color-primary-hover); /* darker blue: copyright strip */
  --footer-text: #ffffff;
  --footer-accent: var(--color-gold); /* brand green */
  --footer-social: #39b54a; /* same green as the topbar social buttons */
  --footer-glow: rgba(124, 185, 40, 0.55);

  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 1.125rem;
  line-height: 1.7;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding-block: 96px 72px;
}

.footer__top > * {
  min-width: 0; /* long words wrap instead of widening the column */
}

/* Logo text: name above tagline */
.site-footer .logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer .logo__name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 1.4rem + 0.6vw, 1.9rem);
  line-height: 1.1;
}

.site-footer .logo__tag {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.footer__about {
  max-width: 36ch;
  margin-top: 22px;
}

/* White heading with a short green line underneath */
.footer__title {
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--footer-text);
}

.footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--footer-accent);
}

.footer__links li {
  line-height: 1.5;
}

.footer__links li + li {
  margin-top: 14px;
}

/* Links: white, green underline + soft glow on hover / keyboard focus */
.site-footer a {
  color: var(--footer-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition:
    text-decoration-color 0.25s ease,
    text-shadow 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration-color: var(--footer-accent);
  text-shadow: 0 0 12px var(--footer-glow);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--footer-text);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.5;
}

.footer__contact li > :not(.icon) {
  min-width: 0; /* lets the long email address wrap on small phones */
}

/* Rows without an icon line up with the text of the other rows */
.footer__contact li:not(:has(.icon)) {
  padding-left: calc(1.15em + 14px);
}

.footer__contact li + li {
  margin-top: 16px;
}

.footer__contact .icon {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.18em;
  color: var(--color-cream);
}

/* Social buttons: circular like the topbar ones, 46px touch target */
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-footer .footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--footer-text);
  overflow: visible;
}

/* Official brand colours for each network */
.site-footer .footer__social-link--facebook {
  background: #1877f2;
  box-shadow: none;
}

.site-footer .footer__social-link--instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  box-shadow: none;
}

.site-footer .footer__social-link--youtube {
  background: #ffffff;
  box-shadow: none;
}

.site-footer .footer__social-link--youtube svg {
  width: 24px;
  height: 24px;
  fill: #ff0000;
}

.site-footer .footer__social-link--tiktok {
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.site-footer .footer__social-link--facebook svg,
.site-footer .footer__social-link--instagram svg,
.site-footer .footer__social-link--tiktok svg {
  fill: #ffffff;
}

.site-footer .footer__social-link:hover,
.site-footer .footer__social-link:focus-visible {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.site-footer .footer__social-link:focus-visible {
  border-radius: 50%;
}

.footer__bottom {
  background: var(--footer-bar);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px;
  font-size: 1rem;
  line-height: 1.6;
}

.footer__bottom-inner p {
  margin: 0;
}

/* Developer credit: larger, green, gentle glow (no movement) */
.site-footer .footer__credit {
  margin-left: 2px;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--footer-accent);
  text-shadow: 0 0 10px rgba(124, 185, 40, 0.4);
}

.site-footer .footer__credit:hover,
.site-footer .footer__credit:focus-visible {
  text-decoration-color: currentColor;
  text-shadow:
    0 0 6px rgba(124, 185, 40, 0.6),
    0 0 18px rgba(124, 185, 40, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer__social-link:hover,
  .site-footer .footer__social-link:focus-visible {
    transform: none;
  }
}

/* ---------- 10. Utilities ---------- */

/* Marks text still waiting for real client information.
   Search the HTML for class="ph" and replace each one. */
.ph {
  padding: 0 4px;
  border-radius: 3px;
  /* outline: 1px dashed #c9853f; */
  /* background: rgba(218, 178, 125, 0.22); */
}

.quickcta {
  color: #0072bc !important;
}

/* Fade-up on scroll (main.js adds .is-visible, then .is-revealed when done).
   Only active when JS runs, so nothing is hidden without JS.
   .reveal-group children get their stagger from --reveal-delay (main.js). */
.js .reveal:not(.is-revealed),
.js .reveal-group > :not(.is-revealed) {
  transition:
    opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal:not(.is-visible),
.js .reveal-group:not(.is-visible) > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

/* Fade only: for full-bleed images, where movement would show a gap */
.js .reveal--fade:not(.is-visible) {
  transform: none;
}

/* ---------- Smooth scrolling (Lenis, see smooth-scroll.js) ---------- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Keep the wheel on the page while it glides past the map / video embeds */
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1200px) {
  .nav__link {
    padding-inline: 11px;
    font-size: 1.05rem;
  }

  .nav__link::after {
    left: 11px;
    right: 11px;
  }
}

/* Tablet & mobile: slide-down menu */
@media (max-width: 991px) {
  :root {
    --header-height: 72px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .topbar__inner {
    min-height: 52px;
  }

  .topbar__phone {
    font-size: 1.2rem;
  }

  .topbar__links {
    gap: 24px;
  }

  .topbar__links a,
  .topbar__links span {
    font-size: 1rem;
  }

  .logo__name {
    font-size: 1.55rem;
  }

  .nav {
    position: fixed;
    inset: var(--nav-top, 136px) 0 0 0;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 12px var(--gutter) 40px;
    background: var(--color-primary);
    border-top: 1px solid rgba(218, 178, 125, 0.25);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item {
    border-bottom: 1px solid rgba(218, 178, 125, 0.22);
  }

  .nav__parent {
    justify-content: space-between;
  }

  .nav__link {
    width: 100%;
    padding: 18px 0;
    font-size: 1.25rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__toggle {
    width: 48px;
    height: 48px;
    margin: 0;
  }

  .nav__sub {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 14px 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav__item:hover .nav__sub,
  .nav__item:focus-within .nav__sub {
    display: none;
  }

  .nav__item.is-open .nav__sub {
    display: block;
  }

  .nav__sub a {
    padding: 10px 0;
    color: var(--color-cream);
  }

  .nav__sub a:hover {
    padding-left: 6px;
    background: none;
  }

  .nav__cta {
    display: flex;
    margin-top: 28px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .topbar__links .topbar__hide-sm {
    display: none;
  }

  .topbar__phone,
  .topbar__links a {
    white-space: nowrap;
  }

  .topbar__phone {
    gap: 8px;
    font-size: 1.16rem;
  }

  .topbar__phone .icon {
    width: 23px;
    height: 23px;
  }

  .topbar__links a {
    font-size: 0.95rem;
  }

  .page-title h1 {
    font-size: 1.7rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 72px 56px;
  }

  /* Copyright and credit stacked and centred */
  .footer__bottom-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  /* Keep the developer name together on its own line */
  .site-footer .footer__credit {
    display: inline-block;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal:not(.is-visible),
  .js .reveal-group:not(.is-visible) > * {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   CLIENT COLOUR ADJUSTMENTS (blue / green theme)
   Keeps text readable on the blue hader and replaces
   leftover beige/burgundy values.
   ========================================================= */

/* Hader: white text on blue, green underline on hover */
.logo,
.nav__link,
.nav__toggle,
.menu-btn {
  color: #ffffff;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: #ffffff;
}

.nav__link::after {
  background: var(--color-gold);
}

.menu-btn {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Green button: navy text (white on this green is too faint) */
.btn--gold,
.btn--gold:hover {
  color: var(--color-primary-deep);
}

/* Lines that were beige */
.field input,
.field textarea {
  border-color: var(--color-border);
}

.field input:focus,
.field textarea:focus {
  box-shadow: 0 0 0 3px rgba(124, 185, 40, 0.35);
}

@media (max-width: 991px) {
  .nav {
    border-top-color: rgba(255, 255, 255, 0.2);
  }

  .nav__item {
    border-bottom-color: rgba(255, 255, 255, 0.2);
  }
}

/* socaial links */

.topbar__social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__social-link {
  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #39b54a;
  border-radius: 50%;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.topbar__social-link svg {
  width: 20px;
  height: 20px;

  fill: #ffffff;

  transition: fill 0.25s ease;
}

.topbar__social-link:hover {
  background: #39b54a;
  transform: translateY(-2px);

  box-shadow: 0 4px 12px rgba(57, 181, 74, 0.35);
}

.topbar__social-link:hover svg {
  fill: #ffffff;
}

/* Tablet */
@media (max-width: 991px) {
  .topbar__social {
    gap: 6px;
  }

  .topbar__social-link {
    width: 28px;
    height: 28px;
  }

  .topbar__social-link svg {
    width: 14px;
    height: 14px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .topbar__social {
    gap: 5px;
  }

  .topbar__social-link {
    width: 29px;
    height: 29px;
  }

  .topbar__social-link svg {
    width: 15px;
    height: 15px;
  }
}

/* Very small phones (320px): tighter topbar spacing so it fits the screen */
@media (max-width: 374px) {
  .topbar__inner {
    gap: 8px;
  }

  .topbar__phone {
    gap: 6px;
    font-size: 1rem;
  }

  .topbar__phone .icon {
    width: 20px;
    height: 20px;
  }

  .topbar__social {
    gap: 3px;
  }

  .topbar__social-link {
    width: 26px;
    height: 26px;
  }
}

/* =========================================================
   MOBILE ACTION BAR
   Call / Admissions buttons fixed to the bottom on mobile.
   No bar background: each button carries its own brand colour
   (Call = brand blue, Admissions = brand green).
   ========================================================= */
.mobile-cta {
  display: none;
}

@media (max-width: 767px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80; /* under the open mobile menu (90) and the header (100) */
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: none;
    box-shadow: 0 -6px 18px -10px rgba(5, 20, 45, 0.45);
  }

  /* Edge-to-edge halves: colour runs into the safe area, label stays above it */
  .mobile-cta .btn {
    gap: 8px;
    min-width: 0;
    min-height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 10px calc(8px + env(safe-area-inset-bottom, 0px));
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-cta .btn .icon {
    width: 24px;
    height: 24px;
  }

  /* Call Now: brand blue */
  .mobile-cta .btn:first-child,
  .mobile-cta .btn:first-child:hover {
    background: var(--color-primary);
    color: #ffffff;
  }

  /* Admissions Enquiry: brand green, navy text for contrast */
  .mobile-cta .btn:last-child,
  .mobile-cta .btn:last-child:hover {
    background: #1edb39;
    color: var(--color-primary-deep);
  }

  .mobile-cta .btn:active {
    top: 0;
    filter: brightness(0.92);
  }

  .mobile-cta .btn:focus-visible {
    outline: 3px solid var(--color-primary-deep);
    outline-offset: -3px;
  }

  /* Room at the end of every page so the bar never covers the footer */
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

/* =========================================================
   SCROLL INDICATOR (mobile / touch tablets)
   The browser scrollbar is hidden and replaced by a 3px overlay
   thumb (built in sections.js) that only shows while scrolling.
   It is position: fixed, so it never takes page width.
   ========================================================= */
.nh-scroll {
  display: none;
}

@media (max-width: 767px), (max-width: 1023px) and (pointer: coarse) {
  html {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    display: none;
  }

  .nh-scroll {
    position: fixed;
    top: 6px;
    right: 2px;
    bottom: 6px;
    z-index: 85; /* above the action bar (80), under the menu (90) */
    display: block;
    width: 3px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
  }

  .nh-scroll.is-active {
    opacity: 1;
    transition-duration: 0.15s;
  }

  .nh-scroll span {
    display: block;
    width: 100%;
    height: var(--nh-thumb, 40px);
    border-radius: 3px;
    background: rgba(23, 34, 77, 0.35);
    will-change: transform;
  }
}

@media (max-width: 767px) {
  /* Keep the thumb clear of the action bar */
  .nh-scroll {
    bottom: calc(var(--nh-action-height, 66px) + 6px);
  }
}

/* =========================================================
   BOOKING MODAL
   Colours use your existing :root brand variables, with the
   brand hex values as fallbacks.
   ========================================================= */
.booking {
  --bk-blue: var(--color-primary, #0072bc);
  --bk-navy: #0072bc;
  --bk-green: #7cb928;
  --bk-orange: #1ec41e;
  --bk-text: #1c2541;
  --bk-muted: #5f6b85;
  --bk-line: #dfe5ef;
  --bk-field: #f6f8fc;
  --bk-error: #c62f2f;
  --bk-radius: 18px;
  --bk-ease: cubic-bezier(0.22, 1, 0.36, 1); /* soft "settle" curve */

  /* reset the browser's default <dialog> box */
  width: min(980px, calc(100% - 40px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bk-text);
  overflow: visible;
}

/* Dimmed + blurred page behind the form */
.booking::backdrop {
  background: rgba(13, 22, 48, 0.5);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  backdrop-filter: blur(7px) saturate(120%);
  animation: bk-backdrop-in 0.45s ease both;
}

.booking.is-closing::backdrop {
  animation: bk-backdrop-out 0.38s ease both;
}

@keyframes bk-backdrop-in {
  from {
    opacity: 0;
  }
}

@keyframes bk-backdrop-out {
  to {
    opacity: 0;
  }
}

.booking [hidden] {
  display: none !important;
}

body.booking-open {
  overflow: hidden;
}

/* ---------- Panel ---------- */
.booking__panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  border-radius: var(--bk-radius);
  background: #fff;
  box-shadow:
    0 40px 80px -30px rgba(10, 20, 50, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  will-change: transform, opacity;
}

/* ---------- Left side ---------- */
.booking__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 32px;
  overflow: hidden;
  background: var(--bk-navy);
  color: #fff;
}

/* thin brand line along the top + one quiet circle for depth */
.booking__aside::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--bk-blue), var(--bk-green));
}

.booking__aside::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.025);
}

.booking__eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bk-green);
}

.booking__aside-title {
  margin: 0 0 32px;
  font-size: 1.45rem;
  line-height: 1.35;
  font-weight: 600;
}

.booking__steps-info {
  display: grid;
  gap: 18px;
  margin: 0 0 auto;
  padding: 0;
  list-style: none;
}

.booking__steps-info li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.booking__steps-info span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.booking__call {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.booking__call svg {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: var(--bk-orange);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  transition: transform 0.3s var(--bk-ease);
}

.booking__call:hover svg {
  transform: rotate(-12deg) scale(1.06);
}

.booking__call span {
  display: grid;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.booking__call strong {
  font-size: 1.05rem;
  color: #fff;
}

/* ---------- Right side ---------- */
.booking__main {
  position: relative;
  max-height: calc(
    100dvh - 40px
  ); /* long form scrolls inside, page stays still */
  padding: 36px 40px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.booking__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bk-field);
  color: var(--bk-muted);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.35s var(--bk-ease);
}

.booking__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.booking__close:hover {
  background: #ffe9d8;
  color: var(--bk-orange);
  transform: rotate(90deg);
}

.booking__head {
  margin-bottom: 22px;
}

.booking__title {
  margin: 0 0 6px;
  padding-right: 48px;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--bk-navy);
}

.booking__desc {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--bk-muted);
}

.booking__progress {
  display: grid;
  gap: 8px;
}

.booking__progress-label {
  font-size: 0.82rem;
  color: var(--bk-muted);
}

.booking__progress-label b {
  color: var(--bk-blue);
}

.booking__progress-label i {
  font-style: normal;
  font-weight: 600;
  color: var(--bk-text);
}

.booking__progress-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bk-line);
}

.booking__progress-bar span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bk-blue), var(--bk-green));
  transition: width 0.6s var(--bk-ease);
}

.booking[data-current-step="2"] .booking__progress-bar span {
  width: 100%;
}

/* ---------- Steps ---------- */
.booking__step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.booking__step.is-leaving-next {
  animation: bk-step-out-left 0.28s var(--bk-ease) both;
}
.booking__step.is-leaving-back {
  animation: bk-step-out-right 0.28s var(--bk-ease) both;
}
.booking__step.is-entering-next {
  animation: bk-step-in-right 0.45s var(--bk-ease) both;
}
.booking__step.is-entering-back {
  animation: bk-step-in-left 0.45s var(--bk-ease) both;
}

@keyframes bk-step-out-left {
  to {
    opacity: 0;
    transform: translateX(-36px);
  }
}
@keyframes bk-step-out-right {
  to {
    opacity: 0;
    transform: translateX(36px);
  }
}
@keyframes bk-step-in-right {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
}
@keyframes bk-step-in-left {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
}

/* Fields rise in one after another when the modal opens */
.booking.is-entering .booking__head,
.booking.is-entering .booking__step.is-active > .bk-field,
.booking.is-entering .booking__step.is-active > .bk-row,
.booking.is-entering .booking__actions,
.booking.is-entering .booking__aside > * {
  animation: bk-rise 0.6s var(--bk-ease) both;
}

.booking.is-entering .booking__step.is-active > :nth-child(2) {
  animation-delay: 0.16s;
}
.booking.is-entering .booking__step.is-active > :nth-child(3) {
  animation-delay: 0.22s;
}
.booking.is-entering .booking__step.is-active > :nth-child(4) {
  animation-delay: 0.28s;
}
.booking.is-entering .booking__step.is-active > :nth-child(5) {
  animation-delay: 0.34s;
}
.booking.is-entering .booking__actions {
  animation-delay: 0.4s;
}
.booking.is-entering .booking__head {
  animation-delay: 0.1s;
}
.booking.is-entering .booking__aside > :nth-child(1) {
  animation-delay: 0.12s;
}
.booking.is-entering .booking__aside > :nth-child(2) {
  animation-delay: 0.18s;
}
.booking.is-entering .booking__aside > :nth-child(3) {
  animation-delay: 0.24s;
}
.booking.is-entering .booking__aside > :nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes bk-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Fields ---------- */
.bk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.bk-field {
  margin-bottom: 18px;
}

.bk-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bk-text);
}

.bk-label em {
  font-style: normal;
  color: var(--bk-orange);
}

.bk-opt {
  font-weight: 400;
  color: var(--bk-muted);
}

.bk-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 2.5px solid var(--bk-line);
  border-radius: 10px;
  background: var(--bk-field);
  font: inherit;
  font-size: 0.97rem;
  color: var(--bk-text);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bk-input::placeholder {
  color: #9aa4b8;
}

.bk-input:hover {
  border-color: #c5cfdf;
}

.bk-input:focus {
  outline: none;
  border-color: var(--bk-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 114, 188, 0.14);
}

textarea.bk-input {
  min-height: 76px;
  resize: vertical;
}

/* custom arrow for selects */
.bk-select {
  position: relative;
}

.bk-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--bk-muted);
  border-bottom: 2px solid var(--bk-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.bk-select select {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* ---------- Choice chips (styled radio buttons) ---------- */
.bk-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.bk-chips--2 {
  grid-template-columns: repeat(2, 1fr);
}
.bk-chips--3 {
  grid-template-columns: repeat(3, 1fr);
}

.bk-chip {
  position: relative;
  cursor: pointer;
}

.bk-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bk-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 8px;
  border: 1.5px solid var(--bk-line);
  border-radius: 10px;
  background: var(--bk-field);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  color: var(--bk-text);
  transition: all 0.25s var(--bk-ease);
}

.bk-chip:hover span {
  border-color: #b9c6db;
  transform: translateY(-1px);
}

.bk-chip input:checked + span {
  border-color: var(--bk-blue);
  background: rgba(0, 114, 188, 0.08);
  color: var(--bk-blue);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--bk-blue);
  animation: bk-pop 0.35s var(--bk-ease);
}

.bk-chip input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(0, 114, 188, 0.2);
}

@keyframes bk-pop {
  40% {
    transform: scale(0.96);
  }
}

/* ---------- Consent ---------- */
.bk-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--bk-muted);
  cursor: pointer;
}

.bk-consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--bk-blue);
  cursor: pointer;
}

/* ---------- Errors ---------- */
.bk-error {
  min-height: 0;
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--bk-error);
}

.bk-error:empty {
  display: none;
}

.is-invalid .bk-input,
.is-invalid .bk-chip span,
.bk-input.is-invalid {
  border-color: var(--bk-error);
  background: #fff6f6;
}

.is-invalid {
  animation: bk-shake 0.4s ease;
}

@keyframes bk-shake {
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

/* ---------- Buttons ---------- */
.booking__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--bk-line);
}

.bk-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.25s var(--bk-ease),
    box-shadow 0.25s ease;
}

.bk-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--bk-ease);
}

.bk-btn--primary {
  background: var(--bk-orange);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(247, 128, 30, 0.9);
}

.bk-btn--primary:hover {
  background: #e86f0c;
  transform: translateY(-2px);
}

.bk-btn--primary:hover svg {
  transform: translateX(3px);
}

.bk-btn--ghost {
  margin-right: auto;
  background: transparent;
  color: var(--bk-muted);
}

.bk-btn--ghost:hover {
  color: var(--bk-navy);
}

.bk-btn--ghost:hover svg {
  transform: translateX(-3px);
}

.bk-btn:focus-visible,
.booking__close:focus-visible,
.booking__call:focus-visible {
  outline: 3px solid rgba(0, 114, 188, 0.45);
  outline-offset: 2px;
}

/* loading state while sending */
.bk-spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
}

.bk-btn.is-loading {
  pointer-events: none;
}

.bk-btn.is-loading .bk-btn__text {
  opacity: 0;
}

.bk-btn.is-loading .bk-spinner {
  opacity: 1;
  animation: bk-spin 0.7s linear infinite;
}

@keyframes bk-spin {
  to {
    transform: rotate(360deg);
  }
}

.booking__note {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--bk-muted);
}

.booking__note a {
  font-weight: 700;
  color: var(--bk-error);
}

/* ---------- Success screen ---------- */
.booking__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 20px;
  text-align: center;
  outline: none;
  animation: bk-rise 0.6s var(--bk-ease) both;
}

.booking__success[hidden] {
  display: none;
}

.booking__success h3 {
  margin: 22px 0 10px;
  font-size: 1.6rem;
  color: var(--bk-navy);
}

.booking__success p strong {
  white-space: nowrap;
}

.booking__success p {
  max-width: 380px;
  margin: 0 0 28px;
  line-height: 1.6;
  color: var(--bk-muted);
}

.bk-check {
  width: 88px;
  height: 88px;
  fill: none;
  stroke: var(--bk-green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bk-check circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: bk-draw 0.7s var(--bk-ease) 0.15s forwards;
}

.bk-check path {
  stroke-width: 3.5;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: bk-draw 0.45s var(--bk-ease) 0.7s forwards;
}

@keyframes bk-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .booking {
    width: min(620px, calc(100% - 32px));
  }

  .booking__panel {
    grid-template-columns: 1fr;
  }

  .booking__aside {
    display: none;
  }
}

/* ---------- Mobile: bottom sheet ---------- */
@media (max-width: 600px) {
  .booking {
    width: 100%;
    margin: auto 0 0; /* sits on the bottom edge */
  }

  .booking__panel {
    border-radius: 22px 22px 0 0;
  }

  /* little grab handle */
  .booking__main::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin: -14px auto 18px;
    border-radius: 5px;
    background: var(--bk-line);
  }

  .booking__main {
    max-height: 92dvh;
    padding: 26px 20px 22px;
  }

  .booking__close {
    top: 14px;
    right: 14px;
  }

  .booking__title {
    font-size: 1.45rem;
  }

  .bk-row {
    grid-template-columns: 1fr;
  }

  .bk-chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .bk-chips--3 {
    grid-template-columns: 1fr;
  }

  .booking__actions {
    position: sticky;
    bottom: -22px;
    margin: 8px -20px 0;
    padding: 16px 20px 22px;
    background: #fff;
  }

  .booking__actions .bk-btn--primary {
    flex: 1;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .booking *,
  .booking::backdrop {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .bk-check circle,
  .bk-check path {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1240px) {
  .menu-btn {
    display: inline-flex;
  }
}
