/* =========================================================================
   Celine Pool Villa Cha-Am — styles
   Mobile-first. All colour, spacing and type come from the tokens in :root.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Type */
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                  Georgia, "Times New Roman", serif;
  --step--1: 0.83rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.35rem + 1.2vw, 2.1rem);
  --step-4: clamp(1.95rem, 1.5rem + 2vw, 2.9rem);
  --step-5: clamp(2.4rem, 1.7rem + 3.4vw, 3.9rem);

  /* Colour — light */
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-sunk: #F3EEE4;
  --text: #2A2622;
  --text-muted: #5F5648;
  --accent: #1F5D5A;
  --accent-hover: #17403E;
  --accent-text: #FFFFFF;
  --gold: #8A6220;
  --border: #E4DCCE;
  --focus: #1F5D5A;
  --shadow-color: 32deg 24% 40%;
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.12);
  --shadow-md: 0 6px 20px -6px hsl(var(--shadow-color) / 0.22);
  --shadow-lg: 0 20px 48px -12px hsl(var(--shadow-color) / 0.30);

  /* Sketch map */
  --map-land: #EFE7D6;
  --map-water: #BFE0DB;
  --map-sand: #F0DCB8;
  --map-road: #FFFFFF;
  --map-ink: #4A3F2E;
  --map-pin: #1F5D5A;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --measure: 66ch;
  --container: 1180px;

  --header-h: 4rem;

  /* Form-control border — meets 3:1 non-text contrast against surface and bg */
  --field-border: #807769;

  /* Let the browser theme native controls (date picker, select, scrollbars) */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1714;
    --surface: #241F1B;
    --surface-sunk: #14110E;
    --text: #F2ECE1;
    --text-muted: #B7AC9B;
    --accent: #7FBFBB;
    --accent-hover: #9AD2CE;
    --accent-text: #10201F;
    --gold: #D6A24E;
    --border: #3A332C;
    --focus: #7FBFBB;
    --shadow-color: 32deg 20% 4%;
    --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.5);
    --shadow-md: 0 6px 20px -6px hsl(var(--shadow-color) / 0.6);
    --shadow-lg: 0 20px 48px -12px hsl(var(--shadow-color) / 0.7);

    --map-land: #2C2620;
    --map-water: #204542;
    --map-sand: #3A3121;
    --map-road: #5B5142;
    --map-ink: #D9CDB8;
    --map-pin: #7FBFBB;

    --field-border: #857B6C;
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }

p { max-width: var(--measure); }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }

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

strong { font-weight: 700; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 100;
  background: var(--accent);
  color: var(--accent-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--accent-text); }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 40rem) {
  .wrap { padding-inline: var(--space-6); }
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--accent);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.7em 1.3em;
  border-radius: var(--radius-pill);
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-text); --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-fg: var(--accent-text); --btn-bd: var(--accent-hover); }

.btn--outline { --btn-bd: var(--accent); --btn-fg: var(--accent); }
.btn--outline:hover { --btn-bg: var(--accent); --btn-fg: var(--accent-text); }

