/* ==========================================================================
   The Villages at Olympus Mons — single-page site
   Tokens, then primitives, then page furniture.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  --white:      #FFFFFF;
  --pink:       #F0AFAC;   /* the building */
  --blush:      #FCEFEC;   /* palest wash of it */
  --rose:       #C1121F;   /* caftan scarlet */
  --rose-deep:  #8E0C16;
  --turq:       #2E9EB4;   /* pool water */
  --pool:       #126E80;
  --cobalt:     #0B5CA8;   /* caftan blue */
  --wood:       #A8756E;
  --amber:      #F0820F;   /* caftan orange */
  --cream:      #FAF3EA;   /* travertine deck */
  --ink:        #1E2340;   /* caftan indigo */

  --ink-70:     #3B3F57;
  --ink-55:     #666B85;
  --line:       rgba(30, 35, 64, 0.14);
  --line-soft:  rgba(30, 35, 64, 0.08);
  --line-warm:  rgba(168, 117, 110, 0.34);
  --wash-pink:  rgba(240, 175, 172, 0.18);

  /* The rest of the caftan. The first of each pair is safe for text. */
  /* Each caftan colour at the strongest it can be and still hold dark type */
  --tint-teal:    #A9D8E0;
  --tint-lime:    #C6DF9A;
  --tint-orange:  #F7C195;
  --tint-violet:  #CBB0DC;
  --tint-scarlet: #F3A8A5;
  --tint-gold:    #F6DC9B;
  --tint-cobalt:  #AECBEE;

  /* The same colours darkened for type, since the bands are no longer pale */
  --teal-ink:    #0A4C59;
  --lime-ink:    #2E4F08;
  --orange-ink:  #803000;
  --violet-ink:  #4A1C5E;
  --scarlet-ink: #8E0C16;
  --cobalt-ink:  #074A86;
  --gold-ink:    #6B4505;

  --lime:       #3F6B0C;  --lime-bright:   #64A014;
  --orange:     #9C3B00;  --orange-bright: #F06400;
  --violet:     #5A2470;  --violet-bright: #8A3BA8;
  --gold:       #8A5A06;  --gold-bright:   #E8A317;
  --cobalt-bright: #1479D0;
  --rose-bright:   #E8232F;
  --turq-bright:   #2E9EB4;

  /* Type scale — one ratio, fluid, no stray sizes */
  --t--1: 0.875rem;
  --t-0:  1rem;
  --t-1:  1.0625rem;
  --t-2:  1.1875rem;
  --t-3:  clamp(1.3rem,  0.9rem + 1.2vw, 1.5rem);
  --t-4:  clamp(1.55rem, 1.0rem + 2.0vw, 2.05rem);
  --t-5:  clamp(1.9rem,  1.1rem + 3.0vw, 2.75rem);
  --t-6:  clamp(2.2rem,  1.1rem + 4.4vw, 3.6rem);

  /* Space scale — 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section: clamp(1.25rem, 2vw, 1.75rem);

  --r-sm:   10px;
  --r:      16px;
  --r-lg:   26px;
  --r-full: 999px;

  --e-1: 0 1px 2px rgba(43, 35, 38, 0.05);
  --e-2: 0 1px 2px rgba(43, 35, 38, 0.05), 0 10px 24px -16px rgba(43, 35, 38, 0.35);
  --e-3: 0 2px 4px rgba(43, 35, 38, 0.06), 0 26px 50px -28px rgba(43, 35, 38, 0.45);

  --measure: 66ch;
  --page:    1180px;
  --gutter:  clamp(1rem, 4vw, 2.5rem);
  --header-h: 124px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  font-size: 18px;
}

:root[data-textsize="2"] { font-size: 20.5px; }
:root[data-textsize="3"] { font-size: 23px; }

@media (min-width: 1500px) { :root { --page: 1300px; } }

/* --- 2. Reset ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 { font-size: var(--t-6); line-height: 1.06; letter-spacing: -0.016em; }
h2 { font-size: var(--t-5); line-height: 1.12; letter-spacing: -0.012em; }
h3 { font-size: var(--t-3); line-height: 1.2;  letter-spacing: -0.006em; }
h4 { font-size: var(--t-2); line-height: 1.3; }

p { margin: 0 0 var(--s-4); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose-deep); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink); color: var(--ink); }

/* --- 3. Layout primitives ------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: var(--section);
  background: var(--tint, var(--white));
  border-top: 6px solid var(--accent-bright, var(--turq));
}
.band-tight { padding-block: calc(var(--section) * 0.6); }
/* One band carries its colour at full strength rather than washed */
.band-deep { background: var(--pool); color: var(--white); }

