/* ==========================================================================
   Victoria Medical Centre — theme stylesheet
   Mobile-first. No framework. Maps 1:1 to the future WP theme's style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   Palette is taken from the VMC logo: grey #B3B3B3, black #000000, red #FB0007.
   The logo red (4.1:1 on white) is used at display sizes and for decorative
   bars; text and buttons use a slightly deeper red (#D60006, 5.4:1) so every
   text/background pairing meets WCAG 2.2 AA. The grey is never used for text.
   The --c-blue* names are kept so the HTML/JS need no changes; they now hold
   the brand values.
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --c-brand-red:   #fb0007;  /* logo red — display headings ≥24px, accent bars, logo block */
  --c-brand-grey:  #b3b3b3;  /* logo light grey — borders, dividers, decorative only (never text) */
  --c-grey-dark:   #4d4d4d;  /* logo-derived dark grey — utility bar, secondary text (white on it: 7.5:1) */
  --c-brand-black: #000000;  /* logo black */

  --c-blue:        #d60006;  /* PRIMARY ACTION red — links, buttons (white text: 5.4:1) */
  --c-blue-dark:   #111111;  /* header / footer / headings (white text: 18.9:1) */
  --c-blue-hover:  #b80005;  /* link + button hover */
  --c-blue-tint:   #e9e9e9;  /* pale panel background */
  --c-blue-wash:   #fff1f1;  /* very light red wash for highlighted cards */

  /* Neutrals */
  --c-white:       #ffffff;
  --c-grey-50:     #f4f4f4;  /* page section backgrounds */
  --c-grey-200:    #d6d6d6;  /* borders */
  --c-grey-700:    #4d4d4d;  /* secondary text = dark grey (on white: 8.6:1) */
  --c-text:        #1a1a1a;  /* body text (on white: 17.4:1) */

  /* Semantic (kept distinct from the brand red where it matters) */
  --c-green:       #007f3b;  /* "Open now", success (white text: 5.1:1) */
  --c-red:         #a30004;  /* emergency / 999 — deeper than the brand red */
  --c-amber:       #ffb81c;  /* notices — always paired with dark text */
  --c-focus:       #ffeb3b;  /* focus yellow (on #1a1a1a: 13:1) */

  /* Type */
  --ff-base: "Frutiger W01", "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-base: 1.125rem;       /* 18px — deliberately large for legibility */
  --lh-base: 1.6;

  /* Spacing (8pt grid) */
  --sp-1: .5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2rem; --sp-5: 3rem; --sp-6: 4rem;

  /* Layout */
  --container: 72rem;
  --gutter: 1rem;
  --radius: .375rem;
  --shadow: 0 1px 3px rgba(33, 43, 50, .12), 0 4px 12px rgba(33, 43, 50, .06);
  --tap: 3rem;               /* 48px minimum tap target */
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--c-blue-dark); line-height: 1.2; margin: 0 0 var(--sp-2); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p, ul, ol { margin: 0 0 var(--sp-2); }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }
a { color: var(--c-blue); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: .08em; }
a:hover { color: var(--c-blue-hover); text-decoration-thickness: .16em; }
strong, b { font-weight: 700; }
mark { background: #fff59d; color: inherit; padding: 0 .15em; }
hr { border: 0; border-top: 1px solid var(--c-grey-200); margin: var(--sp-4) 0; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--c-grey-200); }
th { color: var(--c-blue-dark); }

/* Visible, high-contrast focus for keyboard users (NHS pattern) */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--c-text);
  border-radius: 2px;
}
a:focus-visible, button:focus-visible { color: var(--c-text); background: var(--c-focus); text-decoration: none; box-shadow: 0 -2px var(--c-focus), 0 4px var(--c-text); outline: none; }

