/* Serenity Pools and Spas
   Global: fonts, tokens, base, header, footer, shared components, widgets.
   Loaded on every page. */

/* ==========================================================================
   Fonts (self-hosted, latin + latin-ext, only the weights in use)
   latin-ext files download only if a page uses those characters.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-600-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  /* Brand */
  --navy: #064273;
  --navy-deep: #04304f;
  --navy-ink: #031f35;
  --ocean: #1b8ac2;
  --ocean-text: #0f6a9a;       /* AA on cream/sand */
  --water: #29cbe5;
  --water-light: #7de3f4;
  --gold: #f6a537;
  --gold-bright: #ffc247;
  --gold-deep: #d4872a;

  /* Neutrals */
  --cream: #fdfbf7;
  --sand: #f5e6d0;
  --sand-light: #faf4ec;
  --line: #e8dcc8;
  --ink: #14181d;
  --body: #2c3e50;
  --muted: #4a5d6a;            /* 6.6:1 on cream */
  --faint: #5b6b77;            /* 5.3:1 on cream, use on cream only */
  --on-dark: #ffffff;
  --on-dark-soft: #cfe3f2;     /* 7.8:1 on navy */

  /* Status */
  --error: #a3261b;
  --success: #1f6b3a;

  /* Type */
  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: clamp(1.35rem, 1.1rem + 0.8vw, 1.65rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --fs-display: clamp(2.9rem, 1.6rem + 5.6vw, 6rem);

  /* Space and shape */
  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --radius-btn: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(6, 66, 115, 0.08), 0 4px 14px rgba(6, 66, 115, 0.06);
  --shadow-md: 0 2px 4px rgba(6, 66, 115, 0.06), 0 18px 40px rgba(6, 66, 115, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--ocean-text);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--navy);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
}
h4 {
  color: var(--ink);
  font-size: var(--fs-base);
  font-weight: 600;
}
p {
  text-wrap: pretty;
}
.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--fs-lg);
  line-height: 1.6;
}
.kicker {
  margin-bottom: 0.9rem;
  color: var(--ocean-text);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.on-dark .kicker {
  color: var(--water-light);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: var(--section);
}
.section--tight {
  padding-bottom: clamp(2rem, 3vw, 3rem);
}
.section--tight .section-head {
  margin-bottom: 0;
}
.section--flush-top {
  padding-top: 0;
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head h2 + .lede {
  margin-top: 1rem;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .lede {
  margin-inline: auto;
}
.bg-sand {
  background: var(--sand-light);
}
.bg-navy {
  background: var(--navy);
  color: var(--on-dark);
}
.on-dark h2,
.on-dark h3,
.on-dark h4 {
  color: var(--on-dark);
}
.on-dark .lede,
.on-dark p {
  color: var(--on-dark-soft);
}
.on-dark a:not(.btn) {
  color: var(--water-light);
}
.on-dark a:not(.btn):hover {
  color: var(--on-dark);
}

/* Faint water-ripple texture so light sections are never flat */
.texture {
  isolation: isolate;
}
.texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(6, 66, 115, 0.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 85% 10%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 85% 10%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Icons ---------- */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: none;
}
.btn .ico {
  transition: transform 0.2s var(--ease);
}
.btn:hover .ico-arrow {
  transform: translateX(3px);
}
/* Gold: navy text (5.1:1). White on gold fails AA. */
.btn-gold {
  background: var(--gold);
  color: var(--navy-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 22px rgba(246, 165, 55, 0.28);
}
.btn-gold:hover {
  background: var(--gold-bright);
  color: var(--navy-ink);
}
.btn-navy {
  background: var(--navy);
  color: var(--on-dark);
}
.btn-navy:hover {
  background: var(--navy-deep);
  color: var(--on-dark);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--on-dark);
  background: rgba(3, 31, 53, 0.25);
}
.btn-ghost:hover {
  border-color: var(--on-dark);
  background: rgba(3, 31, 53, 0.45);
  color: var(--on-dark);
}
.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-block {
  width: 100%;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  background: var(--gold);
  color: var(--navy-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-ink);
  color: var(--on-dark);
  font-size: var(--fs-xs);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
}
.tb-offer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--on-dark);
  text-decoration: none;
}
.tb-offer .ico {
  color: var(--gold-bright);
}
.tb-offer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tb-offer strong {
  font-weight: 700;
}
.tb-offer:hover {
  color: var(--gold-bright);
}
.tb-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
}
.tb-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.6rem;
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
}
.tb-phone .ico {
  color: var(--gold-bright);
}
.tb-phone:hover {
  color: var(--gold-bright);
}
.tb-ico {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--on-dark);
}
.tb-ico .ico {
  width: 15px;
  height: 15px;
}
.tb-ico:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
@media (max-width: 720px) {
  .tb-offer .tb-long,
  .tb-ico.tb-hide-sm {
    display: none;
  }
  .tb-phone span {
    display: none;
  }
}
@media (min-width: 721px) {
  .tb-offer .tb-short {
    display: none;
  }
}