/* Anchored sections clear the sticky header */
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--white);
  color: var(--rose);
  padding: var(--s-3) var(--s-5);
  font-weight: 600;
  border: 2px solid var(--rose);
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- 3b. Section accents — one caftan colour per section ----------------- */

.ac-cobalt  { --accent: var(--cobalt-ink);  --accent-bright: var(--cobalt-bright); --tint: var(--tint-cobalt); }
.ac-lime    { --accent: var(--lime-ink);    --accent-bright: var(--lime-bright);   --tint: var(--tint-lime); }
.ac-orange  { --accent: var(--orange-ink);  --accent-bright: var(--orange-bright); --tint: var(--tint-orange); }
.ac-teal    { --accent: var(--teal-ink);    --accent-bright: var(--turq-bright);   --tint: var(--tint-teal); }
.ac-violet  { --accent: var(--violet-ink);  --accent-bright: var(--violet-bright); --tint: var(--tint-violet); }
.ac-scarlet { --accent: var(--scarlet-ink); --accent-bright: var(--rose-bright);   --tint: var(--tint-scarlet); }
.ac-gold    { --accent: var(--gold-ink);    --accent-bright: var(--gold-bright);   --tint: var(--tint-gold); }

/* --- 4. Section headers -------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  font-family: var(--sans);
  font-size: var(--t--1);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent, var(--pool));
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent-bright, var(--turq));
  flex: 0 0 auto;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(1rem, 1.6vw, 1.25rem);
}
.section-head h2::after,
.split-text > h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 6px;
  margin-top: var(--s-3);
  border-radius: 3px;
  background: var(--accent-bright, var(--turq));
}
.section-head p { font-size: var(--t-2); color: var(--ink-70); max-width: 52ch; }
/* the kicker keeps its section colour, which the rule above would otherwise take */
.section-head p.eyebrow { color: var(--accent, var(--pool)); font-size: var(--t--1); }

/* --- 5. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-full);
  font: inherit;
  font-size: var(--t-0);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-primary { background: var(--rose); color: var(--white); }
.btn-primary:hover { background: var(--rose-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--rose-deep); border-color: currentColor; }
.btn-outline:hover { background: var(--white); color: var(--rose-deep); }

/* --- 6. Header ----------------------------------------------------------- */

.site-header {
  border-width: 4px 0 0;
  border-style: solid;
  border-image: linear-gradient(90deg,
    #C1121F 0%, #F06400 17%, #E8A317 33%, #64A014 50%,
    #2E9EB4 67%, #0B5CA8 83%, #642878 100%) 1;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 180ms ease;
}
.site-header.is-stuck {
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(43, 35, 38, 0.5);
}

.utility {
  background: var(--blush);
  border-bottom: 1px solid rgba(168, 50, 79, 0.10);
}
.utility-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 52px;
  padding-block: var(--s-1);
}
.utility-note {
  font-size: var(--t--1);
  color: var(--ink-70);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 860px) { .utility-note { display: none; } }
.utility-side { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }

