:root {
  --brand-navy: #15243b;
  --brand-gold: #c5a265;
  --brand-stone: #f7f5f2;
  --brand-text: #2d3138;
  --font-sans: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif, var(--pico-font-family-emoji);
  --font-serif: "Playfair Display Variable", Georgia, "Times New Roman", serif;
  --pico-font-family-sans-serif: var(--font-sans);
  --pico-font-family: var(--font-sans);
}

/* The site ships one light theme, but Pico's reset colours text elements
   (<p>, <ul>, <table>, <address>…) directly with var(--pico-color) — and in
   system dark mode that resolves to Pico's pale #c2c7d0. On our stone and
   white backgrounds the body copy washes out (classic mobile-Safari report:
   headings fine, paragraphs faint grey). Pin the light tokens here, after
   pico.css loads, so device dark mode can't touch the palette. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: light;
    --pico-color: var(--brand-text);
    --pico-muted-color: #5a6068;
    --pico-background-color: var(--brand-stone);
    --pico-muted-border-color: rgb(231, 234, 239.5);
  }
}

/* Same mechanism on dark surfaces: without this, paragraphs, lists, and
   tables inside navy bands inherit Pico's dark ink instead of the band's
   light text. Overriding the token (rather than a `p` colour rule) keeps
   every nested class-based colour working as written. */
.band--navy,
.site-footer {
  --pico-color: rgba(255, 255, 255, 0.88);
  --pico-muted-color: rgba(255, 255, 255, 0.7);
}

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

body {
  background: var(--brand-stone);
  color: var(--brand-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

header nav a {
  color: var(--brand-navy);
  font-weight: 500;
  letter-spacing: 0.01em;
}

header nav a:hover {
  color: var(--brand-gold);
}

h1,
h2,
h3,
h4 {
  color: var(--brand-navy);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
  margin-top: 2.5rem;
}

a {
  color: var(--brand-navy);
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
  text-underline-offset: 0.15em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-gold);
  text-decoration-color: var(--brand-navy);
}

::selection {
  background: rgba(197, 162, 101, 0.25);
  color: var(--brand-navy);
}

button,
[role="button"],
.pico button {
  background: var(--brand-navy) !important;
  color: #fff !important;
  border: none;
}

.container {
  max-width: 820px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

main,
header,
footer {
  padding-block: 0.75rem !important;
}

main {
  padding-top: 2rem !important;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.5rem 0;
  border-bottom: 1px solid #c5a26566;
}

@media (max-width: 640px) {
  header nav {
    font-size: 0.75rem;
  }
}

header nav a {
  white-space: nowrap;
  padding: 0;
}

.pipe {
  color: var(--brand-gold);
  opacity: 0.6;
  font-size: 0.85em;
  margin: 0 0.2rem;
}

h1 {
  font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.75rem);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

/* The homepage H1 sits directly under the full-bleed hero: give it
   more presence than interior-page titles. */
header.hero + main h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  margin-top: 0.5rem;
}

h2 {
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  margin-top: 2.75rem;
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
  margin-top: 2rem;
}

h4 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
}

/* Hero section */
header.hero {
  --hero-tint: rgba(197, 162, 101, 0.32);
  min-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0 !important;
  margin-bottom: 2rem;
  background: var(--brand-navy);
}

/* Photo lives in a real <picture> (see Base.astro) so the browser can
   pick the right AVIF/WebP size and prioritize it as the LCP element. */
header.hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

header.hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Warm the photo the way the old full-header `filter` did, but scoped
     to this one static layer instead of re-filtering text and SVGs. */
  filter: sepia(0.55) saturate(1.4);
}

header.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(21, 36, 59, 0.45) 0%,
      rgba(21, 36, 59, 0.5) 40%,
      rgba(21, 36, 59, 0.62) 70%,
      rgba(21, 36, 59, 0.72) 100%
    ),
    var(--hero-tint);
  z-index: 1;
}

header.hero > * {
  position: relative;
  z-index: 2;
}

/* Logo top-left */
header.hero .logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: block;
}

header.hero .logo img {
  height: 100px;
  width: auto;
  display: block;
  margin-top: -0.71em;
  /* padding: 1rem 1rem 0; */
}

/* Nav top-right */
header.hero nav {
  align-self: flex-end;
  padding: 1rem 1rem 0;
  border-bottom: none;
  justify-content: flex-end;
}

