/* ==========================================================================
   APA SERVICE SA Giurgiu - Design System
   Single stylesheet, organised in sections:
   1. Fonts        2. Tokens         3. Reset/Base    4. Typography
   5. Layout       6. Header/Nav     7. Components    8. Sections
   9. Forms        10. Footer        11. Utilities    12. Motion
   13. Responsive  14. Mobile drawer 15. WP content   16. Cookie consent
   17. Print
   ========================================================================== */

/* ============================ 1. FONTS ================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================ 2. TOKENS ================================= */
:root {
  /* Brand blue ramp - modernised municipal blue */
  --blue-50:  #eef6fc;
  --blue-100: #d7e9f8;
  --blue-200: #b0d3f0;
  --blue-300: #7cb6e4;
  --blue-400: #4794d4;
  --blue-500: #2278bf;
  --blue-600: #1463a6;  /* primary action */
  --blue-700: #0f5089;
  --blue-800: #0d3e6b;
  --blue-900: #0b2a48;  /* deep navy - authority */
  --blue-950: #071d33;

  /* Aqua accent - fresh water highlight */
  --aqua-300: #5fd6df;
  --aqua-400: #2dc0cf;
  --aqua-500: #14a9bd;

  /* Alert - emergency only (the one allowed non-blue) */
  --alert-50:  #fdeee9;
  --alert-500: #e0532f;
  --alert-600: #c8421f;
  --alert-700: #a8351a;
  --amber-700: #b45309;  /* warning accent (alert bar) */

  /* Success */
  --ok-50:  #e9f7ef;
  --ok-500: #1f9d57;
  --ok-600: #168047;
  --ok-700: #136b3c;

  /* Brand green (logo leaf) - used sparingly for eco / quality accents */
  --green-50:  #eef7e3;
  --green-100: #d8eec2;
  --green-500: #5fa12e;
  --green-600: #4e8a26;
  --green-700: #3f6f20;

  /* Slate neutrals */
  --slate-50:  #f6f9fb;
  --slate-100: #eef2f6;
  --slate-200: #e1e8ee;
  --slate-300: #cbd6df;
  --slate-400: #9aa9b7;
  --slate-500: #6a7a89;
  --slate-600: #4c5b69;
  --slate-700: #36434f;
  --slate-800: #232e38;
  --slate-900: #131b22;
  --white: #ffffff;

  /* Semantic */
  --bg:          var(--white);
  --bg-subtle:   var(--slate-50);
  --bg-muted:    var(--slate-100);
  --surface:     var(--white);
  --ink:         var(--slate-900);
  --ink-soft:    var(--slate-600);
  --ink-faint:   var(--slate-500);
  --border:      var(--slate-200);
  --border-strong: var(--slate-300);
  --primary:     var(--blue-600);
  --primary-hover: var(--blue-700);
  --on-primary:  var(--white);
  --ring:        var(--blue-500);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Fluid type scale */
  --text-xs:   0.78rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   clamp(1.2rem, 0.5vw + 1.05rem, 1.35rem);
  --text-2xl:  clamp(1.45rem, 1vw + 1.2rem, 1.7rem);
  --text-3xl:  clamp(1.75rem, 1.6vw + 1.35rem, 2.2rem);
  --text-4xl:  clamp(2.1rem, 2.6vw + 1.5rem, 3rem);
  --text-5xl:  clamp(2.5rem, 4vw + 1.6rem, 3.9rem);

  /* Spacing scale (4px base) */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 2.5rem;  --sp-8: 3rem;
  --sp-9: 4rem;     --sp-10: 5rem;   --sp-11: 6.5rem; --sp-12: 8rem;

  /* Radii */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-2xl: 32px;
  --r-pill: 999px;

  /* Shadows - soft, layered, cool-tinted */
  --sh-xs: 0 1px 2px rgba(11, 42, 72, 0.06);
  --sh-sm: 0 2px 6px rgba(11, 42, 72, 0.07), 0 1px 2px rgba(11, 42, 72, 0.05);
  --sh-md: 0 8px 24px -8px rgba(11, 42, 72, 0.16), 0 2px 6px rgba(11, 42, 72, 0.06);
  --sh-lg: 0 20px 48px -16px rgba(11, 42, 72, 0.22), 0 4px 12px rgba(11, 42, 72, 0.08);
  --sh-xl: 0 36px 80px -24px rgba(11, 42, 72, 0.30);
  --ring-shadow: 0 0 0 3px rgba(34, 120, 191, 0.35);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;
  --z-header: 100;
  --z-dropdown: 200;
  --z-drawer: 300;
  --z-sticky-cta: 250;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 460ms;
}

/* ============================ 3. RESET / BASE =========================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
/* Base icon size - every context overrides as needed, but this prevents any
   unsized inline SVG from ballooning to its intrinsic size. */
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
img { font-style: italic; background-repeat: no-repeat; background-size: cover; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* Focus - visible, branded, consistent */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }
/* On dark/navy surfaces the default --ring (blue-500) drops below the 3:1 AA
   minimum for focus indicators - brighten it to the aqua accent (~7:1 on navy). */
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--aqua-300); }
/* Same reason on the colored alert bar: white ring clears 3:1 on all variants. */
.apa-alert :focus-visible { outline-color: #fff; }

::selection { background: var(--blue-200); color: var(--blue-950); }

/* ============================ 4. TYPOGRAPHY ============================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--blue-950);
  text-wrap: balance;
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); font-weight: var(--fw-semibold); }
p { text-wrap: pretty; }
strong { font-weight: var(--fw-semibold); color: var(--slate-800); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: '';
  width: 1.75rem; height: 2px;
  background: var(--aqua-400);
  border-radius: 2px;
}
.lead { font-size: var(--text-lg); color: var(--ink-soft); line-height: 1.6; }

/* ============================ 5. LAYOUT ================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--subtle { background: var(--bg-subtle); }
.section--navy {
  background: var(--blue-950);
  color: var(--blue-100);
  background-image:
    radial-gradient(60rem 30rem at 85% -10%, rgba(45, 192, 207, 0.16), transparent 60%),
    radial-gradient(50rem 30rem at 0% 110%, rgba(20, 99, 166, 0.4), transparent 55%);
}
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: flex-end; justify-content: space-between; }
.section-head--split > div { max-width: 56ch; }
.section-head h2 { margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-3); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--sp-4); top: -100%;
  z-index: 1000;
  padding: var(--sp-3) var(--sp-5);
  background: var(--blue-700);
  color: var(--white);
  border-radius: var(--r-md);
  font-weight: var(--fw-semibold);
  box-shadow: var(--sh-lg);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-3); text-decoration: none; }

/* ============================ 6. HEADER / NAV ========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-md); }
/* Offset the sticky header below the WordPress admin bar for logged-in users so the
   two bars never overlap. Only affects an admin viewing the front end; public
   visitors have no admin bar. (Admin bar is 32px, 46px on narrow screens.) */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* Romanian tricolor ribbon along the bottom edge of the header (pairs with the footer) */
.site-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, #002b7f 0 33.34%, #fcd116 33.34% 66.67%, #ce1126 66.67% 100%);
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: var(--header-h);
  transition: min-height var(--dur) var(--ease);
  position: relative; /* anchor for the full-width grouped dropdown panels */
}
.site-header.is-stuck .navbar { min-height: 68px; }