.textsize { display: flex; align-items: center; gap: 2px; }
.textsize-label {
  font-size: var(--t--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-right: var(--s-1);
}
.textsize button {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.textsize button:hover { background: rgba(168, 50, 79, 0.1); }
.textsize button[aria-pressed="true"] { background: var(--rose); color: var(--white); }
.ts-1 { font-size: 0.9rem; }
.ts-2 { font-size: 1.08rem; }
.ts-3 { font-size: 1.28rem; }

.utility-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  padding-inline: var(--s-2);
  color: var(--pool);
  font-size: var(--t-0);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.utility-phone:hover { color: var(--rose-deep); }

.bar-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 78px;
  padding-block: var(--s-3);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
  padding-block: var(--s-1);
}
.logo-over {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 3px;
}
.logo-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
}

.main-nav { margin-inline: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li { position: relative; }
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-inline: var(--s-3);
  color: var(--ink);
  font-size: var(--t-0);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r-sm);
  transition: color 120ms ease, background-color 120ms ease;
}
.main-nav a:hover { color: var(--rose-deep); background: var(--wash-pink); }
.main-nav a[aria-current="true"] { color: var(--rose); font-weight: 600; }
.main-nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 4px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}

.bar-action { flex: 0 0 auto; margin-left: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  min-width: 48px;
  padding: 0.6rem 0.95rem;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-0);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--blush); }

/* --- 7. Brand wave ------------------------------------------------------- */

.wave { display: block; width: 100%; height: clamp(26px, 3vw, 46px); }
.wave-top { position: absolute; inset: 0 0 auto 0; z-index: 2; pointer-events: none; }

/* --- 8. Masthead --------------------------------------------------------- */

.masthead { position: relative; isolation: isolate; }
.masthead-media {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 360px;
  max-height: 400px;
  background: var(--blush);
  overflow: hidden;
}
.masthead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.masthead-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(27, 18, 22, 0.30) 0%,
      rgba(27, 18, 22, 0.08) 18%,
      rgba(27, 18, 22, 0.44) 32%,
      rgba(27, 18, 22, 0.64) 46%,
      rgba(27, 18, 22, 0.80) 72%,
      rgba(27, 18, 22, 0.88) 100%),
    linear-gradient(to right,
      rgba(27, 18, 22, 0.42) 0%,
      rgba(27, 18, 22, 0) 58%);
}
.masthead-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--white);
}
.masthead-copy h1 {
  color: var(--white);
  max-width: 21ch;
  margin-bottom: var(--s-3);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.42);
}
.masthead-copy p {
  color: rgba(255, 255, 255, 0.94);
  font-size: var(--t-1);
  max-width: 60ch;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

/* --- 11. Figures and gallery --------------------------------------------- */

figure { margin: 0; }
figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--blush);
  box-shadow: var(--e-1);
}
figcaption {
  padding-top: var(--s-3);
  max-width: 48ch;
  color: var(--ink-70);
  font-size: var(--t-0);
}
figcaption strong {
  display: block;
  border-top: 3px solid var(--accent-bright, var(--turq));
  padding-top: var(--s-3);
  margin-bottom: var(--s-1);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-2);
  font-weight: 600;
}

.feature-figure.square img { aspect-ratio: 5 / 4; object-position: 50% 44%; }

.gallery { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }

