/* ============ THEME TOKENS ============ */
:root {
  --brand: #0b4f8a;          /* TEMESA blue */
  --brand-dark: #073a66;
  --accent: #f2b705;         /* gold accent */
  --bg: #ffffff;
  --text: #1d2733;
  --muted: #5a6b7c;
  --line: #e3e9ef;
  --accent-text: #9a7200;    /* gold dark enough to read on white */
  --tint: #f2f7fc;
  --topbar-bg: var(--brand-dark);
  --topbar-text: #dbe6f1;
  --topbar-line: rgba(255, 255, 255, .16);
  --topbar-soft: rgba(255, 255, 255, .08);
}

/* Dark */
html[data-theme="dark"] {
  --brand: #4a9be0;
  --brand-dark: #0d1620;
  --bg: #121a23;
  --text: #dce6f0;
  --muted: #93a4b5;
  --line: #24313f;
  --accent-text: var(--accent);
  --tint: #16212d;
  --topbar-bg: #0a1118;
  --topbar-text: #b9c7d4;
}

/* ============ BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Media never decides its own size: each area below sets a fixed box, and nothing can grow wider than its container */
img, video, iframe { max-width: 100%; }
video { display: block; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background .2s, color .2s;
}
ul { list-style: none; }
/* Anything marked hidden stays hidden, whatever its layout style */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 13px;
  border-bottom: 3px solid var(--accent);
  position: relative;
  z-index: 50;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

/* Contacts */
.topbar__contacts { display: flex; align-items: center; gap: 20px; }
.topbar__contacts li,
.topbar__contacts a { display: flex; align-items: center; gap: 8px; }
.topbar__contacts a:hover .tb-text { color: var(--accent); }
.tb-ico {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--topbar-soft);
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
}

/* Tools */
.topbar__tools { display: flex; align-items: center; gap: 14px; }
.topbar__group { display: flex; align-items: center; gap: 2px; }

.tb-pill {
  background: var(--topbar-soft);
  border: 1px solid var(--topbar-line);
  border-radius: 999px;
  padding: 2px;
}
.tb-pill__label {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  color: var(--accent);
  font-size: 15px;
}

.tb-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--topbar-text);
  font-size: 13px;
  line-height: 1;
  transition: background .15s, color .15s;
}
.tb-icon-btn:hover { background: var(--topbar-soft); color: #fff; }
.tb-icon-btn[aria-pressed="true"] { background: var(--accent); color: #111; }

/* Tooltips */
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -4px);
  background: #111;
  color: #fff;
  font: 500 11px/1.2 "Segoe UI", Roboto, Arial, sans-serif;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 200;
}
[data-tip]:hover::after,
[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Language */
.topbar__lang { position: relative; }
.tb-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--topbar-line);
  background: var(--topbar-soft);
  color: var(--topbar-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
}
.tb-lang:hover { color: #fff; border-color: var(--accent); }
.tb-lang .fa-globe { color: var(--accent); font-size: 13px; }
.tb-chevron { font-size: 9px; transition: transform .2s; }
.tb-lang[aria-expanded="true"] .tb-chevron { transform: rotate(180deg); }

.topbar__dropdown {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: #fff;
  min-width: 150px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  z-index: 100;
  overflow: hidden;
  padding: 4px 0;
}
.topbar__dropdown.open { display: block; }
.topbar__dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  color: #1d2733;
}
.topbar__dropdown button:hover { background: #eef4fa; color: var(--brand-dark); }
.tb-code {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 18px;
  border-radius: 3px;
  background: #e3ebf3;
  font-size: 10px;
  font-weight: 700;
}

.topbar :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1100px) {
  .topbar__hide-md { display: none !important; }
}
@media (max-width: 900px) {
  .topbar__hide-sm { display: none !important; }
}
@media (max-width: 600px) {
  .topbar__contacts .tb-text { display: none; }   /* icons only on phones */
  .topbar__contacts { gap: 8px; }
  .topbar__tools { gap: 6px; }
  .tb-pill__label { display: none; }
  .tb-lang { padding: 0 9px; }
  .tb-icon-btn { width: 26px; height: 26px; }
  [data-tip]::after { display: none; }
}

@media (max-width: 420px) {
  .topbar__inner { flex-wrap: wrap; justify-content: center; row-gap: 6px; padding-top: 6px; padding-bottom: 6px; }
}

/* ============ LOGO HEADER ============ */
.masthead {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 100%);
  border-bottom: 1px solid var(--line);
}

/* Faint icon pattern, faded out behind the centre title */
.masthead__pattern {
  position: absolute;
  inset: -10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 64px);
  grid-auto-rows: 48px;
  justify-content: center;
  align-items: center;
  justify-items: center;
  color: var(--brand);
  opacity: .11;
  font-size: 22px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 34% 75% at center, transparent 40%, #000 100%);
          mask-image: radial-gradient(ellipse 34% 75% at center, transparent 40%, #000 100%);
}
.masthead__pattern i:nth-child(3n)   { transform: rotate(-12deg); }
.masthead__pattern i:nth-child(3n+1) { transform: rotate(8deg) translateY(6px); }
.masthead__pattern i:nth-child(4n)   { font-size: 16px; }
html[data-theme="dark"] .masthead__pattern { opacity: .14; }

.masthead__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.masthead__logo { flex-shrink: 0; display: block; }
/* Fixed square box: any logo file is scaled to fit inside it, never stretched or cropped */
.masthead__logo img { display: block; width: 88px; height: 88px; object-fit: contain; }

.masthead__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.masthead__country {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.masthead__agency {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand);
}
.masthead__motto {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--accent-text);
}

@media (max-width: 760px) {
  .masthead__logo img { width: 64px; height: 64px; }
  .masthead__pattern { font-size: 18px; grid-template-columns: repeat(auto-fill, 48px); grid-auto-rows: 40px; }
  .masthead__agency { font-size: 1.15rem; }
  .masthead__country, .masthead__motto { font-size: 0.75rem; }
  .masthead__country { letter-spacing: 1px; }
}
@media (max-width: 480px) {
  .masthead__inner { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .masthead__logo img { width: 48px; height: 48px; }
  .masthead__agency { font-size: 0.95rem; }
  .masthead__country { font-size: 0.625rem; letter-spacing: .5px; }
  .masthead__motto { display: none; }
}

/* ============ MAIN MENU ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #0d5a9c 0%, var(--brand) 50%, #094479 100%);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 4px 14px rgba(4, 30, 56, .25);
  --nav-pad: 18px;
}
html[data-theme="dark"] .nav { background: linear-gradient(180deg, #12324f 0%, #0f2a44 100%); }
.nav__inner { position: relative; display: flex; align-items: center; }

/* Items spread evenly across the bar */
.nav__menu { flex: 1; display: flex; align-items: stretch; justify-content: space-between; }

/* Search button at the right of the menu */
.nav__search {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  order: 2;
  width: 38px; height: 38px;
  margin-left: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 14px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.nav__search:hover { background: var(--accent); border-color: var(--accent); color: #111; transform: scale(1.05); }
.nav__search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 var(--nav-pad);
  color: rgba(255, 255, 255, .88);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s, background .2s, padding .35s ease;
}
/* Gold underline that grows from the centre */
.nav__link::after {
  content: "";
  position: absolute;
  left: var(--nav-pad);
  right: var(--nav-pad);
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.22, .8, .24, 1);
}
.nav__item:hover > .nav__link { color: #fff; }
.nav__item:hover > .nav__link::after { transform: scaleX(.5); }
.nav__link.is-active,
.nav__item.open > .nav__link { color: #fff; }
.nav__link.is-active::after,
.nav__item.open > .nav__link::after { transform: scaleX(1); }
.nav__item.open > .nav__link { background: rgba(255, 255, 255, .07); }
.nav__caret { font-size: 8px; opacity: .7; transition: transform .25s, opacity .2s; }
.nav__item:hover > .nav__link .nav__caret { opacity: 1; }
.nav__item.open > .nav__link .nav__caret { transform: rotate(180deg); opacity: 1; color: var(--accent); }

/* Mega dropdown: links on one side, picture and description on the other */
.nav__item.has-sub { position: static; }
.mega {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: 1fr 380px;
  background: var(--bg);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  overflow: hidden;
  /* Closed: rolled up behind the menu bar */
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0 round 0 0 10px 10px);
  transform: translateY(-6px);
  transition:
    clip-path .45s cubic-bezier(.22, .8, .24, 1),
    transform .45s cubic-bezier(.22, .8, .24, 1),
    opacity .3s ease,
    visibility 0s linear .45s;
  z-index: 60;
}
/* Open (on click): unrolls downward */
.has-sub.open > .mega {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 -60px -60px -60px);
  transform: translateY(0);
  transition:
    clip-path .45s cubic-bezier(.22, .8, .24, 1),
    transform .45s cubic-bezier(.22, .8, .24, 1),
    opacity .2s ease,
    visibility 0s;
}

/* Links and picture ease in just after the panel opens */
.mega__col,
.mega__feature {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .35s ease;
}
.has-sub.open .mega__col,
.has-sub.open .mega__feature { opacity: 1; transform: none; }
.has-sub.open .mega__col:nth-child(1) { transition-delay: .12s; }
.has-sub.open .mega__col:nth-child(2) { transition-delay: .18s; }
.has-sub.open .mega__col:nth-child(3) { transition-delay: .24s; }
.has-sub.open .mega__feature          { transition-delay: .2s; }

.mega__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 28px;
  padding: 26px 30px;
  background:
    radial-gradient(circle at 0 100%, var(--tint) 0, transparent 60%),
    var(--bg);
}
/* Menus with a single list: split links into two columns to fill the panel */
.mega__cols:has(> .mega__col:only-child) ul { column-count: 2; column-gap: 28px; }
.mega__cols:has(> .mega__col:only-child) li { break-inside: avoid; }

.mega__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.mega__heading i {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--accent);
  font-size: 13px;
}
.mega__col a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  transition: background .12s, color .12s, padding .15s;
}
.mega__col a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: transform .15s;
}
.mega__col a:has(.mega__icon)::before { display: none; }
.mega__col a:hover,
.mega__col a:focus-visible {
  background: var(--tint);
  color: var(--brand);
  padding-left: 14px;
}
.mega__col a:hover::before { transform: scale(1.5); }
.mega__icon { width: 18px; text-align: center; color: var(--brand); }

/* Side feature: photo with caption */
.mega__feature {
  position: relative;
  min-height: 300px;
  margin: 0;
  background: var(--brand-dark);
  color: #fff;
}
.mega__feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega__feature figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 24px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 24, 44, .78) 40%, rgba(4, 24, 44, .95) 100%);
}
.mega__feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.mega__feature p { font-size: 0.85rem; line-height: 1.5; color: #d7e3ef; margin-bottom: 12px; }
.mega__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 0.8rem;
  font-weight: 700;
  transition: gap .15s;
}
.mega__more:hover { gap: 12px; }
.mega__feature--card .mega__more { align-self: flex-start; }

/* Side feature without a photo */
.mega__feature--card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 24px 22px;
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 183, 5, .25) 0, transparent 45%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.mega__card-icon {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 5rem;
  color: rgba(255, 255, 255, .12);
}

.nav__toggle { display: none; }

/* TEMESA logo in the pinned menu: slides in once the logo header has scrolled away (js/layout.js),
   while the menu items tighten by the same width so nothing wraps */
.nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 0;
  max-width: 0;
  margin-right: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-10px);
  pointer-events: none;
  transition: max-width .35s ease, margin .35s ease, opacity .3s ease, transform .35s ease;
}
.nav__brand img {
  display: block;
  width: 42px; height: 42px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  object-fit: contain;
}
html.nav-scrolled .nav__brand {
  max-width: 48px;
  margin-right: 12px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@media (min-width: 1201px) {
  html.nav-scrolled .nav { --nav-pad: 14px; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  html.nav-scrolled .nav { --nav-pad: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__brand, .nav__link { transition: none; }
}

/* Small laptops: tighten so labels stay on one line */
@media (min-width: 961px) and (max-width: 1200px) {
  .nav { --nav-pad: 10px; }
  .nav__link { font-size: 0.75rem; letter-spacing: .4px; }
  .mega { grid-template-columns: 1fr 300px; }
}

/* Phones & tablets: hamburger menu */
@media (max-width: 960px) {
  .nav__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
  }
  .nav__toggle i { font-size: 1.2rem; }
  .nav__inner { flex-wrap: wrap; }
  .nav__search { order: 2; margin: 0 0 0 auto; }
  .nav__toggle { order: 1; }
  .nav__menu { order: 3; flex-basis: 100%; }
  .nav__menu {
    display: none;
    flex-direction: column;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    padding-bottom: 8px;
  }
  .nav__menu.open { display: flex; }
  .nav__item { display: block; }
  .nav__link::after { display: none; }
  .nav__link {
    height: auto;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    justify-content: space-between;
    font-size: 0.8125rem;
  }
  .nav__item.open > .nav__link { background: none; color: var(--accent); }
  .nav__item:hover > .nav__link,
  .nav__link.is-active { background: none; border-bottom-color: rgba(255, 255, 255, .12); }
  .nav__link.is-active { color: var(--accent); }
  .has-sub.open > a .nav__caret { transform: rotate(180deg); }

  /* Slides open smoothly by growing its single row from 0 to full height */
  .mega,
  .has-sub.open > .mega {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 0fr;
    opacity: 1;
    visibility: visible;
    clip-path: none;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, .15);
    transition: grid-template-rows .35s cubic-bezier(.22, .8, .24, 1);
  }
  .has-sub.open > .mega { grid-template-rows: 1fr; }
  .mega__cols { display: block; min-height: 0; overflow: hidden; padding: 0; background: none; }
  .mega__col:last-child { padding-bottom: 8px; }
  .mega__col:first-child { padding-top: 4px; }
  .mega__feature { display: none; }
  .mega__col + .mega__col { margin-top: 6px; }
  .mega__heading {
    margin: 10px 16px 4px;
    padding-bottom: 6px;
    border-bottom-color: rgba(255, 255, 255, .15);
    color: var(--accent);
    font-size: 0.75rem;
  }
  .mega__heading i { display: none; }
  .mega__cols:has(> .mega__col:only-child) ul { column-count: 1; }
  .mega__col:only-child .mega__heading { display: none; }
  .mega__col a { margin: 0; padding: 10px 16px; border-radius: 0; color: #e8f0f8; }
  .mega__col a:hover,
  .mega__col a:focus-visible { background: rgba(0, 0, 0, .15); color: #fff; padding-left: 20px; }
  .mega__icon { color: var(--accent); }
}

/* ============ HERO SLIDESHOW ============ */
.hero-wrap { position: relative; }
.hero {
  position: relative;
  height: clamp(560px, 46vw, 620px);
  overflow: hidden;
  background: var(--brand-dark);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .7s ease, visibility 0s;
}
.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6s ease-out;
}
.hero__slide.is-active img { transform: scale(1); }
/* Dark fade on the left so the caption is readable */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 24, 44, .88) 0%, rgba(4, 24, 44, .55) 45%, rgba(4, 24, 44, 0) 75%),
    linear-gradient(0deg, rgba(4, 24, 44, .55) 0%, rgba(4, 24, 44, 0) 35%);
}

