/* ============================================================
   Villiers Theme — Main Stylesheet
   Faithful reproduction of the approved prototype design.
   Dulux colours: Monument #323233, Navajo White #E2D5BF.
   ============================================================ */

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

:root {
  --monument:       #323233;
  --monument-mid:   #4A4A4C;
  --monument-light: #4A4A4C;
  --navajo:         #E2D5BF;
  --navajo-light:   #F0EAE0;
  --navajo-dark:    #CEC0A8;
  --navajo-deeper:  #CDB99A;
  --accent:         #5F4D31; /* WCAG AA text colour (5.59:1) — darkened from #8B7355 (3.10:1) */
  --accent-light:   #A68C6A;
  --accent-dark:    #493B26; /* kept darker than --accent for hover states */
  --white:          #FDFAF7;
  --nav-height:     68px;
}

html  { scroll-behavior: smooth; }
body  {
  font-family: 'DM Sans', sans-serif;
  background: var(--navajo-light);
  color: var(--monument);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

/* Keyboard focus ring — visible only for keyboard/AT users, not mouse clicks */
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ── Skip-to-content link ─────────────────────────────────────────────────────
   First tab stop on every page; invisible until keyboard-focused, then drops
   in over the nav. Target is #page-wrap (tabindex="-1" so focus moves). */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300; /* above .site-nav (100) and its dropdowns (200) */
  padding: 12px 22px;
  background: var(--monument);
  color: var(--navajo);
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 2.5px solid var(--accent-light);
  outline-offset: -2.5px;
}
#page-wrap:focus { outline: none; }

/* Inline SVG icon set (Tabler Icons) — replaces emoji throughout the theme */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: var(--nav-height);
  background: rgba(253,250,247,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(50,50,51,0.1);
  animation: fadeDown 0.8s ease both;
}
.site-nav.nav--scrolled {
  box-shadow: 0 2px 16px rgba(50,50,51,0.08);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500;
  color: var(--monument); letter-spacing: 0.04em; text-decoration: none;
}
.nav-logo img { height: 40px; width: auto; transition: filter 0.3s; }
.nav-logo:hover img {
  filter: invert(45%) sepia(40%) saturate(400%) hue-rotate(10deg) brightness(0.85);
}
.nav-logo-dot { color: var(--accent); }

.nav-links {
  display: flex; gap: 32px; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--monument-mid); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* Top-level nav items are single-click direct links to their hub page — no
   dropdowns. Each section (Facilities, Living Here, Documents & Forms) presents
   its children as descriptive tiles on the hub page, which is clearer than a
   dropdown (especially Living Here's 11 items) and removes the ambiguous
   "is this a link or a toggle?" parent interaction. */

/* Nav CTA (Login button) */
.nav-cta {
  background: var(--monument) !important; color: var(--navajo-light) !important;
  padding: 9px 20px; border-radius: 2px; transition: background 0.2s !important;
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: var(--white) !important; }

/* Nav user dropdown */
.nav-user-menu { position: relative; }
.nav-user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--navajo-dark);
  list-style: none; padding: 8px 0; min-width: 160px;
  box-shadow: 0 8px 24px rgba(50,50,51,0.1);
}
.nav-user-dropdown.nav-user-dropdown--open { display: block; }
.nav-user-dropdown li a {
  display: block; padding: 10px 20px; font-size: 0.82rem;
  color: var(--monument-mid); text-decoration: none; transition: color 0.2s;
  letter-spacing: 0; text-transform: none;
}
.nav-user-dropdown li a:hover { color: var(--accent); }

/* Nav search */
.nav-search-item { position: relative; display: flex; align-items: center; }
.nav-search-btn {
  background: none; border: none; cursor: pointer; color: var(--monument-mid);
  padding: 6px; display: flex; align-items: center; transition: color 0.2s;
}
.nav-search-btn:hover { color: var(--accent); }
.nav-search-form {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--navajo-dark);
  padding: 10px; box-shadow: 0 8px 24px rgba(50,50,51,0.1); z-index: 200;
}
.nav-search-form--open { display: block; }
.nav-search-form input[type="search"] {
  width: 280px; padding: 10px 14px; border: 1px solid var(--navajo-dark);
  font-family: inherit; font-size: 0.9rem; color: var(--monument);
  outline: none; border-radius: 2px;
}
.nav-search-form input[type="search"]:focus { border-color: var(--accent); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--monument); transition: transform 0.2s, opacity 0.2s;
}

