/* Maxie 39 – Marina Villa
   One stylesheet, five sections: 1. Tokens  2. Reset/base  3. Layout  4. Components  5. Utilities.
   Mobile-first: base rules are the small-screen defaults; min-width queries at the end layer up.
   Breakpoints: 769px (tablet), 993px (desktop), 1281px (large). */

/* ============================================
   1. TOKENS
   ============================================ */
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-gold: #a28d3b;              /* brand gold, from the logo */
  --color-gold-light: #c0ab59;        /* gold on dark surfaces: 8:1 on --color-ink */
  --color-gold-text: #7a6829;         /* gold for text on light surfaces: 5.3:1 on white */
  --color-ink: #14181c;               /* dark surfaces: facts, gallery, contact card, footer */
  --color-ink-soft: #232a31;          /* raised surface / divider on ink */
  --color-bg: #ffffff;                /* page and header background */
  --color-surface: #ffffff;           /* cards, feature tiles, FAQ, form panel, inputs */
  --color-sand: #f7f4ec;              /* alternating section background */
  --color-text: #3d4247;              /* body text: 10:1 on white */
  --color-text-strong: #14181c;       /* headings */
  --color-text-muted: #5f656b;        /* secondary text: 5.6:1 on --color-sand */
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #c9c4b6;     /* secondary text on ink: 10:1 */
  --color-border: #e4dfd2;
  --color-input-border: #8c8c8c;      /* 3:1 non-text contrast on white */
  --color-error: #b3261e;
  --overlay-hero: rgba(20, 24, 28, 0.62);
  --overlay-hero-top: rgba(20, 24, 28, 0.3);
  --text-shadow: 0 1px 12px rgba(20, 24, 28, 0.6);
  --overlay-lightbox: rgba(20, 24, 28, 0.92);

  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.75rem;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --width-content: 72rem;
  --width-narrow: 46rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(20, 24, 28, 0.06), 0 8px 24px rgba(20, 24, 28, 0.08);
  --logo-height: 2rem;                /* the logo matches the nav text's line box */
  --header-height: 3.8125rem;         /* rendered header height (61px; 67px from 993px) — update if the header changes */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
  color-scheme: light;
}

/* Dark mode: automatic from the OS setting (prefers-color-scheme). A data-theme="light" or
   data-theme="dark" attribute on <html> (set by the header's .theme-toggle) overrides it either way.
   Only the page-surface tokens change; ink bands (facts, gallery, contact card, footer), gold and
   the hero overlays are already dark and stay the same. Keep the two blocks identical. */
:root[data-theme="dark"] {
  --color-bg: #101316;
  --color-surface: #1c2127;
  --color-sand: #171b20;
  --color-gold-text: #c0ab59;         /* 7:1 on --color-surface */
  --color-text: #c9ccd0;
  --color-text-strong: #f3f1ea;
  --color-text-muted: #a3a9af;        /* 7:1 on --color-sand */
  --color-border: #2c333b;
  --color-input-border: #737a82;      /* 3:1 non-text contrast on --color-surface */
  --color-error: #f2928a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #101316;
    --color-surface: #1c2127;
    --color-sand: #171b20;
    --color-gold-text: #c0ab59;
    --color-text: #c9ccd0;
    --color-text-strong: #f3f1ea;
    --color-text-muted: #a3a9af;
    --color-border: #2c333b;
    --color-input-border: #737a82;
    --color-error: #f2928a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

/* ============================================
   2. RESET / BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-strong);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p,
ul,
ol,
dl {
  margin: 0 0 var(--space-sm);
}

a {
  color: var(--color-gold-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-text-strong);
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

button,
input,
select,
textarea {
  font: inherit;
}

address {
  font-style: normal;
}

/* ============================================
   3. LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: calc(var(--width-content) + 2 * var(--space-sm));
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.container--narrow { max-width: calc(var(--width-narrow) + 2 * var(--space-sm)); }

.section {
  padding-block: var(--space-xl);
}

.section--surface {
  background-color: var(--color-sand);
}

/* Copy beside a photo, from tablet up */
.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

/* ============================================
   4. COMPONENTS
   ============================================ */

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

/* Stays at the top while scrolling. Anchor jumps (and the skip link) stop below it, not under it. */
.site-header--sticky {
  position: sticky;
  top: 0;
}

html:has(.site-header--sticky) {
  scroll-padding-top: var(--header-height);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
  max-width: calc(var(--width-content) + 2 * var(--space-sm));
  margin-inline: auto;
  padding: var(--space-xs) var(--space-sm);
}

.site-header__logo {
  display: block;
  margin-right: auto;
}

.site-header__logo img {
  width: auto;
  height: var(--logo-height);
}

/* ---------- Theme toggle ---------- */
/* web-builder-skills toggle, drawn as a circle. Shows the icon for the theme a click switches TO;
   the icon follows the same data-theme / prefers-color-scheme rules as the tokens, so it's right
   before main.js runs. */
.theme-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: var(--space-xs);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-strong);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-text);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-toggle__icon--dark { display: block; }
.theme-toggle__icon--light { display: none; }

