/* Spofford Lake Rental ──────────────────────────────────────────────────── */
:root {
  --primary:      #1a3d5c;
  --primary-mid:  #2874a6;
  --primary-light:#eef5fb;
  --accent:       #d4a843;
  --accent-dark:  #b8891c;
  --text:         #1c2530;
  --text-light:   #5a6878;
  --text-muted:   #8a96a4;
  --border:       #dde4ec;
  --bg:           #f7fafd;
  --white:        #ffffff;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 2px 12px rgba(26,61,92,.08);
  --shadow-md:    0 6px 32px rgba(26,61,92,.14);
  --max-w:        1140px;
  --header-h:     72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, sans-serif; color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-mid); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-blue { background: var(--primary-light); }
.section-dark { background: var(--primary); }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; color: var(--primary); margin-bottom: .85rem; line-height: 1.2;
}
.section-title.light { color: var(--white); }
.section-sub { font-size: 1.05rem; color: var(--text-light); margin-bottom: 2.5rem; max-width: 640px; }
.centered { text-align: center; }
.centered .section-sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .8rem 1.85rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .18s, transform .12s, box-shadow .18s; border: none;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-mid); color: var(--white); box-shadow: 0 4px 16px rgba(26,61,92,.3); }
.btn-accent { background: var(--accent); color: #1a2535; }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); box-shadow: 0 4px 16px rgba(212,168,67,.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.65); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.9); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  height: var(--header-h);
  box-shadow: 0 2px 18px rgba(0,0,0,.22);
}
.header-inner { display: flex; align-items: center; gap: 2.5rem; height: 100%; }
.logo img { height: 46px; width: auto; }
.site-nav { flex: 1; }
.site-nav ul { display: flex; list-style: none; gap: .65rem; flex-wrap: wrap; }
.site-nav a { color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500; }
.site-nav a:hover { color: var(--white); }

/* Homepage hero overlay header */
.site-header.overlay {
  position: absolute; background: transparent;
  box-shadow: none; height: auto; padding: .75rem 0;
}
.site-header.overlay .logo img {
  height: 150px; width: 150px; border-radius: 50%;
}
.site-header.overlay .header-inner { align-items: center; gap: 1.5rem; }
/* Pill nav buttons (homepage) */
.site-nav .pill {
  display: inline-block; border: 2px solid rgba(255,255,255,.75);
  border-radius: 100px; padding: .32rem .9rem;
  color: var(--white); font-size: .8rem; font-weight: 500;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.site-nav .pill:hover { background: rgba(255,255,255,.18); border-color: var(--white); color: var(--white); }
.site-nav .pill.active { background: rgba(255,255,255,.9); color: var(--primary); border-color: rgba(255,255,255,.9); }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; }
.mobile-menu { display: none; background: var(--primary); border-top: 1px solid rgba(255,255,255,.1); padding-bottom: 1.25rem; }
.mobile-menu ul { list-style: none; padding: 0 24px; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu a { display: block; padding: .8rem 0; color: rgba(255,255,255,.85); }
.mobile-menu .btn { display: block; margin: 1rem 24px 0; text-align: center; }
.mobile-menu.open { display: block; }

@media (max-width: 768px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,
    rgba(10,28,50,.50) 0%,
    rgba(10,28,50,.28) 45%,
    rgba(10,28,50,.60) 100%);
}
.hero-content { position: relative; z-index: 1; color: var(--white); max-width: 860px; margin: 0 auto; padding: 180px 0 60px; text-align: center; }
.hero-eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .85rem;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(.98rem, 2vw, 1.18rem);
  color: rgba(255,255,255,.88); margin-bottom: 2rem; line-height: 1.55;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.55); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
.hero-scroll span { font-size: 1.4rem; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }


/* Hero CTA pill button */
.hero-cta-pill {
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 100px;
  padding: .85rem 2.5rem;
  font-size: 1rem; font-weight: 600;
  letter-spacing: .02em;
}
.hero-cta-pill:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* ── Stats bar ───────────────────────────────────────────────────────────── */
.stats-bar { background: #132e47; }
.stats-grid {
  display: grid; grid-template-columns: repeat(8, 1fr);
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-item {
  padding: 1.1rem .5rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 1.3rem; line-height: 1; margin-bottom: .3rem; }
.stat-value { font-size: .88rem; color: var(--white); font-weight: 600; line-height: 1.2; }
.stat-label { font-size: .68rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; margin-top: .15rem; }

@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Property description ────────────────────────────────────────────────── */
.property-split {
  display: grid; grid-template-columns: 1.75fr 1fr; gap: 3rem; align-items: stretch;
}
.property-split.flip { direction: rtl; }
.property-split.flip > * { direction: ltr; }
.property-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 100%; min-height: 480px; }
.property-img img { width: 100%; height: 100%; aspect-ratio: unset; object-fit: cover; }
.property-text h3 {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic;
  font-size: 1.1rem; color: var(--primary-mid); margin: 1.5rem 0 .45rem;
}
.property-text p { color: var(--text-light); line-height: 1.78; margin-bottom: .85rem; }
.property-pull {
  border-left: 3px solid var(--accent); padding-left: 1.25rem;
  font-style: italic; color: var(--primary); font-size: 1.05rem;
  line-height: 1.6; margin: 1.5rem 0;
}

@media (max-width: 820px) { .property-split { grid-template-columns: 1fr; gap: 2rem; } .property-split.flip { direction: ltr; } }

/* ── Lightbox ────────────────────────────────────────────────────────────── */
dialog.lightbox {
  display: none;
  padding: 0; border: none; border-radius: 0;
  background: rgba(0,0,0,.96);
  width: 100vw; height: 100vh;
  max-width: 100vw; max-height: 100vh;
}
dialog.lightbox[open] { display: flex; align-items: center; justify-content: center; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.96); }
.lb-img { max-width: 98vw; max-height: 96vh; object-fit: contain; border-radius: 0; display: block; animation: lb-pop .2s ease-out; }
.lb-close {
  position: fixed; top: 1rem; right: 1.5rem; background: none; border: none;
  color: var(--white); font-size: 2.2rem; line-height: 1; cursor: pointer;
  opacity: .7; z-index: 10; padding: .25rem .5rem;
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: var(--white);
  font-size: 2.8rem; cursor: pointer; padding: .4rem .9rem;
  border-radius: var(--radius); transition: background .15s; line-height: 1;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-counter { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.5); font-size: .82rem; letter-spacing: .06em; }