/* Utilities */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lede { font-size: 1.25rem; color: var(--c-grey-700); max-width: 46rem; }
.measure { max-width: 46rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* Skip link */
.skip-link { position: absolute; top: -100%; left: var(--sp-2); z-index: 1000; padding: .75rem 1rem; background: var(--c-focus); color: var(--c-text); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: var(--sp-1); }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .7rem 1.25rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-primary { background: var(--c-blue); color: var(--c-white); box-shadow: 0 4px 0 #7a0003; }
.btn-primary:hover { background: var(--c-blue-hover); color: var(--c-white); }
.btn-primary:active { box-shadow: none; transform: translateY(4px); }
.btn-blue { background: var(--c-blue-dark); color: var(--c-white); box-shadow: 0 4px 0 #000000; }
.btn-blue:hover { background: #333333; color: var(--c-white); }
.btn-blue:active { box-shadow: none; transform: translateY(4px); }
.btn-outline { background: var(--c-white); color: var(--c-blue); border-color: var(--c-blue); }
.btn-outline:hover { background: var(--c-blue-wash); }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   4. Header  (→ header.php)
   -------------------------------------------------------------------------- */
.utility-bar { background: var(--c-grey-dark); color: var(--c-white); font-size: .9375rem; }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 2.5rem; }
.utility-bar a { color: var(--c-white); }
.utility-bar a:hover { color: var(--c-white); }
.utility-bar .phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; min-height: 2.5rem; white-space: nowrap; }
.utility-bar .phone svg { width: 1.1em; height: 1.1em; }
.utility-bar .phone:hover { text-decoration: underline; }
.utility-bar .utility-link { display: none; margin-right: auto; margin-left: var(--sp-3); font-weight: 600; min-height: 2.5rem; align-items: center; }
@media (min-width: 40em) { .utility-bar .utility-link { display: inline-flex; } }

/* Language selector placeholder — the translation plugin's markup is injected here */
.lang-select { display: inline-flex; align-items: center; gap: .4rem; }
.lang-select select {
  font: inherit; font-size: .9375rem; min-height: 2.25rem; padding: .25rem 1.75rem .25rem .6rem;
  color: var(--c-text); background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212b32' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .5rem center / .9rem;
  border: 1px solid var(--c-grey-200); border-radius: var(--radius); appearance: none;
}

.site-header { position: sticky; top: 0; z-index: 900; background: var(--c-white); border-bottom: 4px solid var(--c-brand-red); }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; gap: var(--sp-2); min-height: 4.5rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--c-blue-dark); margin-right: auto; }
.brand img { height: 3rem; width: auto; }
.brand-text { color: var(--c-brand-black); }
.brand-text { display: none; font-weight: 700; font-size: 1.125rem; line-height: 1.15; }
.brand-text small { display: block; font-weight: 400; font-size: .8125rem; color: var(--c-grey-700); }

/* Header CTA — one on mobile, two on desktop */
.header-cta { display: none; }
.header-cta--mobile { display: inline-flex; padding-inline: .9rem; font-size: .9375rem; }

/* Hamburger */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); padding: 0; background: var(--c-white); color: var(--c-blue);
  border: 2px solid var(--c-blue); border-radius: var(--radius); cursor: pointer; font: inherit;
}
.nav-toggle .bars { display: block; width: 1.4rem; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .2s; }
.nav-toggle .bars::before { top: -.45rem; }
.nav-toggle .bars::after { top: .45rem; }
.nav-toggle .label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-toggle[aria-expanded="true"] { background: var(--c-blue-dark); color: var(--c-white); border-color: var(--c-blue-dark); }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(.45rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-.45rem) rotate(-45deg); }