/* Brand / logo */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand__logo {
  height: 52px; width: auto; display: block;
  transition: transform var(--dur) var(--ease), height var(--dur) var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.02); }
.site-header.is-stuck .brand__logo { height: 46px; }
/* White rendering of the navy wordmark for dark backgrounds */
.brand__logo--light { filter: brightness(0) invert(1); }
.drawer__head .brand__logo { height: 44px; }
.site-footer .brand__logo { height: 54px; }
@media (max-width: 600px) { .brand__logo { height: 42px; } .site-header.is-stuck .brand__logo { height: 38px; } }

/* Primary nav */
.primary-nav { display: flex; align-items: center; }
.primary-nav > ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.7rem; border-radius: var(--r-md);
  font-size: 0.95rem; font-weight: var(--fw-medium); color: var(--slate-700);
  white-space: nowrap; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-link:hover, .nav-trigger:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.nav-link[aria-current='page'] { color: var(--blue-700); font-weight: var(--fw-semibold); }
.nav-link[aria-current='page']::after {
  content: ''; position: absolute; inset-inline: 0.85rem; bottom: 0.25rem;
  height: 2px; background: var(--aqua-400); border-radius: 2px;
}
.nav-trigger[aria-current] { color: var(--blue-700); font-weight: var(--fw-semibold); }
.nav-item { position: relative; }
.nav-item > .nav-link { position: relative; }
.nav-trigger .chev { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.nav-trigger[aria-expanded='true'] { background: var(--blue-50); color: var(--blue-700); }
.nav-trigger[aria-expanded='true'] .chev { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 0.5rem); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px; padding: var(--sp-3);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: var(--z-dropdown);
}
.dropdown--wide { min-width: 460px; }
/* Invisible bridge across the trigger→menu gap so hover never flickers closed */
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.7rem; }
.nav-item.is-open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown__grid { display: grid; gap: 0.15rem; }
.dropdown--wide .dropdown__grid { grid-template-columns: 1fr 1fr; gap: 0.15rem 0.75rem; }
/* Simple-dropdown rich link (icon + bold label + optional subtitle). Scoped to
   .dropdown__grid so it never bleeds into the grouped panel below. */
.dropdown__grid a {
  display: flex; gap: 0.6rem; align-items: center;
  padding: 0.45rem 0.6rem; border-radius: var(--r-md); color: var(--slate-700);
  transition: background var(--dur-fast) var(--ease);
}
.dropdown__grid a:hover { background: var(--blue-50); text-decoration: none; }
/* Same icon "chip" as the grouped panels + drawer, for a consistent icon size. */
.dropdown__grid a .icon { width: 1.85rem; height: 1.85rem; padding: 0.44rem; box-sizing: border-box; flex-shrink: 0; background: var(--blue-50); color: var(--blue-600); border-radius: var(--r-sm); }
.dropdown__grid a:hover .icon { background: var(--blue-100); }
.dropdown__grid a span { display: flex; flex-direction: column; }
.dropdown__grid a b { font-weight: var(--fw-semibold); font-size: 0.92rem; color: var(--slate-800); }
.dropdown__grid a small { color: var(--ink-faint); font-size: 0.78rem; line-height: 1.4; }

/* Grouped panel: a top-level dropdown whose sub-sections carry their own pages
   (3-4 levels). Anchored to .navbar (spans the container, never overflows the
   viewport); all rules scoped to --panel / .megamenu__ so simple dropdowns and the
   drawer are untouched. */
.nav-item--panel { position: static; } /* anchor the panel to .navbar, not the trigger */
.dropdown--panel {
  /* Sized to content (~3 balanced columns), not the full container. Anchored to
     the navbar's left edge so it can never overflow the viewport. */
  position: absolute; left: 0; right: auto; top: 100%; transform: none; /* defeat the base translateX(-50%) */
  width: min(100%, 44rem); margin-top: 0.6rem; padding: var(--sp-5) var(--sp-6);
  max-height: calc(100vh - var(--header-h) - 1rem);
  overflow-y: auto; overscroll-behavior: contain;
}
.nav-item--panel.is-open .dropdown--panel { transform: none; } /* reset the base .is-open translateX(-50%) */
.megamenu__grid { column-width: 13rem; column-gap: var(--sp-6); }
.megamenu__col { break-inside: avoid; margin: 0 0 var(--sp-5); }
.megamenu__col > ul { list-style: none; }
/* Every level-1 row - section heading OR leaf link - shares the same box, so the
   icons and labels line up down the whole column (no leaf-vs-section drift). */