/* --- 12. Split rows ------------------------------------------------------ */

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.split + .split { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.split-text > h2 { margin-bottom: var(--s-4); }
.split-text > h3 { margin-bottom: var(--s-3); }

/* --- 13. Icon row -------------------------------------------------------- */

.icon-row { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.icon-item { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.icon-item .icon-badge { margin-bottom: var(--s-2); }
.icon-item h3 { font-size: var(--t-2); margin-bottom: var(--s-1); }
.icon-item p { margin: 0; font-size: var(--t-0); color: var(--ink-70); max-width: 32ch; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--blush);
}
.band .icon-badge { background: var(--white); }
.icon-item:nth-child(1) .icon-badge { background: #E3EEF8; }
.icon-item:nth-child(2) .icon-badge { background: #EAF2DE; }
.icon-item:nth-child(3) .icon-badge { background: #FBE6E7; }
.icon-item:nth-child(4) .icon-badge { background: #EFE6F3; }

/* --- 14. Cards ----------------------------------------------------------- */

.cards { display: grid; gap: clamp(1rem, 1.9vw, 1.5rem); grid-template-columns: 1fr; }
.card {
  background: var(--white);
  border-top: 3px solid var(--accent-bright, var(--turq));
  border-radius: var(--r);
  padding: clamp(1.1rem, 1.8vw, 1.4rem);
  box-shadow: var(--e-1);
}
.band .card { box-shadow: var(--e-2); }
.card .icon-badge { margin-bottom: var(--s-4); }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--ink-70); font-size: var(--t-0); }
.card p + p { margin-top: var(--s-3); }

/* --- 15. Amenity list ---------------------------------------------------- */

.amenity-group + .amenity-group { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.amenity-group > h3 {
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--line-warm);
  font-size: var(--t-3);
}
.amenity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-5) clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
.amenity-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  align-items: start;
}
.amenity-list .icon-badge { width: 44px; height: 44px; }
.amenity-list strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: var(--t-2);
  font-weight: 600;
  line-height: 1.3;
}
.amenity-list span {
  display: block;
  color: var(--ink-70);
  font-size: var(--t-0);
  line-height: 1.55;
}

/* --- 16. Tables ---------------------------------------------------------- */

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
caption {
  text-align: left;
  color: var(--ink-70);
  font-size: var(--t-0);
  padding-bottom: var(--s-4);
  max-width: var(--measure);
}
th, td {
  text-align: left;
  padding: var(--s-4) var(--s-5) var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: var(--t-0);
}
thead th {
  padding-top: 0;
  font-family: var(--sans);
  font-size: var(--t--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pool);
  border-bottom: 2px solid var(--line-warm);
}
tbody th {
  font-family: var(--serif);
  font-size: var(--t-2);
  font-weight: 600;
  white-space: nowrap;
  padding-right: var(--s-6);
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* --- 17. Menu columns ---------------------------------------------------- */

.menu-cols { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
.menu-col {
  background: var(--white);
  border-radius: var(--r);
  padding: clamp(1.1rem, 1.8vw, 1.4rem);
  box-shadow: var(--e-2);
}
.menu-col h3 {
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 2px solid var(--pink);
  font-size: var(--t-3);
}
.menu-col ul { list-style: none; margin: 0; padding: 0; }
.menu-col li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-0);
}
.menu-col li:last-child { border-bottom: 0; }
.menu-col li span {
  display: block;
  margin-top: 2px;
  color: var(--ink-55);
  font-size: var(--t--1);
}

/* --- 18. Testimonials ---------------------------------------------------- */

.quotes { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); grid-template-columns: 1fr; }
blockquote { margin: 0; }
blockquote p {
  font-family: var(--serif);
  font-size: var(--t-2);
  line-height: 1.5;
  margin-bottom: var(--s-4);
  max-width: 34ch;
}
blockquote cite {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-style: normal;
  font-size: var(--t--1);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pool);
}
blockquote cite::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--pink);
  flex: 0 0 auto;
}
.quote-mark {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--pink);
  margin-bottom: var(--s-3);
}
.quotes blockquote:nth-child(1) .quote-mark { color: var(--orange-bright); }
.quotes blockquote:nth-child(2) .quote-mark { color: var(--turq-bright); }
.quotes blockquote:nth-child(3) .quote-mark { color: var(--violet-bright); }