.hero__caption {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 90px;
  padding-right: 90px;
  color: #fff;
}
.hero__caption > * { max-width: min(540px, calc(100% - 480px)); }
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, .1);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.hero__tag i { color: var(--accent); }
.hero__title {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero__text {
  font-size: clamp(0.95rem, 1.3vw, 1.125rem);
  color: #dbe6f1;
  margin-bottom: 24px;
}
.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap .2s, background .2s;
}
.hero__btn:hover { gap: 14px; background: #ffc72c; }

/* Caption slides up as its slide appears */
.hero__caption > * { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s ease; }
.hero__slide.is-active .hero__caption > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__title { transition-delay: .1s; }
.hero__slide.is-active .hero__text  { transition-delay: .2s; }
.hero__slide.is-active .hero__btn   { transition-delay: .3s; }

/* Arrows on both sides */
.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-top: -27px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  font-size: 18px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }
.hero__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}
.hero__arrow--prev:hover { transform: translateX(-3px); }
.hero__arrow--next:hover { transform: translateX(3px); }
.hero__arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Tooltip for arrows sits above instead of below */
.hero__arrow[data-tip]::after { top: auto; bottom: calc(100% + 8px); }

/* Counter + dots */
.hero__nav {
  position: absolute;
  left: 0; right: 0;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
}
.hero__count { font-size: 0.8rem; letter-spacing: 1px; color: rgba(255, 255, 255, .7); }
.hero__count strong { color: var(--accent); font-size: 1rem; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .45);
  transition: width .3s, background .3s;
}
.hero__dot:hover { background: #fff; }
.hero__dot.is-active { width: 30px; background: var(--accent); }

/* ============ FERRY BOOKING ============ */
/* Desktop: card floats on the right of the slideshow and stays put while slides change */
.booking-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.booking-layer__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 90px;
}
.booking {
  position: relative;
  pointer-events: auto;
  width: 440px;
  max-width: 100%;
  background: var(--bg);
  color: var(--text);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.booking__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-bottom: 3px solid var(--accent);
  color: #fff;
}
.booking__head h2 { font-size: 1.05rem; line-height: 1.2; }
.booking__head p { font-size: 0.75rem; color: #c9d8e6; }
.booking__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.booking__form,
.booking__summary { padding: 16px 24px 22px; }
.booking [hidden] { display: none !important; }

/* Step indicator */
.bk-steps {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
  counter-reset: none;
}
.bk-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.bk-steps li + li::before {
  content: "";
  width: 18px;
  height: 2px;
  margin-right: 4px;
  background: var(--line);
}
.bk-steps em { font-style: normal; }
.bk-steps span {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
}
.bk-steps li.is-active { color: var(--brand); }
.bk-steps li.is-active span { border-color: var(--brand); background: var(--brand); color: #fff; }
.bk-steps li.is-done { color: var(--text); }
.bk-steps li.is-done span { border-color: var(--accent); background: var(--accent); color: #111; font-size: 0; }
.bk-steps li.is-done span::before { content: "\2713"; font-size: 0.7rem; }

/* Verification */
.booking__verify { padding: 14px 20px 18px; }
.booking__verify form { display: flex; flex-direction: column; gap: 10px; }
.bk-intro { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.bk-intro--center { text-align: center; }
.bk-intro strong { color: var(--text); }
.booking input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
}
.bk-otp-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin: 2px auto 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--brand);
  font-size: 22px;
}
.bk-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.booking .bk-otp input {
  height: 48px;
  padding: 0;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
}
.bk-otp.is-error input { border-color: #c0392b; animation: bk-shake .35s; }
@keyframes bk-shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.bk-error--center { text-align: center; }
.bk-demo {
  padding: 8px 10px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: rgba(242, 183, 5, .1);
  font-size: 0.75rem;
  text-align: center;
  color: var(--text);
}
.bk-submit--full { width: 100%; }
.bk-otp-links { display: flex; justify-content: space-between; }
.bk-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 2px 0;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
}
.bk-link:hover:not(:disabled) { text-decoration: underline; }
.bk-link:disabled { color: var(--muted); cursor: default; }

/* Verified customer bar */
.bk-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(39, 174, 96, .1);
  font-size: 0.78rem;
}
.bk-user > i { color: #27ae60; }
.bk-user > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking__form { display: flex; flex-direction: column; gap: 10px; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bk-field label,
.bk-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
}
.bk-field label i,
.bk-label i { color: var(--brand); width: 14px; }

.booking select,
.booking input[type="date"],
.booking input[type="tel"] {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  transition: border-color .15s, box-shadow .15s;
}
.booking select:focus,
.booking input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 79, 138, .15);
}

/* Direction pills */
.bk-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bk-dir label {
  position: relative;
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.bk-dir input { position: absolute; opacity: 0; }
.bk-dir span {
  display: block;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s, border-color .15s, color .15s;
}
.bk-dir input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.bk-dir input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242, 183, 5, .6); }