.megamenu__head, .megamenu__head--link {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0; padding: 0.35rem 0.5rem; border-radius: var(--r-md);
  font-size: 0.92rem; font-weight: var(--fw-semibold);
}
.megamenu__head { color: var(--blue-700); margin-bottom: 0.1rem; }
.megamenu__head a { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; }
.megamenu__head a:hover { color: var(--blue-800); text-decoration: none; }
/* Icon "chip": a soft tinted square behind the glyph - the main lift from plain. */
.megamenu__head .icon {
  width: 1.85rem; height: 1.85rem; padding: 0.44rem; box-sizing: border-box; flex-shrink: 0;
  background: var(--blue-50); color: var(--blue-600); border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.megamenu__head--link { color: var(--slate-800); }
.megamenu__head--link:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.megamenu__head--link:hover .icon { background: var(--blue-100); color: var(--blue-600); }
/* Sub-page links, aligned under the heading LABEL (past the icon chip + gap). */
.megamenu__col ul { list-style: none; padding-left: 2.45rem; }
.megamenu__col li > a {
  display: block; padding: 0.26rem 0.5rem; border-radius: var(--r-md);
  font-size: 0.85rem; line-height: 1.4; color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.megamenu__col li > a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.megamenu__col a[aria-current='page'] { color: var(--blue-700); font-weight: var(--fw-semibold); }
/* A `#` sub-grouping (e.g. "Programe europene") is a small label, not a link
   (sentence case - never uppercase). */
.megamenu__label { display: block; padding: 0.34rem 0.5rem 0.12rem; font-size: 0.8rem; font-weight: var(--fw-semibold); color: var(--slate-600); }
/* Deeper (4th) level nests a touch tighter. */
.megamenu__col ul ul { padding-left: 0.8rem; }
.megamenu__col ul ul a { font-size: 0.82rem; }
/* Leading icon on a top-level trigger (e.g. the hamburger on "Toate"). */
.nav-trigger .icon:not(.chev) { width: 1.15rem; height: 1.15rem; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: var(--fw-semibold); color: var(--blue-800); white-space: nowrap;
}
.header-phone .icon { width: 1.3rem; height: 1.3rem; color: var(--blue-500); }
.header-phone small { display: block; font-size: 0.68rem; font-weight: var(--fw-medium); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* Hamburger */
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: var(--r-md);
  align-items: center; justify-content: center; color: var(--blue-900);
}
.nav-toggle:hover { background: var(--blue-50); }
.nav-toggle .icon { width: 1.6rem; height: 1.6rem; }

/* ============================ 7. COMPONENTS ============================= */
/* Buttons */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.4rem; min-height: 48px;
  font-family: var(--font-sans); font-size: 0.97rem; font-weight: var(--fw-semibold);
  line-height: 1; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--lg { padding: 1rem 1.8rem; min-height: 56px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { --btn-bg: var(--primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--accent {
  /* Fill kept AA-compliant for white text (lightest stop ~4.66:1); teal identity
     lives in the glow so we keep the pop without the contrast failure. */
  --btn-bg: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  --btn-fg: var(--white); box-shadow: 0 10px 24px -10px rgba(20, 169, 189, 0.55);
}
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--blue-700); --btn-bd: var(--border-strong); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--blue-50); --btn-bd: var(--blue-300); }
.btn--on-navy { --btn-bg: var(--white); --btn-fg: var(--blue-800); }
.btn--alert { --btn-bg: var(--alert-500); --btn-fg: var(--white); box-shadow: 0 8px 22px -8px rgba(224, 83, 47, 0.6); }
.btn--alert:hover { --btn-bg: var(--alert-600); }
.btn--quiet { background: transparent; box-shadow: none; color: var(--blue-700); padding-inline: 0.5rem; }
.btn--quiet:hover { transform: none; text-decoration: underline; }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: var(--r-pill);
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  background: var(--blue-50); color: var(--blue-700);
}
.chip .icon { width: 1em; height: 1em; }
.chip--ok { background: var(--ok-50); color: var(--ok-700); }
.chip--ghost { background: rgba(255,255,255,0.12); color: var(--blue-100); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(1.25rem, 2.5vw, 1.9rem);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card--link:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--blue-200); text-decoration: none; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-600); margin-bottom: var(--sp-4);
}
.card__icon .icon { width: 1.7rem; height: 1.7rem; }
/* Eco variant - green accent for environmental / water-quality moments */
.card__icon--eco { background: linear-gradient(135deg, var(--green-50), var(--green-100)); color: var(--green-600); }
/* Higher specificity than `.feature-list .icon-wrap` so no !important is needed. */
.feature-list .icon-wrap.icon-wrap--eco { background: var(--green-50); color: var(--green-600); }
.card h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card__more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: var(--sp-4); font-weight: var(--fw-semibold); color: var(--blue-600); }
.card__more .icon { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
a.card:hover .card__more .icon, .card--link:hover .card__more .icon { transform: translateX(4px); }

/* Quick-action bar - one elevated panel, four actions split by hairline dividers,
   lifted to bridge the hero and the content below. */
.action-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);                 /* gap shows as dividers */
  border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); overflow: hidden;
  position: relative; z-index: 3;
  margin-top: calc(-1 * clamp(2rem, 5vw, 3.75rem));    /* nestle under the hero wave */
}
.action {
  position: relative; background: var(--surface);
  display: flex; align-items: center; gap: var(--sp-3);
  padding: clamp(1.15rem, 2vw, 1.6rem) clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--slate-800);
  transition: background var(--dur) var(--ease);
}
.action::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue-500); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.action:hover { background: var(--blue-50); text-decoration: none; }
.action:hover::before { transform: scaleX(1); }
.action__ico {
  flex-shrink: 0; display: inline-flex; width: 50px; height: 50px;
  border-radius: var(--r-md); align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff;
  transition: transform var(--dur) var(--ease);
}
.action:hover .action__ico { transform: scale(1.06) rotate(-3deg); }
.action__ico .icon { width: 1.5rem; height: 1.5rem; }
.action__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.action__txt b { font-family: var(--font-display); font-size: 1.02rem; color: var(--blue-900); letter-spacing: -0.01em; }
.action__txt small { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.1rem; }
.action__go { width: 1.15rem; height: 1.15rem; color: var(--blue-400); margin-left: auto; flex-shrink: 0; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.action:hover .action__go { transform: translateX(3px); color: var(--blue-600); }
.action--alert .action__ico { background: linear-gradient(135deg, var(--alert-500), var(--alert-700)); }
.action--alert::before { background: var(--alert-500); }
.action--alert:hover { background: var(--alert-50); }
.action--alert .action__txt b { color: var(--alert-700); }
.action--alert:hover .action__go { color: var(--alert-600); }
@media (max-width: 900px) { .action-bar { grid-template-columns: repeat(2, 1fr); margin-top: var(--sp-5); } }
@media (max-width: 560px) { .action-bar { grid-template-columns: 1fr; } }

/* ============================ 8. SECTIONS ============================== */
/* Hero */
.hero { position: relative; overflow: hidden; background: var(--blue-950); color: var(--blue-100); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50rem 40rem at 78% -5%, rgba(45, 192, 207, 0.28), transparent 55%),
    radial-gradient(45rem 35rem at 8% 100%, rgba(20, 99, 166, 0.55), transparent 55%),
    linear-gradient(180deg, rgba(7,29,51,0.55), rgba(7,29,51,0.88));
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4.5rem, 9vw, 7rem);
}
.hero h1 { color: var(--white); margin-block: var(--sp-4) var(--sp-5); }
.hero h1 .accent { color: var(--aqua-300); }
.hero .eyebrow { color: var(--aqua-300); }
.hero .eyebrow::before { background: var(--aqua-400); }
.hero__lead { font-size: var(--text-lg); color: var(--blue-100); max-width: 52ch; }
.hero__cta { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.hero__trust { margin-top: var(--sp-6); display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--white); }
.hero__trust span { font-size: var(--text-sm); color: var(--blue-200); }

/* Hero visual card */
.hero__card {
  position: relative; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-xl);
  padding: clamp(1.25rem, 2.5vw, 1.75rem); box-shadow: var(--sh-xl);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__card-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.hero__card-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: -0.95rem;
  display: flex; align-items: center; gap: 0.7rem; white-space: nowrap;
  padding: 0.7rem 1.1rem; background: var(--white); color: var(--blue-900);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
}
.hero__badge .badge-ico { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--ok-50); color: var(--ok-600); align-items: center; justify-content: center; }
.hero__badge .badge-ico .icon { width: 1.3rem; height: 1.3rem; }
.hero__badge b { font-family: var(--font-display); font-size: 1.05rem; display: block; line-height: 1.1; }
.hero__badge span { font-size: 0.78rem; color: var(--ink-faint); }

