/* ==========================================================================
   Ceba Logistics LLC — Shared stylesheet
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
  --navy-900: #0f2742;
  --navy-800: #14233a;
  --navy-700: #1b3354;
  --navy-600: #244b7a;
  --amber-500: #f59e0b;
  --amber-600: #d98a06;
  --amber-400: #fbbf3c;

  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;

  --white: #ffffff;
  --black: #0b1220;

  --bg: var(--gray-50);
  --surface: var(--white);
  --text: var(--gray-800);
  --text-muted: var(--gray-600);
  --text-invert: var(--white);
  --primary: var(--navy-900);
  --primary-dark: var(--navy-800);
  --accent: var(--amber-500);
  --accent-dark: var(--amber-600);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 39, 66, 0.06), 0 1px 3px rgba(15, 39, 66, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 39, 66, 0.10), 0 2px 4px -2px rgba(15, 39, 66, 0.08);
  --shadow-lg: 0 12px 24px -8px rgba(15, 39, 66, 0.18), 0 6px 12px -6px rgba(15, 39, 66, 0.12);

  --container: 1200px;
  --header-h: 72px;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --transition: 200ms ease;
}

/* --- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.6em; line-height: 1.2; font-weight: 700; color: var(--navy-900); }
h1 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1rem; }

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

/* --- Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding: 40px 0; background: var(--white); }
@media (min-width: 1024px) { .section { padding: 64px 0; } }
.section--tint { background: var(--gray-100); }
.section--navy { background: var(--navy-900); color: var(--text-invert); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--amber-400); }

.section--alt { background: var(--gray-100); }
.container--narrow { max-width: 760px; }
.map-embed {
  max-width: 720px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: var(--text-invert);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--white);
}
.brand:hover { text-decoration: none; color: var(--white); }
.brand__name { color: var(--white); }
.brand__tagline {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--amber-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--amber-500);
  color: var(--navy-900);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
  flex: 0 0 auto;
}
.brand__name b { color: var(--amber-400); font-weight: 800; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  padding: 0;
}
.nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--amber-400); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin: 3px auto;
}
.nav-toggle span:nth-child(2) { margin-top: 0; }
.nav-toggle span:nth-child(3) { margin-bottom: 0; }

.main-nav { display: none; }
.main-nav.open {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.main-nav > a {
  display: block;
  color: var(--white);
  padding: 12px 4px;
  font-weight: 500;
  border-radius: 6px;
}
.main-nav > a:hover, .main-nav > a[aria-current="page"] {
  color: var(--amber-400);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }
  .main-nav > a { padding: 8px 14px; }
  .main-nav > a.btn { margin-left: auto; }
}
.main-nav.open > a.btn { margin-left: 0; width: 100%; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--accent);
  color: var(--navy-900);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--navy-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-700);
}
.btn--outline:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.btn--accent {
  background: var(--accent);
  color: var(--navy-900);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-dark);
  color: var(--navy-900);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: var(--amber-400);
}
.btn--sm { padding: 8px 14px; min-height: 38px; font-size: 0.9rem; }

.hero .btn--outline,
.page-head .btn--outline,
.section--navy .btn--outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.hero .btn--outline:hover,
.page-head .btn--outline:hover,
.section--navy .btn--outline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
}

/* --- Cards / grids -------------------------------------------------------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) and (max-width: 1023px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 768px) and (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-dark);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--gray-200);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.aspect-16x9 { aspect-ratio: 16 / 9; }
.aspect-4x3  { aspect-ratio: 4 / 3; }
.aspect-21x9 { aspect-ratio: 21 / 9; }
.media--rounded-lg { border-radius: var(--radius-lg); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 48px 0 44px;
}
.hero__grid,
.hero__inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p { color: var(--gray-200); font-size: 1.1rem; }
.hero__subhead { color: var(--gray-200); font-size: 1.1rem; max-width: 58ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__media .media { box-shadow: var(--shadow-lg); }
.hero__media img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) {
  .hero { padding: 64px 0; }
  .hero__grid, .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 40px; }
}

/* --- Split content -------------------------------------------------------- */
.split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* --- Section heads -------------------------------------------------------- */
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section__head h2 { margin: 0; }
.section__link {
  font-weight: 600;
  color: var(--navy-700);
  white-space: nowrap;
}
.section__link:hover { color: var(--accent-dark); }
.section--navy .section__link { color: var(--amber-400); }