.btn--ghost {
  --btn-bg: rgba(255,255,255,0.18);
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,0.85);
}
.btn--ghost:hover { --btn-bg: rgba(255,255,255,0.30); --btn-fg: #fff; }

.btn--lg { font-size: var(--step-1); padding: 0.8em 1.6em; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-block;
  margin-top: var(--space-4);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding-block: var(--space-2);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  margin-right: auto;
}
.wordmark__mark {
  display: grid;
  place-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1.1rem;
}
.wordmark__text { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.05rem; }
.wordmark__sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav { display: contents; }
.nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--space-5);
}
.nav-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding-block: var(--space-2);
}
.nav-list a:hover { color: var(--text); }
/* "Check availability" inside the menu — mobile only (desktop has the header button) */
.nav-list__book { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font: inherit;
  font-weight: 600;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle__bar::before { position: absolute; top: -5px; }
.nav-toggle__bar::after  { position: absolute; top: 5px; }

.site-header__cta { flex-shrink: 0; }

/* Header: mobile */
@media (max-width: 61.99rem) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: var(--space-2) var(--space-4) var(--space-4);
  }
  .nav-list a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
  /* JS-enhanced: collapsed by default, toggled open */
  .js .nav-list { display: none; }
  .js .nav-list.is-open { display: flex; }
  .site-header__cta { display: none; }
  /* Without JS there is no toggle, so let the menu sit in the flow */
  .no-js .nav-list { position: static; box-shadow: none; border-bottom: 0; padding-inline: 0; }

  .nav-list__book { display: block; }
  .nav-list__book a {
    background: var(--accent);
    color: var(--accent-text);
    text-align: center;
    border-radius: var(--radius-pill);
    padding: var(--space-3) var(--space-4);
    border-bottom: 0;
    margin-block: var(--space-2);
  }
  .nav-list__book a:hover { background: var(--accent-hover); color: var(--accent-text); }
}
@media (max-width: 26rem) {
  .wordmark__text { font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(80vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18,26,26,0.28) 0%, rgba(16,24,24,0.30) 38%, rgba(12,20,20,0.74) 100%);
}
.hero__panel {
  padding-block: var(--space-7) var(--space-8);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: var(--step--1);
  margin-bottom: var(--space-3);
  color: #F7EAD3;
}
.hero__title { color: #fff; font-size: var(--step-5); }
.hero__lead {
  margin-top: var(--space-4);
  font-size: var(--step-1);
  max-width: 46ch;
  color: #F7F3EC;
}
.hero__stats {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}
.hero__stats li { font-size: 0.95rem; color: #EAE3D7; }
.hero__stats strong { display: inline; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.hero__stats li + li { position: relative; }
.hero__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Highlights strip ---------- */
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.highlights strong { color: var(--text); }
.highlights p { max-width: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-8); }
@media (min-width: 48rem) { .section { padding-block: var(--space-9); } }
.section--sunk { background: var(--surface-sunk); }

.section h2 { margin-top: var(--space-1); }
.section__lead-text,
.section p.section__note { margin-top: var(--space-4); }
.section__note { color: var(--text-muted); font-size: 0.95rem; }
.section__lead p + p { margin-top: var(--space-4); }

.section__grid { display: grid; gap: var(--space-7); }
@media (min-width: 52rem) {
  .section__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: start; }
}

/* ---------- Amenities ---------- */
.amenities {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
@media (min-width: 30rem) { .amenities { grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-5); } }
.amenities li {
  position: relative;
  padding-left: 1.9rem;
  padding-block: var(--space-1);
}
.amenities li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.1rem;
  height: 0.6rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Gallery ---------- */
.gallery {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery__item:hover img { transform: scale(1.03); }

/* ---------- Rooms ---------- */
.rooms {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 40rem) { .rooms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .rooms { grid-template-columns: repeat(3, 1fr); } }
.room {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.room h3 { font-size: var(--step-1); }
.room p { color: var(--text-muted); font-size: 0.95rem; margin-top: var(--space-2); }

/* ---------- Address ---------- */
.address {
  font-style: normal;
  color: var(--text-muted);
  margin-block: var(--space-4);
  line-height: 1.7;
}

/* ---------- Map ---------- */
.mapfig { margin-top: var(--space-5); }
.mapsvg {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--map-land);
}
.mapfig figcaption {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* ---------- Distances ---------- */
.side-h { font-size: var(--step-1); margin-bottom: var(--space-3); }
.distances { display: grid; gap: 0; }
.distances > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.distances dt { font-weight: 600; }
.distances dd { color: var(--text-muted); text-align: right; white-space: nowrap; }

/* ---------- Booking ---------- */
.booking { display: grid; gap: var(--space-7); }
@media (min-width: 56rem) {
  .booking { grid-template-columns: 1fr 1fr; align-items: start; }
  .booking__intro { grid-column: 1 / -1; max-width: var(--measure); }
}
.rate-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-top: var(--space-4);
}
.rate-note--muted { border-left-color: var(--border); color: var(--text-muted); font-size: 0.95rem; }

.booked { margin-top: var(--space-4); font-size: 0.95rem; }
.booked summary { cursor: pointer; font-weight: 600; }
.booked ul { margin-top: var(--space-2); padding-left: 1.2rem; color: var(--text-muted); }
.booked li { margin-block: var(--space-1); }

.booking__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}
@media (min-width: 56rem) { .booking__form { grid-column: 1; } }
.booking__form fieldset { border: 0; padding: 0; margin: 0; }
.booking__form fieldset + fieldset { margin-top: var(--space-5); }
.booking__form legend {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  margin-bottom: var(--space-3);
  padding: 0;
}
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 600; margin-bottom: var(--space-2); font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  padding: 0.6em 0.7em;
}
.field textarea { resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field--invalid input,
.field--invalid select { border-color: #B3261E; }
@media (prefers-color-scheme: dark) { .field--invalid input, .field--invalid select { border-color: #F2B8B5; } }

@media (min-width: 26rem) {
  .booking__form fieldset:first-of-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-4);
  }
  .booking__form fieldset:first-of-type legend { grid-column: 1 / -1; }
  .booking__form fieldset:first-of-type .field:last-child { grid-column: 1 / -1; }
}
.field--wide { grid-column: 1 / -1; }

.form-errors {
  background: #FBE9E7;
  color: #7A1C13;
  border: 1px solid #E6A29B;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}
@media (prefers-color-scheme: dark) {
  .form-errors { background: #3B1614; color: #F2B8B5; border-color: #8C3B36; }
}

.estimate {
  background: var(--surface-sunk);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.estimate__row { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-1); max-width: none; }
.estimate__row--total { font-weight: 700; font-size: var(--step-1); border-top: 1px solid var(--border); margin-top: var(--space-2); padding-top: var(--space-3); }
.estimate__row--muted { color: var(--text-muted); font-size: 0.9rem; }

.form-fineprint { font-size: var(--step--1); color: var(--text-muted); margin-top: var(--space-3); }

.confirm {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}
@media (min-width: 56rem) { .confirm { grid-column: 2; align-self: start; } }
.confirm h3 { margin-bottom: var(--space-3); }
.confirm dl { display: grid; gap: var(--space-1); margin-block: var(--space-3); }
.confirm dl div { display: flex; justify-content: space-between; gap: var(--space-4); border-bottom: 1px solid var(--border); padding-block: var(--space-2); }
.confirm dt { color: var(--text-muted); }
.confirm dd { font-weight: 600; text-align: right; }
.confirm__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

/* ---------- Rules ---------- */
.rules {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-3);
  max-width: var(--measure);
}
.rules li {
  padding-left: 1.6rem;
  position: relative;
}
.rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-sunk);
  border-top: 1px solid var(--border);
  padding-block: var(--space-8) var(--space-5);
  margin-top: var(--space-9);
}
.site-footer__inner {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 40rem) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.footer-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: var(--space-3); }
.footer-links { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--step--1);
  color: var(--text-muted);
  max-width: none;
}
.site-footer .wrap { }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: rgba(15, 20, 20, 0.85);
}
.lightbox[hidden] { display: none; }
.lightbox__inner { position: relative; max-width: 860px; width: 100%; }
.lightbox__img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface);
}
.lightbox__cap { color: #EDE6DA; font-size: 0.9rem; margin-top: var(--space-2); text-align: center; max-width: none; }
.lightbox__count { color: #EDE6DA; opacity: 0.65; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
}
.lightbox__close {
  top: -3.25rem;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.8rem;
  line-height: 1;
  background: none;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__nav--prev { left: -1rem; }
.lightbox__nav--next { right: -1rem; }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 48rem) {
  .lightbox__close { top: 0; right: 0; background: rgba(0, 0, 0, 0.5); }
  .lightbox__nav--prev { left: 0.25rem; }
  .lightbox__nav--next { right: 0.25rem; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .gallery__item img, .gallery__item:hover img { transition: none; transform: none; }
  .skip-link { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