/* ── Page wrap ───────────────────────────────────────────── */
#page-wrap { padding-top: var(--nav-height); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid; grid-template-columns: 1fr 1fr;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 60px 80px 72px;
  background: var(--navajo-light);
  animation: fadeUp 1s 0.3s ease both;
}
.eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  font-weight: 300; line-height: 1.08; color: var(--monument);
  margin-bottom: 24px; letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-body {
  font-size: 0.95rem; font-weight: 300; line-height: 1.8;
  color: var(--monument-light); max-width: 400px; margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-right { position: relative; overflow: hidden; animation: fadeIn 1.2s 0.5s ease both; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
/* Ken Burns — gentle one-time zoom OUT on load, settles at normal scale (no loop) */
@keyframes heroKenBurns { from { transform: scale(1.08) translate(-1.5%, -1%); } to { transform: scale(1); } }
.hero-img { animation: heroKenBurns 10s ease-out 0.4s forwards; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--monument); color: var(--navajo-light);
  padding: 13px 30px; border-radius: 2px; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, transform 0.2s; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); color: var(--white); }

.btn-ghost {
  color: var(--monument-mid); font-size: 0.8rem; font-weight: 400;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s; background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--monument); display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 32px 36px; border-right: 1px solid rgba(255,255,255,0.07); transition: background 0.2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(139,115,85,0.15); }
.stat-number {
  font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 400;
  color: var(--navajo); display: block; margin-bottom: 4px;
}
.stat-label {
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navajo-deeper);
}

/* ── Section base ────────────────────────────────────────── */
section { padding: 88px 72px; }
.section-eyebrow {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 300; line-height: 1.15; color: var(--monument);
  margin-bottom: 20px; max-width: 540px;
}
.section-body {
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: var(--monument-light); max-width: 500px;
}

/* ── About (homepage) ────────────────────────────────────── */
.about {
  background: var(--navajo); display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.about-text { padding-top: 0; }
.about-facts { margin-top: 32px; display: flex; flex-direction: column; }
.fact {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--navajo-dark);
}
.fact:first-child { border-top: 1px solid var(--navajo-dark); }
.fact-icon { color: var(--monument); margin-top: 2px; flex-shrink: 0; width: 28px; }
.fact-text { font-size: 0.87rem; font-weight: 300; line-height: 1.6; color: var(--monument-mid); }
.fact-text strong { font-weight: 500; color: var(--monument); display: block; margin-bottom: 2px; }

/* ── Facilities grid ─────────────────────────────────────── */
.facilities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.facility-card {
  background: var(--navajo-light); padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.facility-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(50,50,51,0.1); }
.facility-icon { color: var(--monument); margin-bottom: 12px; display: block; }
.facility-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 500;
  color: var(--monument); margin-bottom: 6px;
}
.facility-desc { font-size: 0.82rem; font-weight: 300; color: var(--monument-light); line-height: 1.6; }
.facility-hours { font-size: 0.75rem; color: var(--accent); font-weight: 500; margin-top: 6px; letter-spacing: 0.05em; }

/* Full facilities grid (facilities page) */
.facilities-overview { background: var(--navajo-light); }
.facilities-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.forms-grid { grid-template-columns: repeat(2, 1fr); }
.facility-tile {
  background: var(--navajo); padding: 36px 28px;
  transition: transform 0.2s, background 0.2s; position: relative; overflow: hidden;
}
.facility-tile::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.facility-tile:hover::after { transform: scaleX(1); }
.facility-tile:hover { background: var(--navajo-dark); transform: translateY(-2px); }

/* ── Facilities listing — photo cards (design brief item 3) ─────────────── */
.facility-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.facility-photo-card {
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: var(--navajo-light); border: 1px solid var(--navajo-dark); position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.facility-photo-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(50,50,51,0.12); }
.facility-photo-card__media { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--navajo); overflow: hidden; }
/* Image is absolutely positioned so its own aspect ratio can't stretch the box.
   (In flow with height:100%, Chrome sized the box to a tall image's ratio — e.g.
   the Tennis Court photo — while Safari respected 16/9. This makes both match.) */
.facility-photo-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facility-photo-card__media--placeholder {
  display: flex; align-items: center; justify-content: center; color: var(--accent-light);
}
.facility-photo-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.facility-photo-card__title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 500;
  color: var(--monument); margin: 0 0 8px;
}
.facility-photo-card__desc {
  font-size: 0.85rem; font-weight: 300; color: var(--monument-light); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
}
.facility-photo-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.facility-photo-card__hours { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--accent); font-weight: 500; }
.facility-photo-card__tag {
  display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: #9E2A20;
  background: rgba(158,42,32,0.1); padding: 3px 9px; border-radius: 999px;
}
.facility-photo-card__cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500; color: #9E2A20; text-decoration: underline;
  text-underline-offset: 3px; padding: 4px 0; width: fit-content;
}
.facility-photo-card__cta:hover { color: var(--accent-dark); }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--navajo-deeper), transparent);
  margin: 0 72px;
}

/* ── Living Here / Rules grid ────────────────────────────── */
.living-here-page { background: var(--navajo-light); }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
/* Hub variant for sections with only 1–2 tiles (e.g. Documents & Forms): centre
   them instead of leaving an empty third column. Flex handles either count. */