/* --- Service cards -------------------------------------------------------- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.service-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-card h3 { padding: 18px 20px 0; margin-bottom: 8px; }
.service-card p { padding: 0 20px; margin-bottom: 16px; color: var(--text-muted); }
.service-card__link {
  display: inline-block;
  margin: 0 20px 20px;
  margin-top: auto;
  font-weight: 600;
  color: var(--navy-700);
}
.service-card__link:hover { color: var(--accent-dark); }

/* --- Feature cards -------------------------------------------------------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.feature__num {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber-600);
  margin-bottom: 10px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-muted); margin-bottom: 0; }

/* --- Trust bar (hero) ----------------------------------------------------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-200);
}
.trust-bar__icon {
  color: var(--amber-400);
  font-size: 1rem;
}

/* --- Stats strip ---------------------------------------------------------- */
.stats-strip__grid { gap: 22px; }
.stats-strip__item {
  text-align: center;
  padding: 18px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.stats-strip__value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.stats-strip__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Stats ---------------------------------------------------------------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  text-align: center;
  padding: 18px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.stat__num { font-size: 1.8rem; font-weight: 800; color: var(--navy-900); }
.stat__label { color: var(--text-muted); font-size: 0.9rem; }

/* --- Forms --------------------------------------------------------------- */
.form-wrap { max-width: 640px; margin-inline: auto; }
.form-wrap--wide { max-width: 820px; }
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.field, .form-field { margin-bottom: 16px; }
.field:last-child, .form-field:last-child { margin-bottom: 0; }
.field > label, .form-field > label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.field .req, .form-field .req { color: #b91c1c; }
.field input[type="text"], .form-field input[type="text"],
.field input[type="email"], .form-field input[type="email"],
.field input[type="tel"], .form-field input[type="tel"],
.field input[type="search"], .form-field input[type="search"],
.field input[type="date"], .form-field input[type="date"],
.field select, .form-field select,
.field textarea, .form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea, .form-field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder,
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--gray-400); }
.field input:focus, .form-field input:focus,
.field select:focus, .form-field select:focus,
.field textarea:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.field input[aria-invalid="true"], .form-field input[aria-invalid="true"],
.field textarea[aria-invalid="true"], .form-field textarea[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.field__help, .form-field__help { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.field__error, .form-field__error { font-size: 0.85rem; color: #b91c1c; margin-top: 6px; display: none; }
.field__error.show, .form-field__error.show { display: block; }

.form-small { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.lead-intro { color: var(--text-muted); margin-bottom: 16px; }

.checkbox, .radio { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input, .radio input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent-dark); }
.checkbox label, .radio label { margin-bottom: 0; font-weight: 400; color: var(--text); }

.form-field--check .check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  font-weight: 400;
  color: var(--text);
}
.form-field--check .check-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent-dark);
}
.form-field--check .check-label span { font-weight: 400; color: var(--text); }
.form-field--check .check-label a { color: var(--navy-700); font-weight: 600; }

