/* Royal Crest Country Club Condominium Trust
   Modern New England Residential Club aesthetic
   Inspired by Southworth, with the warmth of Pinehills
   and the clean simplicity of Cape Club. */

/* Fonts are loaded via <link> tags in each page's <head> (faster than @import). */

:root {
  /* Royal Crest brand */
  --sangria: #7e2027;
  --sangria-dark: #5e1820;
  --sangria-deep: #4a1218;
  --gold: #a8843a;
  --gold-bright: #c19a4d;

  /* Palette — warm parchment with depth */
  --bg: #f3ecdb;
  --bg-soft: #ebe1c9;
  --bg-deep: #e3d6b8;
  --bg-pure: #faf6ec;
  --ink: #2a1f17;
  --ink-warm: #3d2e22;
  --ink-muted: #635340;
  --ink-soft: #635340;
  --rule: #d4c8aa;
  --rule-soft: #e2d8be;
  --footer-bg: #3a2a20;
  --footer-deep: #2a1d15;

  /* Typography */
  --font-display: 'Source Serif 4', 'Cardo', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizing */
  --container: 1280px;
  --container-narrow: 760px;
  --container-wide: 1440px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.85rem, 3.8vw, 2.75rem); font-weight: 400; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); font-weight: 400; }
h3 { font-size: 1.15rem; font-weight: 500; }
h4 { font-size: 0.95rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--sangria);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(126, 32, 39, 0.3);
  transition: text-decoration-color 0.2s;
}
a:hover {
  text-decoration-color: var(--sangria);
}

ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; }
em { font-style: italic; }

.lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sangria);
  margin-bottom: 0.85rem;
}

/* ============ LAYOUT ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 2rem; }

@media (max-width: 600px) {
  .container, .container-narrow, .container-wide {
    padding: 0 1.5rem;
  }
}

section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section { padding: 5.5rem 0; }
}

.section-soft { background: var(--bg-soft); }
.section-white { background: var(--bg-pure); }
.section-deep { background: var(--bg-deep); }
.section-ink {
  background: var(--footer-bg);
  color: rgba(243, 236, 219, 0.92);
}
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 {
  color: var(--bg-pure);
}
.section-ink .eyebrow {
  color: var(--gold-bright);
}

/* ============ TOP NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  background: var(--sangria);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header.scrolled,
.site-header.solid {
  position: sticky;
  top: 0;
  background: var(--sangria);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  background-image: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark { width: 36px; height: 44px; flex-shrink: 0; }
.brand-mark .shield-bg { fill: var(--sangria); stroke: var(--gold); stroke-width: 3; }
.brand-mark .shield-fg { fill: var(--gold); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: #faf6ec;
  letter-spacing: -0.005em;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.78);
  margin-top: 1px;
}

/* Nav links */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(250, 246, 236, 0.92);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.nav-list a:hover {
  background: rgba(250, 246, 236, 0.12);
  color: #faf6ec;
}

.nav-list a.active {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  background: rgba(250, 246, 236, 0.12);
  border: 1px solid rgba(250, 246, 236, 0.3);
  color: #faf6ec;
  padding: 0.4rem 0.7rem;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  font-family: var(--font-body);
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    flex-direction: column;
    padding: 0.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-list.open { display: flex; }
  .nav-list a {
    padding: 0.85rem 1rem;
    color: var(--ink) !important;
    background: transparent !important;
    border-bottom: 1px solid var(--rule);
  }
  .nav-list a:hover { background: var(--bg-soft) !important; }
  .nav-list li:last-child a { border-bottom: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border: 1px solid var(--sangria);
  background: var(--sangria);
  color: #fff;
  transition: all 0.2s;
  cursor: pointer;
}
.btn:hover {
  background: var(--sangria-dark);
  border-color: var(--sangria-dark);
  color: #fff;
}

.btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--sangria);
  border-color: rgba(255, 255, 255, 0.95);
}
.btn-light:hover {
  background: #fff;
  color: var(--sangria-dark);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ============ HOMEPAGE HERO — editorial panel ============ */
.hero-editorial {
  position: relative;
  background: var(--bg);
}

.hero-image {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
}

.hero-editorial .container {
  position: relative;
  margin-top: -80px;
  z-index: 2;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-bottom: 0;
}

.hero-panel {
  background: var(--bg);
  padding: 2.25rem 2.5rem 2.25rem;
  max-width: 620px;
  border-top: 3px solid var(--sangria);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.hero-panel .hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sangria);
  margin-bottom: 0.85rem;
}

.hero-panel h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.9rem;
  letter-spacing: -0.005em;
}