.band-deep blockquote p { color: var(--white); }
.band-deep blockquote cite { color: #DDF1F6; }
.band-deep blockquote cite::before { background: #DDF1F6; }
.band-deep .quotes blockquote:nth-child(1) .quote-mark { color: #F7C65C; }
.band-deep .quotes blockquote:nth-child(2) .quote-mark { color: #F2AEAC; }
.band-deep .quotes blockquote:nth-child(3) .quote-mark { color: #A9E0A0; }

/* --- 19. Forms ----------------------------------------------------------- */

.form-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; max-width: 54rem; }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field-wide { grid-column: 1 / -1; }

label { font-size: var(--t-0); font-weight: 600; }
.hint {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: var(--t--1);
  color: var(--ink-70);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  font: inherit;
  font-size: var(--t-0);
  color: var(--ink);
  background: var(--white);
  min-height: 52px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 100%;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:hover, select:hover, textarea:hover { border-color: rgba(43, 35, 38, 0.3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(168, 50, 79, 0.14);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5) var(--s-5);
  margin: 0;
}
legend { font-size: var(--t-0); font-weight: 600; padding-inline: var(--s-2); }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.radio-row label {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2);
  border-radius: var(--r-sm);
  font-weight: 400;
  cursor: pointer;
}
.radio-row label:hover { background: var(--blush); }
input[type="radio"], input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-height: 0;
  accent-color: var(--rose);
  flex: 0 0 auto;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
}
.form-note { margin: 0; font-size: var(--t-0); color: var(--ink-70); }
.form-thanks {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--s-4) var(--s-5);
  background: var(--cream);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-sm);
  font-weight: 600;
  max-width: none;
}
.form-thanks[hidden] { display: none; }

/* --- 20. Steps ----------------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  grid-template-columns: 1fr;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-full);
  background: var(--white);
  color: var(--rose);
  font-family: var(--serif);
  font-size: var(--t-2);
  box-shadow: inset 0 0 0 2px var(--pink);
}
.steps h3 { font-size: var(--t-2); margin-bottom: var(--s-2); }
.steps p { color: var(--ink-70); font-size: var(--t-0); }

/* --- 21. FAQ ------------------------------------------------------------- */

.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 48px;
  padding: var(--s-4) 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: var(--t-2);
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-left: auto;
  border-right: 2px solid var(--rose);
  border-bottom: 2px solid var(--rose);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--rose-deep); }
.faq .faq-body { padding: 0 0 var(--s-5); }
.faq .faq-body p { color: var(--ink-70); font-size: var(--t-0); }

/* --- 22. Definition and plain lists -------------------------------------- */

.detail-list { margin: 0; display: grid; grid-template-columns: 1fr; }
.detail-list dt {
  font-size: var(--t--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* Takes the band's own accent so the labels stay readable on a tinted
     section; falls back to the house teal where no accent is set. */
  color: var(--accent, var(--pool));
  padding-top: var(--s-3);
}
.detail-list dd {
  margin: 0 0 var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-0);
}

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li {
  position: relative;
  padding: var(--s-3) 0 var(--s-3) var(--s-6);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-0);
  max-width: var(--measure);
}
.plain-list li:first-child { padding-top: 0; }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(var(--s-3) + 0.62em);
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--pink);
}
.plain-list li:first-child::before { top: 0.62em; }

/* --- 23. Tour band ------------------------------------------------------- */

.tour-band {
  position: relative;
  background: var(--pink);
  padding-block: clamp(1.5rem, 2.6vw, 2rem);
  overflow: hidden;
  border-top: 6px solid var(--rose);
}
.tour-band-inner { position: relative; display: grid; gap: var(--s-5); align-items: center; }
.tour-band h2 { font-size: var(--t-4); margin-bottom: var(--s-2); }
.tour-band p { margin: 0; color: var(--ink); max-width: 46ch; }
.tour-band .btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.tour-band .breeze {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 300px;
  opacity: 0.3;
  pointer-events: none;
}