/* Wave divider */
.wave { display: block; width: 100%; height: auto; line-height: 0; }
.wave svg { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave svg path { fill: var(--bg); }              /* CSS vars don't work in SVG fill="" */
.wave--subtle svg path { fill: var(--bg-subtle); }
.wave--flip svg { transform: rotate(180deg); }
.hero .wave { position: relative; margin-top: -1px; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-4xl); line-height: 1; color: var(--white); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__num .unit { color: var(--aqua-300); font-size: 0.6em; }
.stat__label { margin-top: var(--sp-2); font-size: 0.95rem; color: var(--blue-200); }
.section--navy .stat__num { color: var(--white); }

/* Announcement cards */
.announce { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; }
.announce__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-100); }
.announce__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.announce:hover .announce__media img { transform: scale(1.05); }
.announce__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.announce__meta { display: flex; align-items: center; gap: 0.6rem; font-size: var(--text-sm); color: var(--ink-faint); }
.announce__cat { font-weight: var(--fw-semibold); color: var(--blue-600); }
.announce h3 { font-size: var(--text-lg); font-family: var(--font-display); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.announce p { font-size: 0.92rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.announce .card__more { margin-top: auto; }
/* Category badge floated on the thumbnail: a solid frosted pill so it reads on any
   image, keeping the meta row below as a clean date. Falls back inline (in the meta
   row) for image-less cards - see content-card.php. */
.announce__tag {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
  max-width: calc(100% - 1.5rem);
  background: rgba(255, 255, 255, 0.94); color: var(--blue-700);
  box-shadow: var(--sh-sm); backdrop-filter: blur(3px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.announce__date { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.announce__date .icon { width: 0.95em; height: 0.95em; color: var(--blue-500); flex: none; }
.tag { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: var(--r-sm); font-size: 0.72rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.04em; }
.tag--info { background: var(--blue-50); color: var(--blue-700); }
.tag--warn { background: #fef2e6; color: #b45309; }
.tag--ok { background: var(--ok-50); color: var(--ok-700); }

/* Split feature (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--top { align-items: start; }
.split__media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 5 / 4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Photo cohesion - a subtle, consistent brand tint so disparate stock photos
   read as one art-directed set. Team portraits are intentionally excluded. */
.announce__media, .split__media, .hero__card-photo { position: relative; }
.announce__media img, .split__media img, .hero__card-photo img { filter: saturate(0.92); }
.announce__media::after, .split__media::after, .hero__card-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(45, 192, 207, 0.20), rgba(11, 42, 72, 0.42));
  mix-blend-mode: soft-light;
}
.feature-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.feature-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.feature-list .icon-wrap { flex-shrink: 0; display: inline-flex; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--blue-50); color: var(--blue-600); align-items: center; justify-content: center; }
.feature-list .icon-wrap .icon { width: 1.3rem; height: 1.3rem; }
.feature-list b { display: block; color: var(--slate-800); }
.feature-list span { color: var(--ink-soft); font-size: 0.94rem; }

/* Locations */
.loc-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.loc-card h3 { font-size: var(--text-lg); display: flex; align-items: center; gap: 0.5rem; }
.loc-card h3 .icon { width: 1.2rem; height: 1.2rem; color: var(--blue-500); }
.loc-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.75rem; font-size: 0.92rem; }
.loc-card dt { color: var(--ink-faint); }
.loc-card dd { color: var(--slate-700); }
.loc-card.is-primary { border-color: var(--blue-200); background: linear-gradient(180deg, var(--blue-50), var(--white)); }

/* Team / management cards */
.team-card { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--blue-200); }
.team-photo {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover; object-position: center 20%;
  margin: 0 auto var(--sp-4); display: block;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--blue-100), var(--sh-md);
}
/* Initials monogram shown until a real portrait is supplied (photo path is empty).
   Swaps to the <img> automatically once a portrait is provided. */
.team-photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--blue-500), var(--blue-700));
  color: var(--white); font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 2.1rem; letter-spacing: 0.02em; line-height: 1; user-select: none;
}
.team-card h3 { font-size: var(--text-lg); }
.team-card .role { display: inline-block; margin-top: var(--sp-2); padding: 0.2rem 0.7rem; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-700); font-weight: var(--fw-semibold); font-size: 0.82rem; }

/* Map card (static, links out to Google Maps) */
.map-card { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--border); }
.map-card img { width: 100%; height: clamp(220px, 30vw, 360px); object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease); }
.map-card:hover img { transform: scale(1.03); }
.map-card__cta { position: absolute; right: var(--sp-5); bottom: var(--sp-5); display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.2rem; background: var(--white); color: var(--blue-700); border-radius: var(--r-pill); font-weight: var(--fw-semibold); box-shadow: var(--sh-md); }
.map-card:hover .map-card__cta { color: var(--blue-900); }
.map-card__cta .icon { width: 1.1em; height: 1.1em; }

/* CTA band */
.cta-band { position: relative; border-radius: var(--r-2xl); overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem); background: var(--blue-900); color: var(--blue-100); text-align: center; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40rem 30rem at 80% 0%, rgba(45,192,207,0.25), transparent 55%), radial-gradient(40rem 30rem at 0% 100%, rgba(20,99,166,0.5), transparent 55%); }
.cta-band h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta-band p { margin: var(--sp-4) auto 0; max-width: 52ch; color: var(--blue-100); }
.cta-band .cluster { justify-content: center; margin-top: var(--sp-6); }

/* Floating actions cluster: back-to-top (top) + emergency dispecerat (bottom).
   Docks away cleanly when the footer scrolls into view. */
.floaters {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: var(--z-sticky-cta);
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease);
}
.floaters.is-docked { transform: translateY(150%); opacity: 0; pointer-events: none; }

.to-top {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); color: var(--blue-700);
  border: 1px solid var(--border); box-shadow: var(--sh-md);
  opacity: 0; transform: translateY(8px) scale(0.92); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-50); color: var(--blue-900); transform: translateY(-2px); }
.to-top .icon { width: 1.4rem; height: 1.4rem; }

.emergency-fab {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.25rem; border-radius: var(--r-pill);
  background: var(--alert-500); color: var(--white); font-weight: var(--fw-semibold);
  box-shadow: 0 12px 30px -8px rgba(200, 66, 31, 0.6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.emergency-fab:hover { transform: translateY(-3px) scale(1.02); text-decoration: none; box-shadow: 0 18px 38px -10px rgba(200, 66, 31, 0.7); }
.emergency-fab .icon { width: 1.4rem; height: 1.4rem; }
.emergency-fab .pulse { position: relative; display: inline-flex; }
.emergency-fab .pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); animation: pulse-ring 2.2s var(--ease) infinite; }
.emergency-fab small { display: block; font-size: 0.7rem; font-weight: var(--fw-medium); opacity: 0.9; }
.emergency-fab__txt { display: flex; flex-direction: column; line-height: 1.15; }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ============================ 9. FORMS ================================= */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--sp-4); }
.field label { font-weight: var(--fw-semibold); font-size: 0.92rem; color: var(--slate-800); }
.field label .req { color: var(--alert-600); }
.field .hint { font-size: 0.8rem; color: var(--ink-faint); }
.input, .textarea, .select {
  width: 100%; padding: 0.8rem 1rem; min-height: 50px;
  background: var(--white); border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md); font-size: 1rem; color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--slate-500); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring-shadow); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field[data-invalid='true'] .input, .field[data-invalid='true'] .textarea, .field[data-invalid='true'] .select { border-color: var(--alert-500); }