.hero-panel .hero-sub {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  color: var(--ink-muted);
  margin-bottom: 0;
  line-height: 1.55;
  font-weight: 400;
}

.hero-panel .hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .hero-image { height: 440px; }
  .hero-editorial .container { margin-top: -160px; padding-bottom: 0; }
  .hero-panel { padding: 2rem 1.75rem; }
}

@media (max-width: 520px) {
  .hero-image { height: 320px; }
  .hero-editorial .container { margin-top: -110px; padding-bottom: 0; }
  .hero-panel { padding: 1.75rem 1.5rem; }
}

/* ============ PAGE HEADER (interior pages) — editorial panel ============ */
.page-header-editorial {
  position: relative;
  background: var(--bg);
}

.page-header-editorial .ph-image {
  width: 100%;
  height: 460px;
  background-size: cover;
  background-position: center;
}

/* Taller banner for pages whose photo needs more vertical room (e.g. the
   wide entrance sign on Contacts). Scoped so other pages keep 460px. */
.page-header-editorial.ph-tall .ph-image {
  height: 570px;
}

.page-header-editorial .container {
  position: relative;
  margin-top: -80px;
  z-index: 2;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 0;
}

.page-header-editorial .ph-panel {
  background: var(--bg);
  padding: 1.75rem 2rem;
  max-width: 600px;
  border-top: 3px solid var(--sangria);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

/* Close the gap between the header panel and the first content section.
   The panel is pulled up over the image, leaving empty space below; trim
   the following section's top padding so the first heading sits closer.
   Covers both interior page headers and the home hero. */
.page-header-editorial + section,
.hero-editorial + section {
  padding-top: 1rem;
}

.page-header-editorial .ph-panel .eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sangria);
  margin-bottom: 0.85rem;
}

.page-header-editorial .ph-panel h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.9rem;
  letter-spacing: -0.005em;
}

.page-header-editorial .ph-panel p {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .page-header-editorial .ph-image { height: 320px; }
  .page-header-editorial.ph-tall .ph-image { height: 400px; }
  .page-header-editorial .container { margin-top: -130px; padding-bottom: 0; }
  .page-header-editorial .ph-panel { padding: 2rem 1.75rem; }
}

@media (max-width: 520px) {
  .page-header-editorial .ph-image { height: 240px; }
  .page-header-editorial.ph-tall .ph-image { height: 300px; }
  .page-header-editorial .container { margin-top: -100px; padding-bottom: 0; }
  .page-header-editorial .ph-panel { padding: 1.75rem 1.5rem; }
}

/* ============ PAGE HEADER (non-home pages) ============ */
.page-header {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #faf6ec;
  padding-bottom: 2rem;
  padding-top: 6rem;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(31, 28, 24, 0.35) 0%,
    rgba(31, 28, 24, 0.18) 50%,
    rgba(31, 28, 24, 0.7) 100%);
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-header .eyebrow {
  color: rgba(250, 246, 236, 0.92);
  margin-bottom: 0.75rem;
}

.page-header h1 {
  color: #faf6ec;
  font-weight: 400;
  margin: 0 0 0.85rem;
  max-width: 720px;
}

.page-header p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: rgba(250, 246, 236, 0.92);
  max-width: 580px;
  line-height: 1.5;
  margin: 0;
}

/* ============ CONTENT SECTIONS ============ */
.section-intro {
  text-align: left;
}

.section-intro h2 {
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.section-intro .lead {
  max-width: 720px;
}

.section-header {
  margin-bottom: 3rem;
  max-width: 720px;
}

/* Two-column feature blocks */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .feature.reverse > *:first-child { order: 2; }
}

.feature-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-text h2 {
  margin-bottom: 1.25rem;
}

/* Three-column grid */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-pure);
  display: flex;
  flex-direction: column;
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.card:hover .card-image img { transform: scale(1.04); }

.card-body {
  padding: 1.5rem 0 0;
}
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.card-meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sangria);
  margin-bottom: 0.65rem;
}

/* Full-bleed image break */
.image-break {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 420px;
  background-size: cover;
  background-position: center;
}

/* Quote / pull */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-weight: 400;
}
.pull-quote-author {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ============ FACTS / RHYTHM ============ */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 700px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
}

.fact {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 700px) {
  .fact:not(:last-child) { border-right: 1px solid var(--rule); }
  .fact { border-bottom: none; }
}

.fact-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--sangria);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.fact-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Rhythm / calendar list */
.rhythm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.rhythm-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.rhythm-item:last-child { border-bottom: none; }

.rhythm-when {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sangria);
}