.rules-grid--hub { display: flex; flex-wrap: wrap; justify-content: center; }
.rules-grid--hub .rule-card { flex: 0 1 400px; }
.rule-card {
  background: var(--navajo); padding: 28px 26px; position: relative; overflow: hidden;
  transition: background 0.2s, transform 0.2s;
}
.rule-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.rule-card:hover::after { transform: scaleX(1); }
.rule-card:hover { background: var(--navajo-dark); transform: translateY(-2px); }
.rule-icon { color: var(--monument); margin-bottom: 14px; display: block; }
.rule-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 500;
  color: var(--monument); margin-bottom: 8px;
}
.rule-desc { font-size: 0.82rem; font-weight: 300; color: var(--monument-light); line-height: 1.65; }
.rule-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px; transition: gap 0.2s;
}
.rule-link:hover { gap: 10px; }
.rule-link::after { content: none; }

/* ── Whole-tile click ────────────────────────────────────────
   Single-link tiles become one big clickable target via a stretched
   link (the real <a> keeps keyboard + screen-reader semantics).
   Grid-scoped so the multi-link standalone "Next meeting" card is
   excluded; :has() guards link-less tiles (e.g. Forms "Coming soon"). */
.facilities-full-grid .facility-tile:has(a.rule-link),
.rules-grid .rule-card:has(a.rule-link) { cursor: pointer; }

.facilities-full-grid .facility-tile a.rule-link::after,
.rules-grid .rule-card a.rule-link::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
}

/* Focus indicator for stretched-link tiles.
   The link's ::after covers the whole tile, and WebKit/Safari draws the focus
   OUTLINE around that stretched area — wrapping the entire tile in a box that
   lingers after a mouse click (worst with target="_blank" links, since the link
   keeps focus when you return to the page). So we suppress the boxy outline and
   instead mirror the hover state (background tint + accent bar) on focus — a clear,
   non-alarming keyboard indicator that reads as natural even if it briefly lingers. */
.facilities-full-grid .facility-tile a.rule-link:focus,
.facilities-full-grid .facility-tile a.rule-link:focus-visible,
.rules-grid .rule-card a.rule-link:focus,
.rules-grid .rule-card a.rule-link:focus-visible { outline: none; }

.facilities-full-grid .facility-tile:has(a.rule-link:focus-visible),
.rules-grid .rule-card:has(a.rule-link:focus-visible) { background: var(--navajo-dark); }
.facilities-full-grid .facility-tile:has(a.rule-link:focus-visible)::after,
.rules-grid .rule-card:has(a.rule-link:focus-visible)::after { transform: scaleX(1); }

/* ── Documents ───────────────────────────────────────────── */
.documents-page { background: var(--navajo); padding: 72px; }
/* Optional intro text (page body) shown above a category's file list */
.documents-intro { max-width: 860px; margin-bottom: 44px; }
.documents-intro p { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--monument-light); margin-bottom: 16px; }
.documents-intro p:last-child { margin-bottom: 0; }
.documents-intro h2, .documents-intro h3 { color: var(--monument); margin: 6px 0 12px; }
.documents-intro ul, .documents-intro ol { margin: 0 0 16px 24px; }
.documents-intro li { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--monument-light); margin-bottom: 4px; }
.documents-intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.documents-intro a:hover { color: var(--accent-dark); }
.doc-section { margin-bottom: 60px; }
.doc-section-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400;
  color: var(--monument); margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 2px solid var(--navajo-dark);
}

/* Document year accordion */
.minutes-list { }
.year-group { margin-bottom: 6px; }
.year-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; background: var(--monument); color: var(--navajo);
  cursor: pointer; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; transition: background 0.2s; user-select: none;
}
.year-header:hover { background: var(--monument-mid); }
.chevron { transition: transform 0.3s; font-size: 0.65rem; }
.year-header.open .chevron { transform: rotate(180deg); }
.year-files { border: 1px solid var(--navajo-dark); border-top: none; }
.file-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--navajo-dark);
  background: var(--white); transition: background 0.15s; cursor: pointer;
}
.file-row:last-child { border-bottom: none; }
.file-row:hover { background: rgba(139,115,85,0.06); }

/* Whole-row click — same stretched-link pattern as the facility/rule tiles:
   the real "View →" anchor (which carries the per-file aria-label) covers the
   entire row, so clicking anywhere opens the file. Keyboard focus mirrors the
   hover tint on the row instead of an outline, matching the tile treatment
   (these are target="_blank" links, where WebKit's outline lingers on return). */