/* ---------- Header / primary nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(6, 66, 115, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s var(--ease);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header {
    background: rgba(6, 66, 115, 0.9);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
  }
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(3, 31, 53, 0.25);
}
.site-header.is-scrolled::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--water) 60%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
  color: var(--on-dark);
  text-decoration: none;
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(246, 165, 55, 0.5);
}
.logo-txt {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-sub {
  margin-top: 0.2rem;
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.logo:hover {
  color: var(--on-dark);
}

.nav-primary {
  display: none;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list > li {
  position: relative;
}
.nav-link,
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: var(--radius-btn);
  background: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover,
.nav-drop-btn:hover,
.nav-drop-btn[aria-expanded="true"],
.nav-link[aria-current="page"] {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.08);
}
.nav-drop-btn .ico {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}
.nav-drop-btn[aria-expanded="true"] .ico {
  transform: rotate(180deg);
}

/* Dropdown panels */
.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 950;
  min-width: 260px;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 24px 60px rgba(3, 31, 53, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}
.nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s;
}
.nav-panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.nav-panel a small {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 400;
}
.nav-panel a:hover,
.nav-panel a:focus-visible {
  background: var(--sand-light);
  color: var(--navy);
}
.nav-panel-title {
  padding: 0.5rem 0.75rem 0.25rem;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.nav-mega {
  display: grid;
  grid-template-columns: 1fr 1fr 15rem;
  gap: 0.4rem;
  width: min(820px, 92vw);
}
.nav-mega ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-promo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--on-dark);
}
.nav-promo p {
  color: var(--on-dark-soft);
  font-size: var(--fs-xs);
}
.nav-promo strong {
  color: var(--on-dark);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.1;
}
.nav-panel .nav-promo a {
  padding: 0;
  color: var(--gold-bright);
  background: none;
}
.nav-panel .nav-promo a:hover {
  color: var(--on-dark);
  text-decoration: underline;
}
.nav-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 360px;
}
.nav-areas ul {
  display: contents;
}
.nav-areas li {
  list-style: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-phone {
  display: none;
  align-items: center;
  gap: 0.45rem;
  color: var(--on-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
}
.header-phone .ico {
  color: var(--gold-bright);
}
.header-phone:hover {
  color: var(--gold-bright);
}
.header-cta {
  display: none;
}

/* Burger */
.burger {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-btn);
  background: none;
}
.burger-bars,
.burger-bars::before,
.burger-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.burger-bars {
  position: relative;
}
.burger-bars::before,
.burger-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger-bars::before {
  top: -6px;
}
.burger-bars::after {
  top: 6px;
}
.burger[aria-expanded="true"] .burger-bars {
  background: transparent;
}
.burger[aria-expanded="true"] .burger-bars::before {
  transform: translateY(6px) rotate(45deg);
  background: var(--gold);
}
.burger[aria-expanded="true"] .burger-bars::after {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--gold);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: var(--navy-ink);
  color: var(--on-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  margin-bottom: 0.5rem;
}
.mobile-menu nav > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mm;
}
.mobile-menu nav > ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  counter-increment: mm;
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) nav > ul > li {
    animation: mm-in 0.4s var(--ease) both;
  }
  .mobile-menu nav > ul > li:nth-child(2) { animation-delay: 0.04s; }
  .mobile-menu nav > ul > li:nth-child(3) { animation-delay: 0.08s; }
  .mobile-menu nav > ul > li:nth-child(4) { animation-delay: 0.12s; }
  .mobile-menu nav > ul > li:nth-child(5) { animation-delay: 0.16s; }
}
@keyframes mm-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.mm-link,
.mm-acc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.mm-link::before,
.mm-acc::before {
  content: "0" counter(mm);
  min-width: 2.4rem;
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.mm-link span,
.mm-acc span {
  flex: 1;
}
.mm-acc .ico {
  transition: transform 0.2s var(--ease);
}
.mm-acc[aria-expanded="true"] .ico {
  transform: rotate(180deg);
}
.mm-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0 0 1rem 2.4rem;
  list-style: none;
}
.mm-sub a {
  display: block;
  padding: 0.45rem 0;
  color: var(--on-dark-soft);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.mm-sub a:hover {
  color: var(--gold-bright);
}
.mm-foot {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}
.mm-foot .btn-ghost {
  background: none;
}

@media (min-width: 1040px) {
  .nav-primary {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
  .burger {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  .header-phone {
    display: inline-flex;
  }
}

/* ---------- Forms ---------- */
.field {
  display: grid;
  gap: 0.4rem;
}
.field label,
.field legend {
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.field .req {
  color: var(--error);
}
.field .opt {
  color: var(--faint);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cdbfa6;
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  min-height: 112px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 138, 194, 0.28);
}
.field [aria-invalid="true"] {
  border-color: var(--error);
}
.field-error {
  color: var(--error);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.form-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.95rem;
  border: 1px solid #cdbfa6;
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}
.chip input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-dark);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 1.4em;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form-status.is-error {
  color: var(--error);
}
.form-note {
  color: var(--faint);
  font-size: var(--fs-xs);
  text-align: center;
}

/* ---------- Service cards (home + services hub) ---------- */
.svc-group + .svc-group {
  margin-top: 3rem;
}
.svc-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.svc-group-head h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.svc-group-head p {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.svc-grid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .svc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.svc-card:hover,
.svc-card:focus-within {
  border-color: #d6c6aa;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.svc-pic {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
}
.svc-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.svc-card:hover .svc-pic img {
  transform: scale(1.04);
}
.svc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.3rem 1.4rem;
}
.svc-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
}
.svc-title a {
  color: var(--ink);
  text-decoration: none;
}
/* Whole card clickable via the heading link */
.svc-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.svc-title a:focus-visible {
  outline: none;
}
.svc-card:has(.svc-title a:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.svc-body p {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--ocean-text);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.svc-card:hover .svc-more .ico {
  transform: translateX(3px);
}
.svc-more .ico {
  transition: transform 0.2s var(--ease);
}

/* Compact service rows on phones: thumbnail left, text right */
@media (max-width: 699px) {
  .svc-card {
    flex-direction: row;
    align-items: stretch;
  }
  .svc-pic {
    flex: 0 0 108px;
    aspect-ratio: auto;
  }
  .svc-body {
    gap: 0.35rem;
    padding: 0.9rem 1rem;
  }
  .svc-title {
    font-size: 1.3rem;
  }
  .svc-more {
    padding-top: 0.2rem;
  }
}

/* ---------- NAP block ---------- */
.nap {
  margin: 1.25rem 0 0;
  color: var(--body);
  font-size: var(--fs-sm);
  font-style: normal;
}
.nap strong {
  display: block;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 6vw, 5rem);
  background: var(--navy-ink);
  color: var(--on-dark);
}
.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}
.ft-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 720px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1040px) {
  .ft-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  }
}
.ft-note {
  max-width: 34ch;
  margin-top: 1.1rem;
  color: var(--on-dark);
  font-size: var(--fs-sm);
}
.ft-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.ft-rating .stars {
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}
.ft-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.ft-social a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}
.ft-social a:hover {
  border-color: var(--gold);
}
.ft-col h2 {
  margin-bottom: 1rem;
  color: var(--water-light);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0;
}
.ft-col ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}
.ft-col address {
  display: grid;
  gap: 0.7rem;
  font-size: var(--fs-sm);
  font-style: normal;
}
.ft-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-block: 1.5rem calc(1.5rem + 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-xs);
}
.ft-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ft-legal button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-size: inherit;
  text-decoration: underline;
}
.ft-legal button:hover {
  color: var(--gold-bright);
}
.ft-wordmark {
  margin: 0;
  color: rgba(255, 255, 255, 0.045);
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 19vw, 16rem);
  font-style: italic;
  font-weight: 600;
  line-height: 0.75;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 1040px) {
  .ft-legal {
    padding-bottom: 1.5rem;
  }
}

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(253, 251, 247, 0.97);
  box-shadow: 0 -8px 24px rgba(3, 31, 53, 0.1);
}
.action-bar .btn {
  min-height: 46px;
}
@media (min-width: 1040px) {
  .action-bar {
    display: none;
  }
}
/* Keep accessibility tab and cookie banner clear of the bar */
@media (max-width: 1039px) {
  .a11y-tab {
    bottom: 84px !important;
  }
  .cookie-banner {
    bottom: 76px !important;
  }
}