/* --- 24. Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #EDE8EC;
  padding-block: clamp(1.75rem, 3vw, 2.25rem) var(--s-5);
  font-size: var(--t-0);
}
.site-footer h3 {
  color: var(--white);
  font-family: var(--sans);
  font-size: var(--t--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.site-footer a { color: #F6DCD8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-grid { display: grid; gap: var(--s-7) var(--s-6); grid-template-columns: 1fr; }
.footer-brand .logo-name { color: var(--white); font-size: 1.4rem; }
.footer-brand .logo-over { color: var(--pink); }
.footer-tagline {
  margin: var(--s-3) 0 0;
  color: var(--pink);
  font-family: var(--serif);
  font-size: var(--t-1);
  line-height: 1.4;
}
.footer-brand address {
  font-style: normal;
  margin-top: var(--s-4);
  line-height: 1.8;
  color: #DCCED3;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.footer-col li a { display: flex; align-items: center; min-height: 48px; }
.footer-nav { column-gap: var(--s-5); }
.footer-nav li + li { border-top: 0; }
.footer-col p { color: #D5D1DE; line-height: 1.8; }

.footer-legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(242, 184, 198, 0.22);
  font-size: var(--t--1);
  color: #C9BBC0;
}
.footer-legal p { margin: 0 0 var(--s-2); max-width: 80ch; }
.footer-legal p:last-child { margin-bottom: 0; }

/* --- 25. Responsive ------------------------------------------------------ */

.no-js .nav-toggle { display: none; }
/* Without scripting the size buttons would do nothing, so they stay away */
.no-js .textsize { display: none; }

@media (max-width: 1079px) {
  :root { --header-h: 160px; }

  .nav-toggle { display: inline-flex; order: 4; }

  .main-nav {
    display: none;
    order: 10;
    width: 100%;
    margin-inline: 0;
    padding-bottom: var(--s-4);
    border-top: 1px solid var(--line);
  }
  .main-nav.is-open { display: block; }
  .no-js .main-nav { display: block; }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li + li { border-top: 1px solid var(--line-soft); }
  .main-nav a {
    min-height: 54px;
    padding-inline: 0;
    border-radius: 0;
    font-size: var(--t-1);
  }
  .main-nav a[aria-current="true"]::after {
    left: -12px; right: auto;
    top: 10px; bottom: 10px;
    width: 3px; height: auto;
  }

  .bar-inner { flex-wrap: wrap; gap: var(--s-4); min-height: 68px; }
  .bar-action { order: 5; margin-left: 0; }
}

@media (max-width: 560px) {
  :root { --header-h: 150px; }
  .utility-note { display: none; }
  /* Phone leads on a phone; the text-size control follows */
  .utility-side { width: 100%; flex-direction: row-reverse; justify-content: space-between; gap: var(--s-2); }
  .textsize-label { display: none; }

  .masthead-media { min-height: 460px; }
  .masthead-copy h1 { font-size: 2rem; max-width: 18ch; }
  .masthead-copy p { font-size: var(--t-1); }
  .masthead-scrim {
    background: linear-gradient(to bottom,
      rgba(27, 18, 22, 0.34) 0%,
      rgba(27, 18, 22, 0.18) 24%,
      rgba(27, 18, 22, 0.6) 62%,
      rgba(27, 18, 22, 0.86) 100%);
  }
  .bar-action .btn { padding-inline: 1.15rem; }
}