.file-row { position: relative; }
.file-row .file-view::after { content: ''; position: absolute; inset: 0; }
.file-row .file-view:focus,
.file-row .file-view:focus-visible { outline: none; }
.file-row:has(.file-view:focus-visible) { background: rgba(139,115,85,0.12); }
.file-info { display: flex; align-items: center; gap: 11px; }
.pdf-badge {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em;
  background: var(--accent); color: var(--white); padding: 3px 6px;
  border-radius: 2px; flex-shrink: 0;
}
.file-name { font-size: 0.86rem; color: var(--monument); }
.file-date { font-size: 0.73rem; color: var(--monument-light); margin-top: 2px; }
.file-view {
  font-size: 0.73rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
  display: flex; align-items: center; gap: 5px; transition: gap 0.2s;
}
.file-view:hover { gap: 9px; }
.drive-notice {
  background: var(--navajo-light); padding: 24px 20px;
  border-left: 3px solid var(--navajo-dark); font-size: 0.88rem;
  color: var(--monument-light); font-weight: 300;
}

/* ── Emergency contacts ──────────────────────────────────── */
.emergency { background: var(--monument); padding: 72px; }
.emergency .section-eyebrow { color: var(--navajo-deeper); }
.emergency .section-title   { color: var(--navajo-light); max-width: 480px; }
.emergency .section-body    { color: var(--navajo-deeper); margin-bottom: 40px; }
.emergency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 40px; }
.emergency-card {
  background: rgba(255,255,255,0.04); padding: 24px 22px;
  border: 1px solid rgba(226,213,191,0.1); transition: background 0.2s;
}
.emergency-card:hover { background: rgba(255,255,255,0.08); }
.emergency-card--bm {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; grid-column: 1 / -1;
}
.emergency-card--defib {
  background: rgba(196,68,58,0.12); border: 1px solid rgba(196,68,58,0.4);
}
.emergency-card--defib:hover { background: rgba(196,68,58,0.18); }
.emergency-card--defib .emerg-type { color: #e07a72; }
.emergency-card--defib .emerg-phone { color: var(--navajo-light); font-weight: 400; }
.emerg-type {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--navajo-deeper); margin-bottom: 6px;
}
.emerg-name { font-size: 0.95rem; font-weight: 400; color: var(--navajo); margin-bottom: 4px; }
.emerg-phone { font-size: 0.88rem; font-weight: 300; color: var(--navajo-dark); }
.emerg-note {
  font-size: 0.75rem; color: var(--navajo-dark); margin-top: 28px;
  font-style: italic; line-height: 1.6; max-width: 700px;
}

/* ── Contacts ────────────────────────────────────────────── */
.contacts-page { background: var(--navajo); padding: 72px; }
.contacts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; align-items: stretch; }
.contact-col { display: flex; flex-direction: column; gap: 2px; }
.contact-panel { background: var(--navajo-light); padding: 36px 32px; }
.contact-col .contact-panel:last-child { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-group-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500;
  color: var(--monument); margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--navajo-dark);
}
.contact-item { padding: 14px 0; border-bottom: 1px solid var(--navajo-dark); }
.contact-item:last-child { border-bottom: none; }
.contact-panel-intro { font-size: 0.82rem; font-weight: 300; color: var(--monument-light); line-height: 1.6; margin-bottom: 20px; }
.contact-phone { font-size: 0.8rem; color: var(--monument-mid); margin-top: 4px; }
.contact-name { font-size: 1rem; font-weight: 500; color: var(--monument); }
.contact-role { font-size: 0.78rem; font-weight: 300; color: var(--monument-light); margin-top: 2px; }
.contact-email {
  font-size: 0.8rem; color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
  margin-top: 4px; display: block; transition: color 0.2s;
}
.contact-email:hover { color: var(--accent-dark); }

/* ── News ────────────────────────────────────────────────── */
.news-archive { background: var(--navajo-light); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 44px; }
.news-card {
  background: var(--navajo); overflow: hidden;
  transition: transform 0.2s; text-decoration: none; color: inherit; display: block;
}
.news-card:hover { transform: translateY(-4px); }
.news-img { height: 150px; position: relative; overflow: hidden; }
.news-card-img { width: 100%; height: 100%; object-fit: cover; }
.news-tag {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--monument); color: var(--navajo); padding: 4px 9px; border-radius: 2px;
}
.news-body { padding: 24px; }
.news-date { font-size: 0.7rem; color: var(--monument-light); letter-spacing: 0.08em; margin-bottom: 8px; text-transform: uppercase; }
.news-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 500;
  color: var(--monument); line-height: 1.3; margin-bottom: 10px;
}
.news-title a { text-decoration: none; color: inherit; }
.news-title a:hover { color: var(--accent); }
.news-excerpt { font-size: 0.82rem; font-weight: 300; color: var(--monument-light); line-height: 1.65; }
.post-nav { padding: 40px 72px; background: var(--navajo-light); }
.pagination { margin-top: 48px; text-align: center; }