.field__error { display: none; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: var(--alert-600); font-weight: var(--fw-medium); }
.field[data-invalid='true'] .field__error { display: flex; }
.field__error .icon { width: 1em; height: 1em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-5); }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: var(--sp-2); }
.form-status { margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); font-size: 0.92rem; display: none; }
.form-status.is-visible { display: flex; gap: 0.5rem; align-items: center; }
.form-status--ok { background: var(--ok-50); color: var(--ok-700); }
fieldset { border: none; padding: 0; }
.demo-flag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--blue-700); background: var(--blue-50); padding: 0.3rem 0.7rem; border-radius: var(--r-pill); }

/* Accordion */
.accordion { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.accordion__item + .accordion__item { border-top: 1px solid var(--border); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 1.15rem 1.4rem; text-align: left; font-weight: var(--fw-semibold);
  font-size: 1.02rem; color: var(--slate-800);
}
.accordion__trigger:hover { background: var(--blue-50); }
.accordion__trigger .icon { width: 1.3rem; height: 1.3rem; color: var(--blue-500); flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.accordion__trigger[aria-expanded='true'] { color: var(--blue-700); }
.accordion__trigger[aria-expanded='true'] .icon { transform: rotate(45deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.accordion__panel > div { overflow: hidden; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel p { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }

/* Data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.data-table th, .data-table td { padding: 0.85rem 1.1rem; text-align: left; }
.data-table thead th { background: var(--blue-900); color: var(--white); font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: 0.85rem; letter-spacing: 0.02em; }
.data-table tbody tr:nth-child(even) { background: var(--bg-subtle); }
.data-table tbody tr:hover { background: var(--blue-50); }
.data-table td { border-top: 1px solid var(--border); color: var(--slate-700); }
.status-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border-radius: var(--r-pill); font-size: 0.78rem; font-weight: var(--fw-semibold); }
.status-badge--ok { background: var(--ok-50); color: var(--ok-700); }
.status-badge .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }

/* Contact Form 7 - bridge the plugin's markup to the design's form look */
.wpcf7-form p { margin: 0 0 var(--sp-4); }
.wpcf7-form label { display: block; font-weight: var(--fw-semibold); font-size: 0.92rem; color: var(--slate-800); }
.wpcf7-form input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=file]),
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%; padding: 0.8rem 1rem; min-height: 50px; margin-top: 0.4rem;
  background: var(--white); border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md); font-size: 1rem; color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.wpcf7-form textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring-shadow); }
.wpcf7-form .wpcf7-submit {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  width: auto; min-height: 50px; padding: 0.8rem 1.6rem; margin-top: var(--sp-2);
  background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--r-md);
  font-weight: var(--fw-semibold); font-size: 1rem; cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.wpcf7-form .wpcf7-submit:hover { background: var(--primary-hover); }
.wpcf7-list-item { margin-left: 0; margin-right: var(--sp-4); }
.wpcf7-not-valid-tip { color: var(--alert-600); font-size: 0.82rem; font-weight: var(--fw-medium); margin-top: 0.3rem; }
.wpcf7-form-control.wpcf7-not-valid { border-color: var(--alert-500) !important; }
.wpcf7-response-output { margin: var(--sp-4) 0 0 !important; padding: var(--sp-3) var(--sp-4) !important; border-radius: var(--r-md); font-size: 0.92rem; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { border-color: var(--alert-500); background: var(--alert-50); color: var(--alert-700); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--ok-500); background: var(--ok-50); color: var(--ok-700); }
.wpcf7-spinner { background-color: var(--blue-300); }

