/* =========================================================
   Reusable components (shared by all future pages)
   ========================================================= */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--sm { min-height: 42px; padding: 0 20px; }
.btn--block { width: 100%; }

.btn--gold { background: var(--gold-500); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-300); }

.btn--outline-gold { border-color: var(--gold-500); color: var(--gold-500); background: transparent; }
.btn--outline-gold:hover { background: var(--gold-500); color: var(--navy-950); }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.35); color: var(--white); background: transparent; }
.btn--ghost-light:hover { border-color: var(--white); }

/* ---------- Text furniture ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--color-accent-text);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.eyebrow::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow__num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0;
}
.eyebrow--light { color: var(--gold-500); }

.section-title {
  font-size: var(--fs-xl);
  color: var(--navy-900);
  max-width: 20ch;
}
.section-title--light { color: var(--white); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.prose p + p { margin-top: 1.1em; }
.prose { color: var(--color-text-muted); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold-500);
  color: var(--navy-900);
  font-weight: 500;
  text-decoration: none;
  transition: gap var(--dur) var(--ease);
}
.link-arrow:hover { gap: 16px; }

/* ---------- Media placeholder ---------- */
.media-ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(27, 47, 87, 0.05) 14px 15px),
    var(--sky-100);
  color: var(--ink-soft);
}
.media-ph--portrait { aspect-ratio: 4 / 5; }
.media-ph--dark {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.04) 14px 15px),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: rgba(255, 255, 255, 0.7);
}
.media-ph__label {
  font-size: var(--fs-sm);
  text-align: center;
  line-height: 1.5;
}
.media-ph__label small { opacity: 0.7; font-size: var(--fs-xs); }

/* Page photo – takes exactly the place (and ratio) of the former .media-ph block.
   Crop focus can be tuned per image with style="--pos: x% y%". */
.media-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  background: var(--sky-100);
}
.media-img--portrait { aspect-ratio: 4 / 5; }

/* ---------- Logo ----------
   Header: horizontal lockup (generated from the official logo – see tools/make-logo-lockups.ps1).
   Only the displayed height is set; width follows each file's own aspect ratio (no distortion). */
.logo {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.logo picture { display: block; }
.logo__img { display: block; width: auto; max-width: none; }
.logo:focus-visible { outline-offset: 6px; }

.logo--header .logo__img { height: 44px; }        /* desktop: full lockup ≈ 218px wide */
@media (max-width: 1180px) {
  .logo--header .logo__img { height: 38px; }      /* tablet: full lockup */
}
@media (max-width: 767px) {
  .logo--header .logo__img { height: 34px; }      /* phone: emblem + MOSCOVIC */
}
@media (max-width: 359px) {
  .logo--header .logo__img { height: 40px; }      /* very small phone: emblem only */
}

/* Footer: full stacked logo (LOGO 2.png, native 3:2) */
.logo--footer .logo__img { height: 128px; margin-inline: -8px; }

/* ---------- Social links ---------- */
.social { display: flex; align-items: center; gap: 6px; list-style: none; }
.social__link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.social__link .icon { width: 19px; height: 19px; }
.social__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.social__link:hover { color: var(--gold-300); border-color: rgba(207, 160, 92, 0.5); }

/* Header: compact icon row, separated from the phone by a hairline */
.social--header {
  gap: 2px;
  padding-inline-end: 16px;
  border-inline-end: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.78);
}
/* Desktop: phone shown as an icon button (makes room for the horizontal logo lockup) */
@media (min-width: 1181px) {
  .site-header .header-phone span { display: none; }
  .site-header .header-phone { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line-dark); border-radius: 50%; }
}
/* Narrow desktops: tighter gaps and nav type */
@media (min-width: 1181px) and (max-width: 1379px) {
  .site-header .site-header__inner { gap: 24px; }
  .site-header .site-header__actions { gap: 14px; }
  .site-header .primary-nav__list { gap: 16px; }
  .site-header .primary-nav__link { font-size: 0.875rem; }
}
@media (max-width: 1180px) { .social--header { display: none; } }

/* Mobile menu: larger targets, centred */
.social--menu { justify-content: center; gap: 12px; color: var(--white); }
.social--menu .social__link { width: 48px; height: 48px; border-color: var(--line-dark); }