/* − / + steppers */
.bk-stepper {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--tint);
}
.bk-stepper button {
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  transition: background .15s;
}
.bk-stepper button:hover { background: var(--line); }
.bk-stepper input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: center;
  font: inherit;
  font-weight: 700;
  -moz-appearance: textfield;
}
.bk-stepper input::-webkit-inner-spin-button,
.bk-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.bk-error { display: none; color: #c0392b; font-size: 0.72rem; }
.bk-error.show { display: block; }
html[data-theme="dark"] .bk-error { color: #ff8a80; }

.bk-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  margin-top: 4px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background .15s, transform .15s;
}
.bk-submit:hover { background: #ffc72c; transform: translateY(-1px); }

/* Summary step */
.booking__summary h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--brand); margin-bottom: 10px; }
.booking__summary h3 i { color: var(--accent); }
.booking__summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--tint);
  font-size: 0.85rem;
}
.booking__summary dt { color: var(--muted); font-weight: 600; }
.booking__summary dd { font-weight: 700; text-align: right; }
.booking__note { margin: 12px 0; font-size: 0.78rem; color: var(--muted); }
.booking__actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.booking__actions .bk-submit { margin-top: 0; }
.bk-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
}
.bk-back:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Glass look: see-through card, solid white only where people type or choose ---- */
.booking {
  background: rgba(8, 28, 50, .38);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
}
.booking__head {
  background: rgba(4, 24, 44, .35);
  border-bottom: 2px solid var(--accent);
}
.bk-steps {
  background: rgba(255, 255, 255, .06);
  border-bottom-color: rgba(255, 255, 255, .15);
}
.bk-steps li { color: rgba(255, 255, 255, .7); }
.bk-steps li + li::before { background: rgba(255, 255, 255, .25); }
.bk-steps span { border-color: rgba(255, 255, 255, .45); }
.bk-steps li.is-active,
.bk-steps li.is-done { color: #fff; }
.bk-steps li.is-active span { border-color: #fff; background: #fff; color: var(--brand-dark); }

.bk-field label,
.bk-label { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.bk-field label i,
.bk-label i { color: var(--accent); }

/* Inputs stay solid and readable */
.booking select,
.booking input[type="date"],
.booking input[type="tel"],
.booking input[type="text"],
.bk-stepper {
  background: rgba(255, 255, 255, .96);
  border-color: transparent;
  color: #1d2733;
}
.bk-stepper input { color: #1d2733; }
.bk-stepper button { color: var(--brand); }
.bk-stepper button:hover { background: #e6eef6; }
.booking select:focus,
.booking input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 183, 5, .45); }
.booking select option,
.booking select optgroup { color: #1d2733; background: #fff; }
.bk-dir label { color: #1d2733; }
.bk-dir span { background: rgba(255, 255, 255, .96); border-color: transparent; }
.bk-dir input:checked + span { background: var(--brand); border-color: rgba(255, 255, 255, .6); color: #fff; }

.bk-error,
html[data-theme="dark"] .bk-error { color: #ffc2b8; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.bk-otp.is-error input { border-color: #ff8a7a; }

/* Text and display-only areas */
.bk-intro,
.booking__note { color: rgba(255, 255, 255, .85); }
.bk-intro strong { color: #fff; }
.bk-otp-icon { background: rgba(255, 255, 255, .15); color: var(--accent); }
.bk-demo { background: rgba(242, 183, 5, .18); color: #fff; }
.bk-link { color: var(--accent); }
.bk-link:disabled { color: rgba(255, 255, 255, .6); }
.bk-user { background: rgba(39, 174, 96, .28); border: 1px solid rgba(255, 255, 255, .15); }
.bk-user > i { color: #6ee7a0; }
.booking__summary h3 { color: #fff; }
.booking__summary dl { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); }
.booking__summary dt { color: rgba(255, 255, 255, .7); }
.booking__summary dd { color: #fff; }
.bk-back { border-color: rgba(255, 255, 255, .45); color: #fff; }
.bk-back:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Route box: type or pick ---- */
.bk-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.bk-combo { position: relative; }
.booking .bk-combo input {
  height: 44px;
  padding: 0 44px 0 38px;
  font-weight: 600;
}
.bk-combo__search {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: #7a8a9a;
  font-size: 13px;
  pointer-events: none;
}
.bk-combo__toggle {
  position: absolute;
  right: 4px; top: 4px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  transition: background .15s;
}
.bk-combo__toggle:hover { background: #e6eef6; }
.bk-combo__toggle i { transition: transform .2s; }
.bk-combo.is-open .bk-combo__toggle i { transform: rotate(180deg); }

.bk-combo__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 20;
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  color: #1d2733;
  box-shadow: 0 18px 44px rgba(4, 20, 40, .35);
  animation: bk-drop .18s ease-out;
}
@keyframes bk-drop {
  from { opacity: 0; transform: translateY(-6px); }
}
.bk-combo__group {
  position: sticky;
  top: -6px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 -6px;
  padding: 8px 16px 6px;
  background: #fff;
  color: #5a6b7c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.bk-combo__group i { color: var(--accent-text); }
.bk-combo__opt {
  display: grid;
  grid-template-columns: 30px 1fr 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}
.bk-combo__opt:hover,
.bk-combo__opt.is-active { background: #eef4fa; }
.bk-combo__icon {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(11, 79, 138, .08);
  color: var(--brand);
  font-size: 13px;
}
.bk-combo__route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.bk-combo__route i { color: #9aa8b6; font-size: 10px; }
.bk-combo__route mark { background: rgba(242, 183, 5, .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.bk-combo__tick { color: var(--brand); font-size: 12px; opacity: 0; }
.bk-combo__opt[aria-selected="true"] { background: rgba(11, 79, 138, .1); }
.bk-combo__opt[aria-selected="true"] .bk-combo__tick { opacity: 1; }
.bk-combo__opt[aria-selected="true"] .bk-combo__icon { background: var(--brand); color: #fff; }
.bk-combo__empty { padding: 18px 12px; text-align: center; color: #5a6b7c; font-size: 0.85rem; }

/* Slideshow dots sit under the caption on desktop, clear of the booking card */
@media (min-width: 961px) {
  .hero__nav { left: 50%; right: auto; width: min(1240px, 100%); transform: translateX(-50%); justify-content: flex-start; padding-left: 106px; }
}

/* Tablets & phones: no slideshow, just the booking card right under the menu */
@media (max-width: 960px) {
  .hero { display: none; }
  .booking-layer {
    position: static;
    pointer-events: auto;
    padding: 20px 0 24px;
    /* Ferry photo behind the glass card */
    background:
      linear-gradient(180deg, rgba(4, 24, 44, .55) 0%, rgba(4, 24, 44, .35) 100%),
      url("../images/slides/ferry.jpg") center / cover no-repeat;
  }
  .booking-layer__inner { padding-right: 16px; justify-content: center; }
  .booking { width: 100%; max-width: 560px; }
}

@media (max-width: 760px) {
  .hero { height: 420px; }
  .hero__caption { padding-left: 16px; padding-right: 16px; justify-content: flex-end; padding-bottom: 70px; }
  .hero__slide::after { background: linear-gradient(0deg, rgba(4, 24, 44, .92) 0%, rgba(4, 24, 44, .5) 55%, rgba(4, 24, 44, .1) 100%); }
  /* Arrows move down beside the dots so they don't cover the text */
  .hero__arrow { width: 40px; height: 40px; margin-top: 0; top: auto; bottom: 12px; font-size: 14px; }
  .hero__arrow--prev { left: 16px; }
  .hero__arrow--next { right: 16px; }
  .hero__nav { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide img, .hero__caption > * { transition: none; }
}

/* ============ SECTION HEADINGS ============ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head__kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--brand); line-height: 1.2; }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: var(--accent);
}
.section-head p { margin-top: 12px; color: var(--muted); }

/* ============ SERVICES ============ */
.services { padding: 64px 0 72px; background: var(--tint); }

/* Intro card: rides up over the bottom of the slideshow; the service areas are tiles inside it */
.services { padding-top: 0; }
.services__intro {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: -96px 0 44px;
  padding: 36px 40px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(11, 79, 138, .07) 0, transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(242, 183, 5, .10) 0, transparent 38%),
    var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(4, 30, 56, .16), 0 2px 6px rgba(4, 30, 56, .06);
  overflow: hidden;
}
/* Gold-to-blue line along the top edge */
.services__intro::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 55%, var(--accent) 100%);
}
.services__kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 14px;
  border: 1px solid rgba(11, 79, 138, .25);
  border-radius: 999px;
  background: rgba(11, 79, 138, .06);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* Heading left, short text right (stacked on small screens) */
.services__head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "kicker kicker" "title text";
  align-items: end;
  column-gap: 40px;
}
.services__kicker { grid-area: kicker; justify-self: start; }
.services__head h2 { grid-area: title; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.15; color: var(--brand); }
.services__head h2 span { color: var(--accent-text); }
.services__head p { grid-area: text; max-width: 520px; margin: 0 0 4px auto; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); line-height: 1.6; }

/* Service area tiles (the tabs) */
.services__tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.services__tab {
  --tile: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 132px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 4px 14px rgba(4, 30, 56, .06);
  color: var(--text);
  text-align: left;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.services__tab:nth-child(5n+2) { --tile: #b07d00; }
.services__tab:nth-child(5n+3) { --tile: #15803d; }
.services__tab:nth-child(5n+4) { --tile: #0e7490; }
.services__tab:nth-child(5n+5) { --tile: #b91c1c; }
/* Soft circle in the corner, as on the cards in the reference */
.services__tab::after {
  content: "";
  position: absolute;
  right: -28px; bottom: -28px;
  width: 86px; height: 86px;
  border-radius: 50%;
  background: var(--tile);
  opacity: .07;
  transition: transform .3s, opacity .3s;
}
.services__tab-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tile) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tile) 25%, transparent);
  color: var(--tile);
  font-size: 1.05rem;
}
.services__tab-name { font-size: 0.82rem; font-weight: 800; letter-spacing: .5px; line-height: 1.3; text-transform: uppercase; color: var(--brand); }
.services__tab-count { font-size: 0.8rem; color: var(--muted); }
.services__tab:hover { transform: translateY(-3px); border-color: var(--tile); box-shadow: 0 12px 24px rgba(4, 30, 56, .12); }
.services__tab:hover::after { transform: scale(1.25); opacity: .12; }
/* Chosen area: blue tile, gold underline */
.services__tab[aria-selected="true"] {
  border-color: var(--brand);
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 14px 28px rgba(11, 79, 138, .32);
}
.services__tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.services__tab[aria-selected="true"]::after { background: #fff; opacity: .08; }
.services__tab[aria-selected="true"] .services__tab-icon { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: var(--accent); }
.services__tab[aria-selected="true"] .services__tab-name { color: #fff; }
.services__tab[aria-selected="true"] .services__tab-count { color: rgba(255, 255, 255, .75); }
.services__tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

html[data-theme="dark"] .services__intro { box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .services__kicker { border-color: rgba(74, 155, 224, .35); background: rgba(74, 155, 224, .1); }
html[data-theme="dark"] .services__tab:not([aria-selected="true"]) .services__tab-name { color: #fff; }

/* Desktop: the slide caption, dots and booking card keep clear of the card overlapping the slideshow */
@media (min-width: 961px) {
  .hero__caption { padding-bottom: 96px; }
  .booking-layer__inner { padding-bottom: 96px; }
  .hero__nav { bottom: 118px; }
}

/* Cards */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-card {
  position: relative;
  display: block;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, #062a4a 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(4, 30, 56, .18);
  isolation: isolate;
  animation: svc-in .5s cubic-bezier(.22, .8, .24, 1) both;
  animation-delay: calc(var(--i) * 70ms);
  transition: transform .3s, box-shadow .3s;
}
@keyframes svc-in {
  from { opacity: 0; transform: translateY(18px); }
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(4, 30, 56, .28); }
.svc-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s ease;
}
.svc-card:hover img { transform: scale(1.07); }
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 26, 48, .1) 0%, rgba(6, 26, 48, .55) 40%, rgba(4, 16, 32, .96) 100%);
}
/* Cards without a photo: brand gradient with a large faint icon */
.svc-card--icon::before {
  background:
    radial-gradient(circle at 85% 10%, rgba(242, 183, 5, .22) 0, transparent 45%),
    linear-gradient(180deg, rgba(4, 16, 32, 0) 30%, rgba(4, 16, 32, .6) 100%);
}
.svc-card__bg-icon {
  position: absolute;
  top: 28px; right: 28px;
  z-index: -1;
  font-size: 6.5rem;
  color: rgba(255, 255, 255, .1);
  transition: transform .5s ease;
}
.svc-card:hover .svc-card__bg-icon { transform: rotate(-8deg) scale(1.08); }

.svc-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 80px 28px 28px;
}
.svc-card__icon {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: 15px;
}
.svc-card h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.svc-card p {
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: #dbe6f1;
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-card__go {
  position: absolute;
  right: 24px; bottom: 28px;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  font-size: 14px;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.svc-card__go i { transform: rotate(-45deg); transition: transform .25s; }
.svc-card:hover .svc-card__go { background: var(--accent); border-color: var(--accent); color: #111; }
.svc-card:hover .svc-card__go i { transform: rotate(0); }
.svc-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__tabs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .services__head { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "text"; }
  .services__head p { margin: 12px 0 0; }
}
/* Tablets and phones: the card overlaps the bottom of the ferry photo behind the booking card */
@media (max-width: 960px) {
  .booking-layer { padding-bottom: 72px; }
  .services__intro { margin-top: -48px; }
}
@media (max-width: 760px) {
  .services { padding: 0 0 52px; }
  .services__intro { margin: -40px 0 28px; padding: 26px 18px 20px; gap: 20px; border-radius: 18px; }
  /* Tiles scroll sideways on phones */
  .services__tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin: 0 -18px;
    padding: 4px 18px 12px;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .services__tabs::-webkit-scrollbar { display: none; }
  .services__tab { flex: 0 0 150px; min-height: 120px; scroll-snap-align: start; }
  .services__grid { grid-template-columns: 1fr; gap: 18px; }
  .svc-card { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card { animation: none; }
}

/* ============ NEWS & PUBLICATIONS ============ */
.updates { padding: 72px 0 80px; background: var(--bg); }
.updates__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 32px;
  align-items: start;
}
.updates__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.updates__bar h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: var(--brand); }
.updates__bar h3 i { color: var(--accent-text); }

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background .2s, color .2s, gap .2s;
}
.view-all:hover { background: var(--brand); color: #fff; gap: 12px; }
.view-all--block { display: flex; justify-content: center; margin: 16px 20px 20px; }

/* Featured story */
.news-feature__link {
  position: relative;
  display: block;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 10px 26px rgba(4, 30, 56, .18);
  isolation: isolate;
}
.news-feature__link img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s ease;
}
.news-feature__link:hover img { transform: scale(1.05); }
.news-feature__link::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 16, 32, 0) 30%, rgba(4, 16, 32, .92) 100%);
}
.news-date {
  position: absolute;
  top: 18px; left: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  line-height: 1.1;
  text-align: center;
}
.news-date strong { font-size: 1.5rem; }
.news-date small { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.news-badge {
  position: absolute;
  top: 18px; right: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #c0392b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.news-feature__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.news-feature__body h4 {
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 1.3rem;
  line-height: 1.35;
  margin-bottom: 14px;
}
.news-more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 0.85rem; font-weight: 700; transition: gap .2s; }
.news-feature__link:hover .news-more { gap: 12px; }

/* Other stories */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.news-list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.news-list a:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 12px 26px rgba(4, 30, 56, .14); }
.news-list img { width: 100%; height: 110px; object-fit: cover; }
.news-list div { padding: 12px 14px 14px; }
.news-list time { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--muted); margin-bottom: 6px; }
.news-list time i { color: var(--accent-text); }
.news-list h4 {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list a:hover h4 { color: var(--brand); }

/* Publications / announcements panel */
.updates__docs {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 10px 26px rgba(4, 30, 56, .08);
  overflow: hidden;
}
.docs-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-bottom: 1px solid var(--line); }
.docs-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .2s, background .2s;
}
.docs-tabs button::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.22, .8, .24, 1);
}
.docs-tabs button:hover { color: var(--brand); }
.docs-tabs button[aria-selected="true"] { color: var(--brand); background: var(--bg); }
.docs-tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.docs-list { padding: 8px 12px 0; }
.docs-list.is-switching li { animation: svc-in .4s cubic-bezier(.22, .8, .24, 1) both; }
.docs-list.is-switching li:nth-child(2) { animation-delay: .05s; }
.docs-list.is-switching li:nth-child(3) { animation-delay: .1s; }
.docs-list.is-switching li:nth-child(4) { animation-delay: .15s; }
.docs-list.is-switching li:nth-child(5) { animation-delay: .2s; }
.docs-list li + li { border-top: 1px dashed var(--line); }
.docs-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  border-radius: 10px;
  transition: background .2s;
}
.docs-list a:hover { background: var(--tint); }
.docs-list__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(11, 79, 138, .1);
  color: var(--brand);
  font-size: 18px;
}
.docs-list__icon.is-pdf { background: rgba(192, 57, 43, .1); color: #c0392b; }
.docs-list__text { flex: 1; min-width: 0; }
.docs-list__meta { display: block; font-size: 0.7rem; color: var(--muted); margin-bottom: 3px; }
.docs-list__meta em { font-style: normal; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: .5px; }
.docs-list h4 {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.docs-list a:hover h4 { color: var(--brand); }
.docs-list__go {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 13px;
  transition: background .2s, color .2s, border-color .2s;
}
.docs-list a:hover .docs-list__go { background: var(--accent); border-color: var(--accent); color: #111; }

@media (max-width: 1100px) {
  .updates__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .updates { padding: 48px 0 56px; }
  .news-feature__link { height: 280px; }
  .news-feature__body h4 { font-size: 1.05rem; }
  .news-list { grid-template-columns: 1fr; }
  .news-list a { flex-direction: row; }
  .news-list img { width: 110px; height: 96px; object-fit: cover; flex-shrink: 0; }
  .updates__bar h3 { font-size: 1rem; }
}

/* ============ SEARCH POP-UP (glass) ============ */
.srch {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
}
.srch[hidden] { display: none; }
.srch__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 20, 40, .45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s ease;
}
.srch__dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: linear-gradient(135deg, rgba(255, 255, 255, .72) 0%, rgba(232, 240, 248, .55) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
          backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
  color: #1d2733;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(.98);
  transition: opacity .2s ease, transform .25s cubic-bezier(.22, .8, .24, 1);
}
.srch.is-open .srch__backdrop { opacity: 1; }
.srch.is-open .srch__dialog { opacity: 1; transform: none; }
html[data-theme="dark"] .srch__dialog {
  background: linear-gradient(135deg, rgba(22, 33, 45, .78) 0%, rgba(13, 22, 32, .66) 100%);
  border-color: rgba(255, 255, 255, .14);
  color: #dce6f0;
}

.srch__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 0;
}
.srch__head h2 { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.srch__head p { margin-top: 4px; color: var(--muted); }
.srch__close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .6);
  color: inherit;
  font-size: 16px;
  transition: background .2s, transform .2s;
}
.srch__close:hover { background: #fff; transform: rotate(90deg); }
html[data-theme="dark"] .srch__close { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }

.srch__form {
  position: relative;
  display: flex;
  margin: 22px 32px 0;
  border: 1.5px solid rgba(11, 79, 138, .35);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.srch__form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 79, 138, .15); }
.srch__form > i {
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 17px;
}
.srch__form input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 16px 0 54px;
  border: none;
  background: transparent;
  color: #1d2733;
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}
.srch__form input::-webkit-search-cancel-button { cursor: pointer; }
.srch__form button {
  padding: 0 28px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s;
}
.srch__form button:hover { background: var(--brand-dark); }
.srch__hint { margin: 10px 32px 0; font-size: 0.85rem; color: var(--muted); }

.srch__body {
  margin-top: 22px;
  padding: 22px 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, .6);
  overflow-y: auto;
}
html[data-theme="dark"] .srch__body { border-top-color: rgba(255, 255, 255, .1); }
.srch__label {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.srch__label:not(:first-child) { margin-top: 22px; }

.srch__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.srch-quick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 14px;
  background: rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 8px rgba(4, 30, 56, .06);
  color: inherit;
  font-weight: 700;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.srch-quick:hover { background: rgba(255, 255, 255, .85); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(4, 30, 56, .12); }
.srch-quick__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(11, 79, 138, .1);
  color: var(--brand);
  font-size: 16px;
  transition: background .2s, color .2s;
}
.srch-quick:hover .srch-quick__icon { background: var(--brand); color: var(--accent); }
html[data-theme="dark"] .srch-quick { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
html[data-theme="dark"] .srch-quick:hover { background: rgba(255, 255, 255, .12); }

.srch__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.srch-chip {
  padding: 7px 14px;
  border: 1px solid rgba(11, 79, 138, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.srch-chip::before { content: "\f002"; font: var(--fa-font-solid); font-size: 0.7rem; margin-right: 6px; opacity: .6; }
.srch-chip:hover { background: var(--brand); color: #fff; }

/* Results */
.srch__list { display: flex; flex-direction: column; gap: 6px; }
.srch__list a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: inherit;
  transition: background .15s, border-color .15s;
}
.srch__list li.is-active a,
.srch__list a:hover { background: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .9); }
html[data-theme="dark"] .srch__list li.is-active a,
html[data-theme="dark"] .srch__list a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }
.srch__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(11, 79, 138, .1);
  color: var(--brand);
}
.srch__text { display: block; min-width: 0; }
.srch__title { display: block; font-weight: 600; line-height: 1.4; }
.srch__title mark { background: rgba(242, 183, 5, .45); color: inherit; border-radius: 3px; padding: 0 2px; }
.srch__meta { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--muted); }
.srch__go { color: var(--muted); font-size: 0.8rem; opacity: 0; transition: opacity .15s, transform .15s; }
.srch__list li.is-active .srch__go,
.srch__list a:hover .srch__go { opacity: 1; transform: translateX(2px); color: var(--brand); }
.srch__empty { padding: 30px 0; text-align: center; color: var(--muted); }
.srch__empty i { font-size: 2rem; margin-bottom: 10px; }

.srch__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
  border-top: 1px solid rgba(255, 255, 255, .6);
  font-size: 0.82rem;
  color: var(--muted);
}
html[data-theme="dark"] .srch__foot { border-top-color: rgba(255, 255, 255, .1); }
.srch__foot kbd {
  display: inline-block;
  min-width: 26px;
  margin-right: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .1);
  background: #fff;
  color: #1d2733;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}

@media (max-width: 760px) {
  .srch { padding: 12px; }
  .srch__dialog { max-height: calc(100vh - 24px); border-radius: 20px; }
  .srch__head { padding: 22px 20px 0; }
  .srch__head h2 { font-size: 1.25rem; }
  .srch__form { margin: 18px 20px 0; }
  .srch__form input { height: 52px; font-size: 1rem; }
  .srch__form button { padding: 0 16px; font-size: 0.8rem; }
  .srch__hint { margin: 8px 20px 0; }
  .srch__body { padding: 18px 20px 20px; }
  .srch__quick { grid-template-columns: 1fr 1fr; }
  .srch-quick { padding: 12px; gap: 10px; font-size: 0.85rem; }
  .srch-quick__icon { width: 34px; height: 34px; }
  .srch__foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .srch__dialog, .srch__backdrop { transition: none; }
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .08) 0, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(242, 183, 5, .07) 0, transparent 35%),
    linear-gradient(135deg, #0d5a9c 0%, var(--brand) 45%, #08396a 100%);
  color: #e3edf7;
  border-top: 4px solid var(--accent);
}
html[data-theme="dark"] .footer { background: linear-gradient(135deg, #0f2a44 0%, #0a1a2b 100%); }
.footer a { color: inherit; }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.9fr 1.15fr;
  gap: 48px;
  padding: 64px 0 44px;
}
.footer__title {
  margin-bottom: 22px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

/* Contact column */
.ft-contact { display: flex; flex-direction: column; gap: 16px; }
.ft-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; line-height: 1.55; font-size: 0.95rem; }
.ft-contact i { color: var(--accent); margin-top: 4px; text-align: center; }
.ft-contact strong { color: #fff; }
.ft-contact small { color: #b9cde0; }
.ft-contact a:hover { color: var(--accent); }

/* Link lists */
.ft-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.ft-links { display: flex; flex-direction: column; gap: 6px; }
.ft-links a {
  display: grid;
  grid-template-columns: 18px 1fr 14px;
  gap: 12px;
  align-items: start;
  padding: 7px 0;
  font-size: 0.93rem;
  line-height: 1.45;
  transition: color .2s, transform .2s;
}
.ft-bullet { color: var(--accent); font-size: 0.75rem; margin-top: 5px; }
.ft-ext { color: rgba(255, 255, 255, .45); font-size: 0.7rem; margin-top: 5px; transition: color .2s; }
.ft-links a:hover { color: #fff; transform: translateX(3px); }
.ft-links a:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.ft-links a:hover .ft-ext { color: var(--accent); }

/* Bottom bar */
.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.ft-legal { font-size: 0.85rem; color: #c6d7e8; }
.ft-legal__contact { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; font-size: 0.95rem; color: #fff; }
.ft-legal__contact i { color: var(--accent); margin-right: 6px; }
.ft-legal__contact a:hover { color: var(--accent); }

.ft-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.ft-tool {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 16px;
  transition: background .2s, color .2s;
}
.ft-tool:hover { background: var(--accent); color: #111; }
.ft-lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
}
.ft-lang button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.ft-lang button[aria-pressed="true"] { background: var(--accent); color: #111; }
.ft-flag { font-size: 0.95rem; line-height: 1; }

.ft-social { display: flex; justify-content: flex-end; gap: 10px; }
.ft-social a {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  font-size: 17px;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.ft-social a:hover { background: var(--accent); border-color: var(--accent); color: #111; transform: translateY(-3px); }
.footer [data-tip]::after { top: auto; bottom: calc(100% + 8px); }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top[data-tip]::after { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; transform: translateY(-4px); }
.to-top[data-tip]:hover::after { transform: none; }

@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--wide { grid-column: 1 / -1; order: 3; }
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ft-legal__contact { justify-content: center; }
  .ft-social { justify-content: center; }
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 32px; }
  .footer__col--wide { order: 0; }
  .ft-two { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

.services__more { margin-top: 32px; text-align: center; }

/* =====================================================================
   VEHICLE MAINTENANCE PAGE (/magari)
   ===================================================================== */

/* Banner */
.g-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-dark);
  color: #fff;
  isolation: isolate;
}
.g-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.g-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 24, 44, .92) 0%, rgba(4, 24, 44, .7) 50%, rgba(4, 24, 44, .25) 100%);
}
.g-hero__inner { padding-top: 56px; padding-bottom: 64px; }
.g-hero__inner > * { max-width: 620px; }
.g-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; margin: 4px 0 14px; }
.g-hero p { color: #dbe6f1; font-size: 1.05rem; margin-bottom: 26px; }
.g-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.g-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background .2s, border-color .2s;
}
.g-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: #b9cde0;
}
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-size: 0.6rem; opacity: .6; }
.crumbs [aria-current] { color: var(--accent); font-weight: 600; }

/* Quick facts strip */
.g-perks { position: relative; z-index: 2; margin-top: -40px; }
.g-perks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 16px 40px rgba(4, 30, 56, .14);
  overflow: hidden;
}
.g-perk { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px; }
.g-perk + .g-perk { border-left: 1px solid var(--line); }
.g-perk > i {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(11, 79, 138, .1);
  color: var(--brand);
  font-size: 18px;
}
.g-perk strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.g-perk span { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

/* All services */
.g-services { padding: 72px 0; }
.g-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.g-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.g-filter i { color: var(--brand); }
.g-filter em {
  font-style: normal;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.g-filter:hover { border-color: var(--brand); }
.g-filter[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.g-filter[aria-selected="true"] i { color: var(--accent); }
.g-filter[aria-selected="true"] em { background: rgba(255, 255, 255, .2); color: #fff; }

.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.g-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: svc-in .45s cubic-bezier(.22, .8, .24, 1) both;
  animation-delay: calc(var(--i) * 40ms);
  scroll-margin-top: 90px;
}
.g-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 16px 34px rgba(4, 30, 56, .14); }
.g-card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 14px rgba(11, 79, 138, .3);
}
.g-card h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 8px; }
.g-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.g-card__inc { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.g-card ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.g-card li { display: flex; gap: 8px; font-size: 0.84rem; }
.g-card li::before { content: "\f00c"; font: var(--fa-font-solid); font-size: 0.7rem; color: #27ae60; margin-top: 4px; }
.g-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background .2s, color .2s;
}
.g-card__btn:hover { background: var(--brand); color: #fff; }
.g-card__deal {
  position: absolute;
  top: 16px; right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(192, 57, 43, .1);
  color: #c0392b;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Offers (coupon cards) */
.g-offers { padding: 72px 0; background: var(--tint); }
.g-offers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.g-offer {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 10px 26px rgba(4, 30, 56, .1);
  overflow: hidden;
}
.g-offer__value {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background: linear-gradient(160deg, #c0392b 0%, #962d22 100%);
  color: #fff;
  text-align: center;
}
.g-offer__value strong { font-size: 2.2rem; font-weight: 900; line-height: 1; }
/* Perforated edge between the value and the details */
.g-offer__value::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: -1px;
  border-right: 3px dashed var(--bg);
}
.g-offer__value span {
  position: absolute;
  right: -11px; top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--bg);
  color: #c0392b;
  font-size: 10px;
}
.g-offer__body { padding: 22px 24px; }
.g-offer h3 { font-size: 1.1rem; margin-bottom: 6px; }
.g-offer p { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.g-offer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 16px; font-size: 0.8rem; }
.g-offer__code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px dashed var(--brand);
  border-radius: 6px;
}
.g-offer__code small { color: var(--muted); }
.g-offer__code b { color: var(--brand); letter-spacing: 1px; }
.g-offer__until { color: var(--muted); }
.g-offer__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  transition: gap .2s, background .2s;
}
.g-offer__btn:hover { gap: 12px; background: #ffc72c; }
.g-offer__sample {
  position: absolute;
  top: 12px; right: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.g-offers__empty { padding: 40px 0; text-align: center; color: var(--muted); }
.g-offers__empty i { font-size: 2rem; margin-bottom: 10px; }

/* Appointment */
.g-book { padding: 72px 0 88px; scroll-margin-top: 60px; }
.g-book__grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.section-head--left { text-align: left; margin: 0 0 28px; max-width: none; }
.section-head--left h2::after { margin-left: 0; }

.appt { display: flex; flex-direction: column; gap: 18px; }
.appt__step {
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.appt__step legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  margin-left: -8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.appt__num {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
}
.a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.a-field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.a-grid .a-field { margin-top: 0; }
.a-field--full { grid-column: 1 / -1; }
.a-field--date { max-width: 260px; }
.a-field label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.appt input,
.appt select,
.appt textarea {
  width: 100%;
  padding: 0 14px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--tint);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.appt textarea { height: auto; padding: 12px 14px; resize: vertical; }
.appt input:focus,
.appt select:focus,
.appt textarea:focus { outline: none; border-color: var(--brand); background: var(--bg); box-shadow: 0 0 0 3px rgba(11, 79, 138, .15); }

.a-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.a-chip input { position: absolute; opacity: 0; pointer-events: none; }
.a-chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.84rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.a-chip b { font-weight: 600; }
.a-chip i { color: var(--brand); font-size: 0.8rem; }
.a-chip span:hover { border-color: var(--brand); }
.a-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.a-chip input:checked + span i { color: var(--accent); }
.a-chip input:checked + span::after { content: "\f00c"; font: var(--fa-font-solid); font-size: 0.7rem; }
.a-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242, 183, 5, .6); }

.a-offer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px dashed #c0392b;
  border-radius: 10px;
  background: rgba(192, 57, 43, .06);
  font-size: 0.86rem;
}
.a-offer > i { color: #c0392b; }
.a-offer > span { flex: 1; }
.a-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.86rem;
}
.a-link:hover:not(:disabled) { text-decoration: underline; }
.a-link:disabled { color: var(--muted); cursor: default; }

