/* BrightSteps Recruitment — design system. Mobile first; breakpoints 48em (tablet), 64em (desktop). */

/* ---------- Tokens ---------- */
:root {
  --navy: #0F2A44;
  --navy-2: #173A5C;
  --teal: #0B6E69;
  --teal-light: #7FD1C9;
  --teal-tint: #E3F2F0;
  --amber: #F5A524;
  --amber-dark: #D98A0B;
  --amber-tint: #FDF1DC;
  --clay: #B4432E;
  --clay-tint: #F8E7E3;
  --plum: #6B3FA0;
  --plum-tint: #EEE7F6;
  --ink: #14202B;
  --slate: #4A5868;
  --line: #DCE1E6;
  --sand: #F6F4EF;
  --white: #FFFFFF;
  --error: #B42318;
  --success: #106B3A;

  --font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  --step--1: .9375rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-3: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* Role tokens: themes in assets/css/themes/ override these */
  --inverse-bg: var(--navy);
  --inverse-text: #E7EDF3;
  --inverse-muted: #C9D4DF;
  --inverse-heading: var(--white);
  --inverse-accent: var(--amber);
  --inverse-link: var(--teal-light);
  --inverse-tint: rgb(255 255 255 / .08);
  --inverse-line: rgb(255 255 255 / .16);
  --hero-bg: var(--inverse-bg);
  --footer-bg: #0A1E31;
  --footer-text: #B9C6D3;
  --footer-link: #E7EDF3;
  --footer-muted: #93A3B4;
  --cta-hover: #F7B23F;
  --cta-text: var(--navy);        /* text on the call-to-action colour */
  --footer-heading: var(--amber);
  --cta-shadow: 0 4px 0 var(--amber-dark);
  --btn-radius: 999px;
  --head-weight: 800;
  --head-transform: none;
  --head-tracking: -.02em;
  --wordmark-font: "Bricolage Grotesque", var(--font-head);

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .07);
  --container: 72rem;
  --header-h: 4.25rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; color: var(--navy); margin: 0 0 var(--space-2); letter-spacing: var(--head-tracking); text-transform: var(--head-transform); text-wrap: balance; }
h1 { font-size: var(--step-3); font-weight: var(--head-weight); }
h2 { font-size: var(--step-2); font-weight: var(--head-weight); }
h3 { font-size: var(--step-1); font-weight: 700; }
p, ul, ol, dl { margin: 0 0 var(--space-2); }
p { max-width: 68ch; }
a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--teal-light); }
::selection { background: var(--amber); color: var(--cta-text); }