/* Footer & CTA: icon + label */
.social--footer, .social--cta { flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social--footer .social__link,
.social--cta .social__link {
  width: auto;
  height: 40px;
  display: inline-flex;
  gap: 8px;
  padding: 0 14px 0 12px;
  border-color: var(--line-dark);
  border-radius: 999px;
  font-size: var(--fs-xs);
}
.social--footer .social__text,
.social--cta .social__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.social--cta { margin-top: 12px; color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-menu-open {
  background: var(--navy-950);
  border-bottom-color: var(--line-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-inline-start: auto;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.9;
}
.header-phone:hover { opacity: 1; color: var(--gold-300); }
/* WhatsApp icon button – same quiet outline treatment as the desktop phone button */
.header-whatsapp {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  opacity: 0.9;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.header-whatsapp .icon { width: 19px; height: 19px; }
.header-whatsapp:hover { opacity: 1; color: var(--gold-300); border-color: rgba(207, 160, 92, 0.5); }

/* Primary nav – desktop */
.primary-nav { margin-inline-start: auto; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  list-style: none;
}
.primary-nav__item { position: relative; display: flex; align-items: center; }
.primary-nav__link {
  position: relative;
  padding: 10px 0;
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.86);
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 4px;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: var(--origin-start, right);
  transition: transform var(--dur) var(--ease);
}
[dir="ltr"] .primary-nav__link::after { --origin-start: left; }
.primary-nav__link:hover,
.primary-nav__link[aria-current="page"] { color: var(--white); }
.primary-nav__link:hover::after,
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.submenu-toggle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
}
.submenu-toggle .icon { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: 100%;
  inset-inline-start: -20px;
  min-width: 220px;
  padding: 10px 0;
  list-style: none;
  background: var(--white);
  border-top: 2px solid var(--gold-500);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.submenu a {
  display: block;
  padding: 10px 20px;
  color: var(--navy-900);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.submenu a:hover { background: var(--sky-50); color: var(--gold-700); }

@media (hover: hover) and (min-width: 1181px) {
  .has-submenu:hover > .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
@media (min-width: 1181px) {
  .has-submenu.is-open > .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

.primary-nav__mobile-extra { display: none; }
/* Mobile menu: quick contact / social row (hidden on desktop) */
.nav-contact { display: none; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-dark);
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  background: var(--white);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle__bars { top: 50%; }
.menu-toggle__bars::before { content: ""; top: -6px; }
.menu-toggle__bars::after { content: ""; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); background: var(--white); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--white); }

/* Mobile / tablet navigation */
@media (max-width: 1180px) {
  .menu-toggle { display: inline-block; }
  .header-cta { display: none; }

  .primary-nav {
    position: fixed;
    inset-inline: 0;
    top: var(--header-h);
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 0;
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
    background: var(--navy-950);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line-dark); }
  .primary-nav__link {
    flex: 1;
    padding: 18px 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
  }
  .primary-nav__link::after { display: none; }
  .submenu-toggle { width: 48px; height: 48px; border: 1px solid var(--line-dark); }
  .submenu-toggle .icon { width: 18px; height: 18px; }

  .submenu {
    position: static;
    flex-basis: 100%;
    display: none;
    min-width: 0;
    padding: 0 0 16px;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-submenu.is-open > .submenu { display: block; }
  .submenu a { padding: 10px 16px; color: var(--sky-300); font-size: var(--fs-base); border-inline-start: 1px solid var(--gold-500); }
  .submenu a:hover { background: none; color: var(--white); }

  .primary-nav__mobile-extra { display: grid; gap: 20px; margin-top: auto; }

  .nav-contact {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 88px));
    justify-content: start;
    gap: 8px;
    margin: 0;
    padding: 4px 0 24px;
    list-style: none;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-contact__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: var(--white);
    text-decoration: none;
  }
  .nav-contact__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--gold-300);
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  }
  .nav-contact__icon .icon { width: 21px; height: 21px; }
  .nav-contact__label { font-size: var(--fs-xs); letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.78); }
  .nav-contact__link:hover .nav-contact__icon,
  .nav-contact__link:focus-visible .nav-contact__icon { border-color: var(--gold-500); background: rgba(207, 160, 92, 0.08); }
  .nav-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
  }
}
@media (max-width: 560px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-dark); }
  .header-whatsapp { width: 44px; height: 44px; border-radius: 0; }   /* match the square mobile phone button */
  .site-header__actions { gap: 10px; }
}