/* ---------- Consent-gated map ---------- */
.map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--sand);
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.map-frame .consent-placeholder {
  height: 100%;
  min-height: 0;
  border-radius: 0;
}


/* ==========================================================================
   Shared components (home, service, area, contact)
   ========================================================================== */

/* ---------- Quote ---------- */
.quote-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
@media (min-width: 960px) {
  .quote-card {
    grid-template-columns: 0.8fr 1.2fr;
  }
}
.quote-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--navy);
  color: var(--on-dark);
}
.quote-aside h2 {
  color: var(--on-dark);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem);
}
.quote-aside p {
  color: var(--on-dark-soft);
}
.quote-aside ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quote-aside li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.quote-aside li .ico {
  margin-top: 0.25rem;
  color: var(--gold-bright);
}
.quote-call {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.quote-call a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-dark);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
}
.quote-call a:hover {
  color: var(--gold-bright);
}
.quote-call a .ico {
  width: 22px;
  height: 22px;
  color: var(--gold-bright);
}
.quote-main {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.quote-main form {
  display: grid;
  gap: 1.15rem;
}
.quote-main .field-hint {
  color: var(--faint);
  font-size: var(--fs-xs);
}
.budget-wrap[hidden] {
  display: none !important;
}

/* ---------- FAQ list ---------- */
.faq-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1000px) {
  .faq-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 1rem 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .ico {
  flex: none;
  color: var(--ocean-text);
  transition: transform 0.2s var(--ease);
}
.faq-list details[open] summary .ico {
  transform: rotate(180deg);
}
.faq-list summary:hover {
  color: var(--navy);
}
.faq-answer {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--muted);
}
.faq-answer p + p {
  margin-top: 0.6rem;
}
/* ---------- Before / after ---------- */
/* Slider (range input drives --pos) */
.ba {
  position: relative;
  --pos: 50%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  touch-action: pan-y;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.ba .ba-after {
  clip-path: inset(0 0 0 var(--pos));
}
.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba:has(.ba-range:focus-visible) .ba-knob {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.78);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  pointer-events: none;
}
.ba-label--before {
  left: 1rem;
}
.ba-label--after {
  right: 1rem;
  background: var(--gold);
  color: var(--navy-ink);
}