/* Breadcrumb + page header */
.page-hero { position: relative; background: var(--blue-950); color: var(--blue-100); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40rem 30rem at 85% -20%, rgba(45,192,207,0.22), transparent 55%), radial-gradient(40rem 30rem at 0% 120%, rgba(20,99,166,0.5), transparent 55%); }
.page-hero__inner { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.page-hero h1 { color: var(--white); font-size: var(--text-4xl); margin-top: var(--sp-3); max-width: 20ch; }
.page-hero p { margin-top: var(--sp-4); color: var(--blue-100); font-size: var(--text-lg); max-width: 60ch; }

/* Institutional "co-financing" bar (EU / Guvernul României / Instrumente
   Structurale) - on every page under the header, above the fold: a short label
   on the left, the mandatory emblems on the right. */
/* Service alert bar - site-wide notice at the very top (Customizer-managed). */
.apa-alert { color: #fff; }
.apa-alert--info { background: var(--blue-600); }
.apa-alert--warning { background: var(--amber-700); }
.apa-alert--alert { background: var(--alert-600); }
.apa-alert__inner { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.7rem; }
.apa-alert__icon { display: inline-flex; flex-shrink: 0; }
.apa-alert__icon .icon { width: 1.25rem; height: 1.25rem; }
.apa-alert__msg { margin: 0; flex: 1 1 auto; font-size: 0.92rem; line-height: 1.4; font-weight: var(--fw-medium); }
.apa-alert__link { color: #fff; font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.apa-alert__link:hover { text-decoration: none; }
.apa-alert__close { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; transition: background var(--dur) var(--ease); }
.apa-alert__close:hover { background: rgba(255, 255, 255, 0.28); }
.apa-alert__close .icon { width: 1.05rem; height: 1.05rem; }
@media (max-width: 600px) { .apa-alert__msg { font-size: 0.86rem; } }

.funding-bar { background: #fff; border-bottom: 1px solid var(--border); }
.funding-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; padding-block: 0.85rem; flex-wrap: wrap; }
.funding-bar__label { margin: 0; font-size: 0.72rem; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.funding-bar__label strong { display: block; font-size: 0.82rem; font-weight: var(--fw-semibold); color: var(--slate-800); letter-spacing: 0.04em; }
.funding { display: inline-flex; align-items: center; gap: clamp(1.5rem, 4vw, 2.75rem); }
.funding__logo { height: 50px; width: auto; display: block; }
.funding__logo--is { height: 56px; }
/* EU flag + its required "Uniunea Europeană" caption, stacked. */
.funding__eu { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; }
.funding__eu .funding__logo--eu { height: 40px; box-shadow: 0 0 0 1px rgba(11, 42, 72, 0.08); }
.funding__eu small { font-size: 0.56rem; font-weight: var(--fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-600); white-space: nowrap; }
@media (max-width: 700px) { .funding-bar__inner { justify-content: center; } .funding-bar__label { text-align: center; width: 100%; } }
@media (max-width: 480px) { .funding { gap: 1.1rem; } .funding__logo { height: 42px; } .funding__logo--is { height: 48px; } .funding__eu .funding__logo--eu { height: 34px; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: var(--text-sm); color: var(--blue-200); }
.breadcrumb a { color: var(--blue-200); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: var(--blue-400); }
.breadcrumb [aria-current] { color: var(--aqua-300); font-weight: var(--fw-medium); }

/* Info callout */
.callout { display: flex; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--blue-50); border: 1px solid var(--blue-100); }
.callout__ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--white); color: var(--blue-600); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--sh-xs); }
.callout--alert { background: var(--alert-50); border-color: #f6cbbd; }
.callout--alert .callout__ico { color: var(--alert-600); }
.callout h4 { margin-bottom: 0.25rem; }
.callout p { font-size: 0.94rem; color: var(--ink-soft); }

/* ============================ 10. FOOTER =============================== */
.site-footer { background: var(--blue-950); color: var(--blue-200); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: var(--blue-200); }
.site-footer a:hover { color: var(--white); }
/* Buttons keep their own foreground in the footer - the generic link colour above
   is more specific than .btn and would otherwise drop the CTAs to failing AA
   contrast (light-blue text on the white / --primary button fills). */
.site-footer a.btn, .site-footer a.btn:hover { color: var(--btn-fg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: var(--sp-8); }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__sub { color: var(--aqua-400); }
.footer-about { margin-top: var(--sp-4); font-size: 0.92rem; color: var(--blue-200); max-width: 34ch; }
.footer-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-cta .btn { font-size: var(--text-sm); padding: 0.6rem 1rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--sp-5); }
.footer-social a { display: inline-flex; width: 42px; height: 42px; border-radius: var(--r-md); background: rgba(255,255,255,0.08); align-items: center; justify-content: center; transition: background var(--dur) var(--ease); }
.footer-social a:hover { background: var(--blue-600); }
.footer-social .icon { width: 1.25rem; height: 1.25rem; }
.footer-col h3 { color: var(--white); font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.footer-col ul { display: grid; gap: 0.6rem; list-style: none; }
.footer-col a { font-size: 0.94rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: var(--sp-3); font-size: 0.92rem; }
.footer-contact .icon { width: 1.15rem; height: 1.15rem; color: var(--aqua-400); flex-shrink: 0; margin-top: 0.15rem; }
.footer-contact b { color: var(--white); display: block; font-weight: var(--fw-semibold); }
/* Compact dispecerat row - aligns with the other contact items, no bulky box */
.footer-emergency { margin-top: 0.15rem; }
.footer-emergency .icon { width: 1.15rem; height: 1.15rem; color: #ff9b80; flex-shrink: 0; margin-top: 0.15rem; }
.footer-emergency b { display: block; color: #ff9b80; font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; font-weight: var(--fw-semibold); margin-bottom: 0.05rem; }
.footer-emergency a { color: #fff; font-weight: var(--fw-semibold); }
.footer-emergency a:hover { color: #fff; text-decoration: underline; }
.footer-reg { list-style: none; padding: var(--sp-5) 0 0; margin: 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: 0.8rem; color: var(--blue-300); }
.footer-reg li { display: inline-flex; align-items: baseline; gap: 0.4rem; }
.footer-reg li + li { position: relative; padding-left: var(--sp-5); }
.footer-reg li + li::before { content: ''; position: absolute; left: calc(var(--sp-5) / 2 - 1px); top: 0.15em; bottom: 0.15em; width: 1px; background: rgba(255,255,255,0.14); }
.footer-reg b { color: var(--blue-200); font-weight: var(--fw-semibold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--blue-300); }
/* No legal menu assigned yet: a lone left-aligned line reads as an accident,
   so the copyright centers until the menu fills the right slot. */
.footer-bottom--solo { justify-content: center; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }

/* Romanian tricolor ribbon along the top edge of the footer */
.site-footer { position: relative; }
.site-footer::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #002b7f 0 33.34%, #fcd116 33.34% 66.67%, #ce1126 66.67% 100%);
}

/* Payments + registration data meta band (EU emblems live in the funding bar
   under the header, so the footer's right side carries the legal identity). */
.footer-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-7);
  align-items: center; justify-content: space-between;
  padding-block: var(--sp-6); border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-meta__label { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-300); margin-bottom: var(--sp-3); }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pay-chip { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 52px; padding: 0 10px; background: #fff; border-radius: 7px; box-shadow: var(--sh-xs); }
.pay-chip img { height: 21px; width: auto; display: block; }
.netopia-badge { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; background: #fff; border-radius: 7px; box-shadow: var(--sh-xs); font-weight: var(--fw-bold); color: #18233a; font-size: 0.96rem; letter-spacing: -0.01em; }
.netopia-badge b { font-weight: var(--fw-medium); color: #6a7a89; margin-left: 0.3rem; font-size: 0.8rem; }
.netopia-dot { width: 8px; height: 8px; border-radius: 50%; background: #f37021; margin-right: 0.4rem; }
.footer-legal { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; }
.footer-legal .footer-meta__label { text-align: right; }
.footer-reg--meta { border-top: 0; padding-top: 0; justify-content: flex-end; }
@media (max-width: 760px) {
  .footer-meta { flex-direction: column; align-items: flex-start; gap: var(--sp-5); }
  .footer-legal { align-items: flex-start; }
  .footer-legal .footer-meta__label { text-align: left; }
  .footer-reg--meta { justify-content: flex-start; }
}

/* ============================ 11. UTILITIES ============================ */
.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; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.flow > * + * { margin-top: var(--sp-4); }
.flow-lg > * + * { margin-top: var(--sp-6); }
.full-bleed-top { margin-top: -1px; }
.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

/* ============================ 12. MOTION ============================== */
/* Reveal only hides content when JS is active (.js on <html>); without JS
   everything renders normally. Reveal uses an ANIMATION (not a transition) so
   it never competes with the element's own hover transition on `transform`. */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-revealed { opacity: 1; animation: reveal-in var(--dur-slow) var(--ease) backwards; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(16px); } }
/* Failsafe: if reveal.js never runs (load/parse error), the head-script timeout
   adds .reveal-failsafe so the page body can never stay permanently hidden. */
.reveal-failsafe [data-reveal] { opacity: 1 !important; animation: none !important; }

/* Static no-JS fallback bars (replaced by partials when JS runs) */
.fallback-bar { background: var(--blue-950); color: var(--blue-100); padding-block: var(--sp-4); }
.fallback-bar a { color: #fff; }
.fallback-bar .container { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; justify-content: space-between; }
.fallback-bar img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.js .fallback-bar { display: none; }
.js [data-reveal].is-revealed[data-reveal-delay='1'] { animation-delay: 70ms; }
.js [data-reveal].is-revealed[data-reveal-delay='2'] { animation-delay: 140ms; }
.js [data-reveal].is-revealed[data-reveal-delay='3'] { animation-delay: 210ms; }
.js [data-reveal].is-revealed[data-reveal-delay='4'] { animation-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1 !important; animation: none !important; }
  .emergency-fab .pulse::after { display: none; }
}

/* ============================ 13. RESPONSIVE ========================== */
/* Hold the dispecerat phone back until there's comfortable room for it. */
@media (max-width: 1240px) { .header-phone { display: none; } }
@media (max-width: 1080px) {
  /* Collapse to the drawer here: the 6-item desktop nav + pay needs ~1080px+
     to breathe, so tablets/small laptops get the cleaner hamburger. */
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-4); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 560px; }
  .dropdown--wide .dropdown__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  /* Brand + contact stay full-width; the two link lists sit side by side
     so the footer isn't an endless scroll on phones. */
  .footer-grid { grid-template-columns: 1fr 1fr; column-gap: var(--sp-5); row-gap: var(--sp-6); }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .hero__trust { gap: var(--sp-5); }
  /* Keep the primary label on mobile (an "extended FAB") so it clearly reads as a
     "report a fault" action, not a lone warning triangle that looks like a site
     error. Only the secondary "Dispecerat 24/7" line is dropped, to stay compact. */
  .emergency-fab__txt small { display: none; }
  .emergency-fab { padding: 0.7rem 1.05rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom--solo { align-items: center; }
}
@media (max-width: 380px) {
  /* Only the tiniest phones drop the pay button to icon-only so the header never
     overflows; 380px and up show the "Portal clienți" label (fits Pro/Pro Max). */
  .header-actions .btn--primary .btn__label { display: none; }
  .header-actions .btn--primary { padding: 0.7rem; }
  .stats { grid-template-columns: 1fr; }
}

/* ============================ 14. MOBILE DRAWER ======================== */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(7, 29, 51, 0.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur); z-index: var(--z-drawer); }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 400px);
  background: var(--white); z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
  display: flex; flex-direction: column; box-shadow: var(--sh-xl);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
/* The "Toate" drawer is anchored to a left-side trigger, so it slides from the left. */
.drawer--toate { right: auto; left: 0; transform: translateX(-100%); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--white); }
.drawer__close { width: 48px; height: 48px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; color: var(--slate-700); }
.drawer__close:hover { background: var(--blue-50); }
.drawer__close .icon { width: 1.6rem; height: 1.6rem; }
.drawer__title { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: var(--fw-semibold); font-size: 1.05rem; color: var(--slate-800); }
.drawer__title .icon { width: 1.3rem; height: 1.3rem; color: var(--blue-600); }
/* Top-level drawer rows: icon chip + label on the left, chevron on the right. */
.drawer__label { min-width: 0; }
/* The desktop "Toate" drawer reads as an intentional panel, a touch wider. */
@media (min-width: 1140px) { .drawer--toate { width: min(460px, 42vw); } }
.drawer__body { padding: var(--sp-4) var(--sp-5) var(--sp-6); }
.drawer__nav { list-style: none; }
.drawer__nav > li { border-bottom: 1px solid var(--border); }
.drawer__nav a, .drawer__acc-trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); width: 100%; padding: 0.95rem 0.25rem; font-weight: var(--fw-medium); color: var(--slate-800); font-size: 1.05rem; text-align: left; }
.drawer__nav a:hover, .drawer__acc-trigger:hover { color: var(--blue-700); text-decoration: none; }
/* Scope the chevron sizing/rotation to the trigger's OWN chevron (direct child),
   so it never shrinks or rotates the leading icon chip inside .drawer__label. */
.drawer__acc-trigger > .icon { width: 1.3rem; height: 1.3rem; color: var(--blue-500); transition: transform var(--dur) var(--ease); }
.drawer__acc-trigger[aria-expanded='true'] > .icon { transform: rotate(180deg); }
.drawer__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.drawer__sub > div { overflow: hidden; }
.drawer__sub.is-open { grid-template-rows: 1fr; }
.drawer__sub a { padding: 0.65rem 0.25rem 0.65rem 1rem; font-size: 0.98rem; font-weight: var(--fw-normal); color: var(--ink-soft); border: none; }
/* Nested accordions (3rd/4th level): sub-triggers match the sub-link scale; each
   deeper panel indents cumulatively via its wrapper's inline padding. Collapsed
   panels carry [inert], so their links are skipped by Tab and pointer until open. */
.drawer__sub .drawer__acc-trigger { padding: 0.65rem 0.25rem 0.65rem 1rem; font-size: 0.98rem; font-weight: var(--fw-normal); color: var(--ink-soft); }
.drawer__sub .drawer__sub > div { padding-inline-start: 0.9rem; }
.drawer__cta { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.drawer__contact { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border); display: grid; gap: var(--sp-4); }
.drawer__contact a, .drawer__contact span { display: flex; align-items: center; gap: 0.65rem; font-size: 0.95rem; color: var(--ink-soft); }
.drawer__contact a { padding: 0; border: none; font-weight: var(--fw-semibold); color: var(--slate-800); }
.drawer__contact a:hover { color: var(--blue-700); }
.drawer__contact .icon { width: 1.2rem; height: 1.2rem; color: var(--blue-500); flex-shrink: 0; }

/* ====================== 15. WP CONTENT (the_content) ================== */
/* Styling for editor-authored content (pages, posts, archives, search) that the
   bespoke templates don't cover. Token-driven; complements the base typography. */

/* Lead paragraph on the navy quality band */
.section--navy .lead { color: var(--blue-100); }

.page-hero .breadcrumb { margin-bottom: var(--sp-4); }
.page-hero .eyebrow { color: var(--aqua-300); }
.page-hero .eyebrow::before { background: var(--aqua-300); }

/* Readable prose column */
.entry-content { color: var(--ink); }
.entry-content > * + * { margin-top: var(--sp-4); }
.entry-content > h2 { margin-top: var(--sp-8); }
.entry-content > h3 { margin-top: var(--sp-7); }
.entry-content > h4 { margin-top: var(--sp-6); }
.entry-content h2 { font-size: var(--text-3xl); }
.entry-content h3 { font-size: var(--text-2xl); }
.entry-content h4 { font-size: var(--text-xl); }
.entry-content p, .entry-content li { line-height: 1.75; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--blue-200); }
.entry-content a:hover { text-decoration-color: var(--primary); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: var(--sp-2); }
.entry-content img { border-radius: var(--r-md); }
.entry-content figure { margin-block: var(--sp-5); }
.entry-content figcaption { font-size: var(--text-sm); color: var(--ink-faint); margin-top: var(--sp-2); text-align: center; }
.entry-content blockquote { border-left: 3px solid var(--aqua-400); padding: var(--sp-2) var(--sp-5); color: var(--ink-soft); background: var(--bg-subtle); border-radius: 0 var(--r-md) var(--r-md) 0; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin-block: var(--sp-7); }
.entry-content .alignleft { float: left; margin: 0 var(--sp-5) var(--sp-4) 0; }
.entry-content .alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-5); }
.entry-content .aligncenter { margin-inline: auto; }