/* ── Reviews ─────────────────────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow);
  border: 1px solid var(--border); position: relative;
}
.review-card::before {
  content: 'C'; font-family: Georgia, serif;
  font-size: 5rem; line-height: .75; color: var(--accent);
  position: absolute; top: 1rem; left: 1.5rem; opacity: .6;
}
.review-text { padding-top: 2rem; font-style: italic; color: var(--text-light); line-height: 1.75; margin-bottom: 1.1rem; }
.review-stars { color: var(--accent); font-size: .9rem; margin-bottom: .25rem; }
.review-author { font-weight: 700; color: var(--primary); font-size: .88rem; }

@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ── Location ────────────────────────────────────────────────────────────── */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.distance-list { list-style: none; margin-top: 1.5rem; }
.distance-list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--border);
  font-size: .97rem;
}
.distance-list li:last-child { border-bottom: none; }
.distance-list .d-time { font-weight: 700; color: var(--primary); min-width: 90px; font-size: 1.05rem; }
.location-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }

@media (max-width: 820px) { .location-grid { grid-template-columns: 1fr; } }

/* ── Book Through ────────────────────────────────────────────────────────── */
.book-section { background: var(--primary); padding: 64px 0; }
.book-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  text-align: center; margin-bottom: 2rem;
}
.book-grid {
  display: flex; justify-content: center; align-items: center;
  gap: 1.25rem; flex-wrap: wrap;
}
.book-link {
  background: var(--white); border-radius: var(--radius);
  padding: .5rem .75rem; display: flex;
  align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
.book-link:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.book-link img { max-height: 50px; max-width: 140px; object-fit: contain; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: #0f2535; padding: 2.5rem 0 1.5rem; color: rgba(255,255,255,.65); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo img { height: 38px; opacity: .8; }
.footer-address { font-size: .875rem; line-height: 1.75; }
.footer-links { display: flex; gap: 1.5rem; font-size: .875rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.55); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; font-size: .78rem; color: rgba(255,255,255,.3);
}

/* ── Dev credit ──────────────────────────────────────────────────────────── */
.footer-credit {
  display: block; width: 100%; text-align: center;
  margin-top: 1.5rem; padding-top: 1rem; padding-bottom: .25rem;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .68rem; letter-spacing: .08em;
  color: rgba(255,255,255,.28);
}
.footer-credit a { color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; }
.footer-credit a:hover { color: rgba(255,255,255,.65); }

/* ── Icon stats row (gallery section) ───────────────────────────────────── */
.section-gallery-wrap { background: var(--white); }
.icon-stats-row {
  display: flex; justify-content: center; gap: 3.5rem;
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid #e4e8ec;
  margin-bottom: 3rem;
}
.icon-stat { text-align: center; }
.icon-stat-icon { width: 56px; height: 56px; margin: 0 auto .85rem; color: #9ba8b5; }
.icon-stat-icon svg { width: 100%; height: 100%; }
.icon-stat-label { font-size: .82rem; color: #5a6677; font-weight: 600; letter-spacing: .02em; }

/* ── 2x2 section gallery ─────────────────────────────────────────────────── */
.section-gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem 4rem;
}
.gallery-section-title {
  font-size: .95rem; font-weight: 700; text-align: center;
  color: var(--primary); margin-bottom: 1rem; line-height: 1.4;
}
.gallery-section-thumbs {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px;
}
.gallery-section-thumbs img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  cursor: pointer; transition: opacity .18s, transform .18s;
  display: block;
}
.gallery-section-thumbs img:hover { opacity: .88; transform: scale(1.02); }
.gallery-section-caption {
  font-size: .78rem; color: #777; text-align: center;
  margin-top: .75rem; font-style: italic;
}
@media (max-width: 640px) {
  .section-gallery-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .icon-stats-row { gap: 1.5rem; flex-wrap: wrap; }
  .icon-stat-icon { width: 44px; height: 44px; }
}