/* ── Page header ─────────────────────────────────────────────────────────
   Hero-band rule: ONE cream band for every page (standardised 2026-07-02;
   the old dark variant on Meetings/Documents is gone). Home has no
   page-header band at all — it keeps its own full photographic hero, a
   deliberate exception, not an inconsistency to fix.
   ────────────────────────────────────────────────────────────────────── */
.page-header {
  background: var(--navajo); padding: 36px 72px 28px;
  border-bottom: 1px solid var(--navajo-dark);
  position: relative; overflow: hidden;
}
/* Faint crest watermark — brand motif, bleeds off the right edge */
.page-header::after {
  content: ''; position: absolute; top: 50%; right: -60px; transform: translateY(-50%);
  width: 300px; height: 300px;
  background: url(../images/villiers-logo.png) no-repeat center / contain;
  opacity: 0.05; pointer-events: none; z-index: 0;
}
.page-header-inner { position: relative; z-index: 1; }
.breadcrumb-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb-link:hover { color: var(--accent-dark); }
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300; line-height: 1.1; color: var(--monument);
  margin-bottom: 16px;
}
.page-intro {
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: var(--monument-light); max-width: 560px;
}

/* ── Search ──────────────────────────────────────────────── */
.search-page-form { display: flex; gap: 10px; margin-top: 22px; max-width: 520px; }
.search-page-form input[type="search"] {
  flex: 1; padding: 12px 16px; border: 1px solid var(--navajo-dark);
  background: var(--white); font-family: inherit; font-size: 0.95rem; color: var(--monument);
  border-radius: 2px; outline: none; transition: border-color 0.2s;
}
.search-page-form input[type="search"]:focus { border-color: var(--accent); }
.search-page-form button {
  padding: 12px 24px; background: var(--accent); color: var(--white); border: none;
  font-family: inherit; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em;
  border-radius: 2px; cursor: pointer; transition: background 0.2s;
}
.search-page-form button:hover { background: var(--accent-dark); }

.villiers-search-results { max-width: 860px; margin: 0 auto; }
.search-empty { font-size: 1rem; font-weight: 300; color: var(--monument-light); }
.search-note {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--navajo-dark);
  font-size: 0.88rem; font-weight: 300; color: var(--monument-light);
}
.search-group { margin-bottom: 44px; }
.search-group-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400;
  color: var(--monument); margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--navajo-dark); display: flex; align-items: center; gap: 10px;
}
.search-count {
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600;
  background: var(--navajo); color: var(--accent); padding: 2px 9px; border-radius: 999px;
}
.search-list { list-style: none; margin: 0 !important; padding: 0; }
.search-item { padding: 16px 0; border-bottom: 1px solid rgba(206,192,168,0.5); }
.search-item:last-child { border-bottom: none; }
.search-item--doc, .search-item--form { display: flex; align-items: flex-start; gap: 14px; }
.search-item-body { flex: 1; }
.search-item-icon { color: var(--monument); display: flex; align-items: center; }
.search-item-title {
  font-size: 1.02rem; font-weight: 500; color: var(--monument); text-decoration: none;
  display: inline-block; transition: color 0.2s;
}
.search-item-title:hover { color: var(--accent); }
.search-item-excerpt { font-size: 0.88rem; font-weight: 300; line-height: 1.6; color: var(--monument-light); margin-top: 4px; }
.search-item-meta { font-size: 0.8rem; color: var(--monument-light); margin-top: 4px; }
.search-item-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.search-item-action {
  flex-shrink: 0; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
  padding-top: 2px; transition: color 0.2s;
}
.search-item-action:hover { color: var(--accent-dark); }
@media (max-width: 600px) {
  .search-page-form { flex-direction: column; }
}
.post-meta {
  font-size: 0.78rem; color: var(--monument-light); letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 8px;
}

/* ── Generic page content ────────────────────────────────── */
.page-content { background: var(--navajo-light); padding: 60px 72px; }
/* Centred so the reading column's whitespace is balanced on both sides — a
   left-aligned column looks lopsided on pages that place an image beside the
   text (e.g. Speed Limit). */
.page-content--narrow { max-width: 760px; margin: 0 auto; }
.page-content p { font-size: 1rem; font-weight: 300; line-height: 1.8; margin-bottom: 20px; color: var(--monument-light); }
.page-content h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 400;
  color: var(--monument); margin: 36px 0 16px; line-height: 1.2;
}
.page-content h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 500;
  color: var(--monument); margin: 28px 0 12px;
}
.page-content .wp-block-media-text .wp-block-media-text__content { padding: 0; }
.page-content ul, .page-content ol, .page-content .wp-block-list { margin: 0 0 20px 36px !important; }
.page-content li, .page-content .wp-block-list li { font-size: 1rem !important; font-weight: 300; line-height: 1.8; color: var(--monument-light); margin-bottom: 0; }
.page-content a,
.facility-detail-content a {
  color: var(--accent); text-decoration: none; padding-bottom: 2px;
  background-image: linear-gradient(var(--accent-dark), var(--accent-dark));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size 0.3s ease, color 0.2s;
}
.page-content a:hover,
.facility-detail-content a:hover { color: var(--accent-dark); background-size: 100% 1.5px; }
/* Reveal-on-hover for body links that aren't already underlined by default */
.footer-links a {
  background-image: linear-gradient(var(--navajo), var(--navajo));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size 0.3s ease, color 0.2s;
}
.footer-links a:hover { background-size: 100% 1px; }
@media (prefers-reduced-motion: reduce) {
  .page-content a, .facility-detail-content a, .footer-links a { transition: color 0.2s; }
}

