/* ============================================================
   Sunrise Retreat — Pocono Lake, PA
   Palette: pine / cream / sunset
   ============================================================ */
:root {
  --pine: #1d3b2f;
  --pine-dark: #142b22;
  --pine-ink: #22302a;
  --muted: #596961;
  --cream: #faf7f0;
  --sand: #f1ead9;
  --line: #e4ddcc;
  --sunset: #e8963e;
  --sunset-deep: #cf7a22;
  /* Text-safe amber for small copy on light backgrounds (>=4.5:1 on cream,
     white and sand). --sunset-deep is only safe on the dark pine surfaces. */
  --sunset-ink: #a95035;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(20, 43, 34, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 43, 34, 0.18);
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  color: var(--pine-ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Focus visibility ---------- */
:focus-visible {
  outline: 3px solid var(--sunset);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav :focus-visible, .hero :focus-visible, .section-book :focus-visible, .footer :focus-visible {
  outline-color: #fff;
}
.g-item:focus-visible { outline-color: #fff; }
.g-item:focus-visible figcaption { opacity: 1; }

.wrap { width: min(1120px, 92%); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: 0.4rem 0 1rem; }
h3 { font-size: 1.22rem; margin-bottom: 0.7rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem;
  font-weight: 700; color: var(--sunset-ink); margin-bottom: 0.4rem;
}
.eyebrow-light { color: var(--sunset); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.lede-light { color: #cfe0d4; max-width: 60ch; margin-inline: auto; }
.h2-light { color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun {
  background: linear-gradient(135deg, #e8963e, #d9822a);
  color: var(--pine-dark);
  box-shadow: 0 10px 24px rgba(232, 150, 62, 0.35);
}
.btn-sun:hover { box-shadow: 0 14px 30px rgba(232, 150, 62, 0.45); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-cream { background: var(--cream); color: var(--pine-dark); }
.btn-pine { background: var(--pine); color: var(--cream); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.08rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(20, 43, 34, 0.55); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}
.nav.scrolled { background: rgba(20, 43, 34, 0.92); }
.nav-brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--cream); }
.nav-brand-sun { font-size: 1.35rem; }
.nav-brand-text { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a:not(.btn) {
  color: #dfe9e2; text-decoration: none; font-size: 0.94rem; font-weight: 500;
  padding: 0.35rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: #fff; border-color: var(--sunset); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 5px auto; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  color: var(--cream); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("/assets/hero.jpg") center 38% / cover no-repeat;
  transform: scale(1.02);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(15,30,24,0.55) 0%, rgba(15,30,24,0.25) 38%, rgba(15,30,24,0.72) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 7rem 1.2rem 2rem; }
.hero-badge {
  display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1.1rem; backdrop-filter: blur(6px);
}
.hero h1 { text-shadow: 0 4px 30px rgba(0,0,0,0.35); }
.hero-tag { font-size: clamp(1.1rem, 2.6vw, 1.5rem); margin-top: 0.9rem; color: #f3ede1; }
.hero-tag strong { color: var(--sunset); font-weight: 600; }
.hero-sub { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8rem; margin-top: 0.5rem; color: #cdd9cf; }
.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #dfe9e2; text-decoration: none; font-size: 0.8rem; letter-spacing: 0.08em;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; opacity: 0.85;
}
.hero-scroll-arrow { font-size: 1.1rem; animation: bob 2.2s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Stats bar ---------- */
.stats { background: var(--pine-dark); color: var(--cream); padding: 1.6rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; text-align: center; }
.stat-num { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--sunset); }
.stat-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #b9c9bd; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-sand { background: var(--sand); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.about-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem; box-shadow: var(--shadow);
}
.about-block h3 small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.about-block p { font-size: 0.95rem; color: var(--muted); }
.about-block-note { grid-column: span 3; display: flex; flex-direction: column; }
.about-block-note h3 { margin-bottom: 0.4rem; }
.checks { list-style: none; display: grid; gap: 0.45rem; }
.checks.two-col { grid-template-columns: 1fr 1fr; }
.checks li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; }
.checks li::before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: var(--sunset-ink); font-weight: 700;
}

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 1.1rem; margin-top: 2rem; }
.g-item {
  position: relative; break-inside: avoid; margin-bottom: 1.1rem;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  cursor: zoom-in; background: var(--pine-dark);
}
.g-item img { width: 100%; height: auto; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.045); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(15,30,24,0.78), transparent);
  color: #fff; font-size: 0.88rem; font-weight: 500;
  opacity: 0; transition: opacity 0.3s ease;
}
.g-item:hover figcaption, .g-item:focus-within figcaption { opacity: 1; }
/* Touch devices have no hover — always show the caption. */
@media (hover: none) {
  .g-item figcaption { opacity: 1; }
}
/* Featured images break out of the masonry columns and run full width. */
.g-wide { column-span: all; margin-bottom: 1.4rem; }
.g-wide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* The sunset is a portrait frame — keep the sky in the crop. */
.g-wide img.g-portrait { object-position: center 28%; }

/* ---------- Amenities ---------- */
.amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 0.9rem; margin-top: 1.8rem; }
.amen {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.95rem 1.1rem; font-size: 0.94rem; box-shadow: var(--shadow);
}
.amen-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sand); font-size: 1.25rem;
}