:root[data-theme="dark"] .theme-toggle__icon--dark { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--light { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__icon--dark { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__icon--light { display: block; }
}

/* ---------- Navigation ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-strong);
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--transition), background-color var(--transition);
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }

/* Hamburger becomes an X while open; the accessible name ("Menu") stays the same. */
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none;
  width: 100%;
}

.nav--open {
  display: block;
}

.nav__list {
  margin: 0;
  padding: var(--space-xs) 0;
  list-style: none;
}

.nav__link {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--color-text-strong);
  font-size: var(--text-base);
  line-height: var(--logo-height);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--color-gold-text);
}

.nav__link[aria-current="page"] {
  color: var(--color-gold-text);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-pill);
  background-color: var(--color-gold);
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  border-color: var(--color-gold-light);
  background-color: var(--color-gold-light);
  color: var(--color-ink);
}

/* For dark backgrounds (hero, bands) */
.btn--outline {
  border-color: var(--color-on-dark);
  background-color: transparent;
  color: var(--color-on-dark);
}

.btn--outline:hover {
  border-color: var(--color-on-dark);
  background-color: var(--color-on-dark);
  color: var(--color-ink);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

.btn__icon {
  width: 0.5rem;
  height: 0.75rem;
  fill: currentColor;
}

/* ---------- Section headings ---------- */
.section-heading {
  max-width: var(--width-narrow);
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.section-heading__eyebrow {
  margin-bottom: var(--space-xs);
  color: var(--color-gold-text);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading__title {
  margin: 0;
  font-size: var(--text-2xl);
}

.section-heading--left {
  margin-inline: 0;
  text-align: left;
}

.section-heading--light .section-heading__eyebrow { color: var(--color-gold-light); }
.section-heading--light .section-heading__title { color: var(--color-on-dark); }

.section-lede {
  max-width: var(--width-narrow);
  margin: calc(-1 * var(--space-md)) auto var(--space-lg);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  text-align: center;
}

.subheading {
  margin-top: var(--space-xl);
  font-size: var(--text-xl);
  text-align: center;
}

.subheading + .section-lede {
  margin-top: 0;
}

/* ---------- Prose ---------- */
.prose {
  max-width: var(--width-narrow);
}

.prose ul {
  padding-left: var(--space-md);
}

.prose li + li {
  margin-top: var(--space-xs);
}

.prose ul ul {
  margin: var(--space-xs) 0 0;
}

.prose--intro {
  margin: 0 auto var(--space-lg);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  text-align: center;
}

.text-link {
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 82vh;
  background-color: var(--color-ink);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, var(--overlay-hero-top) 0%, var(--overlay-hero) 50%, var(--color-ink) 100%);
}

.hero--home { background-image: url("/assets/img/hero-home-768.webp"); }
.hero--things-to-do { min-height: 52vh; background-image: url("/assets/img/hero-things-to-do-768.webp"); }

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--width-content) + 2 * var(--space-sm));
  margin-inline: auto;
  padding: var(--space-2xl) var(--space-sm) var(--space-xl);
}

