/*
Theme Name: Calderstead FM
Theme URI: https://calderstead.co.uk
Author: AWA Solutions
Author URI: https://awasolutions.co.uk
Description: Custom theme for Calderstead Facilities Management. Built to the Calderstead brand identity guidelines (navy #002B5B, Montserrat + Open Sans). Property, Compliance, Maintenance, FM.
Version: 1.2.10
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: calderstead
*/

/* ===========================================================================
   Design tokens — straight from the brand identity guidelines.
   Do not introduce colours or fonts outside this block.
   =========================================================================== */
:root {
  --navy:        #002B5B;  /* primary   — trust, professionalism, stability */
  --grey:        #6B6F76;  /* secondary — balance, reliability, modern */
  --light-grey:  #E6E9EC;  /* clean, minimal, versatile */
  --charcoal:    #1F2933;  /* strength, clarity — body text */
  --off-white:   #F8FAFC;  /* clean background space */
  --white:       #FFFFFF;

  /* Derived tints. Kept few and deliberate. */
  --navy-deep:   #001C3D;
  --navy-tint:   rgba(0, 43, 91, 0.06);
  --rule:        rgba(31, 41, 51, 0.12);

  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type — no breakpoint jumps. */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.44rem, 1.3rem + 0.7vw, 1.94rem);
  --step-3:  clamp(1.73rem, 1.5rem + 1.15vw, 2.58rem);
  /* Hero scale deliberately large. The reference sites (Avero especially) lead
     with oversized all-caps display type; a timid hero reads as a smaller
     operator than the competition. */
  --step-4:  clamp(2.4rem, 1.9rem + 2.8vw, 4.5rem);

  --shell:    1200px;
  --gutter:   clamp(1.25rem, 4vw, 2.5rem);
  --section:  clamp(3.5rem, 8vw, 6.5rem);
  --radius:   4px;   /* structured, not soft — matches the brand's angular pattern */
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 1.15em; max-width: 68ch; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-deep); }
img { max-width: 100%; height: auto; display: block; }

/* Visible focus for keyboard users — never remove. */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; font-family: var(--font-display); font-weight: 600;
}
.skip-link:focus { left: 0; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
/* Rhythm modifiers. Uniform padding on every section reads monotonous; varying
   it gives the page a cadence and lets related blocks group visually. */
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--flush-top { padding-top: 0; }
.section--tint  {
  position: relative; overflow: hidden;
  background: var(--light-grey);
}
/* The brand sheet's "pattern / graphic element": angled charcoal and grey facets
   on a light-grey panel. Low opacity so it textures the band without competing
   with the content. Same device as the hero, in the light palette. */
.section--tint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 60%, rgba(107,111,118,0.13) 60.2%, rgba(107,111,118,0.13) 70%, transparent 70.2%),
    linear-gradient(115deg, transparent 73%, rgba(31,41,51,0.07) 73.2%, rgba(31,41,51,0.07) 79%, transparent 79.2%);
}
.section--tint > .shell { position: relative; z-index: 1; }
.section--white { background: var(--white); }
.section--light { background: var(--light-grey); }
.section--navy  { background: var(--navy); color: var(--off-white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 0.9rem;
}
.section--navy .eyebrow { color: var(--light-grey); }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--grey); max-width: 60ch; }
.section--navy .lede { color: var(--light-grey); }

.divider { width: 56px; height: 3px; background: var(--grey); border: 0; margin: 0 0 1.75rem; opacity: 0.75; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.03em;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--off-white); color: var(--navy); }
.btn--light:hover { background: var(--white); color: var(--navy-deep); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.site-brand img { max-height: 52px; width: auto; }
.site-brand { display: flex; align-items: center; text-decoration: none; }
.brand-fallback { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: var(--step-1); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 0.5rem; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

.site-nav ul { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  color: var(--charcoal); text-decoration: none; padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--navy); border-bottom-color: var(--navy); }
.header-cta { flex: 0 0 auto; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 84px 0 auto; background: var(--white);
    border-bottom: 1px solid var(--rule); padding: 1rem var(--gutter) 1.5rem;
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav a { display: block; padding: 0.9rem 0; border-bottom: 0; }
  .header-cta { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, #000D1F 100%);
  color: var(--off-white);
  overflow: hidden;
  padding-block: clamp(4rem, 11vw, 8rem);
}
/* Angular facet — the brand guide's "pattern / graphic element". */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 55%, rgba(107,111,118,0.18) 55.2%, rgba(107,111,118,0.18) 66%, transparent 66.2%),
    linear-gradient(115deg, transparent 68%, rgba(230,233,236,0.10) 68.2%, rgba(230,233,236,0.10) 74%, transparent 74.2%);
}
/* Optional photographic backdrop. The brand guide calls for "quality assets /
   professional people / compliance in action" imagery. Set a hero image in
   wp-admin (page featured image) and it renders behind the navy at low opacity
   so the type stays legible. No image = the gradient alone, still correct. */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.22;
  filter: grayscale(35%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, var(--navy-deep) 12%, rgba(0,28,61,0.72) 55%, rgba(0,28,61,0.35) 100%);
}
.hero .shell { position: relative; z-index: 1; }
/* All-caps, tight tracking, oversized — matches the reference sites' hero
   treatment and the brand guide's own tagline lockup. */