/* Centre captions under centred images (block + classic editor) */
.page-content figcaption,
.page-content .wp-element-caption,
.page-content .wp-caption-text { text-align: center !important; }

/* ── About page ──────────────────────────────────────────── */
.about-page { max-width: 860px; margin: 0 auto; }

.about-map { margin: 0 0 48px; text-align: center; scroll-margin-top: calc(var(--nav-height) + 24px); border-radius: 4px; }
.about-map:target { animation: mapTargetGlow 2.4s ease-out 1; }
@keyframes mapTargetGlow {
  0%   { box-shadow: 0 0 0 0 rgba(139,115,85,0); }
  15%  { box-shadow: 0 0 0 6px rgba(139,115,85,0.55); }
  100% { box-shadow: 0 0 0 0 rgba(139,115,85,0); }
}
@media (prefers-reduced-motion: reduce) {
  .about-map:target { animation: none; }
}
.about-map__img { width: 100%; max-width: 860px; border-radius: 4px; display: block; margin: 0 auto; }
.about-map__caption {
  margin-top: 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); text-align: center;
}

.about-stats { margin: 0 0 56px; grid-template-columns: repeat(3, 1fr); }

.about-section { margin-bottom: 48px; border-top: 1px solid var(--navajo-deep, #D4C4A8); padding-top: 36px; }
.about-section:first-of-type { border-top: none; padding-top: 0; }
.about-section p { max-width: 760px; }

.about-cta {
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid var(--navajo-deep, #D4C4A8);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.btn-primary {
  display: inline-block; padding: 14px 28px;
  background: var(--accent); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.04em; text-decoration: none; border-radius: 2px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary {
  display: inline-block; padding: 14px 28px;
  background: transparent; color: var(--accent);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.04em; text-decoration: none; border-radius: 2px;
  border: 1.5px solid var(--accent); transition: all 0.2s;
}
.btn-secondary:hover { background: var(--accent); color: #fff; }

/* ── Auth pages (login/register) ─────────────────────────── */
.auth-section {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  background: var(--navajo-light); padding: 60px 24px;
}
.auth-panel {
  background: var(--white); padding: 52px 48px; max-width: 480px; width: 100%;
  border: 1px solid var(--navajo-dark);
}
.auth-title {
  font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 300;
  color: var(--monument); margin-bottom: 12px; line-height: 1.1;
}
.auth-intro {
  font-size: 0.87rem; font-weight: 300; color: var(--monument-light);
  line-height: 1.7; margin-bottom: 32px;
}

/* Forms */
.villiers-form-wrap {}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--monument); margin-bottom: 8px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"] {
  width: 100%; padding: 11px 14px;
  background: var(--navajo-light); border: 1px solid var(--navajo-dark);
  color: var(--monument); font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 300; border-radius: 0;
  transition: border-color 0.2s; outline: none;
}
.form-row input:focus { border-color: var(--accent); }
.form-hint { font-size: 0.74rem; color: var(--monument-light); margin-top: 6px; display: block; }

/* Show/hide password toggle — JS wraps each password field in .pw-field and
   appends the reveal button. Padding-right keeps typed text clear of it. */
.pw-field { position: relative; display: block; }
.pw-field input[type="text"],
.pw-field input[type="password"] { padding-right: 46px; }
.pw-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 44px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  background: none; border: none; cursor: pointer;
  color: var(--monument-light); transition: color 0.2s;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--accent); }
.pw-toggle svg { display: block; pointer-events: none; }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.87rem; font-weight: 300; color: var(--monument-mid); cursor: pointer;
}
.radio-label input { margin: 0; accent-color: var(--accent); }
.form-row--inline { display: flex; justify-content: space-between; align-items: center; }
.form-link { font-size: 0.8rem; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-link:hover { color: var(--accent-dark); }
.form-footnote { font-size: 0.8rem; color: var(--monument-light); margin-top: 20px; }
.form-footnote a { color: var(--accent); }
.villiers-form-error {
  background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b;
  padding: 12px 16px; margin-bottom: 20px; font-size: 0.84rem;
}
.villiers-form-success {
  background: #f0fdf4; border: 1px solid #86efac; color: #166534;
  padding: 12px 16px; font-size: 0.84rem; line-height: 1.6;
}

/* ── My Account page ─────────────────────────────────────── */
.account-details { border-top: 1px solid var(--navajo-dark); margin-bottom: 4px; }
.account-detail {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--navajo-dark);
}
.account-detail-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); flex-shrink: 0;
}
.account-detail-value { font-size: 0.9rem; color: var(--monument); text-align: right; word-break: break-word; }
.account-footnote { margin-top: 12px; margin-bottom: 32px; }
.account-subheading {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 500;
  color: var(--monument); margin-bottom: 18px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--monument); padding: 60px 72px 36px; color: var(--navajo-deeper); }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1.4fr 1fr; gap: 48px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 28px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400;
  color: var(--navajo); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.footer-logo-img {
  filter: sepia(30%) hue-rotate(330deg) saturate(150%) brightness(0.9);
}
.footer-logo span { color: var(--accent-light); }
.footer-desc { font-size: 0.82rem; font-weight: 300; line-height: 1.75; color: var(--navajo-deeper); }
.footer-heading {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navajo-deeper); margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
/* Explore list flows into two columns (4+4 for an owner) to keep the footer short */
.footer-links--split { column-count: 2; column-gap: 36px; }
.footer-links--split li { break-inside: avoid; }
.footer-links a { font-size: 0.82rem; font-weight: 300; color: rgba(205,185,154,0.75); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--navajo); }
.footer-links span { font-size: 0.82rem; font-weight: 300; color: rgba(205,185,154,0.55); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(205,185,154,0.5);
}
/* Live theme version — deliberately faint, for at-a-glance deploy confirmation */
.footer-version { opacity: 0.6; }