/* Side-by-side pair */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.pair figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy-deep);
  aspect-ratio: 4 / 5;
}
.pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pair .contain img {
  object-fit: contain;
  background: #fff;
}
.pair figcaption {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.78);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.pair figure + figure figcaption {
  background: var(--gold);
  color: var(--navy-ink);
}


/* ==========================================================================
   Accessibility widget (markup injected by main.js)
   ========================================================================== */

/* ---------- Blade tab ---------- */
.a11y-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 40px;
  padding: 13px 0;
  background: #064273;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid #f6a537;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  transition: background .2s ease;
  box-shadow: 0 6px 24px rgba(6, 66, 115, .3)
}

.a11y-tab:hover {
  background: #0a5a99
}

.a11y-tab:focus-visible {
  outline: 3px solid #f6a537;
  outline-offset: 2px
}

.a11y-tab svg {
  width: 18px;
  height: 18px;
  stroke: #f6a537;
  fill: none;
  stroke-width: 2
}

.a11y-tab-v {
  writing-mode: vertical-rl;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff
}

@media(max-width:640px) {
  .a11y-tab {
    top: auto;
    bottom: 128px;
    transform: none
  }

  .a11y-tab-v {
    display: none
  }
}

/* ---------- Slide-in panel ---------- */
.a11y-panel {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1150;
  width: min(330px, 88vw);
  background: #fdfbf7;
  color: #14181d;
  border-right: 1px solid #e8dcc8;
  transform: translateX(-105%);
  transition: transform .34s cubic-bezier(.22, .61, .36, 1);
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  box-shadow: 30px 0 80px rgba(6, 66, 115, .25)
}

