/* South River Retreat — warm coastal */
:root {
  --sea-deep: #1a3a4a;
  --sea: #2c5f6e;
  --sea-mid: #3d7a8c;
  --sea-soft: #a8d1e6;
  --foam: #edf9ff;
  --sand: #f7f3eb;
  --sand-dark: #e8dfd0;
  --gold: #968a5e;
  --gold-deep: #7a7049;
  --teal: #52898a;
  --ink: #1f2a30;
  --muted: #5a6b73;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(26, 58, 74, 0.12);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea); }

.skip {
  position: absolute; left: -9999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 249, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 209, 230, 0.6);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex; flex-direction: column; text-decoration: none; color: var(--sea-deep);
}
.brand strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.brand span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; }
.nav a {
  color: var(--sea);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--sea-deep); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(150, 138, 94, 0.35);
}
.btn-primary:hover { background: var(--gold-deep); }
.btn-outline {
  background: transparent;
  color: var(--sea-deep) !important;
  border: 1.5px solid var(--sea-soft);
}
.btn-outline:hover { background: var(--foam); }
.btn-ghost {
  background: rgba(255,255,255,0.18);
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--sea-soft);
  border-radius: 8px; padding: 0.4rem 0.65rem; color: var(--sea);
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex; align-items: flex-end;
  color: #fff;
  background: var(--sea-deep) center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,58,74,0.15) 0%, rgba(26,58,74,0.55) 55%, rgba(26,58,74,0.88) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 700;
  max-width: 16ch;
}
.hero-lead {
  font-size: 1.1rem;
  max-width: 42rem;
  opacity: 0.95;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 0.95rem;
}
.hero-stats strong { font-weight: 700; }

/* Sections */
section { padding: 4rem 0; }
.section-alt { background: var(--foam); }
.section-dark {
  background: linear-gradient(160deg, var(--sea-deep), #244858);
  color: #e8f4f8;
}
.section-dark a { color: var(--sea-soft); }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.section-dark .eyebrow { color: #d4c9a0; }
h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--sea-deep);
}
.section-dark h2 { color: #fff; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 48rem; }
.section-dark .lead { color: rgba(232,244,248,0.85); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 1.25rem 1.35rem 1.5rem; }
.card h3 {
  font-family: var(--serif);
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--sea-deep);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.highlight {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.highlight strong {
  display: block;
  color: var(--sea-deep);
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
}
.highlight span { color: var(--muted); font-size: 0.9rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.gallery-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  box-shadow: 0 4px 14px rgba(26,58,74,0.1);
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-note { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

/* Amenities */
.amenity-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.amenity-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.amenity-group h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--sea-deep);
  font-family: var(--serif);
}
.amenity-group ul {
  margin: 0; padding: 0; list-style: none;
}
.amenity-group li {
  padding: 0.35rem 0 0.35rem 1.35rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}
.amenity-group li::before {
  content: "";
  position: absolute; left: 0; top: 0.75rem;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--sea-soft);
}

/* Location / wedding */
.pill-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0; list-style: none;
}
.pill-list li {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
}
.map-frame {
  border: 0;
  border-radius: var(--radius);
  width: 100%;
  height: 320px;
  box-shadow: var(--shadow);
  background: var(--sand-dark);
}