.a-slots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 14px; }
.a-slots:empty { display: none; }
.a-slot {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  font-size: 0.86rem;
  transition: background .15s, border-color .15s, color .15s;
}
.a-slot:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.a-slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.a-slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.a-hint { margin-top: 10px; font-size: 0.84rem; color: var(--muted); }
.a-hint:empty { display: none; }

.a-error { display: none; margin-top: 6px; color: #c0392b; font-size: 0.8rem; }
.a-error.show { display: block; }
.a-error--center { text-align: center; }
html[data-theme="dark"] .a-error { color: #ff8a80; }

.a-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  font-size: 1rem;
  transition: background .2s, transform .2s;
}
.a-submit:hover { background: #ffc72c; transform: translateY(-1px); }

/* Summary */
.g-book__aside { position: sticky; top: 76px; }
.a-summary {
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(4, 30, 56, .22);
}
.a-summary h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 16px; }
.a-summary h3 i { color: var(--accent); }
.a-summary dl { display: flex; flex-direction: column; }
.a-summary dt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b9cde0;
}
.a-summary dt i { color: var(--accent); width: 14px; }
.a-summary dd {
  padding: 4px 0 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 0.9rem;
  font-weight: 600;
}
.a-summary dd em { font-style: normal; font-weight: 400; color: rgba(255, 255, 255, .5); }
.a-help {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
}
.a-help > i { font-size: 1.4rem; color: var(--accent); }
.a-help strong { display: block; font-size: 0.85rem; }
.a-help a { font-weight: 800; font-size: 1.05rem; color: #fff; margin-right: 4px; }
.a-help span { font-size: 0.78rem; color: #b9cde0; }

/* Verify + done panels */
.appt-panel {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  text-align: center;
}
.appt-panel h3 { font-size: 1.3rem; margin: 14px 0 8px; }
.appt-panel > p { color: var(--muted); max-width: 460px; margin: 0 auto 18px; }
.appt-panel form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 0 auto; }
.appt-panel__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(11, 79, 138, .1);
  color: var(--brand);
  font-size: 26px;
}
.appt-panel__icon--ok { background: rgba(39, 174, 96, .14); color: #27ae60; }
.appt-panel__links { display: flex; justify-content: space-between; max-width: 420px; margin: 16px auto 0; }
.a-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.appt .a-otp input,
.a-otp input {
  height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--tint);
  color: var(--text);
  text-align: center;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
}
.a-otp input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 79, 138, .15); }
.a-demo {
  padding: 10px 12px;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  background: rgba(242, 183, 5, .1);
  font-size: 0.8rem;
  color: var(--text);
}
.appt-panel--done .a-demo { max-width: 460px; margin: 0 auto 16px; }
.appt-ref {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px auto 18px;
  padding: 14px 28px;
  border: 2px dashed var(--brand);
  border-radius: 12px;
}
.appt-ref span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.appt-ref strong { font-size: 1.5rem; letter-spacing: 2px; color: var(--brand); }