.a11y-panel.open {
  transform: none
}

.a11y-head {
  padding: 16px 18px 12px;
  border-bottom: 3px solid #f6a537;
  position: relative;
  background: #064273
}

.a11y-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 2px;
  color: #fff
}

.a11y-head p {
  font-size: .74rem;
  color: #cfe3f2;
  margin: 0 0 10px;
  font-weight: 400
}

.a11y-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.a11y-actions button,
.a11y-actions a {
  font-family: inherit;
  font-size: .7rem;
  font-weight: 600;
  color: #cfe3f2;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline
}

.a11y-actions button:hover,
.a11y-actions a:hover {
  color: #f6a537
}

.a11y-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  color: #fff
}

.a11y-close:focus-visible,
.a11y-actions button:focus-visible,
.a11y-actions a:focus-visible {
  outline: 3px solid #f6a537;
  outline-offset: 2px
}

.a11y-body {
  overflow-y: auto;
  padding: 12px 18px 24px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #c9bda6 transparent
}

.a11y-sec {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #064273;
  margin: 16px 0 8px
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #ece3d2
}

.a11y-row div b {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: #14181d
}

.a11y-row div span {
  font-size: .7rem;
  color: #4a5d6a;
  font-weight: 400
}

.a11y-sw {
  flex: none;
  width: 64px;
  height: 26px;
  border-radius: 100px;
  border: 1px solid #d8ccb6;
  background: #f5e6d0;
  position: relative;
  cursor: pointer;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #4a5d6a;
  font-family: inherit;
  transition: background .18s ease, border-color .18s ease
}

.a11y-sw::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: left .18s cubic-bezier(.22, .61, .36, 1)
}

.a11y-sw[aria-pressed="true"] {
  background: #064273;
  border-color: #064273;
  color: #fff
}

.a11y-sw[aria-pressed="true"]::after {
  left: 40px;
  background: #f6a537
}

.a11y-sw:focus-visible {
  outline: 3px solid #f6a537;
  outline-offset: 2px
}

.a11y-steps {
  display: flex;
  gap: 6px
}

.a11y-steps button {
  flex: 1;
  font-family: inherit;
  border: 1px solid #d8ccb6;
  border-radius: 8px;
  background: #fff;
  padding: 7px 0;
  font-weight: 700;
  cursor: pointer;
  color: #14181d
}

.a11y-steps button[aria-pressed="true"] {
  border-color: #064273;
  background: #e3f0fa
}

.a11y-steps button:focus-visible {
  outline: 3px solid #f6a537;
  outline-offset: 2px
}

@media(prefers-reduced-motion:reduce) {

  .a11y-panel,
  .a11y-sw::after,
  .a11y-tab {
    transition: none
  }
}

@media print {

  .a11y-tab,
  .a11y-panel,
  #a11yGuide,
  #a11yMask,
  .cookie-banner {
    display: none !important
  }
}

/* ---------- Effects (applied to <html>) ---------- */
html.a11y-text1 body {
  font-size: 112%
}

html.a11y-text2 body {
  font-size: 125%
}

html.a11y-font body,
html.a11y-font body * {
  font-family: Verdana, Arial, Helvetica, sans-serif !important;
  font-style: normal !important
}

html.a11y-links a {
  text-decoration: underline !important
}

html.a11y-space body {
  letter-spacing: .06em;
  word-spacing: .12em;
  line-height: 1.9
}