/* ── Getting Started page ─────────────────────────────────── */
.gs-note, .gs-help {
  background: var(--navajo); border-left: 4px solid var(--accent);
  padding: 18px 22px; line-height: 1.75; font-size: 1rem; color: var(--monument-light);
}
.gs-note { margin: 0 0 32px; }
.gs-help { margin: 12px 0 0; }
.gs-note strong, .gs-help strong { color: var(--monument); font-weight: 500; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  section { padding: 72px 48px; }
  .site-nav { padding: 0 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer { padding: 52px 48px 32px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .emergency-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nav switches to the hamburger menu at a wider breakpoint than the rest of
   the mobile layout — the full set of nav items (incl. "Documents & Forms")
   needs more room than 900px before it starts crowding/overlapping the logo. */
@media (max-width: 1300px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--navajo-dark);
    padding: 16px 0 max(16px, env(safe-area-inset-bottom));
    /* dvh excludes iOS Safari's bottom bar; vh fallback for older browsers */
    max-height: calc(100vh - var(--nav-height));
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto; z-index: 99;
  }
  .nav-links.nav-links--open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 14px 32px;
    font-size: 0.82rem; letter-spacing: 0.08em;
  }
  .nav-login-item { padding: 12px 32px; }
  /* .nav-links a specificity (0,1,1) beats bare .nav-cta — qualify the
     selector so the Login <a> stays a compact button, not a full-width row */
  .nav-links a.nav-cta { display: inline-block; padding: 9px 20px; }
  /* Account dropdown: expand inline in the stacked menu (same treatment as
     search) instead of an absolute popover that hangs past the panel edge */
  .nav-user-dropdown {
    position: static; box-shadow: none; border: none;
    min-width: 0; padding: 8px 0 0; background: transparent;
  }
  .nav-user-dropdown li a { padding: 12px 20px; }
  /* Search: show the input directly inside the stacked mobile menu */
  .nav-search-item { padding: 12px 32px; }
  .nav-search-btn { display: none; }
  .nav-search-form {
    position: static; display: block; border: none; box-shadow: none;
    padding: 0; background: transparent;
  }
  .nav-search-form input[type="search"] { width: 100%; }
}

@media (max-width: 900px) {
  /* Stack hero vertically */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 60px 32px; order: 2; }
  .hero-right { order: 1; height: 55vw; min-height: 260px; }

  /* Grids */
  .about { grid-template-columns: 1fr; gap: 48px; }
  .facilities-grid { grid-template-columns: 1fr 1fr; }
  .facilities-full-grid { grid-template-columns: 1fr 1fr; }
  .facility-photo-grid { grid-template-columns: 1fr 1fr; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr; gap: 2px; }
  .divider { margin: 0 32px; }
  .documents-page { padding: 48px 32px; }
  .contacts-page { padding: 48px 32px; }
  .emergency { padding: 48px 32px; }
  .page-header { padding: 44px 32px 36px; }
  .page-content { padding: 48px 32px; }
  .post-nav { padding: 32px; }
}