@media (min-width: 620px) {
  .cards, .quotes, .menu-cols, .gallery { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-list { grid-template-columns: repeat(2, 1fr); }
  .icon-row { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-6); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .detail-list { grid-template-columns: minmax(9rem, auto) 1fr; column-gap: var(--s-5); }
  .detail-list dt {
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: var(--s-3);
    padding-bottom: var(--s-3);
  }
}

@media (min-width: 900px) {
  .cards, .quotes, .menu-cols, .gallery { grid-template-columns: repeat(3, 1fr); }
  .icon-row { grid-template-columns: repeat(4, 1fr); }

  .split { grid-template-columns: 7fr 5fr; }
  .split.media-left { grid-template-columns: 5fr 7fr; }
  .split.media-left .split-media { order: -1; }
  .split.even { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1.7fr 1fr; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-band-inner { grid-template-columns: 1fr auto; gap: var(--s-7); }
}

@media (min-width: 1080px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}

@media (min-width: 1080px) and (max-width: 1339px) {
  .main-nav a { padding-inline: var(--s-2); font-size: 0.95rem; }
  .bar-inner { gap: var(--s-4); }
}

/* Phones: tighter rhythm, and the three-up rows become swipeable */
@media (max-width: 619px) {
  :root { --section: 0.85rem; }
  body { line-height: 1.52; }

  h2 { font-size: 1.7rem; }
  .section-head { margin-bottom: var(--s-4); }
  .section-head p { font-size: var(--t-1); }

  .masthead-media { min-height: 302px; }
  .masthead-copy h1 { font-size: 1.95rem; max-width: 20ch; }
  /* On a phone the title covers most of the photo, and the pale deck behind it
     leaves white type unreadable, so the words sit on a panel of their own. */
  .masthead-copy { padding-bottom: var(--s-3); }
  .masthead-copy .wrap {
    background: rgba(24, 16, 20, 0.72);
    border-radius: var(--r);
    padding: var(--s-3) var(--s-4) var(--s-4);
  }

  /* The menu button keeps its icon only; aria-label carries the name */
  .nav-toggle-label { display: none; }
  .bar-inner { min-height: 58px; gap: var(--s-2); }

  .gallery, .cards, .quotes {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--s-3);
  }
  .gallery > *, .cards > *, .quotes > * { scroll-snap-align: start; }
  .gallery, .cards, .quotes { scrollbar-width: thin; }

  /* Living options and the residence lists swipe too */
  .icon-row, #residences .split.even {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    column-gap: var(--s-5);
    border-top: 0;
  }
  .icon-row > *, #residences .split.even > * { scroll-snap-align: start; }
  .icon-item { border-bottom: 0; padding-top: 0; }
  /* Body copy keeps the full reading size even on a phone */
  .icon-item p { font-size: var(--t-0); }

  /* Badge sits beside the heading rather than above it */
  .icon-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: var(--s-3);
    align-content: start;
  }
  .icon-item .icon-badge { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .icon-item h3 { grid-column: 2; grid-row: 1; align-self: center; }
  .icon-item p { grid-column: 2; grid-row: 2; }

  /* A compact brand lockup leaves the call to action on the first row */
  .logo-over { display: none; }
  .logo-name { font-size: 1.02rem; }
  .logo { min-height: 48px; }
  .logo svg { width: 30px; height: 20px; }
  .bar-action .btn { padding-inline: 0.6rem; font-size: var(--t--1); }
  .nav-toggle { padding-inline: 0.7rem; min-width: 48px; }

  .plain-list li { padding-block: var(--s-2); }
  .form-grid { gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The closing band keeps one button: the outline link repeats the section
     the menu and the footer already reach. */
  .tour-band { padding-block: var(--s-6); }
  .tour-band .btn-outline { display: none; }
  .footer-grid { gap: var(--s-5) var(--s-5); }
  .btn-row { gap: var(--s-3); }

  .feature-figure.square img { aspect-ratio: 16 / 9; }

  textarea { min-height: 76px; }

  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav li + li { border-top: 0; }
  .site-footer { padding-block: var(--s-4) var(--s-3); }
  .footer-legal { margin-top: var(--s-4); padding-top: var(--s-3); }
}

/* --- 25b. The narrowest phones: the header bar fits on one row ----------- */

@media (max-width: 379px) {
  .bar-inner { padding-inline: 0.65rem; gap: var(--s-1); }
  .logo-name { font-size: 0.94rem; }
  .logo svg { width: 26px; height: 18px; }
  .bar-action .btn { padding-inline: 0.5rem; }
  .utility-strip .wrap { padding-inline: 0.65rem; }
}

/* --- 26. Motion and print ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .tour-band, .nav-toggle { display: none; }
  body { font-size: 11pt; }
}