/* ---------- Icon button ---------- */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--navy-800);
  border-radius: 50%;
  color: var(--navy-900);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.icon-btn:hover:not(:disabled) { background: var(--navy-900); color: var(--white); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.icon-btn--plain { width: 44px; height: 44px; border-color: var(--line); }
.carousel-controls { display: flex; gap: 10px; }

/* ---------- Cards ---------- */
/* Practice card – on hover the card turns navy and a contextual background
   image fades in at low opacity under a strong overlay (text stays legible). */
.practice-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 340px;
  padding: 40px 32px 36px;
  background: var(--white);
  transition: background-color 450ms var(--ease);
}
/* Background sits under the content inside the card's own stacking context */
.practice-card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 600ms var(--ease), transform 1200ms var(--ease);
  pointer-events: none;
}
.practice-card__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(0.3); }
/* Overlay above the image */
.practice-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 48, 0.55) 0%, rgba(10, 22, 48, 0.88) 100%);
}

.practice-card__bg { background: linear-gradient(160deg, var(--navy-700), var(--navy-950)); }

/* Contextual line-art (assets/img/practice/*.svg) used as a mask, so one drawing serves both states:
   faint navy on the white card at rest, soft sky-blue on the navy hover state.
   Each drawing fades out towards the text corner, so copy always sits on a clean area. */
.practice-card__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--navy-800);
  opacity: 0.075;
  -webkit-mask: var(--art) left bottom / cover no-repeat;
          mask: var(--art) left bottom / cover no-repeat;
  transition: opacity 600ms var(--ease), background-color 450ms var(--ease), transform 1200ms var(--ease);
}
[dir="ltr"] .practice-card__art { transform: scaleX(-1); }
.practice-card--road   { --art: url("/assets/img/practice/road-accidents.svg"); }
.practice-card--injury { --art: url("/assets/img/practice/personal-injury.svg"); }
.practice-card--family { --art: url("/assets/img/practice/family-law.svg"); }
.practice-card--civil  { --art: url("/assets/img/practice/civil-commercial.svg"); }

.practice-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 2;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: var(--origin-start, right);
  transition: transform 500ms var(--ease);
}
[dir="ltr"] .practice-card::before { --origin-start: left; }

.practice-card__index {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--color-accent-text);
  letter-spacing: 0.1em;
  transition: color var(--dur) var(--ease);
}
.practice-card__title { font-size: var(--fs-lg); color: var(--navy-900); transition: color var(--dur) var(--ease); }
.practice-card__link { text-decoration: none; }
/* Whole card clickable */
.practice-card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.practice-card__text { color: var(--color-text-muted); font-size: var(--fs-sm); transition: color var(--dur) var(--ease); }
.practice-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--navy-800);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}

.practice-card:hover,
.practice-card:focus-within { background: var(--navy-950); }
.practice-card:hover .practice-card__bg,
.practice-card:focus-within .practice-card__bg { opacity: 1; transform: none; }
.practice-card:hover .practice-card__art,
.practice-card:focus-within .practice-card__art { background-color: var(--sky-300); opacity: 0.2; }
.practice-card:hover::before,
.practice-card:focus-within::before { transform: scaleX(1); }
.practice-card:hover .practice-card__index,
.practice-card:focus-within .practice-card__index { color: var(--gold-500); }
.practice-card:hover .practice-card__title,
.practice-card:focus-within .practice-card__title { color: var(--white); }
.practice-card:hover .practice-card__text,
.practice-card:focus-within .practice-card__text { color: rgba(255, 255, 255, 0.82); }
.practice-card:hover .practice-card__more,
.practice-card:focus-within .practice-card__more { color: var(--gold-300); gap: 14px; }

@media (max-width: 600px) {
  .practice-card { min-height: 0; }
  /* Wide, short cards: keep the drawing at card height on the far side instead of enlarging it under the text */
  .practice-card__art { -webkit-mask-size: auto 100%; mask-size: auto 100%; }
}

.story-card {
  position: relative;
  flex: 0 0 clamp(280px, 30vw, 380px);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.story-card article { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 32px 28px; }
.story-card:hover { border-color: var(--navy-800); }
.story-card__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--sky-300);
  color: var(--navy-700);
  font-size: var(--fs-xs);
}
.story-card__title { font-size: var(--fs-md); line-height: var(--lh-snug); color: var(--navy-900); }
.story-card__title a { text-decoration: none; }
.story-card__title a::after { content: ""; position: absolute; inset: 0; }
.story-card__date { font-size: var(--fs-xs); color: var(--color-accent-text); }
.story-card__excerpt { color: var(--color-text-muted); font-size: var(--fs-sm); }
.story-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--navy-800);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* ---------- Carousel (native scroll-snap, JS only for buttons) ---------- */
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