@media (max-width: 1100px) {
  .g-grid { grid-template-columns: repeat(3, 1fr); }
  .g-book__grid { grid-template-columns: 1fr; }
  .g-book__aside { position: static; order: -1; }
  .a-slots { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .g-perks__grid { grid-template-columns: 1fr 1fr; }
  .g-perk:nth-child(3) { border-left: none; }
  .g-perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .g-grid { grid-template-columns: 1fr 1fr; }
  .g-offers__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .g-hero { min-height: 380px; }
  .g-hero::after { background: linear-gradient(0deg, rgba(4, 24, 44, .95) 0%, rgba(4, 24, 44, .6) 100%); }
  .g-perks__grid { grid-template-columns: 1fr; }
  .g-perk + .g-perk { border-left: none; border-top: 1px solid var(--line); }
  .g-grid { grid-template-columns: 1fr; }
  .g-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 28px; padding: 4px 16px; scrollbar-width: none; }
  .g-filter { flex-shrink: 0; }
  .g-offer { grid-template-columns: 110px 1fr; }
  .g-offer__value strong { font-size: 1.6rem; }
  .a-grid { grid-template-columns: 1fr; }
  .appt__step { padding: 18px 16px 20px; }
  .a-otp { gap: 6px; }
  .appt-panel { padding: 28px 18px; }
}
.g-hero__inner { width: 100%; }
@media (max-width: 600px) {
  .g-perks__grid { margin: 0 16px; padding: 0; }
}

/* Plain page heading (inner pages - the photo slideshow is only on the home page) */
.g-hero--plain {
  min-height: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, .08) 0, transparent 40%),
    linear-gradient(135deg, #0d5a9c 0%, var(--brand) 50%, #08396a 100%);
}
.g-hero--plain::after { display: none; }
.g-hero--plain .g-hero__inner { padding-top: 40px; padding-bottom: 80px; }
html[data-theme="dark"] .g-hero--plain { background: linear-gradient(135deg, #12324f 0%, #0a1a2b 100%); }
@media (max-width: 600px) {
  .g-hero--plain .g-hero__inner { padding-top: 28px; padding-bottom: 64px; }
}
/* Line the facts box up with the page content edges */
.g-perks__grid { padding: 0; max-width: calc(min(1240px, 100%) - 32px); }

/* Heading with the quick booking card on the right */
.g-hero--plain .g-hero__inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: center;
}
.g-hero__inner > .g-hero__text,
.g-hero__inner > .g-quick { max-width: none; }
.g-hero__text > * { max-width: 620px; }
/* Faint ferry/garage pattern so the glass has something to show through */
.g-hero--plain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 40%, rgba(242, 183, 5, .18) 0, transparent 32%),
    radial-gradient(circle at 95% 90%, rgba(255, 255, 255, .12) 0, transparent 30%);
}
.g-quick { width: 100%; }
.g-quick .booking__form { gap: 12px; }
.g-quick .bk-field { gap: 6px; }

@media (max-width: 1000px) {
  .g-hero--plain .g-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .g-quick { max-width: 560px; }
}
/* Keep the banner paragraph style off the quick card */
.g-quick p { margin: 0; font-size: 0.75rem; color: #c9d8e6; }
.g-quick .booking__head { align-items: center; }

/* Type-or-pick boxes outside the ferry card */
.bk-combo__label { font-size: 0.88rem; font-weight: 600; }
.bk-combo__label mark { background: rgba(242, 183, 5, .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.appt .bk-combo input { padding: 0 44px 0 38px; font-weight: 600; }
.appt .bk-combo__toggle { top: 5px; }
.g-hero--plain { overflow: visible; }

/* Appointment pop-up (reuses the search glass) */
.appt-modal { padding: 4vh 16px 16px; }
.appt-modal__dialog { max-width: 1120px; max-height: 92vh; }
.appt-modal__close { position: absolute; top: 18px; right: 18px; z-index: 2; }
.appt-modal__body { overflow-y: auto; padding: 28px 32px 32px; overscroll-behavior: contain; }
.appt-modal .g-book__grid { grid-template-columns: 1fr 320px; gap: 28px; }
.appt-modal .g-book__aside { top: 0; }
.appt-modal .section-head--left { margin-bottom: 20px; padding-right: 48px; }
.appt-modal .section-head h2 { font-size: 1.6rem; }
/* Steps sit on frosted panels inside the glass */
.appt-modal .appt__step,
.appt-modal .appt-panel {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .8);
}
.appt-modal .appt input,
.appt-modal .appt select,
.appt-modal .appt textarea { background: rgba(255, 255, 255, .85); }
html[data-theme="dark"] .appt-modal .appt__step,
html[data-theme="dark"] .appt-modal .appt-panel { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .appt-modal .appt input,
html[data-theme="dark"] .appt-modal .appt select,
html[data-theme="dark"] .appt-modal .appt textarea { background: rgba(0, 0, 0, .25); }
@media (max-width: 1000px) {
  .appt-modal .g-book__grid { grid-template-columns: 1fr; }
  .appt-modal .g-book__aside { position: static; order: 1; }
}
@media (max-width: 600px) {
  .appt-modal { padding: 8px; }
  .appt-modal__dialog { max-height: calc(100vh - 16px); }
  .appt-modal__body { padding: 22px 14px 20px; }
  .appt-modal__close { top: 12px; right: 12px; }
}

/* Offers in brand blue instead of red */
.g-offers__grid { max-width: 900px; margin: 0 auto; }
.g-offer__value { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%); }
.g-offer__value strong { color: var(--accent); }
.g-offer__value span { color: var(--brand); }
.g-card__deal { background: rgba(11, 79, 138, .1); color: var(--brand); }
.a-offer { border-color: var(--brand); background: rgba(11, 79, 138, .06); }
.a-offer > i { color: var(--brand); }
.appt-modal__dialog:focus { outline: none; }
@media (min-width: 1001px) { .appt-modal .g-book__aside { margin-top: 48px; } }
.g-offer h3 { padding-right: 64px; }

/* Vehicle page heading now holds only the booking card, centred */
.g-hero--plain .g-hero__inner { grid-template-columns: minmax(0, 560px); justify-content: center; padding-top: 40px; padding-bottom: 80px; }

/* Vehicle page: no heading band, the facts strip opens the page */
.garage .g-perks { margin-top: 40px; }

/* Floating "Book a vehicle service" button */
.appt-fab {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: left;
  box-shadow: 0 12px 30px rgba(4, 30, 56, .35);
  transition: transform .2s, box-shadow .2s;
}
.appt-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(4, 30, 56, .45); }
.appt-fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.appt-fab__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-size: 19px;
}
/* Soft pulse so it gets noticed */
.appt-fab__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: fab-pulse 2.4s ease-out infinite;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}
.appt-fab__text { display: flex; flex-direction: column; line-height: 1.2; }
.appt-fab__text strong { font-size: 0.95rem; }
.appt-fab__text small { font-size: 0.72rem; color: #c9d8e6; }
.appt-fab[aria-expanded="true"] { visibility: hidden; }
@media (max-width: 600px) {
  .appt-fab { left: 14px; bottom: 14px; padding-right: 16px; }
  .appt-fab__icon { width: 40px; height: 40px; font-size: 17px; }
  .appt-fab__text small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .appt-fab__icon::after { animation: none; } }

/* Appointment wizard: one step open, finished steps fold into a summary line */
.appt__step { transition: border-color .2s, box-shadow .2s, padding .2s; }
.appt__step legend { width: 100%; display: flex; align-items: center; }
.appt__sum {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}
.appt__edit {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}
.appt__edit:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.appt__step:not(.is-open) .appt__body { display: none; }
.appt__step.is-open { border-color: var(--brand); box-shadow: 0 8px 22px rgba(11, 79, 138, .12); }
.appt__step.is-open .appt__body { animation: bk-drop .3s ease-out; }
.appt__step:not(.is-open) { padding-top: 14px; padding-bottom: 14px; }
.appt__step:not(.is-open):not(.is-done) { opacity: .55; }
.appt__step.is-done legend { cursor: pointer; }
.appt__step.is-done .appt__edit { display: inline-flex; }
.appt__step.is-done .appt__num { background: #27ae60; font-size: 0; }
.appt__step.is-done .appt__num::before { content: "\f00c"; font: var(--fa-font-solid); font-size: 0.8rem; }
.appt-modal .appt__step.is-open { background: rgba(255, 255, 255, .8); }
html[data-theme="dark"] .appt-modal .appt__step.is-open { background: rgba(255, 255, 255, .08); }

.appt__next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.appt__tip { font-size: 0.8rem; color: var(--muted); }
.appt__nextbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background .2s, gap .2s;
}
.appt__nextbtn:hover { background: var(--brand-dark); gap: 12px; }
@media (max-width: 600px) {
  .appt__sum { display: none; }
  .appt__next { flex-direction: column; align-items: stretch; }
}
/* Keep the step title inside its card (not sitting on the border) */
.appt__step legend { float: left; width: 100%; padding: 0; margin: 0; }
.appt__step .appt__body { clear: both; padding-top: 6px; }
.appt__step.is-open legend { margin-bottom: 4px; }
.appt__step:not(.is-open) { padding-top: 12px; padding-bottom: 12px; }
.appt__step:not(.is-open)::after { content: ""; display: block; clear: both; }
.appt { gap: 12px; }

/* Booking card tabs (home page): ferry ticket | vehicle service */
.bk-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
  border-radius: 14px 14px 0 0;
  background: rgba(4, 24, 44, .45);
}
.bk-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.bk-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.bk-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .95); color: var(--brand-dark); }
.bk-tabs button[aria-selected="true"] i { color: var(--brand); }
.bk-tabs + #ferryPane .booking__head,
#servicePane .booking__head { border-radius: 0; }
#servicePane .booking__form { gap: 12px; }

/* Tabs are the card heading: gold line under them */
.bk-tabs { border-bottom: 2px solid var(--accent); }

/* Related websites: small, quiet chevrons; the external-link mark appears on hover */
.ft-bullet--site { font-size: 0.55rem; margin-top: 7px; color: rgba(242, 183, 5, .8); transition: transform .2s, color .2s; }
.ft-links a:hover .ft-bullet--site { transform: translateX(2px); color: var(--accent); }
.ft-two .ft-ext { opacity: 0; transition: opacity .2s, color .2s; }
.ft-two .ft-links a:hover .ft-ext,
.ft-two .ft-links a:focus-visible .ft-ext { opacity: 1; }

/* Home booking card: 30% wider on desktop (440px -> 572px) */
@media (min-width: 961px) {
  .booking-layer .booking { width: 572px; }
  .hero__caption > * { max-width: min(540px, calc(100% - 612px)); }
}

/* =====================================================================
   CONTACT PAGE (/mawasiliano)
   ===================================================================== */
.c-head {
  padding: 40px 0 96px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, .08) 0, transparent 40%),
    linear-gradient(135deg, #0d5a9c 0%, var(--brand) 50%, #08396a 100%);
  color: #fff;
}
html[data-theme="dark"] .c-head { background: linear-gradient(135deg, #12324f 0%, #0a1a2b 100%); }
.c-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 8px; }
.c-head p { max-width: 640px; color: #dbe6f1; }

/* Quick cards */
.c-cards { margin-top: -60px; position: relative; z-index: 2; }
.c-cards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.c-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(4, 30, 56, .14);
  transition: transform .2s, box-shadow .2s;
}
a.c-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(4, 30, 56, .2); }
.c-card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(11, 79, 138, .1);
  color: var(--brand);
  font-size: 18px;
}
.c-card h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.c-card p { font-size: 0.92rem; line-height: 1.5; }
.c-card__big { font-size: 1.12rem !important; font-weight: 800; color: var(--brand); word-break: break-word; }
.c-card small { font-size: 0.78rem; color: var(--muted); }
.c-card--accent { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; }
.c-card--accent .c-card__icon { background: rgba(255, 255, 255, .14); color: var(--accent); }
.c-card--accent h2, .c-card--accent small { color: #c9d8e6; }
.c-card--accent .c-card__big { color: var(--accent); }

/* Maps */
.c-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tint);
  box-shadow: 0 12px 30px rgba(4, 30, 56, .12);
}
.c-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* HQ */
.c-hq { padding: 64px 0; }
.c-hq__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px; align-items: center; }
.c-hq h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--brand); margin: 4px 0 20px; }
.c-hq__list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.c-hq__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; line-height: 1.55; }
.c-hq__list i { color: var(--brand); margin-top: 4px; text-align: center; }
.c-hq__list a { color: var(--brand); font-weight: 600; }
.c-hq__list a:hover { text-decoration: underline; }
.c-hq__list small { color: var(--muted); }
.c-map--hq iframe { min-height: 400px; }