.hero h1 {
  color: var(--white);
  max-width: 20ch;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.hero h1 .accent { color: var(--grey); font-weight: 800; }
.hero .lede { color: var(--light-grey); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.pillars { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.pillars li {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--light-grey);
}
.pillars li + li::before { content: "•"; color: var(--grey); margin-right: 1.4rem; }

/* --- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.2vw, 1.75rem);
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* Restrained hover: a shadow lift reads as considered, a translate reads as a
   template. Also avoids the row-jitter that transform causes in a grid. */
.card:hover { border-color: rgba(0,43,91,0.35); box-shadow: 0 6px 24px rgba(31,41,51,0.07); }
/* Card headings sit one step below body headings so a grid of six does not
   compete with the section title above it. */
.card h3 { font-size: 1.0625rem; line-height: 1.3; margin-bottom: 0.4rem; }
.card p { color: var(--grey); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.9rem; }
.card .card-link {
  margin-top: auto; font-family: var(--font-display); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.02em; text-decoration: none; color: var(--navy);
}
.card .card-link::after { content: " →"; }
.card-icon { width: 44px; height: 44px; margin-bottom: 1.1rem; color: var(--navy); }
.card-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Photo cards — the reference sites all pair a service with an image.
   Falls back to a navy tint block when no image is set, so a missing
   photo is a neutral surface rather than a broken layout. */
.card--photo { padding: 0; overflow: hidden; }
.card--photo .card-media {
  aspect-ratio: 16 / 10;
  background: var(--navy-tint) center/cover no-repeat;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.card--photo .card-media .card-icon {
  position: absolute; left: 1.25rem; bottom: 1.25rem; margin: 0;
  width: 40px; height: 40px; color: var(--white);
  background: var(--navy); padding: 8px; border-radius: var(--radius);
}
.card--photo .card-body { padding: clamp(1.35rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; flex: 1; }
.card--photo .card-body > :last-child { margin-top: auto; }

/* Numbered process steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.75rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -0.15rem;
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-2);
  color: var(--light-grey); line-height: 1;
}
.section--navy .step::before { color: rgba(255,255,255,0.28); }

/* --- Two-column feature ------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split--media-first > :first-child { order: 2; }
@media (max-width: 859px) { .split--media-first > :first-child { order: 0; } }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.85rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 10px; height: 10px; background: var(--navy); border-radius: 1px;
  transform: rotate(45deg);
}
.section--navy .checklist li::before { background: var(--light-grey); }

/* --- Placeholder marker -------------------------------------------------
   Every unverified client fact is wrapped in this so it is impossible to
   ship by accident. Loud on purpose. Removed once the client confirms.
   ------------------------------------------------------------------------ */
.tbc {
  background: #FFF3CD; color: #7A5B00; border-bottom: 2px dotted #B58900;
  padding: 0 0.25em; font-weight: 600; font-style: normal;
}
.section--navy .tbc { background: #FFE9A8; color: #5C4400; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { background: var(--navy); color: var(--off-white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 1.75rem; }

/* --- Footer ------------------------------------------------------------- */
/* Footer is a utility zone, not a section. Deliberately quieter and tighter
   than the page body: smaller type, denser rows, no oversized brand block. */
.site-footer {
  background: var(--charcoal);
  color: var(--light-grey);
  padding-block: clamp(2.25rem, 4vw, 3.25rem) 0;
  font-size: 0.875rem;
  line-height: 1.55;
}
.site-footer h3 {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.site-footer a { color: var(--light-grey); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer p { margin-bottom: 0.6rem; }
/* Narrower columns so the footer reads as four tidy lists, not four blocks. */
/* Explicit column counts rather than auto-fit. auto-fit silently collapses to
   one column if anything constrains the container, which is how this footer
   ended up ~1050px tall in a narrow left-hand strip. */
.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  align-items: start;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { max-height: 40px; width: auto; margin-bottom: 0.9rem; }
.footer-tagline {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.65rem; color: var(--grey); margin-top: 0.75rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: clamp(1.75rem, 3vw, 2.5rem); padding-block: 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between;
  font-size: 0.78rem; line-height: 1.5; color: var(--grey);
}
.footer-bottom a { color: var(--light-grey); }
/* AA contrast on dark grounds: --grey fails on navy (2.77) and charcoal (2.92). KB #2283. */
.cta-band .eyebrow, .cta-band .lede,
.footer-brand p, .footer-tagline, .footer-bottom span { color: var(--light-grey); }

/* --- Page hero (interior pages) ----------------------------------------- */
.page-hero { background: var(--navy); color: var(--off-white); padding-block: clamp(2.75rem, 7vw, 4.5rem); }
.page-hero h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-hero .lede { color: var(--light-grey); }
.breadcrumbs { font-size: var(--step--1); color: var(--light-grey); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--light-grey); }

/* --- Content (WP editor output) ----------------------------------------- */
.entry-content > * { max-width: 68ch; }
.entry-content > .alignwide, .entry-content > .alignfull,
.entry-content > .grid, .entry-content > .split { max-width: none; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 3px solid var(--navy); margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: var(--step-1); color: var(--grey);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===========================================================================
   v1.1.0 — utility bar, floating pill nav, hero form, watermark, doors
   =========================================================================== */

/* --- Utility bar (AHL pattern: trust signals before the first headline) --- */
.utility-bar {
  background: var(--navy-deep);
  color: var(--light-grey);
  font-size: 0.78rem;
  line-height: 1.4;
}
.utility-inner { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 0.5rem; }
.utility-right { display: flex; gap: 1.5rem; }
.utility-right > span + a::before, .utility-right > span + span::before { content: "|"; margin-right: 1.5rem; opacity: 0.35; }
.utility-bar a { color: var(--white); text-decoration: none; font-weight: 600; }
@media (max-width: 760px) { .utility-right > :not(a) { display: none; } .utility-inner > span:first-child { font-size: 0.72rem; } }

/* --- Floating pill nav (Avero pattern, in brand navy) --------------------- */
.site-header {
  position: sticky; top: 0.75rem; z-index: 100;
  background: transparent; border: 0;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.site-header .header-inner {
  pointer-events: auto;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(0.9rem, 2vw, 1.4rem);
  min-height: 68px;
  background: rgba(0, 28, 61, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0, 13, 31, 0.35);
}
/* Reverse logo on the dark pill. */
.site-brand img { max-height: 44px; }
.site-nav a { color: var(--light-grey); border-bottom-color: transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--white); border-bottom-color: var(--light-grey); }
.nav-toggle { color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 1.25rem; }
/* The header button sits inside a pill, so it takes the pill's geometry:
   fully rounded, and a touch shorter than the standard button so it nests
   inside the 68px bar with even breathing room. */
.header-cta .btn--primary {
  background: var(--off-white); color: var(--navy);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
}
.header-cta .btn--primary:hover { background: var(--white); }
.header-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; text-align: right; }
.header-phone small { font-size: 0.68rem; color: var(--light-grey); letter-spacing: 0.04em; }
.header-phone strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); }
@media (max-width: 960px) {
  .site-header { top: 0.5rem; }
  .site-nav { top: calc(100% + 0.5rem); inset-inline: var(--gutter); border-radius: 16px; background: var(--navy-deep); border: 1px solid rgba(255,255,255,0.08); }
  .site-nav li { border-bottom-color: rgba(255,255,255,0.08); }
}
/* The hero starts under the floating pill; pull it up so there is no white gap. */
.hero { margin-top: -68px; padding-top: calc(68px + clamp(3rem, 8vw, 6rem)); }
.page-hero { margin-top: -68px; padding-top: calc(68px + clamp(2rem, 5vw, 3.5rem)); }

/* --- Hero: two-column with form, watermark mark ---------------------------- */
.hero-mark {
  position: absolute; z-index: 0; pointer-events: none;
  right: -4%; top: 50%; transform: translateY(-46%);
  width: clamp(420px, 46vw, 760px); height: auto;
  opacity: 0.055;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero-copy .pillars { margin-top: 1.75rem; }

.hero-doors { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; margin-top: 2rem; max-width: 560px; }
@media (max-width: 560px) { .hero-doors { grid-template-columns: 1fr; } }
.door {
  display: block; padding: 0.95rem 1.1rem; text-decoration: none;
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05); color: var(--off-white);
  transition: background .2s ease, border-color .2s ease;
}
.door:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: var(--white); }
.door strong { display: block; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.2rem; }
.door span { font-size: 0.82rem; color: var(--light-grey); }
.door--alt { border-color: rgba(230,233,236,0.35); }

.hero-form {
  background: var(--white); color: var(--charcoal);
  border-radius: 8px; padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: 0 24px 60px rgba(0, 13, 31, 0.45);
}
.hero-form h2 { color: var(--navy); font-size: var(--step-1); margin-bottom: 0.3rem; }
.hero-form > p { color: var(--grey); font-size: 0.88rem; margin-bottom: 1.1rem; }

/* --- Enquiry form (shared by hero + /contact/) ---------------------------- */
.enquiry label { display: block; margin-bottom: 0.8rem; }
.enquiry label > span { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; color: var(--charcoal); margin-bottom: 0.3rem; }
.enquiry label > span b { color: #B42318; font-weight: 600; }
.enquiry input, .enquiry textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--charcoal);
  padding: 0.7rem 0.85rem; border: 1px solid #C9CED6; border-radius: var(--radius);
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.enquiry input:focus, .enquiry textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,43,91,0.15); }
.enquiry textarea { resize: vertical; min-height: 84px; }
.enq-row--2 { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .enq-row--2 { grid-template-columns: 1fr; } }
.enquiry .enq-submit { width: 100%; margin-top: 0.25rem; }
.enquiry .enq-submit[disabled] { opacity: 0.6; cursor: default; transform: none; }
.enq-note { font-size: 0.78rem; color: var(--grey); margin: 0.75rem 0 0; }
.enq-note--ok { color: #1B7F3B; font-weight: 600; }
.enq-note--err { color: #B42318; font-weight: 600; }
.enquiry--page { max-width: 640px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Interior page content sheet ------------------------------------------
   Page body is off-white; editor content sits in a white sheet with a hairline
   border so long text pages read as a document rather than a bright void. --- */
.section--page { padding-top: clamp(2rem, 4vw, 3rem); }
.section--page .entry-content {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 900px;
  box-shadow: 0 2px 0 rgba(31,41,51,0.03);
}
.section--page .entry-content > :last-child { margin-bottom: 0; }

/* ===========================================================================
   v1.2.0 — review fixes: mobile hero, sticky call bar, FAQ, ghost-light button
   =========================================================================== */
.btn--ghost-light { color: var(--off-white); border-color: rgba(255,255,255,0.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* Under 1000px the hero form and doors stack into ~1,600px of navy before any
   content. The form lives on /contact/ instead and the hero becomes one screen. */
.hero-mobile-cta { display: none; }
@media (max-width: 999px) {
  .hero-form, .hero-doors { display: none; }
  .hero-mobile-cta { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; margin-top: 1.6rem; max-width: 520px; }
  .hero-mobile-cta .btn { text-align: center; }
  .hero { padding-top: calc(68px + clamp(2rem, 6vw, 3.5rem)); padding-bottom: clamp(2.5rem, 7vw, 4rem); }
}
@media (max-width: 480px) { .hero-mobile-cta { grid-template-columns: 1fr; } }

/* Sticky action bar, phones only. Reactive FM callers phone; make it one tap. */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(0, 28, 61, 0.96); border-top: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .mobile-bar a {
    display: block; text-align: center; text-decoration: none;
    font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
    padding: 0.8rem 0.5rem; border-radius: 999px;
  }
  .mobile-bar a:first-child { background: var(--off-white); color: var(--navy); }
  .mobile-bar a:last-child  { color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
  body { padding-bottom: 68px; }
}

/* FAQ — native details/summary: accessible, keyboard-operable, no JS. */
.faq-list { max-width: 820px; margin-top: 1.5rem; }
.faq { border-top: 1px solid var(--rule); }
.faq:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1rem 2.5rem 1rem 0;
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.35rem; line-height: 1; color: var(--grey); }
.faq[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 0 1.1rem; color: var(--grey); max-width: 68ch; }
.faq-a p { margin: 0; }

/* Mobile header: the v1.1.0 desktop rule (.header-cta display:flex) is later in
   the cascade than the original mobile display:none and was winning, pushing
   the CTA out of the pill and squeezing the logo to nothing. Re-asserted here.
   Phone and quote are already in the utility bar and the sticky mobile bar. */
@media (max-width: 960px) {
  .header-cta { display: none; }
  .site-brand img { max-height: 40px; }
  .site-header .header-inner { min-height: 60px; }
  .hero, .page-hero { margin-top: -60px; }
  .hero { padding-top: calc(60px + clamp(2rem, 6vw, 3.5rem)); }
  .page-hero { padding-top: calc(60px + clamp(2rem, 5vw, 3.5rem)); }
}

/* --- Legal documents (page-legal.php) ------------------------------------ */
.legal-meta { font-size: 0.82rem; color: var(--light-grey); margin-top: 0.85rem; }
.legal-layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px minmax(0, 860px); } }
.legal-toc { position: sticky; top: 96px; }
.legal-toc .eyebrow { margin-bottom: 0.6rem; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); counter-reset: toc; }
.legal-toc li a {
  display: block; padding: 0.38rem 0 0.38rem 0.9rem; margin-left: -2px;
  font-size: 0.84rem; line-height: 1.35; color: var(--grey); text-decoration: none;
  border-left: 2px solid transparent;
}
.legal-toc li a::before { counter-increment: toc; content: counter(toc) ". "; color: var(--light-grey); font-family: var(--font-display); font-weight: 600; }
.legal-toc li a:hover { color: var(--navy); border-left-color: var(--navy); }
@media (max-width: 959px) { .legal-toc { position: static; } .legal-toc ol { columns: 2; column-gap: 1.5rem; } }

.legal .section--page .entry-content, .legal-doc { max-width: none; }
.legal-doc h2 { font-size: var(--step-1); margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.legal-doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-num { color: var(--grey); font-weight: 600; margin-right: 0.45rem; }
.legal-doc h3 { font-size: 1rem; margin-top: 1.4rem; }
.legal-doc p, .legal-doc li { max-width: 72ch; }
.legal-doc ul { padding-left: 1.25rem; }

.legal-summary {
  background: var(--off-white); border-left: 4px solid var(--navy);
  padding: 1.1rem 1.35rem; margin: 0 0 1.9rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.legal-summary .eyebrow { margin-bottom: 0.5rem; }
.legal-summary p { margin-bottom: 0.6rem; }
.legal-summary p:last-child { margin-bottom: 0; }

.legal-doc .wp-block-table { margin: 1.2rem 0 1.6rem; overflow-x: auto; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); }
.legal-doc th {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey); background: var(--off-white); border-bottom-color: rgba(31,41,51,0.2);
}
.legal-doc tr:last-child td { border-bottom: 0; }

/* ===========================================================================
   v1.2.3 — interior pages take the homepage aesthetic
   Content sits at the full shell width (same as the menu), no narrow sheet;
   a sticky sidebar fills the right of the shell; service pages get a grey
   facet band of related cards. Legal docs widen to the shell as well.
   =========================================================================== */
.section--page { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section--page .entry-content { background: none; border: 0; padding: 0; box-shadow: none; max-width: none; }
.section--page .entry-content > * { max-width: 68ch; }
.section--page .entry-content > .grid,
.section--page .entry-content > .split,
.section--page .entry-content > .wp-block-table,
.section--page .entry-content > .legal-summary { max-width: none; }
.section--page .entry-content > h2:first-child { margin-top: 0; }

.page-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .page-layout { grid-template-columns: minmax(0, 1fr) 340px; } }

.page-aside { position: sticky; top: 96px; display: grid; gap: 1.1rem; }
@media (max-width: 959px) { .page-aside { position: static; } }
.aside-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.aside-card .eyebrow { margin-bottom: 0.7rem; }
.aside-card--navy { background: var(--navy); color: var(--off-white); border-color: transparent; }
.aside-card--navy .eyebrow { color: var(--light-grey); }
.aside-card--navy p { color: var(--light-grey); font-size: 0.92rem; margin-bottom: 1rem; }
.aside-card .btn { display: block; width: 100%; text-align: center; }
.aside-phone { display: block; margin-top: 0.85rem; color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; text-decoration: none; text-align: center; }
.aside-phone:hover { color: var(--light-grey); }
.aside-links, .aside-facts { list-style: none; margin: 0; padding: 0; }
.aside-links li { border-top: 1px solid var(--rule); }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: block; padding: 0.62rem 0; text-decoration: none; color: var(--charcoal); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.aside-links a:hover { color: var(--navy); }
.aside-links a::after { content: " \2192"; color: var(--grey); }
.aside-facts li { padding: 0.45rem 0; border-top: 1px solid var(--rule); font-size: 0.92rem; }
.aside-facts li:first-child { border-top: 0; }

/* Legal documents: contents rail + document, spanning the full shell. */
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); } }
.legal-doc > * { max-width: 72ch; }
.legal-doc > .wp-block-table, .legal-doc > .legal-summary { max-width: none; }
