/* ==========================================================================
   Future Memorial Public School — static website stylesheet
   --------------------------------------------------------------------------
   Plain HTML5 + CSS. No build step, no framework, no JavaScript required for
   layout or content. Colours and type are taken from the existing WordPress
   site's Elementor kit so this looks like the same school:

     primary   #1C41B0   secondary (gold) #FFBF00
     CTA red   #E61919   navy  #1B2232   light #E8EBF7   off-white #F3F4F7
     headings  "Playfair Display"        body  "Inter", system stack
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  --brand: #1c41b0;
  --brand-dark: #16337f;
  --brand-tint: #e8ebf7;
  --gold: #ffbf00;
  --gold-dark: #d99f00;
  --cta: #e61919;
  --cta-dark: #bf1212;
  --navy: #1b2232;
  --navy-soft: #26304a;
  --text: #333333;
  --muted: #5b6172;
  --line: #e2e5ee;
  --offwhite: #f3f4f7;
  --white: #ffffff;

  --radius: 7px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(27, 34, 50, 0.06);
  --shadow: 0 8px 26px rgba(27, 34, 50, 0.09);
  --shadow-lg: 0 18px 48px rgba(27, 34, 50, 0.16);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;

  --maxw: 1180px;
  /* The live site runs the top bar and the blue header wider than the page
     content, which is what puts the crest hard against the left edge. */
  --maxw-wide: 1300px;
  --gutter: 20px;
  --section-y: clamp(48px, 7vw, 88px);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Keyboard users land here first. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--offwhite);
}

.section--tint {
  background: var(--brand-tint);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.lead {
  font-size: 1.075rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--cta);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--cta-dark);
  color: var(--white);
}

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

.btn--brand:hover {
  background: var(--brand-dark);
  color: var(--white);
}

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

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

.btn--ghost {
  background: rgba(243, 244, 247, 0.15);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white);
}

.btn--ghost:hover {
  background: rgba(243, 244, 247, 0.3);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

.btn--outline:hover {
  background: var(--brand);
  color: var(--white);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   5. Top bar & header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--navy);
  color: #c9d1e4;
  font-size: 0.86rem;
}

.topbar .container {
  max-width: var(--maxw-wide);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  padding-block: 7px;
}

.topbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar li {
  margin: 0;
}

.topbar a {
  color: #c9d1e4;
  text-decoration: none;
}

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

.topbar svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.topbar .topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* A solid brand-blue bar carrying a large crest and the school name, exactly
   as the live site does — with the Login button added on the right. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  border-bottom: 0;
  box-shadow: 0 2px 14px rgba(27, 34, 50, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--maxw-wide);
  min-height: 90px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  color: #f3f4f7;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 13px 20px;
  border-radius: 15px;
  color: #f3f4f7;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.main-nav a:hover {
  background: rgba(243, 244, 247, 0.15);
  color: var(--white);
}

/* The current page is a gold pill with navy text, as on the live site. */
.main-nav a[aria-current="page"] {
  background: var(--gold);
  color: var(--navy);
  border-radius: 15px;
}

/* The Login button lives in the header bar on desktop and inside the
   collapsed panel on small screens, so it never appears twice. */
.nav-login {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(243, 244, 247, 0.12);
  border: 1px solid rgba(243, 244, 247, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #f3f4f7;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero & page banners
   -------------------------------------------------------------------------- */

/* The banner mirrors the live site: the school photograph full-bleed behind a
   brand-blue gradient, with the crest, school name, gold rule and both calls
   to action centred on top. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
  background-image: url("../img/hero-banner.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--brand-dark);
  /* Fills the rest of the first screen, allowing for the top bar and the
     header above it (the live site's 90vh against its 90px header). */
  min-height: clamp(520px, calc(100vh - 130px), 900px);
  padding-block: clamp(56px, 8vw, 110px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* The live overlay, reproduced: brand blue at 62% over the top third,
     opaque from 61% down, then faded to 77% so the photograph still reads. */
  background-image: linear-gradient(
    182deg,
    rgba(28, 65, 176, 0.62) 32%,
    var(--brand) 61%
  );
  opacity: 0.77;
}

.hero-inner {
  max-width: 980px;
  margin-inline: auto;
}

.hero-crest {
  width: 105px;
  height: 105px;
  margin: 0 auto 22px;
  border: 5px solid rgba(255, 191, 0, 0.63);
  border-radius: 50%;
  background: var(--white);
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  color: #f3f4f7;
  margin-bottom: 0;
}

/* The short gold rule under the school name. */
.hero-rule {
  display: block;
  width: 126px;
  height: 6px;
  margin: 20px auto 24px;
  border-radius: 3px;
  background: var(--gold);
}

.hero-tagline {
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 500;
  color: #f3f4f7;
  margin-bottom: 0.5em;
}

.hero-classes {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2em;
}

.hero-actions {
  justify-content: center;
}

.hero-actions .btn {
  min-width: 260px;
  padding: 19px 26px;
}

.page-banner {
  background: var(--navy) linear-gradient(
    110deg,
    var(--navy) 0%,
    var(--brand) 100%
  );
  color: var(--white);
  padding-block: clamp(38px, 6vw, 66px);
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 0.25em;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  max-width: 68ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--flat {
  box-shadow: none;
}

.card--flat:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.icon-badge--gold {
  background: rgba(255, 191, 0, 0.18);
  color: var(--gold-dark);
}

/* Feature card with photo on top */
.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card .media-body {
  padding: 22px 24px 26px;
}

.media-card h3 {
  margin-bottom: 0.35em;
}

.media-card p:last-child {
  margin-bottom: 0;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.checklist svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--brand);
}

.checklist strong {
  display: block;
  color: var(--navy);
}

.checklist span {
  color: var(--muted);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   8. Split (text + image) blocks
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.split--reverse .split-media {
  order: -1;
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lead-quote {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 18px;
  margin: 0 0 1.4em;
  font-family: var(--font-head);
  font-size: 1.12rem;
  color: var(--navy);
}

/* A photograph inside a card, e.g. the management team on the About page. */
.card-photo {
  width: 100%;
  margin-top: 18px;
  border-radius: var(--radius);
}

/* Footnote under the photo cards on the facilities page. */
.facility-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Signature under the principal's message. */
.principal-sign {
  margin-top: 1.4em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
}

.principal-sign strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--navy);
}

.principal-sign span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Notice / placeholder block */
.note {
  background: #fffaf0;
  border: 1px dashed var(--gold-dark);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: #6b5300;
  font-size: 0.95rem;
}

.note strong {
  color: #4a3a00;
}

.note p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Gallery
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   10. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--brand) linear-gradient(
    100deg,
    var(--brand) 0%,
    var(--brand-dark) 100%
  );
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   11. Contact & forms
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
}