/* Primary navigation  (→ wp_nav_menu 'primary') */
.primary-nav { background: var(--c-blue-dark); }
.primary-nav[hidden] { display: none; }
/* Mobile: the open menu is a fixed panel under the sticky header (JS sets --nav-top) */
@media (max-width: 63.99em) {
  .primary-nav { position: fixed; top: var(--nav-top, 4.5rem); left: 0; right: 0; bottom: 0; z-index: 890; overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  body.nav-open { overflow: hidden; }
}
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; }
.primary-nav a, .primary-nav .submenu-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: var(--tap); padding: .75rem var(--gutter);
  color: var(--c-white); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.primary-nav a:hover { background: var(--c-brand-black); color: var(--c-white); box-shadow: inset 0 -.35rem 0 var(--c-brand-grey); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { box-shadow: inset .35rem 0 0 var(--c-brand-red); }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .menu-item-has-children > a { padding-right: calc(var(--tap) + .5rem); }
.submenu-toggle {
  position: absolute; top: 0; right: 0; width: var(--tap); height: var(--tap); padding: 0 !important; justify-content: center !important;
  background: transparent; border: 0; border-left: 1px solid rgba(255, 255, 255, .25) !important; cursor: pointer; font: inherit;
}
.submenu-toggle svg { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-menu { background: var(--c-brand-black); }
.sub-menu[hidden] { display: none; }
.sub-menu a { padding-left: calc(var(--gutter) * 2); font-weight: 400; }
.primary-nav .nav-cta { padding: var(--sp-2) var(--gutter); display: grid; gap: .75rem; border-bottom: 0; }
.primary-nav .nav-cta a { border: 0; }
.primary-nav .nav-cta .btn-outline { color: var(--c-blue); background: var(--c-white); }

/* --------------------------------------------------------------------------
   5. Hero  (→ front-page.php)
   -------------------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--c-grey-50), var(--c-white) 70%); padding-block: var(--sp-4) var(--sp-3); }
.hero h1::before { content: ""; display: block; width: 4.5rem; height: .5rem; margin-bottom: 1rem; background: linear-gradient(90deg, var(--c-brand-grey) 0 33.3%, var(--c-brand-black) 33.3% 66.6%, var(--c-brand-red) 66.6%); }
.hero-grid { display: grid; gap: var(--sp-3); }
.hero h1 { margin-bottom: .5rem; }
.hero .address { color: var(--c-grey-700); font-size: 1.0625rem; margin-bottom: var(--sp-2); display: flex; gap: .4rem; align-items: flex-start; }
.hero .address svg { width: 1.2em; height: 1.2em; flex: none; margin-top: .15em; color: var(--c-blue); }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Open / closed status chip (JS-enhanced; falls back to static text) */
.status { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .6rem; border-radius: 999px; font-weight: 700; font-size: .9375rem; background: var(--c-white); border: 1px solid var(--c-grey-200); margin-bottom: var(--sp-3); }
.status::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--c-grey-700); }
.status.is-open::before { background: var(--c-green); }
.status.is-closed::before { background: var(--c-red); }

/* Quick action cards */
.actions { display: grid; gap: var(--sp-2); grid-template-columns: 1fr; margin-top: var(--sp-2); }
.action-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2); min-height: 5rem;
  background: var(--c-white); border: 1px solid var(--c-grey-200); border-left: .375rem solid var(--c-blue); border-radius: var(--radius);
  text-decoration: none; color: var(--c-text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.action-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(33, 43, 50, .14); color: var(--c-text); }
.action-card:hover .action-title { text-decoration: underline; }
.action-card .icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--c-grey-50); color: var(--c-blue-dark); }
.action-card .icon svg { width: 1.5rem; height: 1.5rem; }
.action-title { display: block; font-weight: 700; color: var(--c-blue-dark); font-size: 1.125rem; }
.action-desc { display: block; color: var(--c-grey-700); font-size: .9375rem; }
.action-card .chev { width: 1.25rem; height: 1.25rem; color: var(--c-blue); }
.action-card { border-left-color: var(--c-blue-dark); }
.action-card--green { border-left-color: var(--c-brand-red); }
.action-card--green .icon { background: var(--c-blue-wash); color: var(--c-blue); }
.action-card--green .action-title { color: var(--c-blue); }

/* --------------------------------------------------------------------------
   6. Generic sections & cards
   -------------------------------------------------------------------------- */