header.hero nav a {
  color: #fff;
  font-weight: 300;
  text-decoration: none;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

header.hero nav a:hover {
  color: var(--brand-gold);
}

header.hero .pipe {
  /* color: rgba(197, 162, 101, 0.5); */
  color: rgba(240, 216, 174, 0.966);
}

header.hero .header-sep {
  display: none;
}

.hero-tagline {
  margin-top: 15rem;
}

header.hero + main {
  margin-top: -1rem;
  position: relative;
  z-index: 3;
}

/* Compact header (non-homepage) — solid navy: the old photo band sat
   behind an 85-90% navy overlay, so it only added weight, not detail. */
header.compact {
  min-height: auto;
  padding: 0.25rem 0;
  border-bottom: 1px solid #c5a26566;
  border-radius: 0 0 6px 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  background: var(--brand-navy);
}

header.compact .logo {
  position: static;
  display: inline;
}

header.compact .logo img {
  height: 55px !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 55px !important;
  display: inline-block !important;
  object-fit: contain !important;
}

header.compact nav {
  padding: 0;
  border-bottom: none;
  justify-content: center;
  font-size: 0.75rem;
}

header.compact nav a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

header.compact nav a:hover {
  color: var(--brand-gold);
}

header.compact .pipe {
  color: #fff;
}

header.compact + main {
  margin-top: 0;
  position: relative;
  z-index: 3;
}

/* Site footer — solid navy so contact text always passes contrast
   (the old photo scrim was weakest exactly where the text sits). */
.site-footer {
  background: var(--brand-navy);
  border-radius: 6px 6px 0 0;
  text-align: right;
  padding-block: 0.75rem !important;
  border-top: 1px solid #c5a26566;
}

.site-footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-right: 1rem;
  padding-block: 0.75rem;
}

.site-footer .contact-info {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.site-footer .contact-info span {
  display: inline;
}

.site-footer .contact-info a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
  text-underline-offset: 0.15em;
  font-weight: 500;
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

.site-footer .copyright {
  font-size: 9px;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.8);
}

/* NAP block — name, phone, email, address. Must read exactly like the
   Google Business Profile for local ranking signals. */
.site-footer address.contact-info {
  font-style: normal;
}

.site-footer .contact-info .nap-line {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
  margin: 0.25rem 1rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.site-footer .footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer .footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
  text-underline-offset: 0.15em;
}

/* Mobile adjustments */
@media (max-width: 1000px) {
  /* Logo is absolute top-left and the nav wraps into it below ~1000px,
     so stack them: logo centered, nav centered underneath. */
  header.hero .logo {
    position: static;
    align-self: center;
    margin-top: 1rem;
  }

  header.hero .logo img {
    margin-top: 0;
  }

  header.hero nav {
    align-self: center;
    justify-content: center;
    padding-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  header.hero {
    min-height: 60vh;
  }

  header.hero .logo img {
    height: 125px;
  }

  header.hero nav a {
    font-size: 0.7rem;
  }

  .hero-tagline {
    margin-top: 6rem;
  }
}

@media (max-width: 640px) {
  header.hero {
    min-height: 50vh;
  }

  header.hero .logo {
    top: 0.5rem;
    left: 0.5rem;
  }

  header.hero nav {
    justify-content: center;
    padding-top: 0.5rem;
  }

  header nav a {
    padding: 0.5rem 0.3rem;
  }

  .hero-tagline {
    margin-top: 4rem;
  }

  .site-footer .footer-content {
    justify-content: center;
    margin-right: 0;
    gap: 0.5rem 0.75rem;
  }

  .site-footer address.contact-info {
    text-align: center;
  }

  .site-footer .footer-nav {
    justify-content: center;
    margin-inline: 1rem;
  }

  .site-footer .copyright {
    text-align: center;
    margin-right: 0;
  }
}

/* ---------------------------------------------------------------- *
   Presentation components (Phases 2-3)
 * ---------------------------------------------------------------- */

:root {
  /* Darker gold that passes contrast as small text on light backgrounds */
  --brand-gold-ink: #8a6a34;
}

/* Uppercase section label above headings */
.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold-ink);
}

.eyebrow + h1,
.eyebrow + h2,
.eyebrow + h3 {
  margin-top: 0.2rem;
}

.band--navy .eyebrow {
  color: #e8c78f;
}

.lede {
  font-size: 1.06rem;
  line-height: 1.7;
}