/* Tables (financial / transparency tables) - scroll on small screens */
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); border: 1px solid var(--border); }
.entry-content th, .entry-content td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.entry-content thead th { background: var(--blue-900); color: var(--white); font-weight: var(--fw-semibold); }
.entry-content tbody tr:nth-child(even) { background: var(--bg-subtle); }

/* Document links (the PDF-heavy 544/2001 pages) get a file affordance */
.entry-content a[href$=".pdf"], .entry-content a[href$=".doc"], .entry-content a[href$=".docx"],
.entry-content a[href$=".xls"], .entry-content a[href$=".xlsx"], .entry-content a[href$=".zip"], .entry-content a[href$=".odt"] {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  text-decoration: none; font-weight: var(--fw-medium);
}
.entry-content a[href$=".pdf"]::before, .entry-content a[href$=".doc"]::before, .entry-content a[href$=".docx"]::before,
.entry-content a[href$=".xls"]::before, .entry-content a[href$=".xlsx"]::before, .entry-content a[href$=".zip"]::before, .entry-content a[href$=".odt"]::before {
  content: ''; width: 1.05em; height: 1.05em; flex-shrink: 0; background: var(--blue-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Page / post body wrapper */
.page-body { padding-block: clamp(2.5rem, 5vw, var(--sp-9)); }
.entry-footer { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); color: var(--ink-faint); font-size: var(--text-sm); }
.post-meta span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.post-meta .icon { width: 1.05em; height: 1.05em; color: var(--blue-500); }
.post-meta a { color: var(--ink-soft); }

/* Post cover - height-capped so portrait posters/oversized images never dominate,
   but the whole image is preserved (no cropping of document/poster content). */
.post-cover { margin: var(--sp-5) 0 var(--sp-6); text-align: center; }
.post-cover img { max-height: 520px; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--r-lg); box-shadow: var(--sh-md); }