.info-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--brand);
}

.info-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.94rem;
}

.info-list a {
  color: var(--brand);
  text-decoration: none;
}

.info-list a:hover {
  text-decoration: underline;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd5e4;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(28, 65, 176, 0.16);
  outline-offset: 0;
}

.field .hint {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.field--check input {
  width: auto;
  margin-top: 4px;
  flex: none;
}

.field--check label {
  margin: 0;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: #edf7ed;
  border: 1px solid #b6dfb6;
  color: #1e5b1e;
}

.form-status--err {
  background: #fdecec;
  border: 1px solid #f2b8b8;
  color: #8c1c1c;
}

/* --------------------------------------------------------------------------
   12. Prose pages (policies)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 76ch;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.1rem;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: 0.94rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--offwhite);
  color: var(--navy);
}

.meta-line {
  font-size: 0.88rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 2rem;
}

.policy-nav {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-nav a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.policy-nav a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.policy-nav a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
}

.policy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #b9c2d6;
  padding-block: clamp(44px, 6vw, 68px) 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1em;
}

.site-footer h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 10px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--white);
  line-height: 1.25;
}

.site-footer p {
  font-size: 0.93rem;
  color: #b9c2d6;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a {
  color: #b9c2d6;
  text-decoration: none;
  font-size: 0.93rem;
}

.site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 5px;
  color: var(--gold);
}

.footer-bottom {
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.86rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  /* Keep the seven header items on one line as the viewport narrows. */
  .main-nav a {
    padding: 11px 14px;
    font-size: 0.9rem;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.94rem;
  }
}

@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .policy-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 960px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .split--reverse .split-media {
    order: 0;
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  /* Navigation collapses into a panel toggled by the hamburger. */
  .nav-toggle {
    display: inline-flex;
  }

  /* Between a phone and a laptop the postal address wraps the top strip onto a
     second line, which pushes the banner's buttons just below the first
     screen. The address is in the footer of every page. */
  .topbar ul:last-child {
    display: none;
  }

  .site-header .container {
    min-height: 76px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  /* The collapsed menu keeps the blue bar and sits under it. */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brand);
    border-bottom: 3px solid #152c71;
    box-shadow: var(--shadow);
    padding: 12px var(--gutter) 18px;
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(243, 244, 247, 0.14);
    border-radius: 0;
  }

  .main-nav li:last-child a {
    border-bottom: 0;
  }

  .main-nav a[aria-current="page"] {
    background: rgba(243, 244, 247, 0.19);
    color: var(--white);
  }

  .header-actions .btn-login {
    display: none;
  }

  .main-nav .nav-login {
    display: block;
    margin-top: 10px;
  }

  .main-nav .nav-login a {
    border-bottom: 0;
    text-align: center;
  }

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

@media (max-width: 640px) {
  :root {
    --section-y: 44px;
  }

  .grid--3,
  .grid--4,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* The phone/email bar is dropped on a phone: it costs two lines of the first
     screen, and both numbers, the email and the address are all in the footer
     of every page anyway. */
  .topbar {
    display: none;
  }

  /* With the top bar gone, only the 76px header sits above the banner. */
  .hero {
    min-height: clamp(470px, calc(100vh - 84px), 900px);
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-band {
    text-align: center;
    justify-content: center;
  }

  .btn-row {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   15. Motion & print
   -------------------------------------------------------------------------- */

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

@media print {
  .topbar,
  .site-header,
  .site-footer .footer-grid,
  .cta-band,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 12pt;
  }

  .prose {
    max-width: none;
  }

  .policy-layout {
    display: block;
  }
}