/* Full-bleed section bands inside the 820px container.
   Content stays aligned with the container via the padding calc.
   margin-block: 0 kills Pico's default section margin so adjacent
   bands butt seamlessly (no stone sliver between white and navy). */
.band {
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: clamp(2.25rem, 4vw, 3.25rem) max(0.75rem, calc(50vw - 398px));
}

.band--white {
  background: #fff;
  border-block: 1px solid rgba(197, 162, 101, 0.25);
}

.band--navy {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.88);
}

.band--navy h1,
.band--navy h2,
.band--navy h3 {
  color: #fff;
}

.band--navy a:not(.btn) {
  color: #fff;
  text-decoration-color: var(--brand-gold);
}

.band--navy a:not(.btn):hover {
  color: var(--brand-gold);
}

.band--navy p {
  max-width: 60ch;
}

/* Card grids: index-page link lists presented as cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.1rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.card-grid > li {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 1.1rem 1.2rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(197, 162, 101, 0.35);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(21, 36, 59, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card-grid > li:hover,
.card-grid > li:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -14px rgba(21, 36, 59, 0.45);
  border-color: var(--brand-gold);
}

.card-grid > li > a {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-navy);
  text-decoration: none;
}

.card-grid > li > a::after {
  content: " →";
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--brand-gold);
}

.card-grid > li > a:hover {
  color: var(--brand-gold);
}

.card-grid > li > p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5a6068;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.card-grid .card-meta {
  display: block;
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  -webkit-line-clamp: none;
  line-clamp: none;
}

/* Stat row (homepage intro) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 1.25rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.stat-row > li {
  list-style: none;
  border-top: 2px solid var(--brand-gold);
  padding-top: 0.65rem;
}

.stat-row strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--brand-navy);
}

.stat-row span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

/* Buttons (links styled as buttons) */
a.btn,
a.btn:hover {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--brand-gold);
  border: 1px solid var(--brand-gold);
  border-radius: 3px;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

a.btn:hover {
  background: #d8b87e;
  border-color: #d8b87e;
}

a.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

a.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* FAQ accordions */
.faq details {
  background: #fff;
  border: 1px solid rgba(197, 162, 101, 0.35);
  border-radius: 3px;
  margin-bottom: 0.75rem;
  padding: 0;
}

.faq details[open] {
  border-color: var(--brand-gold);
}

.faq summary {
  padding: 0.9rem 1.1rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-navy);
}

.faq summary:hover {
  color: var(--brand-gold-ink);
}

.faq details p {
  padding: 0 1.1rem 1rem;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Full-width banner images on index pages */
.page-banner {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.25rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px -18px rgba(21, 36, 59, 0.5);
}

/* Facilities directory (recreation): flow into columns */
.facility-list {
  columns: 2 260px;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.facility-list > li {
  list-style: none;
  break-inside: avoid;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .card-grid > li {
    transition: none;
  }

  .card-grid > li:hover,
  .card-grid > li:focus-within {
    transform: none;
  }
}

/* ---------------------------------------------------------------- *
   Phase 4: detail-page furniture
 * ---------------------------------------------------------------- */

/* Visible breadcrumb trail (overrides Pico's generic nav link styles) */
nav[aria-label="Breadcrumb"] {
  --pico-nav-breadcrumb-divider: "|";
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.6;
}

nav[aria-label="Breadcrumb"] ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav[aria-label="Breadcrumb"] li {
  display: flex;
  align-items: center;
  list-style: none;
  margin-inline-start: 0;
}

nav[aria-label="Breadcrumb"] li:not(:last-child)::after {
  content: none;
}

nav[aria-label="Breadcrumb"] li:not(:first-child)::before {
  content: var(--pico-nav-breadcrumb-divider);
  margin: 0 0.5rem;
  color: var(--brand-gold);
}

nav[aria-label="Breadcrumb"] a {
  padding: 0;
  margin: 0;
  color: #6b7280;
  text-decoration: none;
}

nav[aria-label="Breadcrumb"] a:hover {
  color: var(--brand-gold-ink);
  text-decoration: underline;
}

nav[aria-label="Breadcrumb"] a[aria-current="page"] {
  color: var(--brand-navy);
  font-weight: 600;
}

nav[aria-label="Breadcrumb"] a[aria-current="page"]:hover {
  color: var(--brand-navy);
  text-decoration: none;
}

/* Published date under a blog post title */
.post-meta {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}