@media (max-width: 600px) {
  section { padding: 56px 24px; }
  .site-nav { padding: 0 20px; }
  .hero-left { padding: 44px 24px; }
  .hero-title { font-size: 2.4rem; }
  .facilities-grid { grid-template-columns: 1fr; }
  .facilities-full-grid { grid-template-columns: 1fr; }
  .facility-photo-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .emergency-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 44px 24px 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .auth-panel { padding: 36px 24px; }
  .about-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
  .documents-page { padding: 32px 20px; }
  .contacts-page { padding: 32px 20px; }
  .emergency { padding: 36px 20px; }
  .page-header { padding: 36px 24px 28px; }
  .page-content { padding: 36px 24px; }
  .divider { margin: 0 24px; }

  /* ≥44px tap target on the small text links (design brief item 4) */
  .rule-link, .contact-email, .file-view, .search-item-action, .facility-photo-card__cta, .facility-rules-link {
    padding-top: 15px; padding-bottom: 15px;
  }
}

/* ── Page header inner ───────────────────────────────────── */
.page-header-inner { max-width: 860px; }

/* ── Facility detail page ────────────────────────────────── */
/* "Find it" chip under the facility hero */
.facility-chips {
  max-width: 1100px; margin: 0 auto; padding: 22px 72px 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navajo); padding: 9px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 400; color: var(--monument);
  border: 1px solid var(--navajo-dark);
}
.chip .chip-ico { display: inline-flex; }
.chip .chip-label {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-right: 2px;
}
a.chip { text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; }
a.chip:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
a.chip:hover .chip-label { color: rgba(255,255,255,0.85); }
a.chip .chip-arrow { transition: transform 0.2s; }
a.chip:hover .chip-arrow { transform: translateX(3px); }

.facility-detail-page { background: var(--navajo-light); padding: 60px 72px; }
.facility-detail-wrap {
  display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start;
  max-width: 1100px;
}
.facility-detail-content p { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--monument-light); margin-bottom: 16px; }
.facility-detail-content ul, .facility-detail-content ol, .facility-detail-content .wp-block-list { margin: 0 0 20px 36px !important; }
.facility-detail-content li, .facility-detail-content .wp-block-list li { font-size: 1rem !important; font-weight: 300; line-height: 1.8; color: var(--monument-light); margin-bottom: 0; }
.facility-info-panel { background: var(--navajo); padding: 28px 26px; }
.facility-info-block { margin-bottom: 24px; }
.facility-info-block:last-child { margin-bottom: 0; }
.facility-info-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.facility-info-value {
  font-size: 0.9rem; font-weight: 400; color: var(--monument); line-height: 1.5;
}
.facility-rules-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 400; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s;
}
.facility-rules-link:hover { color: var(--accent-dark); }
.facility-detail-back { margin-top: 44px; }

@media (max-width: 900px) {
  .facility-detail-wrap { grid-template-columns: 1fr; gap: 36px; }
  .facility-detail-page { padding: 48px 32px; }
  .facility-chips { padding: 20px 32px 0; }
}
@media (max-width: 600px) {
  .facility-detail-page { padding: 36px 24px; }
  .facility-chips { padding: 18px 24px 0; }
}

/* ── WordPress admin bar offset ──────────────────────────── */
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
}

/* ── Scroll-reveal animations ────────────────────────────── */
/* The .reveal class is added by JS only, so content stays fully
   visible if JavaScript is disabled. Elements lift + fade in once
   they scroll into view (.is-visible). */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s cubic-bezier(.2, .7, .2, 1),
              transform .45s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Safety net: if reduced motion is requested, never hide or move
   content even if the .reveal class is present. */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Facility hero image ─────────────────────────────────── */
.facility-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}
.facility-hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .facility-hero, .facility-hero-img { height: 280px; max-height: 280px; }
}

/* ── Facility photo gallery ──────────────────────────────── */
.facility-gallery-section {
  margin-top: 8px;
}
.facility-gallery-section .section-title {
  margin-bottom: 24px;
}
.facility-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.facility-gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 1px 2px rgba(50, 50, 51, 0.08);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1),
              box-shadow .45s ease;
}
.facility-gallery-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(50, 50, 51, 0.18);
}
.fg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.facility-gallery-tile:hover .fg-photo {
  transform: scale(1.05);
}
.fg-scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: linear-gradient(to top,
    rgba(50, 50, 51, 0.82) 0%,
    rgba(50, 50, 51, 0.45) 45%,
    rgba(50, 50, 51, 0) 100%);
  pointer-events: none;
}
.fg-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  color: var(--navajo-light);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}
@media (max-width: 820px) {
  .facility-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 520px) {
  .facility-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .facility-gallery-tile,
  .fg-photo {
    transition: none !important;
  }
  .facility-gallery-tile:hover { transform: none; }
  .facility-gallery-tile:hover .fg-photo { transform: none; }
}