/* Reviews */
.rating-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}
.rating-score {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--sea-deep);
  font-weight: 700;
}
.stars { color: var(--gold); letter-spacing: 0.08em; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.review blockquote {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  flex: 1;
}
.review footer {
  font-size: 0.88rem;
  color: var(--muted);
}
.review footer strong { color: var(--sea-deep); }

/* Rates / policies */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.policy {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.policy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--serif);
  color: var(--sea-deep);
}
.policy p, .policy ul { margin: 0; color: var(--muted); font-size: 0.95rem; }
.policy ul { padding-left: 1.1rem; margin-top: 0.4rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  color: var(--sea-deep);
}
.contact-list {
  list-style: none; margin: 0; padding: 0;
}
.contact-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sand-dark);
  color: var(--muted);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { color: var(--sea-deep); display: inline-block; min-width: 4.5rem; }
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Footer */
.site-footer {
  background: #2a2f33;
  
  color: #c5ced3;
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer a { color: #dce7ec; }
.site-footer .brand strong { color: #fff; }
.site-footer .brand span { color: #9aa8af; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 20, 28, 0.92);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute;
  bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: #e8f0f4;
  font-size: 0.9rem;
  max-width: 90vw;
  text-align: center;
}

@media (max-width: 960px) {
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .review-grid, .amenity-groups { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--foam);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--sea-soft);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav .btn { width: 100%; }
  .highlights, .policy-grid, .grid-3, .review-grid, .amenity-groups, .grid-4 {
    grid-template-columns: 1fr;
  }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; }
  .hero { min-height: 70vh; }
}

/* Availability calendar */
.availability-status {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}
.availability-status.is-fallback {
  background: var(--foam);
  border: 1px solid var(--sea-soft);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--sea-deep);
}
#availability-calendar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.5rem;
}
.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.cal-nav {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.cal-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-legend .swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--sand-dark);
}
.cal-legend .swatch.available { background: #fff; }
.cal-legend .swatch.booked { background: #c5d0d6; }
.cal-legend .swatch.selected { background: var(--gold); border-color: var(--gold-deep); }
.cal-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cal-month-title {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--sea-deep);
  text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}
.cal-dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.25rem 0;
  text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cal-day:hover:not(:disabled):not(.is-empty) {
  border-color: var(--sea-soft);
  background: var(--foam);
}
.cal-day.is-empty {
  background: transparent;
  cursor: default;
}
.cal-day.is-past,
.cal-day.is-booked {
  background: #dfe6ea;
  color: #8a969c;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(90,107,115,0.45);
}
.cal-day.is-booked {
  background: #cfd8dd;
}
.cal-day.is-selected-start,
.cal-day.is-selected-end {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold-deep);
  text-decoration: none;
}
.cal-day.is-in-range {
  background: rgba(150, 138, 94, 0.22);
  border-color: rgba(150, 138, 94, 0.35);
  text-decoration: none;
}
.cal-day:disabled { opacity: 1; }

/* Request form */
.request-form {
  display: grid;
  gap: 0.95rem;
}
.request-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}
.request-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sea-deep);
}
.request-form .field-hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}
.request-form input,
.request-form select,
.request-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  border: 1.5px solid var(--sand-dark);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: #fff;
  width: 100%;
}
.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  outline: 2px solid var(--sea-soft);
  outline-offset: 1px;
  border-color: var(--sea-mid);
}
.request-form textarea { min-height: 110px; resize: vertical; }
.request-form .hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.request-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
}
.request-form .btn[type="submit"] { border: none; }

/* Thanks page */
.thanks-section {
  padding: 4.5rem 0 5rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.thanks-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.thanks-card h1 {
  font-family: var(--serif);
  color: var(--sea-deep);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .cal-months { grid-template-columns: 1fr; }
  .request-form .form-row { grid-template-columns: 1fr; }
  .thanks-card { padding: 1.75rem 1.25rem; }
}


/* USNA photo strip */
.usna-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.usna-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
@media (max-width: 720px) {
  .usna-photos { grid-template-columns: 1fr; }
  .usna-photos img { height: 200px; }
}


/* Welcome-book guide */
.guide-cover, .guide-aside {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}
.guide-aside { max-width: 380px; }
.guide-subhead {
  font-family: var(--serif);
  color: var(--sea-deep);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.guide-card ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.guide-card li { margin: 0.45rem 0; }
.guide-card li strong { color: var(--sea-deep); }
.guide-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 960px) {
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .guide-cover, .guide-aside { max-width: 100%; }
}

/* Print / PDF: keep screen-like layout */
@media print {
  .site-header { position: static; backdrop-filter: none; }
  .menu-toggle { display: none !important; }
  .hero {
    min-height: 420px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hero::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section-dark, .section-alt, .btn-primary, .hero-badge, .pill-list li {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .gallery-item[style*="display:none"] { display: none !important; }
  .lightbox { display: none !important; }
  a { text-decoration: none; }
  .map-frame { height: 280px; }
  body { background: #fff; }
}