/* ---------- Community ---------- */
.comm-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4rem; margin: 2rem 0; }
.comm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.comm-stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; text-align: center; box-shadow: var(--shadow);
}
.comm-stat span { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--pine); }
.comm-stat small { color: var(--muted); font-size: 0.85rem; line-height: 1.35; display: block; margin-top: 0.2rem; }
.comm-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
/* The community map is a tall, detail-dense image — give it its own row so
   the labels stay legible instead of being squeezed into a sidebar. */
.comm-map { margin: 1.6rem 0 0; }
.comm-map img {
  width: 100%; height: auto; max-width: 460px; display: block; margin-inline: auto;
  border-radius: 12px; border: 1px solid var(--line); background: var(--white);
}
.comm-map figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
.comm-regs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; }
.steps { padding-left: 1.3rem; display: grid; gap: 0.55rem; }
.steps li { font-size: 0.97rem; }
.steps li::marker { font-weight: 700; color: var(--sunset-ink); }
.note { margin-top: 1rem; font-size: 0.92rem; color: var(--muted); }
.fee-card {
  background: var(--pine); color: var(--cream); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-lg); align-self: start;
}
.fee-card h3 { color: var(--cream); }
.fee-sub { font-size: 0.82rem; color: #b9c9bd; margin-bottom: 1rem; }
.fee-list { list-style: none; display: grid; gap: 0.7rem; }
.fee-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 0.6rem; }
.fee-list li span:last-child { text-align: right; color: #cfe0d4; }
.fee-example { margin-top: 1rem; font-size: 0.9rem; color: #cfe0d4; }
.fee-example strong { color: var(--sunset); }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; margin-top: 2rem; }
.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.map-card iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.nearby h3 { margin-bottom: 0.9rem; }
.nearby-list { list-style: none; display: grid; gap: 0.2rem; margin-bottom: 1.2rem; }
.nearby-list li {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0;
  border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.nearby-list li span:last-child { color: var(--muted); white-space: nowrap; }

/* ---------- Booking ---------- */
.section-book { background: linear-gradient(160deg, var(--pine) 0%, var(--pine-dark) 100%); position: relative; overflow: hidden; }
.section-book::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/photos/sunset.jpg") center / cover no-repeat; opacity: 0.18;
}
.section-book .wrap { position: relative; }
.book-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0 1.2rem; }
.book-note { font-size: 0.88rem; color: #b9c9bd; max-width: 64ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--pine-dark); color: #b9c9bd; padding: 2.6rem 0; font-size: 0.92rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); font-weight: 600; }
.footer-sub { margin-top: 0.3rem; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: #dfe9e2; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-links a:hover { color: #fff; border-color: var(--sunset); }
.footer-copy { font-size: 0.8rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 24, 19, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1080px, 92vw); max-height: 78vh; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); object-fit: contain;
}
.lb-caption { color: #dfe9e2; margin-top: 1rem; font-size: 0.95rem; max-width: 80ch; text-align: center; }
.lb-close {
  position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: 0;
  color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; opacity: 0.8;
}
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; cursor: pointer;
  transition: background 0.2s;
}
.lb-nav:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

/* ---------- 404 page ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.nf-code { font-family: var(--serif); font-size: clamp(4rem, 18vw, 9rem); color: var(--sunset); line-height: 1; }
.nf h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0.6rem 0 0.8rem; }
.nf p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.nf-ctas { display: flex; gap: 0.9rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .g-item:hover img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-block-note { grid-column: span 2; }
  .gallery { columns: 2; }
  .comm-grid, .comm-regs, .loc-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.4rem; }
  .checks.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 60px; right: 0; left: 0; flex-direction: column; align-items: stretch;
    background: var(--pine-dark); padding: 1.2rem 1.6rem 1.6rem; gap: 0.4rem;
    transform: translateY(-130%); transition: transform 0.3s ease; box-shadow: var(--shadow-lg);
    /* Keep the closed menu out of the tab order. */
    visibility: hidden;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a:not(.btn) { padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links .btn { margin-top: 0.6rem; text-align: center; }
  .nav-toggle { display: block; }
  .gallery { columns: 1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-block-note { grid-column: span 1; }
  .comm-stats { grid-template-columns: 1fr 1fr; }
  .fee-list li { flex-direction: column; gap: 0.15rem; }
  .fee-list li span:last-child { text-align: left; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lb-prev { left: 0.6rem; } .lb-next { right: 0.6rem; }
}