.hero__eyebrow {
  margin-bottom: var(--space-sm);
  text-shadow: var(--text-shadow);
  color: var(--color-gold-light);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 18ch;
  text-shadow: var(--text-shadow);
  margin-bottom: var(--space-sm);
  color: var(--color-on-dark);
  font-size: var(--text-3xl);
  line-height: 1.1;
}

.hero__lede {
  max-width: 38rem;
  margin-bottom: var(--space-md);
  color: var(--color-on-dark);
  font-size: var(--text-lg);
}

.hero__actions,
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero :focus-visible {
  outline-color: var(--color-on-dark);
}

/* ---------- Key facts strip ---------- */
.facts {
  background-color: var(--color-ink);
  color: var(--color-on-dark);
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md) var(--space-sm);
  max-width: calc(var(--width-content) + 2 * var(--space-sm));
  margin: 0 auto;
  padding: var(--space-lg) var(--space-sm);
  list-style: none;
}

.facts__item {
  padding-left: var(--space-sm);
  border-left: 2px solid var(--color-gold);
}

.facts__value {
  display: block;
  color: var(--color-gold-light);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
}

.facts__label {
  display: block;
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
}

/* ---------- About (photo beside the copy) ---------- */
.split__media {
  margin: 0;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Feature cards (made for groups) ---------- */
.feature-grid {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: var(--space-md);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  box-shadow: var(--shadow);
}

.feature__title {
  font-size: var(--text-lg);
}

.feature__text {
  margin: 0;
}

/* ---------- Gallery ---------- */
.gallery-band {
  padding-block: var(--space-xl);
  background-color: var(--color-ink);
}

.gallery-band :focus-visible {
  outline-color: var(--color-on-dark);
}

.gallery-band__hint {
  margin: calc(-1 * var(--space-md)) 0 var(--space-lg);
  color: var(--color-on-dark-muted);
  text-align: center;
}

/* Masonry via CSS columns */
.gallery {
  columns: 18rem;
  column-gap: var(--space-sm);
}

.gallery__item {
  display: block;
  margin-bottom: var(--space-sm);
  overflow: hidden;
  border-radius: var(--radius-sm);
  break-inside: avoid;
}

.gallery__item[hidden] {
  display: none;
}

.gallery__item img {
  width: 100%;
  transition: transform var(--transition-slow), opacity var(--transition);
}

.gallery__item:hover img {
  opacity: 0.9;
  transform: scale(1.03);
}

.gallery-more {
  margin-top: var(--space-md);
  text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--overlay-lightbox);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  text-align: center;
}

.lightbox__image {
  max-height: 80vh;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.lightbox__caption {
  margin-top: var(--space-sm);
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
}

.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--color-ink-soft);
  color: var(--color-on-dark);
  font-size: var(--text-2xl);
  line-height: 1;
  cursor: pointer;
}

.lightbox__btn:hover {
  background-color: var(--color-gold);
  color: var(--color-ink);
}

.lightbox__btn:focus-visible {
  outline-color: var(--color-on-dark);
}

.lightbox__btn--close { top: var(--space-sm); right: var(--space-sm); }
.lightbox__btn--prev { top: 50%; left: var(--space-xs); transform: translateY(-50%); }
.lightbox__btn--next { top: 50%; right: var(--space-xs); transform: translateY(-50%); }