/* Office finder */
.c-offices { padding: 64px 0 72px; background: var(--tint); scroll-margin-top: 60px; }
.c-finder { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: start; }
.c-finder__list {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 10px 26px rgba(4, 30, 56, .08);
}
.c-search { position: relative; }
.c-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.c-search input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--tint);
  color: var(--text);
  font: inherit;
}
.c-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 79, 138, .15); }
.c-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.c-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}
.c-filter em { font-style: normal; font-size: 0.7rem; color: var(--muted); }
.c-filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.c-filter[aria-pressed="true"] em { color: #c9d8e6; }
.c-count { font-size: 0.75rem; color: var(--muted); margin: 6px 2px 8px; }
.c-list { max-height: 520px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.c-office { border-radius: 12px; transition: background .15s; }
.c-office + .c-office { margin-top: 4px; }
.c-office__main {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: none;
  background: none;
  color: var(--text);
  text-align: left;
}
.c-office:hover { background: var(--tint); }
.c-office__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(11, 79, 138, .1);
  color: var(--brand);
}
.c-office__text strong { display: block; font-size: 0.92rem; }
.c-office__kind { font-size: 0.76rem; color: var(--muted); }
.c-office__map { font-size: 0.74rem; font-weight: 700; color: var(--brand); opacity: 0; transition: opacity .15s; }
.c-office:hover .c-office__map { opacity: 1; }
.c-office__details { display: none; flex-direction: column; gap: 6px; padding: 0 12px 12px 60px; font-size: 0.84rem; }
.c-office__details i { width: 16px; color: var(--accent-text); margin-right: 4px; }
.c-office__details a { color: var(--brand); font-weight: 600; }
.c-office__details a:hover { text-decoration: underline; }
.c-office.is-active { background: rgba(11, 79, 138, .08); box-shadow: inset 3px 0 0 var(--brand); }
.c-office.is-active .c-office__icon { background: var(--brand); color: var(--accent); }
.c-office.is-active .c-office__details { display: flex; }
.c-office.is-active .c-office__map { opacity: 1; }
.c-empty { padding: 20px 8px; text-align: center; color: var(--muted); font-size: 0.86rem; }

.c-finder__map { position: sticky; top: 76px; }
.c-finder__map .c-map iframe { min-height: 560px; }
.c-mapbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.9rem;
}
.c-mapbar i.fa-location-dot { color: var(--brand); margin-right: 4px; }
.c-mapbar a { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.c-mapbar a:hover { text-decoration: underline; }

/* Message form */
.c-write { padding: 72px 0 88px; }
.c-write__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.c-write h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--brand); margin: 4px 0 10px; }
.c-write__intro p { color: var(--muted); margin-bottom: 28px; }
.c-follow strong { display: block; margin-bottom: 10px; font-size: 0.85rem; }
.c-social { justify-content: flex-start; }
.c-social a { color: var(--brand); border-color: var(--line); background: var(--bg); }
.c-write__box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 14px 34px rgba(4, 30, 56, .08);
}
.c-form { display: flex; flex-direction: column; gap: 20px; }
.c-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.c-form__full { grid-column: 1 / -1; }
.c-form .a-field { margin-top: 0; }
.c-form input, .c-form select, .c-form textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--tint);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}
.c-form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.c-form input:focus, .c-form select:focus, .c-form textarea:focus { outline: none; border-color: var(--brand); background: var(--bg); box-shadow: 0 0 0 3px rgba(11, 79, 138, .15); }
.c-done { border: none; padding: 20px 0; }
.c-done .a-demo { max-width: 460px; margin: 0 auto 16px; }

@media (max-width: 1100px) {
  .c-cards__grid { grid-template-columns: 1fr 1fr; }
  .c-finder { grid-template-columns: 360px 1fr; }
}
@media (max-width: 900px) {
  .c-hq__grid, .c-finder, .c-write__grid { grid-template-columns: 1fr; }
  .c-finder__map { position: static; }
  .c-finder__map .c-map iframe { min-height: 380px; }
  .c-list { max-height: 420px; }
  .c-office__map { opacity: 1; }
}
@media (max-width: 600px) {
  .c-cards__grid { grid-template-columns: 1fr; }
  .c-form__grid { grid-template-columns: 1fr; }
  .c-write__box { padding: 20px 16px; }
  .c-office__details { padding-left: 12px; }
}

/* Contact page now opens with the cards (no heading band) */
.contact .c-cards { margin-top: 40px; }

/* ---------- Contact page: refined ---------- */
.contact .c-cards { margin-top: 0; padding: 36px 0 0; }
.c-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 6px 20px rgba(4, 30, 56, .06);
  overflow: hidden;
}
.c-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  color: var(--text);
  transition: background .2s;
}
.c-item + .c-item { border-left: 1px solid var(--line); }
a.c-item:hover { background: var(--tint); }
.c-item__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(11, 79, 138, .2);
  color: var(--brand);
  font-size: 15px;
}
a.c-item:hover .c-item__icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.c-item__text { display: flex; flex-direction: column; min-width: 0; }
.c-item__text small { font-size: 0.72rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.c-item__text strong { font-size: 1rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-badge { font-style: normal; text-transform: none; letter-spacing: 0; color: #27ae60; }

/* Shared panel: details/list on the left, map filling the right */
.c-panel {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(4, 30, 56, .08);
  overflow: hidden;
}

/* Headquarters */
.c-hq { padding: 40px 0 64px; }
.c-hq__panel { grid-template-columns: 1fr 1.25fr; }
.c-hq__info { padding: 36px 36px 32px; }
.c-hq h2 { margin: 4px 0 22px; font-size: 1.6rem; }
.c-rows { margin-bottom: 26px; }
.c-rows > div { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px 0; }
.c-rows > div + div { border-top: 1px solid var(--line); }
.c-rows dt { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--brand); font-size: 14px; }
.c-rows dd small { display: block; margin-bottom: 2px; font-size: 0.7rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.c-rows dd span { font-size: 0.95rem; line-height: 1.55; }
.c-rows dd a { color: var(--brand); font-weight: 600; }
.c-rows dd a:hover { text-decoration: underline; }
.c-rows dd em { font-style: normal; font-size: 0.8rem; color: #27ae60; }
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background .2s;
}
.c-btn:hover { background: var(--brand-dark); }
.c-hq__map { position: relative; min-height: 440px; background: var(--tint); border-left: 1px solid var(--line); }
.c-hq__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Office finder inside one panel */
.c-offices { padding: 64px 0 80px; }
.c-finder { grid-template-columns: 400px 1fr; gap: 0; align-items: stretch; }
.c-finder__list { border-radius: 0; box-shadow: none; padding: 20px; border-right: 1px solid var(--line); }
.c-finder__map { position: relative; top: auto; display: flex; flex-direction: column; }
.c-map--flat { flex: 1; border-radius: 0; box-shadow: none; }
.c-map--flat iframe { min-height: 600px; height: 100%; }
.c-mapbar { margin: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 14px 20px; }
.c-list { max-height: 470px; }
.c-office + .c-office { margin-top: 0; border-top: 1px solid var(--line); }
.c-office { border-radius: 10px; }
.c-office.is-active + .c-office, .c-office.is-active { border-top-color: transparent; }
.c-office__icon { border-radius: 50%; background: transparent; border: 1px solid rgba(11, 79, 138, .2); }
.c-office.is-active .c-office__icon { border-color: var(--brand); }
.c-filter { border-radius: 8px; }

@media (max-width: 1100px) {
  .c-strip { grid-template-columns: 1fr 1fr; }
  .c-item:nth-child(3) { border-left: none; }
  .c-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .c-finder { grid-template-columns: 340px 1fr; }
}
@media (max-width: 900px) {
  .c-hq__panel, .c-finder { grid-template-columns: 1fr; }
  .c-hq__map { min-height: 320px; border-left: none; border-top: 1px solid var(--line); }
  .c-finder__list { border-right: none; border-bottom: 1px solid var(--line); }
  .c-map--flat iframe { min-height: 380px; }
}
@media (max-width: 600px) {
  .c-strip { grid-template-columns: 1fr; }
  .c-item + .c-item { border-left: none; border-top: 1px solid var(--line); }
  .c-hq__info { padding: 24px 20px; }
}

/* All footer link lists: the external-link mark shows only on hover / keyboard focus */
.footer .ft-links .ft-ext { opacity: 0; transition: opacity .2s, color .2s; }
.footer .ft-links a:hover .ft-ext,
.footer .ft-links a:focus-visible .ft-ext { opacity: 1; }

/* =====================================================================
   MEDIA CENTRE (habari / matangazo / picha / video)
   ===================================================================== */
.md-head { padding: 32px 0 0; }
.md-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
}
.md-tabs a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.md-tabs a:hover { color: var(--brand); }
.md-tabs a[aria-current="page"] { background: var(--bg); color: var(--brand); box-shadow: 0 2px 10px rgba(4, 30, 56, .1); }
.md-tabs a[aria-current="page"] i { color: var(--accent-text); }

.md-body { padding: 28px 0 80px; }
.md-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.md-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.md-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.md-search input, .md-select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
.md-search input { padding: 0 14px 0 40px; }
.md-select { width: auto; min-width: 180px; padding: 0 12px; }
.md-search input:focus, .md-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 79, 138, .15); }
.md-count { margin-left: auto; font-size: 0.82rem; color: var(--muted); }
.md-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.md-empty i { display: block; font-size: 2rem; margin-bottom: 10px; }
.md-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.md-more { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 0.85rem; font-weight: 700; }
.md-more i { font-size: 0.75rem; transition: transform .2s; }
.md-subtitle { font-size: 1.25rem; color: var(--text); margin: 44px 0 16px; }

/* News: featured story */
.nf {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  transition: box-shadow .25s;
}
.nf:hover { box-shadow: 0 16px 36px rgba(4, 30, 56, .12); }
.nf__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.nf__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.nf:hover .nf__media img { transform: scale(1.03); }
.nf__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 36px; }
.nf__body time { font-size: 0.85rem; color: var(--muted); }
.nf__title { font-size: 1.55rem; font-weight: 800; line-height: 1.3; }
.nf:hover .nf__title { color: var(--brand); }
.nf:hover .md-more i, .nc:hover .md-more i { transform: translateX(3px); }

/* News: cards */
.nc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nc {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  transition: transform .25s, box-shadow .25s;
  animation: svc-in .45s cubic-bezier(.22, .8, .24, 1) both;
  animation-delay: calc(var(--i) * 40ms);
}
.nc:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(4, 30, 56, .12); }
.nc__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.nc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nc:hover .nc__media img { transform: scale(1.04); }
.nc__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.nc__body time { font-size: 0.78rem; color: var(--muted); }
.nc__body time i { color: var(--accent-text); margin-right: 4px; }
.nc__title { flex: 1; font-size: 1rem; font-weight: 700; line-height: 1.45; }
.nc:hover .nc__title { color: var(--brand); }

.md-pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.md-page {
  min-width: 40px; height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
}
.md-page:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.md-page.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.md-page:disabled { opacity: .4; cursor: default; }

/* Announcements */
.nt-list { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow: hidden; }
.nt {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 20px 24px;
  animation: svc-in .4s cubic-bezier(.22, .8, .24, 1) both;
  animation-delay: calc(var(--i) * 35ms);
  transition: background .2s;
}
.nt + .nt { border-top: 1px solid var(--line); }
.nt:hover { background: var(--tint); }
.nt__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  line-height: 1.1;
  text-align: center;
}
.nt__date strong { font-size: 1.6rem; color: var(--brand); }
.nt__date span { margin-top: 4px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.nt__type { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-text); }
.nt h3 { margin-top: 4px; font-size: 1rem; line-height: 1.45; }
.nt__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.nt__action:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Photo gallery */
.md-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.md-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}
.md-chip em { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.md-chip:hover { border-color: var(--brand); }
.md-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.md-chip[aria-pressed="true"] em { color: #c9d8e6; }

.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.ph {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tint);
  cursor: zoom-in;
  animation: svc-in .45s cubic-bezier(.22, .8, .24, 1) both;
  animation-delay: calc(var(--i) * 30ms);
}
.ph:first-child { grid-column: span 2; grid-row: span 2; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ph:hover img { transform: scale(1.05); }
.ph__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 36px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 16, 32, .85) 100%);
  color: #fff;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.ph:hover .ph__cap, .ph:focus-visible .ph__cap, .ph:first-child .ph__cap { opacity: 1; transform: none; }
.ph__cat { font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.ph__txt { font-size: 0.85rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph__zoom {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--brand);
  font-size: 13px;
  opacity: 0;
  transition: opacity .25s;
}
.ph:hover .ph__zoom { opacity: 1; }
.ph:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  grid-template-rows: 1fr auto;
  align-items: center;
  background: rgba(3, 12, 24, .94);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s;
}
.lb.is-open { opacity: 1; }
.lb__stage { grid-column: 2; display: grid; place-items: center; height: 100%; padding: 64px 0 12px; min-height: 0; }
.lb__stage img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: scale(.98);
  transition: opacity .25s, transform .25s;
}
.lb__stage img.is-in { opacity: 1; transform: none; }
.lb__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 16px;
  transition: background .2s, color .2s;
}
.lb__btn:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.lb__close { position: absolute; top: 16px; right: 16px; }
.lb__prev { grid-column: 1; grid-row: 1; }
.lb__next { grid-column: 3; grid-row: 1; }
.lb__bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 24px 22px;
  color: #fff;
  text-align: center;
}
.lb__cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.lb__cap { font-size: 0.95rem; }
.lb__count { font-size: 0.8rem; color: rgba(255, 255, 255, .6); }
.lb [data-tip]::after { top: auto; bottom: calc(100% + 8px); }