.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; }
.skip-link { position: absolute; left: var(--space-2); top: -4rem; z-index: 100; background: var(--amber); color: var(--cta-text); padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: var(--space-2); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-6); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--inverse-bg); color: var(--inverse-text); }
.section--navy h2, .section--navy h3 { color: var(--inverse-heading); }
.section--navy a:not(.btn) { color: var(--inverse-link); }
.section-head { max-width: 46rem; margin-bottom: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.eyebrow { display: inline-block; font-weight: 700; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: var(--space-1); }
.section--navy .eyebrow { color: var(--inverse-accent); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--slate); }
.section--navy .lead { color: var(--inverse-muted); }
.stack > * + * { margin-top: var(--space-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.375rem;
  font: 700 1rem/1.2 var(--font-body);
  border-radius: var(--btn-radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--amber); color: var(--cta-text); box-shadow: var(--cta-shadow); }
.btn--primary:hover { background: var(--cta-hover); }
.btn--secondary { background: var(--navy); color: var(--white); }
.btn--secondary:hover { background: var(--navy-2); }
.btn--ghost { background: transparent; color: var(--navy); border-color: currentColor; }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.on-dark .btn--ghost, .section--navy .btn--ghost { color: var(--white); }
.on-dark .btn--ghost:hover, .section--navy .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--block { width: 100%; }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.site-footer .link-btn { color: var(--footer-link); text-decoration: none; }
.site-footer .link-btn:hover { text-decoration: underline; }
.prose .link-btn { color: var(--teal); }
.text-link { font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; }
.text-link::after { content: "→"; transition: transform .15s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); } /* no backdrop-filter: it would trap the fixed mobile menu inside the header */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand svg { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-name { font-family: var(--wordmark-font); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; }
.brand-name span { color: #0B6E69; } /* logo colour is fixed in every theme (brand rule) */
.brand-sub { display: block; font: 700 .6875rem/1 var(--font-body); letter-spacing: .24em; color: var(--slate); margin-top: .3rem; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-call { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; color: var(--navy); background: var(--teal-tint); }
.header-call svg { width: 1.25rem; height: 1.25rem; }
.header-call-text { display: none; }
.header-cta { display: none; white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: var(--navy); color: var(--white); cursor: pointer; }
.nav-toggle svg { width: 1.375rem; height: 1.375rem; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open { display: block; position: fixed; inset: var(--header-h) 0 0; background: var(--white); overflow-y: auto; padding: var(--space-3) 1.25rem var(--space-5); }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .9rem .25rem; font-weight: 700; font-size: 1.125rem; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-list a[aria-current="page"] { color: var(--teal); }
.nav-sub { list-style: none; margin: 0; padding: 0 0 .5rem 1rem; }
.nav-sub a { font-weight: 400; font-size: 1rem; padding: .6rem .25rem; border: 0; }
.nav-mobile-ctas { display: grid; gap: .75rem; margin-top: var(--space-3); }
body.nav-open { overflow: hidden; }

@media (min-width: 72em) {
  .nav-toggle, .nav-mobile-ctas { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; overflow: visible; background: none; }
  .nav-list { display: flex; gap: .25rem; align-items: center; }
  .nav-list > li { position: relative; }
  .nav-list a { border: 0; white-space: nowrap; font-size: .975rem; padding: .5rem .7rem; border-radius: 999px; }
  .nav-list > li > a:hover { background: var(--sand); }
  .nav-list a[aria-current="page"] { background: var(--teal-tint); }
  .nav-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 17rem; padding: .5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .nav-list > li:hover .nav-sub, .nav-list > li:focus-within .nav-sub { display: block; }
  .nav-sub a { padding: .55rem .75rem; }
  .nav-sub a:hover { background: var(--sand); }
  .header-cta { display: inline-flex; }
  .header-call { width: auto; padding: 0 1rem; border-radius: 999px; gap: .4rem; background: transparent; font-weight: 700; text-decoration: none; }
}
@media (min-width: 84em) { .header-call-text { display: inline; } }
@media (min-width: 72em) and (max-width: 83.99em) { .header-call { width: 3rem; padding: 0; background: var(--teal-tint); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--inverse-text); padding-block: var(--space-5) var(--space-6); }
.hero::before { content: ""; position: absolute; inset: auto -10% -45% auto; width: 38rem; height: 38rem; border-radius: 50%; background: radial-gradient(circle, rgb(245 165 36 / .22), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: var(--space-5); align-items: center; }
.hero h1 { color: var(--inverse-heading); }
.hero .eyebrow { color: var(--teal-light); }
.hero h1 em { font-style: normal; color: var(--inverse-accent); }
.hero .lead { color: var(--inverse-muted); margin-bottom: var(--space-4); }
.trust-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: .65rem; }
.trust-list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 700; color: var(--white); }
.trust-list svg { flex: none; width: 1.375rem; height: 1.375rem; color: var(--teal-light); margin-top: .1rem; }
.hero-visual { position: relative; }
.hero-card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: 0 20px 50px rgb(0 0 0 / .25); }
.hero-card h2 { font-size: 1.25rem; margin-bottom: var(--space-1); }
.hero-card p { color: var(--slate); font-size: var(--step--1); }
.hero-paths { display: grid; gap: .75rem; margin-top: var(--space-2); }
.hero-path { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: var(--radius); text-decoration: none; color: var(--navy); border: 2px solid var(--line); transition: border-color .15s, background-color .15s; }
.hero-path:hover { border-color: var(--teal); background: var(--teal-tint); }
.hero-path strong { display: block; font-family: var(--font-head); font-size: 1.125rem; }
.hero-path span { color: var(--slate); font-size: .9375rem; }
.hero-path .icon-badge { flex: none; }
.hero-path::after { content: "→"; margin-left: auto; font-weight: 700; color: var(--teal); }
.hero-strides { position: absolute; right: -1rem; top: -2.5rem; width: 7rem; opacity: .9; }
@media (min-width: 64em) {
  .hero { padding-block: var(--space-6); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .trust-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--sand); padding-block: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); max-width: 22ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero .btn-row { margin-top: var(--space-3); }
.page-hero[data-accent] { border-top: 6px solid var(--accent, var(--teal)); }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0 0 var(--space-3); font-size: var(--step--1); color: var(--slate); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: #8995A3; }
.breadcrumbs a { color: var(--slate); }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 700; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: var(--space-3); }
@media (min-width: 48em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
  .split--top { align-items: start; }
}
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.section--sand .card { border-color: transparent; box-shadow: var(--shadow); }

.service-card { --accent: var(--teal); --tint: var(--teal-tint); position: relative; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card .icon-badge { margin-bottom: var(--space-2); }
.service-card ul { padding-left: 1.1rem; color: var(--slate); font-size: var(--step--1); }
.service-card .text-link { margin-top: auto; color: var(--navy); }
.service-card .text-link::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.service-card p { color: var(--slate); }

.cat-industrial { --accent: var(--amber); --tint: var(--amber-tint); --accent-text: #8A5300; }
.cat-disability { --accent: var(--teal); --tint: var(--teal-tint); --accent-text: var(--teal); }
.cat-community { --accent: var(--clay); --tint: var(--clay-tint); --accent-text: var(--clay); }
.cat-emergency { --accent: var(--plum); --tint: var(--plum-tint); --accent-text: var(--plum); }

.icon-badge { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 16px; background: var(--tint, var(--teal-tint)); color: var(--accent-text, var(--teal)); }
.icon-badge svg { width: 1.6rem; height: 1.6rem; }

.feature { display: flex; gap: var(--space-2); align-items: flex-start; }
.feature .icon-badge { flex: none; }
.feature h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.feature p { color: var(--slate); margin: 0; }
.section--navy .feature p { color: var(--inverse-muted); }
.section--navy .icon-badge { background: var(--inverse-tint); color: var(--inverse-accent); }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .25rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: var(--space-3); padding-top: calc(var(--space-3) + 2.75rem); background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: var(--space-3); left: var(--space-3); font: 800 1.75rem/1 var(--font-head); color: var(--teal); }
.steps h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.steps p { color: var(--slate); margin: 0; font-size: var(--step--1); }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }

.tabs-pair { display: grid; gap: var(--space-4); }
@media (min-width: 64em) { .tabs-pair { grid-template-columns: 1fr 1fr; } .tabs-pair .steps { grid-template-columns: 1fr; } }
.path-head { display: flex; align-items: center; gap: .75rem; margin-bottom: var(--space-3); }
.path-head h3 { margin: 0; }

/* ---------- Pathways ---------- */
.pathway { border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.pathway--employer { background: var(--inverse-bg); color: var(--inverse-text); }
.pathway--employer h3 { color: var(--inverse-heading); }
.pathway--candidate { background: var(--teal-tint); }
.pathway .btn-row { margin-top: auto; padding-top: var(--space-2); }
.pathway h3 { font-size: var(--step-2); }

/* ---------- Testimonials (placeholders) ---------- */
.quote-card { position: relative; background: var(--white); border: 2px dashed #A9B4C0; border-radius: var(--radius-lg); padding: var(--space-3); }
.quote-card blockquote { margin: 0 0 var(--space-2); font-size: 1.125rem; color: var(--slate); font-style: italic; }
.quote-card figcaption { font-weight: 700; color: var(--navy); }
.placeholder-tag { display: inline-block; font: 700 .75rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; background: var(--amber-tint); color: #7A4A00; padding: .35rem .6rem; border-radius: 999px; margin-bottom: var(--space-2); }

/* ---------- Photo placeholders ---------- */
.photo-ph { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--teal-tint), var(--sand)); display: grid; place-items: end start; padding: var(--space-3); margin: 0; }
.photo-ph::before { content: ""; position: absolute; right: 8%; top: 12%; width: 34%; aspect-ratio: 1; background: url("../img/mark.svg") center / contain no-repeat; opacity: .14; }
.photo-ph figcaption { position: relative; background: rgb(255 255 255 / .92); border-radius: var(--radius); padding: .75rem 1rem; font-size: .875rem; color: var(--slate); max-width: 34ch; }
.photo-ph figcaption strong { display: block; color: var(--navy); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }

.photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 1; max-width: 22rem; justify-self: center; margin-inline: auto; }
@media (max-width: 63.99em) { .split > * + * { margin-top: var(--space-4); } } /* stacked two-column sections need a gap on phones and tablets */
.photo--portrait img { object-position: center top; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: 1.2rem 0; font: 700 1.125rem/1.35 var(--font-head); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal-tint); color: var(--teal); font: 700 1.25rem/1 var(--font-body); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.25rem; color: var(--slate); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Area chips ---------- */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .5rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.section--navy .chips li { background: var(--inverse-tint); border-color: var(--inverse-line); color: var(--inverse-heading); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--amber); color: var(--navy); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-4); display: grid; gap: var(--space-3); position: relative; overflow: hidden; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { margin: 0; font-size: 1.125rem; }
.cta-band .btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 4px 0 #000; }
.cta-band .btn--primary:hover { background: var(--navy-2); }
.cta-band .btn--ghost:hover { background: var(--navy); color: #FFFFFF; }
@media (min-width: 64em) { .cta-band { grid-template-columns: 1.4fr auto; align-items: center; padding: var(--space-5); } }

/* ---------- Pricing ---------- */
.rate-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.rate-table caption { text-align: left; font-weight: 700; color: var(--slate); padding: 0 .25rem .75rem; }
.rate-table th, .rate-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rate-table thead th { background: var(--navy); color: var(--white); font-size: .9375rem; }
.rate-table td:last-child, .rate-table th:last-child { text-align: right; white-space: nowrap; }
.rate-table .rate { font: 800 1.35rem/1 var(--font-head); color: var(--navy); }
.rate-table small { display: block; color: var(--slate); }
.table-wrap { overflow-x: auto; }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; gap: .5rem; }
.news-card .meta { font-size: .875rem; color: var(--slate); }
.empty-state { text-align: center; padding: var(--space-5) var(--space-3); border: 2px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state p { margin-inline: auto; }

/* ---------- Prose (legal, article) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: var(--space-5); }
.prose h3 { font-size: 1.2rem; margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.callout { border: 2px solid var(--amber); background: var(--amber-tint); padding: var(--space-2) var(--space-3); border-radius: var(--radius); margin-bottom: var(--space-4); }
.callout p:last-child { margin: 0; }
.callout--info { border-color: var(--teal); background: var(--teal-tint); }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: var(--space-5); }
@media (min-width: 64em) { .form-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } .form-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); }
@media (min-width: 48em) { .form { padding: var(--space-4); } }
.form fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); }
.form legend { font: 800 1.25rem/1.3 var(--font-head); color: var(--navy); margin-bottom: var(--space-2); padding: 0; }
.field-grid { display: grid; gap: var(--space-2) var(--space-3); }
@media (min-width: 48em) { .field-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .field .label { font-weight: 700; color: var(--navy); }
.req { color: var(--error); font-weight: 700; }
.optional { color: var(--slate); font-weight: 400; font-size: .875rem; }
.hint { font-size: .875rem; color: var(--slate); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="file"], select, textarea {
  width: 100%; min-height: 3rem; padding: .7rem .9rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #6B7785; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgb(11 110 105 / .2); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-weight: 700; font-size: .9375rem; margin: 0; display: flex; gap: .35rem; }
.field-error:empty { display: none; }
.field-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--error); color: var(--white); font-size: .8rem; margin-top: .15rem; }
.choice-group { display: grid; gap: .5rem; }
@media (min-width: 48em) { .choice-group--2 { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: .65rem; align-items: flex-start; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice:hover { border-color: #6B7785; }
.choice input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--teal); flex: none; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }
.consent { margin-bottom: var(--space-3); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary, .form-success { border-radius: var(--radius); padding: var(--space-3); margin-bottom: var(--space-3); }
.form-summary { border: 3px solid var(--error); background: #FEF3F2; }
.form-summary h2 { font-size: 1.2rem; color: var(--error); margin-bottom: .5rem; }
.form-summary ul { margin: 0; padding-left: 1.2rem; }
.form-summary a { color: var(--error); font-weight: 700; }
.form-success { border: 3px solid var(--success); background: #ECFDF3; }
.form-success h2 { font-size: 1.35rem; color: var(--success); }
.form-success p:last-child { margin: 0; }
.form [hidden], [hidden] { display: none !important; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list .icon-badge { width: 2.75rem; height: 2.75rem; border-radius: 12px; flex: none; }
.contact-list .icon-badge svg { width: 1.3rem; height: 1.3rem; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { word-break: break-word; }
.map-embed { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--sand); }

/* ---------- Form steps, tracker, tiles and upload ---------- */
.form-head { margin-bottom: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.form-meta { font-weight: 700; color: var(--teal); margin: 0 0 .75rem; }
.form-head .hint { margin: 0; }
.stepper { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; gap: .75rem; }
.stepper li { flex: 1; display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .9375rem; color: var(--slate); line-height: 1.25; }
.stepper-num { flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--line); background: var(--white); font-size: .875rem; color: var(--slate); }
.stepper li[aria-current] { color: var(--navy); }
.stepper li[aria-current] .stepper-num { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.stepper li.is-done .stepper-num { border-color: var(--teal); color: var(--teal); }
.form-progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: .9rem; }
.form-progress span { display: block; height: 100%; background: var(--teal); transition: width .3s ease; }
.form:not(.is-stepped) .form-progress { display: none; }
@media (max-width: 40em) {
  /* Small screens: only the current step's name is shown; the others stay available to screen readers. */
  .form.is-stepped .stepper li:not([aria-current]) .stepper-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .form.is-stepped .stepper li:not([aria-current]) { flex: 0 0 auto; }
}
.form .form-step { margin-bottom: 0; }
.form:not(.is-stepped) .form-step + .form-step { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.form legend.step-title { display: flex; flex-direction: column; gap: .3rem; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-bottom: var(--space-3); }
.step-count { font: 700 .8125rem/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.step-title:focus { outline: none; }
.form legend.label { font: 700 1rem/1.4 var(--font-body); color: var(--navy); margin-bottom: .5rem; }
.form-final { margin-top: var(--space-3); }
.form-final > .field:not(.consent) { margin-bottom: var(--space-3); }
.form .consent { margin-bottom: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.form-actions [type="submit"], .form-actions [data-step-next] { margin-left: auto; min-width: 13rem; }
@media (max-width: 40em) { .form-actions .btn { flex: 1 1 100%; } .form-actions [type="submit"], .form-actions [data-step-next] { order: -1; margin-left: 0; } }
.field-grid { gap: var(--space-3); }
.choice { align-items: center; min-height: 3.25rem; padding: .8rem 1rem; background: var(--white); transition: border-color .15s ease, background-color .15s ease; }
.choice span { font-weight: 600; }
.choice input { margin-top: 0; }
.choice:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(11 110 105 / .18); }
.consent .choice { align-items: flex-start; }
.consent .choice span { font-weight: 400; }
.dropzone { position: relative; display: grid; place-items: center; min-height: 6.5rem; padding: 1.25rem; text-align: center; border: 2px dashed #6B7785; border-radius: var(--radius); background: var(--white); color: var(--slate); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.dropzone:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.dropzone strong { color: var(--teal); }
.dropzone.has-file { border-style: solid; border-color: var(--teal); background: var(--teal-tint); color: var(--navy); font-weight: 700; }
.dropzone:has([aria-invalid="true"]) { border-color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block: var(--space-6) var(--space-3); font-size: var(--step--1); }
.site-footer a { color: var(--footer-link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font: 700 .8125rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--footer-heading); margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer .brand { color: var(--white); margin-bottom: var(--space-2); }
.site-footer .brand-name span { color: var(--teal-light); }
.site-footer .brand-sub { color: var(--footer-muted); }
.site-footer address { font-style: normal; display: grid; gap: .35rem; }
.footer-bottom { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); justify-content: space-between; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-bottom p { margin: 0; }
.dev-credit { display: block; margin-top: .35rem; color: var(--footer-muted); }
.site-footer .dev-credit a { text-decoration: underline; text-underline-offset: .2em; }
.social { display: flex; gap: .5rem; margin-top: var(--space-2); }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgb(255 255 255 / .08); }
.social svg { width: 1.2rem; height: 1.2rem; }

/* ---------- Cookie notice ---------- */
.cookie-notice { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; max-width: 30rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgb(0 0 0 / .2); padding: var(--space-3); }
.cookie-notice h2 { font-size: 1.15rem; margin-bottom: .4rem; }
.cookie-notice p { font-size: .9375rem; color: var(--slate); }
.cookie-notice .btn { min-height: 2.75rem; padding: .55rem 1.1rem; }

.cookie-manage { margin: .75rem 0 0; font-size: .9375rem; }
.cookie-manage .link-btn { color: var(--teal); font-weight: 700; }

/* ---------- Cookie settings dialog ---------- */
.cookie-dialog { width: min(100% - 2rem, 34rem); max-height: calc(100dvh - 2rem); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgb(0 0 0 / .25); }
.cookie-dialog::backdrop { background: rgb(20 20 20 / .55); }
.cookie-dialog form { padding: var(--space-3); }
@media (min-width: 40em) { .cookie-dialog form { padding: var(--space-4); } }
.cookie-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.cookie-dialog h2 { font-size: var(--step-1); margin: 0 0 .5rem; }
.cookie-dialog > form > p { color: var(--slate); font-size: .9375rem; }
.cookie-close { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.5rem -.5rem 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer; }
.cookie-close:hover { background: var(--sand); }
.cookie-close svg { width: 1.25rem; height: 1.25rem; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) 0; border-top: 1px solid var(--line); }
.cookie-option h3 { font: 700 1rem/1.3 var(--font-body); text-transform: none; letter-spacing: 0; margin: 0 0 .25rem; }
.cookie-option h3 label { cursor: pointer; }
.cookie-option p { margin: 0; font-size: .875rem; color: var(--slate); }
.cookie-always { flex: none; font-size: .8125rem; font-weight: 700; color: var(--teal); white-space: nowrap; }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
@media (max-width: 40em) { .cookie-dialog-actions .btn { flex: 1 1 100%; } }
/* On/off switch built on a real checkbox (keyboard and screen readers work as normal) */
.switch { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 3.25rem; height: 1.85rem; margin: 0; border-radius: 999px; background: #6B7785; cursor: pointer; transition: background-color .15s ease; }
.switch::before { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #FFFFFF; transition: transform .15s ease; box-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.switch:checked { background: var(--teal); }
.switch:checked::before { transform: translateX(1.4rem); }
.switch:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- Mobile call bar ---------- */
.mobile-cta-bar { position: fixed; z-index: 40; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .97); border-top: 1px solid var(--line); }
.mobile-cta-bar .btn { min-height: 2.9rem; padding-inline: .75rem; }
body { padding-bottom: 4.5rem; }
@media (min-width: 48em) { .mobile-cta-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: var(--space-6); }
.not-found .big { font: 800 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--font-head); color: var(--teal); letter-spacing: -.04em; margin-bottom: var(--space-2); }
.not-found p { margin-inline: auto; }
.not-found .btn-row { justify-content: center; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .mobile-cta-bar, .cookie-notice, .btn { display: none !important; }
  body { padding: 0; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; }
}