/* ---------- Forms ---------- */
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.02em; }
.field__optional { font-weight: 400; opacity: 0.7; }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
textarea.field__input { resize: vertical; min-height: 90px; }
.field__input:focus { outline: none; border-bottom-color: var(--gold-500); background: rgba(207, 160, 92, 0.08); }
.field__input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.field__input[aria-invalid="true"] { border-bottom-color: #E0603A; }
.field--check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-xs); }
.field--check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold-500); flex: none; }
.contact-form__submit { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.contact-form__note { font-size: var(--fs-xs); }
/* Honeypot – off-screen (not display:none, which some bots skip) */
.contact-form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; inset-inline-start: -9999px; }
.contact-form__submit button[disabled] { opacity: 0.6; cursor: progress; }
.contact-form__privacy { margin: 0; font-size: var(--fs-xs); line-height: 1.6; opacity: 0.82; }
.contact-form__privacy a { color: inherit; }

/* ---------- Contact list ---------- */
.contact-list { display: grid; gap: 4px; }
.contact-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  text-decoration: none;
}
.contact-list__item .icon { width: 22px; height: 22px; color: var(--gold-500); }
.contact-list__item > span { display: grid; line-height: 1.4; }
.contact-list__label { font-size: var(--fs-xs); color: var(--sky-300); }
a.contact-list__item:hover { color: var(--gold-300); }

/* ---------- Floating contact button (desktop) ---------- */
.contact-fab {
  position: fixed;
  inset-inline-end: 28px;
  bottom: 28px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--navy-900);
  color: var(--white);
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  opacity: 0;
  visibility: hidden; /* hidden = not focusable and not exposed to assistive tech */
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.contact-fab .icon { color: var(--gold-500); }
.contact-fab.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.contact-fab:hover { background: var(--navy-700); }

/* ---------- Bottom action bar (mobile) ---------- */
.action-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  grid-template-columns: 1fr 1fr 1.4fr;
  background: var(--navy-950);
  border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  background: none;
  border: 0;
  border-inline-end: 1px solid var(--line-dark);
  color: var(--white);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.action-bar__item .icon { color: var(--gold-500); }
.action-bar__item--primary { background: var(--gold-500); color: var(--navy-950); border: 0; font-weight: 500; }
.action-bar__item--primary .icon { color: var(--navy-950); }

@media (max-width: 768px) {
  .contact-fab { display: none; }
  .action-bar { display: grid; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* ---------- Contact panel (native <dialog>) ---------- */
.contact-panel {
  position: fixed;
  inset: 0;
  inset-inline-start: auto;
  width: min(480px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 60px -10px rgba(10, 22, 48, 0.4);
}
.contact-panel::backdrop { background: rgba(10, 22, 48, 0.55); }
.contact-panel[open] { animation: panel-in 320ms var(--ease); }
@keyframes panel-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
[dir="ltr"] .contact-panel[open] { animation-name: panel-in-ltr; }
@keyframes panel-in-ltr { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.contact-panel__inner { display: grid; gap: 20px; padding: 32px; }
.contact-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.contact-panel__title { font-size: var(--fs-lg); color: var(--navy-900); }
.contact-panel__lead { color: var(--color-text-muted); font-size: var(--fs-sm); }
.contact-panel .contact-form { grid-template-columns: 1fr; }
.contact-panel .field__input { border-bottom-color: var(--line); }
.contact-panel .field__input:focus { border-bottom-color: var(--gold-500); }
.contact-panel__alt { font-size: var(--fs-sm); color: var(--color-text-muted); }
.contact-panel__alt a { color: var(--navy-900); font-weight: 500; }

@media (max-width: 768px) {
  /* Bottom sheet on mobile */
  .contact-panel {
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    max-height: 92dvh;
    overflow-y: auto;
  }
  .contact-panel[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
  .contact-panel__inner { padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-block: 80px 56px;
}
.site-footer__blurb { margin-top: 20px; max-width: 34ch; }
.site-footer__heading {
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-500);
}
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__address { display: grid; gap: 8px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__legal { display: flex; gap: 20px; }

@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-block: 64px 40px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