/* Videos */
.vp {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  scroll-margin-top: 80px;
}
.vp__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vp__frame iframe, .vp__cover { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp__cover { padding: 0; background: #000; cursor: pointer; }
/* Uploaded video files (not YouTube) fill the same 16:9 frame, shown whole on black */
.vp__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp__cover img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.vp__cover:hover img { opacity: 1; }
.vp__play, .vc__play {
  position: absolute;
  top: 50%; left: 50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--brand);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .2s, background .2s;
}
.vp__play { width: 76px; height: 76px; font-size: 24px; padding-left: 4px; }
.vp__cover:hover .vp__play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); color: #111; }
.vp__info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 32px; }
.vp__info h2 { font-size: 1.35rem; line-height: 1.35; }
.vp__info time { font-size: 0.85rem; color: var(--muted); }
.vp__yt { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--brand); font-weight: 700; font-size: 0.88rem; }
.vp__yt i { color: #e62117; font-size: 1.1rem; }
.vp__yt:hover { text-decoration: underline; }

.vc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vc {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  text-align: left;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: svc-in .45s cubic-bezier(.22, .8, .24, 1) both;
  animation-delay: calc(var(--i) * 35ms);
}
.vc:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(4, 30, 56, .12); }
.vc__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vc__media img { width: 100%; height: 100%; object-fit: cover; }
.vc__play { width: 46px; height: 46px; font-size: 15px; padding-left: 3px; opacity: .92; }
.vc:hover .vc__play { background: var(--accent); color: #111; }
.vc__now {
  position: absolute;
  left: 8px; bottom: 8px;
  display: none;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #111;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.vc.is-current { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.vc.is-current .vc__now { display: block; }
.vc__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.vc__body time { font-size: 0.75rem; color: var(--muted); }
.vc__title { font-size: 0.9rem; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1100px) {
  .nc-grid { grid-template-columns: repeat(2, 1fr); }
  .ph-grid { grid-template-columns: repeat(3, 1fr); }
  .vc-grid { grid-template-columns: repeat(3, 1fr); }
  .vp { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .md-tabs { overflow-x: auto; scrollbar-width: none; }
  .md-tabs a { flex: 0 0 auto; padding: 0 16px; }
  .nf { grid-template-columns: 1fr; }
  .nf__body { padding: 22px; }
  .nf__title { font-size: 1.2rem; }
  .nc-grid { grid-template-columns: 1fr; }
  .nt { grid-template-columns: 60px 1fr; gap: 14px; padding: 16px; }
  .nt__action { grid-column: 2; justify-self: start; }
  .ph-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .ph__cap { opacity: 1; transform: none; }
  .vc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .md-select { flex: 1; }
  .md-count { width: 100%; margin-left: 0; }
  .lb { grid-template-columns: 48px 1fr 48px; }
  .lb__btn { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .nc, .nt, .ph, .vc { animation: none; }
}
.lb .lb__close[data-tip]::after { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; transform: none; }

/* =====================================================================
   PUBLICATIONS (/machapisho)
   ===================================================================== */
.pb-tabs a em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--muted); padding: 1px 7px; border-radius: 999px; background: rgba(4, 30, 56, .06); }
.pb-tabs a[aria-current="page"] em { background: var(--tint); color: var(--brand); }
.pb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pb {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: 1fr auto;
  gap: 14px 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: box-shadow .25s, border-color .25s, transform .25s;
  animation: svc-in .4s cubic-bezier(.22, .8, .24, 1) both;
  animation-delay: calc(var(--i) * 35ms);
}
.pb:hover { border-color: transparent; box-shadow: 0 14px 30px rgba(4, 30, 56, .12); transform: translateY(-2px); }
.pb__doc {
  grid-row: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px; height: 82px;
  border-radius: 6px 16px 6px 6px;
  background: linear-gradient(160deg, var(--tint) 0%, #e3ebf3 100%);
  border: 1px solid var(--line);
  color: var(--brand);
}
.pb__doc i { font-size: 1.6rem; }
.pb__doc span {
  padding: 1px 6px;
  border-radius: 3px;
  background: #c0392b;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: .5px;
}
html[data-theme="dark"] .pb__doc { background: rgba(255, 255, 255, .06); }
.pb__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pb__cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-text); }
.pb h3 { font-size: 1rem; line-height: 1.45; }
.pb__date { font-size: 0.78rem; color: var(--muted); }
.pb__actions { display: flex; gap: 8px; }
.pb__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.pb__btn:hover { border-color: var(--brand); }
.pb__btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.pb__btn--primary:hover { background: var(--brand-dark); }
@media (max-width: 900px) { .pb-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .pb-tabs a { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .pb { animation: none; } }

/* =====================================================================
   ADMINISTRATION (/utawala)
   ===================================================================== */
.ad-title { font-size: 1.6rem; color: var(--brand); margin-bottom: 6px; }
.ad-intro { color: var(--muted); max-width: 760px; margin-bottom: 28px; }
.ad-sub { font-size: 1rem; margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ad-note { display: block; margin-top: 10px; color: var(--muted); font-style: italic; }

/* People */
.ad-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ad-people--3 { grid-template-columns: repeat(3, 1fr); }
.ad-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: box-shadow .2s, border-color .2s;
}
.ad-person:hover { border-color: transparent; box-shadow: 0 10px 24px rgba(4, 30, 56, .1); }
.ad-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--tint);
  border: 1px solid rgba(11, 79, 138, .2);
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .5px;
}
.ad-person h3 { font-size: 0.95rem; line-height: 1.3; }
.ad-person p { margin-top: 3px; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.ad-person--lead {
  max-width: 560px;
  padding: 22px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: transparent;
  color: #fff;
}
.ad-person--lead .ad-avatar { width: 72px; height: 72px; font-size: 1.3rem; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: var(--accent); }
.ad-person--lead h3 { font-size: 1.2rem; }
.ad-person--lead p { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: .5px; text-transform: uppercase; }
.ad-person--dir .ad-avatar { background: var(--brand); color: #fff; border-color: var(--brand); }
.ad-person--sec { border-style: dashed; }

/* Directorate / unit blocks */
.ad-blocks { display: flex; flex-direction: column; gap: 18px; }
.ad-blocks--2 { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.ad-block { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.ad-block header { display: flex; gap: 16px; align-items: flex-start; }
.ad-block__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--accent);
  font-size: 19px;
}
.ad-block h3 { font-size: 1.15rem; line-height: 1.3; }
.ad-block__head { margin-top: 4px; font-size: 0.85rem; color: var(--muted); }
.ad-block__head i { color: var(--accent-text); margin-right: 4px; }
.ad-block__head strong { color: var(--text); }
.ad-purpose { margin-top: 14px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.ad-block header .ad-purpose { margin-top: 6px; }
.ad-label { display: block; margin-bottom: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ad-secs { margin-top: 18px; }
.ad-secs ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ad-secs li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--tint); border-left: 3px solid var(--accent); }
.ad-secs li strong { font-size: 0.9rem; }
.ad-secs li span { font-size: 0.78rem; color: var(--muted); }
.ad-funcs { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ad-toggle { display: inline-flex; align-items: center; gap: 8px; border: none; background: none; padding: 4px 0; color: var(--brand); font-weight: 700; font-size: 0.88rem; }
.ad-chev { font-size: 0.7rem; transition: transform .2s; }
.ad-toggle[aria-expanded="true"] .ad-chev { transform: rotate(180deg); }
.ad-list { margin: 12px 0 0; padding-left: 22px; list-style: lower-roman; display: flex; flex-direction: column; gap: 8px; animation: bk-drop .25s ease-out; }
.ad-list li { font-size: 0.9rem; line-height: 1.55; padding-left: 4px; }
.ad-list li::marker { color: var(--accent-text); font-weight: 700; }
.ad-block--wide .c-btn { margin-top: 18px; }

/* Organisation chart */
.org { display: flex; flex-direction: column; align-items: center; padding: 28px 20px 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow-x: auto; }
.org__line { width: 2px; height: 26px; background: var(--line); }
.org__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 170px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
}
.org__node strong { font-size: 0.86rem; line-height: 1.3; }
.org__node span { font-size: 0.74rem; color: var(--muted); }
.org__node > i { color: var(--accent); font-size: 1.05rem; margin-bottom: 2px; }
.org__node--muted { background: var(--tint); }
.org__node--ceo { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); border-color: transparent; color: #fff; min-width: 240px; padding: 16px 22px; }
.org__node--ceo strong { font-size: 1rem; }
.org__node--ceo span { color: var(--accent); }
.org__ceo-row { position: relative; display: flex; justify-content: center; width: 100%; }
.org__node--side { position: absolute; left: calc(50% + 160px); top: 50%; transform: translateY(-50%); border-style: dashed; }
.org__node--side::before { content: ""; position: absolute; right: 100%; top: 50%; width: 40px; border-top: 2px dashed var(--line); }
.org__units { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; background: var(--tint); }
.org__node--unit { min-width: 150px; max-width: 180px; padding: 10px 12px; }
.org__dirs { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 18px; width: 100%; }
.org__col { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.org__node--dir { background: var(--brand); border-color: var(--brand); color: #fff; }
.org__node--dir span { color: #c9d8e6; }
.org__secs { display: flex; flex-direction: column; gap: 8px; padding-left: 14px; border-left: 2px solid var(--line); margin-left: 14px; }
.org__node--sec { align-items: flex-start; text-align: left; min-width: 0; border-left: 3px solid var(--accent); }

@media (max-width: 1100px) {
  .ad-people { grid-template-columns: repeat(3, 1fr); }
  .org__node--side { position: static; transform: none; margin-left: 16px; }
  .org__node--side::before { display: none; }
  .org__ceo-row { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 900px) {
  .ad-people, .ad-people--3 { grid-template-columns: 1fr 1fr; }
  .ad-blocks--2 { grid-template-columns: 1fr; }
  .org__dirs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ad-people, .ad-people--3 { grid-template-columns: 1fr; }
  .ad-block { padding: 18px; }
  .org { padding: 18px 12px; }
}

/* =====================================================================
   ABOUT US (/kuhusu)
   ===================================================================== */
/* CEO's desk */
.ab-ceo { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.ab-ceo__card {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
}
.ab-ceo__avatar {
  display: grid;
  place-items: center;
  width: 132px; height: 132px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: rgba(255, 255, 255, .1);
  color: var(--accent);
  font-size: 2.4rem;
  font-weight: 800;
}
.ab-ceo__card strong { font-size: 1.1rem; }
.ab-ceo__card > span:last-child { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.ab-letter { position: relative; padding: 36px 40px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.ab-letter::before {
  content: "\201C";
  position: absolute;
  top: 6px; right: 28px;
  font: 800 7rem/1 Georgia, serif;
  color: var(--tint);
}
.ab-letter p { position: relative; margin-top: 16px; font-size: 1rem; line-height: 1.8; }
.ab-letter__close { font-weight: 700; color: var(--brand); }
.ab-sign { display: flex; flex-direction: column; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.ab-sign strong { font: italic 700 1.3rem/1.3 Georgia, serif; color: var(--brand); }
.ab-sign span { font-size: 0.82rem; color: var(--muted); }

/* Who we are */
.ab-who { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.ab-lead { font-size: 1.08rem; line-height: 1.85; }
.ab-facts { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--tint); }
.ab-facts h3 { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ab-facts dl > div { padding: 10px 0; }
.ab-facts dl > div + div { border-top: 1px solid var(--line); }
.ab-facts dt { font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.ab-facts dt i { width: 16px; color: var(--brand); margin-right: 4px; }
.ab-facts dd { margin-top: 2px; font-weight: 700; font-size: 0.92rem; }
.ab-funcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ab-func { position: relative; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.ab-func > i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--brand); font-size: 17px; margin-bottom: 12px; }
.ab-func p { font-size: 0.9rem; line-height: 1.55; }
.ab-func__num { position: absolute; top: 16px; right: 18px; font-size: 0.75rem; font-weight: 800; color: var(--accent-text); }

/* Vision & mission */
.ab-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.ab-vm__card { padding: 36px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.ab-vm__card:first-child { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%); border-color: transparent; color: #fff; }
.ab-vm__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 14px; background: var(--tint); color: var(--brand); font-size: 22px; }
.ab-vm__card:first-child .ab-vm__icon { background: rgba(255, 255, 255, .14); color: var(--accent); }
.ab-vm__card h3 { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.ab-vm__card:first-child h3 { color: var(--accent); }
.ab-vm__card p { font-size: 1.4rem; font-weight: 700; line-height: 1.45; }
.ab-motto { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding: 22px; border-radius: 16px; border: 1px dashed var(--accent); background: rgba(242, 183, 5, .06); }
.ab-motto span { font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ab-motto strong { font: italic 700 1.2rem/1.4 Georgia, serif; color: var(--brand); }

/* Core values */
.ab-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ab-value { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); transition: box-shadow .25s, border-color .25s; }
.ab-value:hover { border-color: transparent; box-shadow: 0 14px 30px rgba(4, 30, 56, .1); }
.ab-value__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.ab-value__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--brand); color: var(--accent); font-size: 20px; }
.ab-value__num { font-size: 2rem; font-weight: 900; color: var(--tint); line-height: 1; }
.ab-value h3 { font-size: 1.15rem; margin-bottom: 8px; }
.ab-value p { font-size: 0.92rem; line-height: 1.65; color: var(--muted); }

/* Strategic plan */
.ab-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.ab-goals li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.ab-goals li > span { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 0.85rem; }
.ab-goals p { font-size: 0.92rem; line-height: 1.45; }

/* Document card + feedback */
.ab-doc { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; max-width: 820px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.ab-doc .pb__doc { grid-row: auto; }
.ab-doc__text strong { display: block; font-size: 1.02rem; }
.ab-doc__text span { font-size: 0.85rem; color: var(--muted); }
.ab-feedback { display: flex; align-items: center; gap: 18px; max-width: 820px; margin-top: 18px; padding: 20px 24px; border-radius: 14px; background: var(--tint); }
.ab-feedback > i { font-size: 1.8rem; color: var(--brand); }
.ab-feedback div { flex: 1; }
.ab-feedback strong { display: block; }
.ab-feedback div span { font-size: 0.88rem; color: var(--muted); }

@media (max-width: 1000px) {
  .ab-ceo, .ab-who { grid-template-columns: 1fr; }
  .ab-ceo__card { position: static; flex-direction: row; justify-content: flex-start; text-align: left; flex-wrap: wrap; }
  .ab-ceo__avatar { width: 72px; height: 72px; font-size: 1.4rem; margin: 0 12px 0 0; }
  .ab-funcs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ab-vm, .ab-values, .ab-goals, .ab-funcs { grid-template-columns: 1fr; }
  .ab-letter { padding: 24px 20px; }
  .ab-vm__card { padding: 26px; }
  .ab-vm__card p { font-size: 1.2rem; }
  .ab-doc { grid-template-columns: 56px 1fr; }
  .ab-doc .pb__actions { grid-column: 1 / -1; }
  .ab-feedback { flex-direction: column; align-items: flex-start; }
}
.about .ad-title { margin-bottom: 18px; }

/* =====================================================================
   ELECTRICAL & ELECTRONICS (/umeme)
   ===================================================================== */
.e-how { padding: 72px 0; background: var(--tint); }
.e-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.e-steps li { position: relative; padding: 26px 22px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); counter-increment: step; }
.e-steps li::after {
  content: "0" counter(step);
  position: absolute;
  top: 18px; right: 20px;
  font-size: 1.8rem; font-weight: 900; line-height: 1;
  color: var(--tint);
}
.e-steps li + li::before {
  content: "";
  position: absolute;
  top: 48px; left: -21px;
  width: 22px;
  border-top: 2px dashed var(--accent);
}
.e-steps__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; background: var(--brand); color: var(--accent); font-size: 18px; }
.e-steps strong { display: block; font-size: 1.02rem; margin-bottom: 6px; }
.e-steps p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.e-work { padding: 72px 0 88px; }
.e-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.e-proj { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--tint); }
.e-proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.e-proj:hover img { transform: scale(1.05); }
.e-proj figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 40px 18px 16px; background: linear-gradient(180deg, transparent, rgba(4, 16, 32, .88)); color: #fff; }
.e-proj figcaption span { font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.e-proj figcaption strong { font-size: 0.95rem; line-height: 1.35; }

/* Request pop-up */
.req-modal__dialog { max-width: 820px; }
.a-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.r-client { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r-client input { position: absolute; opacity: 0; }
.r-client span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .85); cursor: pointer; font-size: 0.9rem; }
.r-client i { color: var(--brand); }
.r-client input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.r-client input:checked + span i { color: var(--accent); }
.r-client input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242, 183, 5, .6); }
.req-modal .bk-combo input { padding: 0 44px 0 38px; font-weight: 600; }

@media (max-width: 1000px) {
  .e-steps { grid-template-columns: 1fr 1fr; }
  .e-steps li + li::before { display: none; }
}
@media (max-width: 700px) {
  .e-steps, .e-projects, .r-client { grid-template-columns: 1fr; }
}
.e-steps { list-style: none; padding: 0; }

/* Booking card: three tabs on the home page */
.bk-tabs:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
.bk-tabs button { padding: 0 6px; white-space: nowrap; }
@media (max-width: 480px) {
  .bk-tabs button { flex-direction: column; gap: 2px; height: 50px; font-size: 0.72rem; }
}
#elecPane .booking__form { gap: 12px; }

/* Electrical page: request section */
.el-req { padding: 72px 0; background: linear-gradient(135deg, #0d5a9c 0%, var(--brand) 50%, #08396a 100%); color: #fff; }
html[data-theme="dark"] .el-req { background: linear-gradient(135deg, #12324f 0%, #0a1a2b 100%); }
.el-req__grid { display: grid; grid-template-columns: 1fr 520px; gap: 48px; align-items: center; }
.el-req__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 12px; }
.el-req__text .section-head__kicker { color: var(--accent); }
.el-req__text > p { color: #dbe6f1; max-width: 520px; margin-bottom: 20px; }
.el-req__points { display: flex; flex-direction: column; gap: 10px; }
.el-req__points i { color: var(--accent); margin-right: 8px; }
.el-req__card { width: 100%; }
.el-req__card .booking__head { border-radius: 14px 14px 0 0; }
.el-req__card .booking__head p { margin: 0; }
@media (max-width: 1000px) {
  .el-req__grid { grid-template-columns: 1fr; }
  .el-req__card { max-width: 560px; }
}

/* =====================================================================
   FERRY SERVICES (/vivuko)
   ===================================================================== */
.v-grid { grid-template-columns: repeat(3, 1fr); }
.v-card { color: var(--text); }
.v-card .md-more { margin-top: auto; }
.ferry .el-req__card .bk-steps { border-radius: 0; }
.v-routes-sec { padding: 72px 0 80px; }
.v-regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.v-region { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.v-region__name { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.v-region__name i { color: var(--accent-text); }
.v-region__name em { font-style: normal; margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--tint); font-size: 0.72rem; }
.v-route { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.v-route + .v-route { border-top: 1px solid var(--line); }
.v-route__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(11, 79, 138, .2); color: var(--brand); }
.v-route__towns { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.v-route__towns strong { font-size: 0.95rem; }
.v-route__towns i { color: var(--muted); font-size: 0.7rem; }
.v-route .pb__btn { padding: 7px 12px; font-size: 0.78rem; }
.v-fleet { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .v-grid { grid-template-columns: 1fr 1fr; }
  .v-fleet { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .v-grid, .v-regions, .v-fleet { grid-template-columns: 1fr; }
  .v-route { grid-template-columns: 34px 1fr; }
  .v-route .pb__btn { grid-column: 2; justify-self: start; }
}
/* Region boxes flow in two balanced columns (no gaps beside the long Mwanza list) */
.v-regions { display: block; columns: 2; column-gap: 18px; }
.v-region { break-inside: avoid; margin-bottom: 18px; }
@media (max-width: 700px) { .v-regions { columns: 1; } }

/* Booking card: five tabs on the home page */
.bk-tabs:has(> :nth-child(5)) { grid-template-columns: repeat(5, 1fr); }
.bk-tabs:has(> :nth-child(5)) button { flex-direction: column; gap: 3px; height: 54px; font-size: 0.74rem; }
.bk-tabs:has(> :nth-child(5)) button i { font-size: 0.95rem; }
#hirePane .booking__form, #consultPane .booking__form { gap: 12px; }

/* =====================================================================
   ACCESSIBILITY PANEL (js/a11y.js, React)
   ===================================================================== */
.tb-a11y { border: none; background: none; cursor: pointer; position: relative; border-radius: 50%; transition: background .2s, color .2s; }
.tb-a11y:hover { background: var(--accent); color: #111; }

.ax { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; }
.ax__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 20, 40, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease;
}
.ax__dialog {
  position: relative;
  width: 100%; max-width: 860px;
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: linear-gradient(135deg, rgba(255, 255, 255, .74) 0%, rgba(232, 240, 248, .58) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
  color: #1d2733;
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .22s ease, transform .28s cubic-bezier(.22, .8, .24, 1);
}
.ax.is-open .ax__backdrop { opacity: 1; }
.ax.is-open .ax__dialog { opacity: 1; transform: none; }
html[data-theme="dark"] .ax__dialog { background: linear-gradient(135deg, rgba(22, 33, 45, .82) 0%, rgba(13, 22, 32, .72) 100%); border-color: rgba(255, 255, 255, .14); color: #dce6f0; }

.ax__head { display: flex; align-items: center; gap: 14px; padding: 20px 24px 16px; border-bottom: 1px solid rgba(255, 255, 255, .6); }
html[data-theme="dark"] .ax__head, html[data-theme="dark"] .ax__foot { border-color: rgba(255, 255, 255, .1); }
.ax__badge { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--brand); color: var(--accent); font-size: 22px; }
.ax__head div { flex: 1; min-width: 0; }
.ax__head h2 { font-size: 1.2rem; font-weight: 800; color: var(--brand); }
.ax__head p { font-size: 0.85rem; color: var(--muted); }
.ax-close { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .6); color: inherit; font-size: 16px; transition: background .2s, transform .2s; }
.ax-close:hover { background: #fff; transform: rotate(90deg); }
html[data-theme="dark"] .ax-close { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }

/* Content fits without sideways scrolling; only scrolls down on short screens */
.ax__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 24px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.ax-card { min-width: 0; padding: 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
html[data-theme="dark"] .ax-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.ax-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ax-card h3 i { color: var(--brand); }

.ax-size { display: grid; grid-template-columns: 52px 1fr 52px; gap: 10px; align-items: center; }
.ax-size button { height: 52px; border-radius: 14px; border: 1px solid rgba(11, 79, 138, .25); background: rgba(255, 255, 255, .8); color: var(--brand); font: 800 1.15rem Georgia, serif; transition: background .15s, color .15s; }
.ax-size button sup { font-size: .65em; }
.ax-size button:hover:not(:disabled) { background: var(--brand); color: #fff; }
.ax-size button:disabled { opacity: .35; cursor: default; }
.ax-size__meter { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ax-size__meter strong { font-size: 1.4rem; color: var(--brand); }
.ax-dots { display: flex; gap: 5px; }
.ax-dots i { width: 18px; height: 5px; border-radius: 3px; background: rgba(11, 79, 138, .18); transition: background .2s; }
.ax-dots i.on { background: var(--brand); }

.ax-play { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; margin-bottom: 12px; border: none; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; transition: background .2s; }
.ax-play:hover { background: var(--brand-dark); }
.ax-play.is-on { background: var(--accent); color: #111; }
.ax-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ax-slider { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ax-slider__head { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; }
.ax-slider__head i { color: var(--brand); margin-right: 4px; }
.ax-slider__head b { color: var(--brand); }
.ax-slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--p), rgba(11, 79, 138, .18) var(--p)); }
.ax-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); cursor: pointer; }
.ax-slider input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); cursor: pointer; }
.ax-hint { display: block; margin-top: 10px; font-size: 0.75rem; color: var(--muted); }

.ax-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 12px; background: rgba(11, 79, 138, .08); }
.ax-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 40px; padding: 0 6px; border: none; border-radius: 9px; background: transparent; color: inherit; font-size: 0.8rem; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.ax-seg button[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(11, 79, 138, .3); }

.ax-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ax-tiles--2 { grid-template-columns: 1fr 1fr; }
.ax-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 12px; border: 1px solid rgba(11, 79, 138, .15); border-radius: 12px; background: rgba(255, 255, 255, .7); color: inherit; text-align: left; font-size: 0.8rem; font-weight: 600; line-height: 1.3; transition: background .2s, border-color .2s, color .2s; }
.ax-tile i { color: var(--brand); font-size: 1rem; }
.ax-tile em { position: absolute; top: 10px; right: 10px; width: 28px; height: 16px; border-radius: 999px; background: rgba(11, 79, 138, .2); transition: background .2s; }
.ax-tile em::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ax-tile:hover { border-color: var(--brand); }
.ax-tile.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ax-tile.is-on i { color: var(--accent); }
.ax-tile.is-on em { background: var(--accent); }
.ax-tile.is-on em::after { transform: translateX(12px); }
html[data-theme="dark"] .ax-tile, html[data-theme="dark"] .ax-size button { background: rgba(255, 255, 255, .06); }

.ax__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid rgba(255, 255, 255, .6); font-size: 0.8rem; color: var(--muted); }
.ax__foot i { margin-right: 6px; }
.ax-reset { display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid rgba(11, 79, 138, .3); border-radius: 10px; background: rgba(255, 255, 255, .7); color: var(--brand); font-weight: 700; font-size: 0.82rem; }
.ax-reset:hover { background: var(--brand); color: #fff; }
.ax :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  .ax { padding: 8px; align-items: end; }
  .ax__dialog { max-height: calc(100vh - 16px); border-radius: 20px; }
  .ax__grid { grid-template-columns: 1fr; padding: 14px; }
  .ax__head { padding: 16px; }
  .ax__foot { padding: 12px 16px; flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .ax-reset { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ax__dialog, .ax__backdrop { transition: none; } }

/* ---- What each setting does to the page ---- */
html.a11y-spacing body { line-height: 1.9; letter-spacing: .03em; word-spacing: .12em; }
html.a11y-links a:not(.hero__btn):not(.bk-submit):not(.c-btn) { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.a11y-font body, html.a11y-font button, html.a11y-font input, html.a11y-font select, html.a11y-font textarea { font-family: Verdana, Tahoma, "Segoe UI", sans-serif !important; }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-7 1 4 8-3 1-4-8-5 5z' fill='%23111' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-contrast { --muted: #2a3b4c; }
html.a11y-contrast[data-theme="dark"] { --muted: #d0dbe6; }

/* =====================================================================
   POP-UP FIXES: no sideways scrolling, code boxes fit their box
   ===================================================================== */
.srch__dialog { overflow-x: hidden; }
.appt-modal__body { overflow-x: hidden; }
.a-otp, .bk-otp { width: 100%; max-width: 100%; }
.a-otp input, .bk-otp input, .booking .bk-otp input { width: 100%; min-width: 0; box-sizing: border-box; }
.appt-panel form { width: 100%; }

/* React layout placeholders add no box of their own (keeps the sticky menu working) */
#site-top, #site-footer, #site-search { display: contents; }

#home-root { display: contents; }
.el-quick { gap: 12px; }
#ferry-root { display: contents; }
#service-root { display: contents; }
#garage-root { display: contents; }
#media-root { display: contents; }

/* ==========================================================================
   SINGLE NEWS STORY (/habari/<story>), written in the CMS
   ========================================================================== */
/* Both languages are in the page; the SW/EN switch shows one */
html[lang="en"] .i18n-sw, html:not([lang="en"]) .i18n-en { display: none; }

.story { max-width: 820px; }
.story__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--brand); font-weight: 600; text-decoration: none; }
.story__back:hover i { transform: translateX(-3px); }
.story__back i { transition: transform .2s; }
.story__head time { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.story__head h1 { margin: 10px 0 14px; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.25; color: var(--text); }
.story__lead { font-size: 1.12rem; line-height: 1.6; color: var(--muted); margin-bottom: 24px; }
/* Fixed 16:9 box: any uploaded photo fills it */
.story__media { margin: 0 0 28px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--tint); }
.story__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story__body { font-size: 1.05rem; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.story__body > * + * { margin-top: 1em; }
.story__body h2, .story__body h3 { line-height: 1.3; margin-top: 1.6em; }
.story__body ul, .story__body ol { padding-left: 1.4em; }
.story__body a { color: var(--brand); }
.story__body blockquote { border-left: 4px solid var(--brand); padding: 4px 0 4px 16px; color: var(--muted); }
.story__body img { max-width: 100%; height: auto; border-radius: 10px; }
.story__body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.story__body td, .story__body th { border: 1px solid var(--line); padding: 8px 10px; }

/* Portraits in the management, board and Chief Executive circles: the photo fills the fixed circle */
.ad-avatar, .ab-ceo__avatar { overflow: hidden; }
.ad-avatar img, .ab-ceo__avatar img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; display: block; }