/* Tags */
.entry-footer__label { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-semibold); color: var(--ink-soft); }
.entry-footer .tag-list a, .entry-footer a[rel~="tag"] { display: inline-block; padding: 0.2rem var(--sp-3); margin: 0 var(--sp-2) var(--sp-2) 0; background: var(--bg-muted); border-radius: var(--r-pill); font-size: var(--text-sm); color: var(--blue-700); }
.entry-footer a[rel~="tag"]:hover { background: var(--blue-100); text-decoration: none; }

/* Prev / next post cards */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-8); }
.post-nav__link { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.post-nav__link:hover { border-color: var(--blue-300); box-shadow: var(--sh-sm); text-decoration: none; }
.post-nav__link--next { text-align: right; }
.post-nav__dir { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.04em; }
.post-nav__link--next .post-nav__dir { justify-content: flex-end; }
.post-nav__link--prev .post-nav__dir .icon { transform: rotate(180deg); }
.post-nav__title { color: var(--ink); font-weight: var(--fw-semibold); line-height: 1.3; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { text-align: left; } .post-nav__link--next .post-nav__dir { justify-content: flex-start; } }

.related-posts .section-head { margin-bottom: var(--sp-6); }

/* Pagination */
.pagination { margin-top: var(--sp-8); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding-inline: var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-md); color: var(--ink-soft); font-weight: var(--fw-medium); }
.pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pagination .page-numbers.dots { border-color: transparent; }

.empty-state { color: var(--ink-faint); font-size: var(--text-lg); text-align: center; padding-block: var(--sp-8); }
.ink-soft { color: var(--ink-soft); }

/* Accessible visually-hidden text (WP convention) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Search form */
.search-form { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.search-form .search-field { flex: 1 1 14rem; min-width: 0; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); }
.search-form .search-field:focus-visible { border-color: var(--ring); }

/* Sidebar widgets (blog) */
.widget + .widget { margin-top: var(--sp-6); }
.widget-title { font-size: var(--text-lg); margin-bottom: var(--sp-3); }
.widget ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }

/* Footer widget area (hybrid footer) */
.footer-widgets { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: center; justify-content: center; padding-bottom: var(--sp-6); margin-bottom: var(--sp-6); border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-widget img { display: inline-block; }

/* Comments (kept minimal - utility site) */
.comments-area { margin-top: var(--sp-8); }
.comment-list { list-style: none; padding: 0; display: grid; gap: var(--sp-5); }
.comment-body { padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.comment-form { display: grid; gap: var(--sp-4); max-width: 40rem; }
.comment-form input, .comment-form textarea { width: 100%; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border-strong); border-radius: var(--r-md); }

@media (max-width: 760px) {
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ============ 16. COOKIE CONSENT (cookie-law-info / WebToffee) ======== */
/* Restyle the plugin's bottom bar + buttons to the design (it ships heavy inline
   styles, so brand-critical properties use !important). */
#cookie-law-info-bar {
  left: 50% !important; right: auto !important; transform: translateX(-50%);
  bottom: clamp(0.75rem, 2vw, 1.5rem) !important;
  width: min(1140px, calc(100vw - 1.5rem)) !important;
  background: var(--white) !important; color: var(--ink-soft) !important;
  border: 1px solid var(--border) !important; border-radius: var(--r-lg) !important;
  box-shadow: var(--sh-lg) !important;
  padding: var(--sp-5) !important;
  font-family: var(--font-sans) !important; font-size: var(--text-sm) !important; line-height: 1.6 !important;
}
#cookie-law-info-bar .cli-bar-message { color: var(--ink-soft) !important; font-size: var(--text-sm) !important; }
#cookie-law-info-bar a:not(.cli-plugin-button) { color: var(--primary) !important; text-decoration: underline; }
#cookie-law-info-bar a.cli-plugin-button {
  display: inline-flex !important; align-items: center !important; gap: var(--sp-2) !important;
  border-radius: var(--r-md) !important; font-weight: var(--fw-semibold) !important;
  padding: 0.62rem 1.25rem !important; font-size: var(--text-sm) !important;
  font-family: var(--font-sans) !important; line-height: 1.2 !important; text-decoration: none !important;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease) !important;
}
#cookie-law-info-bar a.wt-cli-accept-all-btn, #cookie-law-info-bar a.wt-cli-accept-btn {
  background: var(--primary) !important; color: var(--on-primary) !important; border: 1.5px solid var(--primary) !important;
}
#cookie-law-info-bar a.wt-cli-accept-all-btn:hover, #cookie-law-info-bar a.wt-cli-accept-btn:hover {
  background: var(--primary-hover) !important; border-color: var(--primary-hover) !important;
}
#cookie-law-info-bar a.cli_settings_button, #cookie-law-info-bar a.wt-cli-reject-btn {
  background: var(--white) !important; color: var(--primary) !important; border: 1.5px solid var(--border-strong) !important;
}
#cookie-law-info-bar a.cli_settings_button:hover, #cookie-law-info-bar a.wt-cli-reject-btn:hover { border-color: var(--primary) !important; }
/* Settings modal */
.cli-modal-content { border-radius: var(--r-lg) !important; font-family: var(--font-sans) !important; }
.cli-modal-content .cli-tab-header, #cliModalHeader h2 { font-family: var(--font-display) !important; color: var(--blue-950) !important; }
.cli-modal-content #wt-cli-privacy-save-btn, .cli-modal-content .cli_setting_save_button {
  background: var(--primary) !important; color: var(--on-primary) !important; border: none !important;
  border-radius: var(--r-md) !important; font-weight: var(--fw-semibold) !important;
}

/* ============================ 17. PRINT =============================== */
@media print {
  .site-header, .emergency-fab, .nav-toggle, .hero__bg, .wave, .cta-band, .footer-social, .drawer, .drawer-backdrop { display: none !important; }
  body { color: #000; background: #fff; }
  * { box-shadow: none !important; }
  a { color: #000; text-decoration: underline; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #555; }
  .hero, .page-hero, .section--navy, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .section--navy h2 { color: #000 !important; }
  .section { padding-block: 1.5rem; }
  .card, .action { border: 1px solid #ccc; }
}