/* ---------- What's included ---------- */
.checklist {
  display: grid;
  gap: var(--space-xs) var(--space-lg);
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.checklist__item {
  position: relative;
  padding: var(--space-xs) 0 var(--space-xs) 2rem;
  border-bottom: 1px solid var(--color-border);
}

/* Gold tick drawn with borders, so no icon file is needed */
.checklist__item::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: 0.35rem;
  width: 0.45rem;
  height: 0.8rem;
  border-right: 2px solid var(--color-gold-text);
  border-bottom: 2px solid var(--color-gold-text);
  transform: rotate(45deg);
}

/* ---------- Cards (things to do) ---------- */
.card-grid {
  display: grid;
  gap: var(--space-md);
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
}

.card {
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--color-surface);
  box-shadow: var(--shadow);
}

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--color-text-strong);
  text-decoration: none;
}

.card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card__link:hover .card__image {
  transform: scale(1.03);
}

.card__kicker {
  padding: var(--space-sm) var(--space-md) 0;
  color: var(--color-gold-text);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card__title {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
}

.card__kicker + .card__title {
  padding-top: var(--space-2xs);
}

.card__link:hover .card__title {
  color: var(--color-gold-text);
}

/* ---------- Good to know (FAQ) ---------- */
.faq-grid {
  display: grid;
  gap: var(--space-md);
  margin: 0 0 var(--space-lg);
}

.faq {
  padding: var(--space-md);
  border-radius: var(--radius);
  background-color: var(--color-surface);
}

.faq__question {
  margin-bottom: var(--space-xs);
  color: var(--color-text-strong);
  font-size: var(--text-lg);
  font-weight: 700;
}

.faq__answer {
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.contact-details,
.contact-form-wrap {
  padding: var(--space-md);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  box-shadow: var(--shadow);
}

.contact-details {
  background-color: var(--color-ink);
  color: var(--color-on-dark-muted);
}

.contact-details a {
  color: var(--color-on-dark);
}

.contact-details a:hover {
  color: var(--color-gold-light);
}

.contact-details :focus-visible {
  outline-color: var(--color-on-dark);
}

.contact-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-ink-soft);
}

.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { padding-bottom: 0; border-bottom: 0; }

.contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-ink-soft);
  color: var(--color-gold-light);
  transition: background-color var(--transition), color var(--transition);
}

.contact-details .contact-item__icon:hover {
  background-color: var(--color-gold);
  color: var(--color-ink);
}

.contact-item__icon svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: currentColor;
}

.contact-item__text {
  overflow-wrap: anywhere;
}

.contact-item__text p {
  margin: 0;
}

.contact-item__label {
  color: var(--color-gold-light);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item__text p.contact-item__more {
  margin-top: var(--space-2xs);
}

.contact-item__more a {
  font-weight: 700;
}

.contact-form__title {
  font-size: var(--text-xl);
}

/* ---------- Form ---------- */
.form__field {
  margin-bottom: var(--space-sm);
}

.form__label {
  display: block;
  margin-bottom: var(--space-2xs);
  color: var(--color-text-strong);
  font-weight: 700;
}

.form__hint {
  color: var(--color-text-muted);
  font-weight: 400;
}

.form__input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  color: var(--color-text-strong);
  font-size: var(--text-base);
  line-height: 1.4;
}

.form__input:focus {
  border-color: var(--color-gold-text);
}

/* Dates side by side once both labels fit on one line */
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  column-gap: var(--space-sm);
}

textarea.form__input {
  min-height: 8rem;
  resize: vertical;
}

.form__error {
  display: none;
  margin-top: var(--space-2xs);
  color: var(--color-error);
  font-size: var(--text-sm);
}

.form__field.is-invalid .form__error {
  display: block;
}

.form__field.is-invalid .form__input {
  border-color: var(--color-error);
}

.form__status {
  margin: var(--space-sm) 0 0;
}

.form__status--success { color: var(--color-gold-text); }
.form__status--error { color: var(--color-error); }

/* Spam trap: kept off-screen rather than display:none so bots still see it */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Map ---------- */
.map iframe {
  width: 100%;
  height: 22rem;
  border: 0;
}