.honeypot, .hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-weight: 500;
}
.form-success.show { display: block; }
.form-success a { color: #047857; font-weight: 700; }
.form-success__mailbtn { margin-top: 10px; }

/* --- Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
table.data th { background: var(--gray-100); color: var(--navy-900); font-weight: 700; }
table.data tr:last-child td { border-bottom: none; }

/* --- Page header --------------------------------------------------------- */
.page-head {
  background: var(--navy-900);
  color: var(--white);
  padding: 44px 0 36px;
}
.page-head h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-head p { color: var(--gray-200); margin-bottom: 0; max-width: 60ch; }

/* --- Breadcrumbs --------------------------------------------------------- */
.breadcrumbs { font-size: 0.85rem; color: var(--gray-200); margin-bottom: 14px; }
.breadcrumbs a { color: var(--amber-400); }
.breadcrumbs span { opacity: 0.6; margin: 0 6px; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy-800);
  color: var(--gray-300);
  padding: 44px 0 26px;
  margin-top: 0;
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: var(--gray-300); }
.site-footer a:hover { color: var(--amber-400); text-decoration: none; }
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-contact address { font-style: normal; line-height: 1.7; }
.footer-contact a { display: inline-block; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-400);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* --- Footer (real markup) ------------------------------------------------ */
.site-footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-col__title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-col__desc {
  color: var(--gray-300);
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.footer-col__addr {
  color: var(--gray-300);
  font-style: normal;
  line-height: 1.7;
  font-size: 0.92rem;
  margin-bottom: 0;
}
.footer-col__addr a { color: var(--gray-300); }
.footer-col__addr a:hover { color: var(--amber-400); }
.footer-col__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col__list li { margin-bottom: 8px; }
.footer-col__list a { color: var(--gray-300); }
.footer-col__list a:hover { color: var(--amber-400); }
.footer-col__disclaimer {
  color: var(--gray-400);
  font-size: 0.85rem;
  line-height: 1.6;
}
.site-footer__bar {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  align-items: center;
}
.site-footer__bar p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray-400);
}
.site-footer__legal { }

/* --- Cookie banner & modal ----------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 320ms ease, opacity 320ms ease;
  padding: 0 16px 16px;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner__content {
  max-width: var(--container);
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  align-items: center;
}
.cookie-banner__content > p { color: var(--text); font-size: 0.92rem; }
.cookie-banner__content > p a { color: var(--navy-700); font-weight: 600; }
.cookie-banner__buttons {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: flex-start;
}
@media (min-width: 768px) {
  .cookie-banner__content { grid-template-columns: 1fr auto; gap: 24px; }
  .cookie-banner__buttons { justify-content: flex-end; }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 39, 66, 0.55);
}
.modal.open { display: flex; }
.modal__dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.modal__head h3 { margin: 0; }
.modal__close {
  background: transparent; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--gray-500);
  padding: 4px 8px; border-radius: 6px;
}
.modal__close:hover { color: var(--navy-900); background: var(--gray-100); }
.modal__body p { font-size: 0.92rem; color: var(--text-muted); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.modal .checkbox { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.modal .checkbox input[disabled] { accent-color: var(--gray-400); }

/* --- Cookie modal (real markup) ------------------------------------------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 39, 66, 0.55);
}
.cookie-modal.open { display: flex; }
.cookie-modal__dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 8px; right: 8px;
  background: transparent; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--gray-500);
  padding: 4px 8px; border-radius: 6px;
}
.cookie-modal__close:hover { color: var(--navy-900); background: var(--gray-100); }
.cookie-modal__dialog h2 { margin-bottom: 12px; }
.cookie-modal__dialog > p { font-size: 0.92rem; color: var(--text-muted); }
.cookie-opt { margin-top: 12px; }
.cookie-opt label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
}
.cookie-opt label:last-child { margin-bottom: 0; }
.cookie-opt input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent-dark);
}
.cookie-opt input[type="checkbox"][disabled] { accent-color: var(--gray-400); }
.cookie-opt span { font-weight: 400; color: var(--text-muted); font-size: 0.9rem; }
#cookieSavePrefs { margin-top: 18px; }

/* --- Utilities ----------------------------------------------------------- */
.sr-only {
  position: absolute; 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: -9999px; top: 0; z-index: 500;
  background: var(--amber-500); color: var(--navy-900);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
.muted { color: var(--text-muted); }
.lead { font-size: 1.12rem; color: var(--text-muted); }
.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(245, 158, 11, 0.14); color: var(--accent-dark);
}
.divider { height: 1px; background: var(--border); border: none; margin: 32px 0; }

/* --- Print --------------------------------------------------------------- */
@media print {
  .site-header, .main-nav, .nav-toggle, .site-footer,
  .cookie-banner, .cookie-modal, .modal, .skip-link, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero, .page-head { padding: 12px 0; background: #fff !important; color: #000; }
  .hero h1, .page-head h1, .section--navy h1, .section--navy h2 { color: #000; }
  a { color: #000; text-decoration: underline; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