.section { padding-block: var(--sp-5); }
.section--grey { background: var(--c-grey-50); }
.section--blue { background: var(--c-blue-dark); color: var(--c-white); }
.section--blue h2, .section--blue h3 { color: var(--c-white); }
.section--blue a { color: var(--c-white); }
.section-head { margin-bottom: var(--sp-3); }
.section-head h2 { margin-bottom: .25rem; }
.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.card { background: var(--c-white); border: 1px solid var(--c-brand-grey); border-radius: var(--radius); padding: var(--sp-3); box-shadow: var(--shadow); }
.card--accent { border-top: .375rem solid var(--c-blue-dark); }
.card--green { border-top: .375rem solid var(--c-brand-red); }
.card h3 { margin-top: 0; }
.card .btn { margin-top: auto; }
.card-flex { display: flex; flex-direction: column; }
.card-flex > :last-child { margin-top: auto; }
.card-media { margin: calc(var(--sp-3) * -1) calc(var(--sp-3) * -1) var(--sp-2); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-blue-tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media--contain img { object-fit: contain; padding: var(--sp-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Opening hours */
.hours-table th, .hours-table td { padding: .9rem .5rem; font-size: 1.125rem; }
.hours-table td { font-weight: 700; }
.hours-table .closed td { color: var(--c-grey-700); }

/* Out-of-hours panels */
.panel { padding: var(--sp-3); border-radius: var(--radius); border: 1px solid var(--c-grey-200); background: var(--c-white); }
.panel--111 { border-left: .5rem solid var(--c-blue-dark); }
.panel--999 { border-left: .5rem solid var(--c-red); background: #fff1f1; }
.panel--999 h3 { color: var(--c-red); }
.big-number { display: inline-block; white-space: nowrap; font-size: clamp(1.75rem, 1rem + 1.5vw, 2.25rem); font-weight: 800; line-height: 1; color: var(--c-blue-dark); text-decoration: none; margin: .25rem 0 .5rem; }
.big-number:hover { text-decoration: underline; }
.panel--999 .big-number { color: var(--c-red); }

/* Store badges / inline link lists */
.inline-links { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; margin: 0; }
.inline-links li { margin: 0; }

/* Practice information — native <details> accordion, zero JS */
.info-list { display: grid; gap: .75rem; }
.info-list details { background: var(--c-white); border: 1px solid var(--c-grey-200); border-radius: var(--radius); }
.info-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: var(--tap); padding: .9rem var(--sp-3); font-weight: 700; font-size: 1.125rem; color: var(--c-blue-dark); }
.info-list summary::after { color: var(--c-blue); }
.info-list summary::-webkit-details-marker { display: none; }
.info-list summary::after { content: ""; width: .9rem; height: .9rem; flex: none; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg) translate(-.15rem, -.15rem); transition: transform .2s; }
.info-list details[open] summary::after { transform: rotate(-135deg) translate(-.15rem, -.15rem); }
.info-list details[open] summary { border-bottom: 1px solid var(--c-grey-200); }
.info-list .details-body { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.info-list .details-body > :last-child { margin-bottom: 0; }

/* CQC rating */
.cqc { display: grid; gap: var(--sp-3); align-items: center; }
.cqc-badge { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--c-white); border: 1px solid var(--c-grey-200); border-radius: var(--radius); color: var(--c-text); text-decoration: none; }
.cqc-badge .rating { display: block; font-size: 1.5rem; font-weight: 800; color: var(--c-green); }
.rating-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.rating-list li { margin: 0; display: flex; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; background: var(--c-white); border: 1px solid var(--c-grey-200); border-radius: var(--radius); font-size: 1rem; }
.rating-list .good { color: var(--c-green); font-weight: 700; }
.rating-list .outstanding { color: var(--c-blue); font-weight: 800; }
.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: center; margin-top: var(--sp-4); }
.badges img { height: 4.5rem; width: auto; }

/* --------------------------------------------------------------------------
   7. Inner page  (→ page.php / single.php)
   -------------------------------------------------------------------------- */
.page-header { background: var(--c-blue-dark); color: var(--c-white); padding-block: var(--sp-4); border-bottom: 6px solid var(--c-brand-red); }
.page-header h1 { color: var(--c-white); margin-bottom: .25rem; }
.breadcrumb { font-size: .9375rem; margin-bottom: var(--sp-2); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "›"; opacity: .7; }
.breadcrumb a { color: var(--c-white); }
.page-header .breadcrumb a { color: var(--c-white); }
.featured { width: 100%; margin: 0 0 var(--sp-4); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 2 / 1; }
.featured img { width: 100%; height: 100%; object-fit: cover; }

.page-layout { display: grid; gap: var(--sp-4); padding-block: var(--sp-4) var(--sp-5); }
.entry-content h2, .entry-content h3 { margin-top: var(--sp-4); scroll-margin-top: 6rem; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content p + h3, .entry-content ul + h3 { margin-top: var(--sp-4); }
.entry-content img { border-radius: var(--radius); }
.entry-content { min-width: 0; overflow-wrap: anywhere; }
.entry-content .btn { margin: .5rem 0 var(--sp-2); }
.callout { padding: var(--sp-3); border-radius: var(--radius); margin: var(--sp-3) 0; border: 1px solid var(--c-grey-200); border-left: .5rem solid var(--c-blue-dark); background: var(--c-grey-50); }
.callout h3 { margin-top: 0 !important; }
.callout--emergency { border-left-color: var(--c-red); background: #fff1f1; }
.callout--emergency h3 { color: var(--c-red); }
.callout--notice { border-left-color: var(--c-amber); background: #fff8e5; }
.callout > :last-child { margin-bottom: 0; }

/* Sidebar  (→ sidebar.php) */
.sidebar { display: grid; gap: var(--sp-3); align-content: start; }
.widget { background: var(--c-grey-50); border-top: 4px solid var(--c-brand-grey); border-radius: var(--radius); padding: var(--sp-3); }
.widget h2 { font-size: 1.125rem; margin-bottom: var(--sp-2); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin: 0; }
.widget li + li { margin-top: 0; border-top: 1px solid var(--c-grey-200); }
.widget a { display: block; padding: .6rem 0; text-decoration: none; font-weight: 600; min-height: var(--tap); display: flex; align-items: center; }
.widget a:hover { text-decoration: underline; }
.widget--contact { background: var(--c-blue-dark); color: var(--c-white); }
.widget--contact h2, .widget--contact a { color: var(--c-white); }
.widget--contact .big-number { color: var(--c-white); font-size: 1.625rem; }
.widget--contact .btn { margin-top: var(--sp-2); }
.widget--contact .btn-outline { color: var(--c-blue-dark); border-color: var(--c-white); background: var(--c-white); }
.widget--contact .btn-outline:hover { background: var(--c-blue-tint); }

/* --------------------------------------------------------------------------
   8. Footer  (→ footer.php)
   -------------------------------------------------------------------------- */
.pre-footer { background: var(--c-blue); color: var(--c-white); padding-block: var(--sp-4); border-top: 6px solid var(--c-brand-grey); }
.pre-footer h2 { color: var(--c-white); margin-bottom: .25rem; }
.pre-footer .container { display: grid; gap: var(--sp-2); }
.pre-footer .btn-primary { box-shadow: 0 4px 0 #7a0003; }

.site-footer { background: var(--c-brand-black); color: var(--c-white); padding-block: var(--sp-5) var(--sp-3); font-size: 1rem; }
.site-footer a { color: var(--c-white); }
.site-footer h2 { color: var(--c-white); font-size: 1.125rem; margin-bottom: var(--sp-2); }
.footer-grid { display: grid; gap: var(--sp-4); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 2.5rem; }
.site-footer .legal { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--c-grey-dark); display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between; align-items: center; font-size: .9375rem; }
.site-footer .legal p { margin: 0; }
.site-footer .legal .inline-links a { font-weight: 600; }
.site-footer address a, .site-footer .legal a { display: inline-block; padding-block: .35rem; }

/* --------------------------------------------------------------------------
   9. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 40em) { /* 640px */
  :root { --gutter: 1.5rem; }
  .brand-text { display: block; }
  .actions { grid-template-columns: repeat(3, 1fr); }
  .action-card { grid-template-columns: 1fr; align-content: start; gap: .75rem; padding: var(--sp-3); }
  .action-card .chev { display: none; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .pre-footer .container { grid-template-columns: 1fr auto; align-items: center; }
  .cqc { grid-template-columns: auto 1fr; }
}

@media (min-width: 64em) { /* 1024px — desktop navigation */
  .header-cta { display: inline-flex; }
  .header-cta--mobile { display: none; }
  .nav-toggle { display: none; }
  .site-header .container { gap: var(--sp-3); }
  .brand img { height: 3.5rem; }

  .primary-nav { display: block !important; }
  .primary-nav[hidden] { display: block; }
  .primary-nav > .container { max-width: none; padding-inline: var(--gutter); }
  .primary-nav .menu { display: flex; flex-wrap: wrap; justify-content: center; }
  .primary-nav .menu > li { flex: 0 1 auto; }
  .primary-nav .menu-item-home, .primary-nav .menu-item-mobile-only { display: none; }
  .primary-nav a { justify-content: center; text-align: center; white-space: nowrap; border-bottom: 0; padding-inline: clamp(.4rem, .1rem + .5vw, 1rem); font-size: clamp(.8125rem, .45rem + .5vw, 1rem); }
  .primary-nav .menu-item-has-children > a { padding-right: 2.25rem; }
  .submenu-toggle { width: 2.25rem; border-left: 0 !important; pointer-events: none; }
  .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { box-shadow: inset 0 -.35rem 0 var(--c-brand-red); }
  .sub-menu, .sub-menu:not([hidden]) {
    display: none;
    position: absolute; top: 100%; left: 0; min-width: 16rem; z-index: 50;
    box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  }
  .sub-menu a { justify-content: flex-start; text-align: left; padding-left: var(--sp-2); }
  /* Hover + keyboard focus-within open the submenu on desktop */
  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children:focus-within > .sub-menu { display: block; }
  .primary-nav .nav-cta { display: none; }

  .hero { padding-block: var(--sp-5); }
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: var(--sp-5); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .page-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-6); }
  .sidebar { position: sticky; top: 6rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 75em) { .primary-nav .menu { flex-wrap: nowrap; } }

@media print {
  .utility-bar, .site-header, .pre-footer, .sidebar, .nav-toggle, .skip-link { display: none !important; }
  body { font-size: 12pt; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* --------------------------------------------------------------------------
   10. Site-wide components added for the full build
   -------------------------------------------------------------------------- */
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-2); }
.page-layout--full { grid-template-columns: 1fr; }
.page-header .lede { color: #e6e6e6; margin: .5rem 0 0; }

/* News cards (→ template-parts/post-card.php) */
.post-grid { align-items: stretch; }
.post-card { display: flex; flex-direction: column; background: var(--c-white); border: 1px solid var(--c-brand-grey); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--c-grey-50); border-bottom: 1px solid var(--c-grey-200); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media.card-media--contain img { object-fit: contain; padding: 1.5rem; }
.post-card-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: .5rem; }
.post-card time { font-size: .875rem; font-weight: 700; color: var(--c-blue); text-transform: uppercase; letter-spacing: .04em; }
.post-card h3, .post-card h2 { font-size: 1.25rem; margin: 0; }
.post-card h3 a, .post-card h2 a { color: var(--c-blue-dark); text-decoration: none; }
.post-card h3 a:hover, .post-card h2 a:hover { text-decoration: underline; }
.post-card p { margin: 0; color: var(--c-grey-700); font-size: 1rem; }
.year-heading { margin-top: var(--sp-4); padding-bottom: .5rem; border-bottom: 3px solid var(--c-brand-grey); }
.year-heading:first-of-type { margin-top: 0; }
.year-nav ul { list-style: none; padding: 0; margin: 0 0 var(--sp-2); display: flex; flex-wrap: wrap; gap: .5rem; }
.year-nav li { margin: 0; }
.year-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 2px solid var(--c-brand-grey); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--c-blue-dark); }
.year-nav a:hover { border-color: var(--c-blue); color: var(--c-blue); }

/* Single post */
.post-meta { color: var(--c-grey-700); font-weight: 700; margin-bottom: var(--sp-2); }
.featured--post { aspect-ratio: auto; max-height: 32rem; }
.featured--post img { object-fit: contain; background: var(--c-grey-50); }
.post-nav { margin-top: var(--sp-4); border-top: 1px solid var(--c-brand-grey); padding-top: var(--sp-3); }
.post-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.post-nav li { margin: 0; }
.post-nav span { display: block; font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-grey-700); font-weight: 700; }
.post-nav a { font-weight: 700; }
@media (min-width: 40em) { .post-nav ul { grid-template-columns: 1fr 1fr; } .post-nav-prev { text-align: right; } }