/* ---------- Notice band ---------- */
/* One-line announcement above the header; it scrolls away, so the sticky header offset is unchanged. Ink on gold: 5.5:1. */
.notice-band {
  margin: 0;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-gold);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: center;
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  min-height: 20rem;
  padding: var(--space-xl) var(--space-sm);
  background: var(--color-ink) url("/assets/img/cta-background-1024.webp") center / cover no-repeat;
  text-align: center;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--overlay-hero);
}

.cta-band__text,
.cta-band .btn {
  position: relative;
  z-index: 1;
}

.cta-band__text {
  max-width: 36rem;
  margin: 0;
  color: var(--color-on-dark);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
}

.cta-band :focus-visible {
  outline-color: var(--color-on-dark);
}

/* ---------- Things To Do ---------- */
.jump-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin: 0 0 var(--space-xl);
  padding: 0;
  list-style: none;
}

.jump-links a {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-strong);
  font-weight: 700;
  text-decoration: none;
}

.jump-links a:hover {
  border-color: var(--color-gold);
  background-color: var(--color-sand);
}

.ttd-section {
  scroll-margin-top: var(--space-md);
}

.ttd-section__title {
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-gold);
  font-size: var(--text-xl);
}

.ttd-section__note {
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-ink);
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
}

.site-footer a {
  color: var(--color-on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: var(--color-on-dark);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-xl) var(--space-lg);
}

.site-footer__heading {
  margin-bottom: var(--space-xs);
  color: var(--color-gold-light);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li + li {
  margin-top: var(--space-2xs);
}

.site-footer__bottom p {
  margin: 0;
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-ink-soft);
}

/* ============================================
   5. UTILITIES
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.text-center { text-align: center; }

.skip-link {
  position: absolute;
  top: -4rem;
  left: var(--space-sm);
  z-index: 200;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  background-color: var(--color-ink);
  color: var(--color-on-dark);
}

.skip-link:focus {
  top: var(--space-xs);
}

/* ============================================
   Responsive layers (mobile-first)
   ============================================ */

/* ---------- Tablet (≥769px) ---------- */
@media (min-width: 769px) {
  .section,
  .gallery-band {
    padding-block: var(--space-2xl);
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .hero--home { background-image: url("/assets/img/hero-home-1280.webp"); }
  .hero--things-to-do { background-image: url("/assets/img/hero-things-to-do.webp"); }

  .hero__title { font-size: var(--text-4xl); }

  .section-heading__title { font-size: var(--text-3xl); }

  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .feature-grid,
  .faq-grid,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--space-lg);
  }

  .cta-band { background-image: url("/assets/img/cta-background.webp"); }
  .cta-band__text { font-size: var(--text-2xl); }

  .map iframe { height: 28rem; }

  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Desktop (≥993px) ---------- */
@media (min-width: 993px) {
  :root { --header-height: 4.1875rem; }

  .site-header__inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  /* Rightmost: after the nav on desktop, after the menu button on mobile */
  .theme-toggle {
    order: 1;
    margin-left: var(--space-md);
  }

  .nav {
    display: block;
    width: auto;
  }

  .nav__list {
    display: flex;
    gap: var(--space-md);
    padding: 0;
  }

  .nav__link {
    border-bottom: 2px solid transparent;
  }

  .nav__link[aria-current="page"] {
    border-bottom-color: var(--color-gold);
  }

  .faq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact-details,
  .contact-form-wrap {
    padding: var(--space-lg);
  }

  .site-footer__inner { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
}

/* ---------- Large (≥1281px) ---------- */
@media (min-width: 1281px) {
  .hero--home { background-image: url("/assets/img/hero-home.webp"); }
}

/* Motion off: zero the transition tokens rather than overriding every rule */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition: 0s;
    --transition-slow: 0s;
  }

  html { scroll-behavior: auto; }
}