html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important
}

html.a11y-motion video {
  display: none !important
}

html.a11y-contrast main,
html.a11y-contrast footer {
  filter: contrast(1.25)
}

html.a11y-mono main,
html.a11y-mono footer {
  filter: grayscale(1)
}

html.a11y-desat main,
html.a11y-desat footer {
  filter: saturate(.4)
}

html.a11y-noimg main img,
html.a11y-noimg footer img {
  visibility: hidden
}

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 2l16 10-7 1 4 7-3 2-4-7-6 5z' fill='black' stroke='white'/%3E%3C/svg%3E") 4 2, auto !important
}

html.a11y-focus :focus {
  outline: 4px solid #f6a537 !important;
  outline-offset: 2px !important
}

html.a11y-guide #a11yGuide {
  display: block
}

#a11yGuide {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  height: 10vh;
  background: rgba(246, 165, 55, .14);
  border-block: 2px solid #f6a537;
  pointer-events: none;
  z-index: 1090
}

html.a11y-titles h1,
html.a11y-titles h2,
html.a11y-titles h3 {
  background: rgba(41, 203, 229, .18);
  outline: 2px solid #1b8ac2
}

html.a11y-hover a:hover,
html.a11y-hover button:hover {
  outline: 3px solid #f6a537 !important;
  background: rgba(246, 165, 55, .16) !important
}

html.a11y-dark main,
html.a11y-dark footer {
  filter: invert(1) hue-rotate(180deg)
}

html.a11y-dark main img,
html.a11y-dark main video,
html.a11y-dark footer img {
  filter: invert(1) hue-rotate(180deg)
}

html.a11y-light main,
html.a11y-light footer {
  filter: brightness(1.12) contrast(.95)
}

html.a11y-mask #a11yMask {
  display: block
}

#a11yMask {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1089;
  background: rgba(6, 20, 32, .6);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(var(--my, 50vh) - 7vh), transparent calc(var(--my, 50vh) - 7vh), transparent calc(var(--my, 50vh) + 7vh), #000 calc(var(--my, 50vh) + 7vh));
  mask-image: linear-gradient(180deg, #000 0%, #000 calc(var(--my, 50vh) - 7vh), transparent calc(var(--my, 50vh) - 7vh), transparent calc(var(--my, 50vh) + 7vh), #000 calc(var(--my, 50vh) + 7vh))
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 680px;
  margin: 0 auto;
  background: #fdfbf7;
  border: 1px solid #e8dcc8;
  border-top: 3px solid #f6a537;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(6, 66, 115, .25);
  padding: 22px 24px;
  display: none;
  font-family: var(--font-sans)
}

.cookie-banner[data-visible="true"] {
  display: block
}

.cookie-banner h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #14181d;
  margin: 0 0 6px
}

.cookie-banner p {
  font-size: .85rem;
  color: #2c3e50;
  line-height: 1.6;
  margin: 0 0 16px
}

.cookie-banner p a {
  color: #1b8ac2;
  text-decoration: underline
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.cookie-btn {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease
}

.cookie-btn:focus-visible {
  outline: 3px solid #f6a537;
  outline-offset: 2px
}

.cookie-btn--accept {
  background: #064273;
  color: #fff;
  border: 1px solid #064273
}

.cookie-btn--accept:hover {
  background: #0a5a99
}

.cookie-btn--decline {
  background: transparent;
  color: #064273;
  border: 1px solid #d8ccb6
}

.cookie-btn--decline:hover {
  background: #f5e6d0;
  border-color: #064273
}

.consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 320px;
  background: #f5e6d0;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  font-family: var(--font-sans)
}

.consent-placeholder p {
  font-size: .88rem;
  color: #2c3e50;
  max-width: 420px
}

@media(max-width:640px) {
  .cookie-banner {
    padding: 18px
  }

  .cookie-actions {
    flex-direction: column
  }

  .cookie-btn {
    width: 100%;
    text-align: center
  }
}

/* ==========================================================================
   Motion and print
   ========================================================================== */

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .topbar,
  .site-header,
  .action-bar,
  .mobile-menu,
  .ft-wordmark {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