.rhythm-what h3 { margin-bottom: 0.25rem; font-size: 1.05rem; font-weight: 500; font-family: var(--font-display); }
.rhythm-what p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 600px) {
  .rhythm-item { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 3rem;
  }
}

.contact-block .eyebrow { margin-bottom: 0.6rem; }
.contact-line {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

.contact-line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 32, 39, 0.3);
  transition: border-color 0.15s;
}
.contact-line a:hover { border-bottom-color: var(--sangria); color: var(--sangria); }

.topic-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.topic {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule-soft);
}
.topic:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.topic h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.topic p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.topic a {
  color: var(--sangria);
}

/* ============ LIVING AT ROYAL CREST PAGE ============ */
.living-toc {
  background: var(--bg-pure);
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--sangria);
  margin-bottom: 2.5rem;
}

.living-toc h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.living-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.living-toc li {
  margin: 0;
}

.living-toc a {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.living-toc a:hover {
  color: var(--sangria);
  border-bottom-color: var(--sangria);
}

.fact-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

@media (min-width: 720px) {
  .fact-pair {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
  }
}

.fact-pair:last-child { border-bottom: none; }

.fact-pair dt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sangria);
  padding-top: 0.2rem;
}

.fact-pair dd {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

.fact-pair dd p { margin-bottom: 0.75rem; }
.fact-pair dd p:last-child { margin-bottom: 0; }

.callout {
  background: var(--bg-pure);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.callout h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.callout p {
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

.section-anchor {
  scroll-margin-top: 80px;
}

/* ============ FOOTER — simplified, warm charcoal ============ */
.footer {
  background: var(--footer-bg);
  color: rgba(243, 236, 219, 0.72);
  padding: 3.5rem 0 1.75rem;
  font-size: 0.92rem;
  border-top: 4px solid var(--sangria);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(212, 200, 170, 0.15);
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 3.5rem;
    align-items: end;
  }
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--bg-pure);
  margin-bottom: 0.65rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.footer-address {
  color: rgba(243, 236, 219, 0.7);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.footer-office {
  color: rgba(243, 236, 219, 0.72);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

.footer-office a {
  color: rgba(243, 236, 219, 0.85);
  text-decoration: none;
}

.footer-office a:hover {
  color: var(--gold-bright);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
}

@media (min-width: 760px) {
  .footer-nav {
    justify-content: flex-end;
    max-width: 380px;
  }
}

.footer-nav a {
  color: rgba(243, 236, 219, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  padding: 0.15rem 0;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-legal {
  padding-top: 1.75rem;
  color: rgba(243, 236, 219, 0.45);
  font-size: 0.78rem;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }

.divider {
  width: 36px;
  height: 1px;
  background: var(--sangria);
  margin: 1.25rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* Reveal animation disabled - was causing scroll jankiness */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ============================================================ */
/* New unified footer (May 2026) - slim, centered, horizontal    */
/* ============================================================ */

.footer-inner-stacked {
  display: block;
  grid-template-columns: none;
}

.footer-inner-stacked .footer-identity {
  margin-bottom: 1.25rem;
  text-align: center;
}

.footer-nav-horizontal {
  max-width: none;
  justify-content: center;
  gap: 0.4rem 1.25rem;
}

/* ============ SCORECARD TABLE ============ */
.scorecard-table {
  width: 100%;
  max-width: 540px;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.scorecard-table thead th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 2px solid var(--accent, #7e2027);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink, #2a2420);
}
.scorecard-table tbody td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid #e6dfd2;
}
.scorecard-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============ COURSE GALLERY (CSS-only click-through carousel) ============ */
/* No JavaScript. Slides are anchored; arrows are in-page links that snap-scroll
   the track to the target slide. Nothing auto-advances. */
.gallery {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding: 0 2rem;
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 8px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
  -webkit-overflow-scrolling: touch;
}
.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  aspect-ratio: 3 / 2;
  background: var(--bg-deep);
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: rgba(42, 18, 24, 0.55);
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 2;
}
.gallery-arrow:hover { background: var(--sangria); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.1rem;
}
.gallery-dots a {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
  transition: background 0.2s ease;
}
.gallery-dots a:hover { background: var(--gold); }

@media (max-width: 640px) {
  .gallery { padding: 0 1rem; }
  .gallery-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
}

/* Compact gallery (Amenities) — sized to match the page's other image boxes
   rather than spanning the full container like the Golf course carousel. */
.gallery-compact {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

/* Carousel sized to sit inside a two-column feature (alternates like other sections) */
.gallery-feature {
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.gallery-feature .gallery-slide {
  aspect-ratio: 4 / 3;
}