/* Team page */
.team-grid { display: grid; gap: var(--sp-2); grid-template-columns: 1fr; margin: var(--sp-2) 0 var(--sp-4); }
.team-card { background: var(--c-white); border: 1px solid var(--c-brand-grey); border-left: .375rem solid var(--c-brand-red); border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); }
.team-card h3 { font-size: 1.125rem; margin: 0 0 .25rem !important; }
.team-card p { margin: 0; color: var(--c-grey-700); font-size: .9375rem; }
@media (min-width: 40em) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.entry-content details { background: var(--c-white); border: 1px solid var(--c-brand-grey); border-radius: var(--radius); margin: .75rem 0; }
.entry-content summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: var(--tap); padding: .9rem var(--sp-3); font-weight: 700; font-size: 1.125rem; color: var(--c-blue-dark); }
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after { content: ""; width: .9rem; height: .9rem; flex: none; border-right: 3px solid var(--c-blue); border-bottom: 3px solid var(--c-blue); transform: rotate(45deg) translate(-.15rem, -.15rem); transition: transform .2s; }
.entry-content details[open] summary::after { transform: rotate(-135deg) translate(-.15rem, -.15rem); }
.entry-content details[open] summary { border-bottom: 1px solid var(--c-grey-200); }
.entry-content details > div { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.entry-content details > div > :last-child { margin-bottom: 0; }
.entry-content details h3 { margin-top: var(--sp-2); font-size: 1.125rem; }

/* Embedded map / video */
.embed { position: relative; aspect-ratio: 4 / 3; max-width: 100%; margin: var(--sp-3) 0; border: 1px solid var(--c-brand-grey); border-radius: var(--radius); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 40em) { .embed { aspect-ratio: 16 / 9; } }

/* Forms (Contact Form 7 / Elementor forms land here in WordPress) */
.vmc-form fieldset, .entry-content form fieldset { border: 1px solid var(--c-brand-grey); border-radius: var(--radius); padding: var(--sp-2) var(--sp-3) var(--sp-3); margin: 0 0 var(--sp-3); }
.vmc-form legend, .entry-content form legend { font-weight: 700; color: var(--c-blue-dark); padding: 0 .5rem; font-size: 1.25rem; }
.field { margin-bottom: var(--sp-2); }
.field label, .entry-content form label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field--choices { border: 0 !important; padding: 0 !important; margin-bottom: var(--sp-2) !important; }
.field--choices legend { font-size: 1rem !important; padding: 0 !important; margin-bottom: .35rem; }
.field .choice { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; min-height: var(--tap); padding: .4rem 0; }
.field .choice input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; flex: none; accent-color: var(--c-blue); }
.vmc-form input:not([type=checkbox]):not([type=radio]), .vmc-form select, .vmc-form textarea,
.entry-content form input:not([type=checkbox]):not([type=radio]):not([type=submit]), .entry-content form select, .entry-content form textarea {
  display: block; width: 100%; max-width: 36rem; min-height: var(--tap); padding: .6rem .8rem; font: inherit; color: var(--c-text);
  background: var(--c-white); border: 2px solid var(--c-grey-dark); border-radius: var(--radius);
}
.vmc-form textarea, .entry-content form textarea { min-height: 7rem; }
.vmc-form input:focus, .vmc-form select:focus, .vmc-form textarea:focus, .entry-content form input:focus, .entry-content form textarea:focus { outline: 3px solid var(--c-focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--c-text); }
.req { color: var(--c-blue); }
.form-note { color: var(--c-grey-700); font-size: 1rem; }
.entry-content form input[type=submit], .entry-content form button { display: inline-flex; align-items: center; min-height: var(--tap); padding: .7rem 1.25rem; font: inherit; font-weight: 700; color: var(--c-white); background: var(--c-blue); border: 0; border-radius: var(--radius); box-shadow: 0 4px 0 #7a0003; cursor: pointer; }
.entry-content form p { margin-bottom: var(--sp-2); }
.entry-content form br { display: none; }

/* Misc content normalisation for migrated pages */
.entry-content img { max-width: 100%; height: auto; margin: var(--sp-2) 0; }
.entry-content ul, .entry-content ol { max-width: 46rem; }
.entry-content p, .entry-content li { max-width: 46rem; }
.entry-content .btn { margin: .25rem .5rem .75rem 0; }
.entry-content table { display: block; overflow-x: auto; }

.pill-list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: flex; flex-wrap: wrap; gap: .5rem; max-width: none !important; }
.pill-list li { margin: 0; padding: .5rem .9rem; background: var(--c-grey-50); border: 1px solid var(--c-brand-grey); border-radius: 999px; font-size: 1rem; font-weight: 600; color: var(--c-blue-dark); }
