/* ============================================================
   Sunrise Summit Resort — v2
   Mobile-first. No framework. No jQuery.
   ============================================================ */

/* ── Custom properties ────────────────────────────────────── */
:root {
  --bg:          #0c1519;
  --bg-alt:      #111d22;
  --bg-surface:  #172026;
  --border:      rgba(255,255,255,0.07);
  --text:        #e8e2d6;
  --muted:       rgba(232,226,214,0.55);
  --amber:       #e2cc72;
  --amber-light: #ead98a;
  --sage:        #7a9e6e;
  --serif:       'Lora', Georgia, serif;
  --sans:        'Inter', system-ui, -apple-system, sans-serif;
  --radius:      5px;
  --ease:        0.22s ease;
  --nav-h:       70px;
  --max:         1200px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
p { color: var(--muted); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }

/* ── Layout ───────────────────────────────────────────────── */
.wrap  { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--bg-surface); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--amber); color: #0c1519; border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-light); border-color: var(--amber-light); }
.btn-outline { background: transparent; color: var(--sage); border-color: var(--sage); }
.btn-outline:hover { border-color: #9dcc90; color: #9dcc90; background: rgba(122,158,110,.1); }
.btn-lg { padding: 1.1rem 2.6rem; font-size: 1rem; }
.btn-sm { padding: .6rem 1.4rem; font-size: .82rem; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}
.site-nav.nav-autofade {
  transition: background 1.6s ease, box-shadow 1.6s ease;
}
.site-nav.scrolled {
  background: rgba(12,21,25,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

/* Text shadow helps nav links read over the video before bg kicks in */
.site-nav:not(.scrolled) .nav-links a,
.site-nav:not(.scrolled) .logo-main,
.site-nav:not(.scrolled) .logo-sub {
  text-shadow: 0 1px 8px rgba(0,0,0,.95), 0 3px 28px rgba(0,0,0,.7);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.nav-logo .logo-main { font-family: var(--serif); font-size: 1.25rem; color: var(--text); }
.nav-logo .logo-sub  { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-top: .2rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(232,226,214,.9);
  transition: color var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--sage); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* ── Mobile overlay menu ──────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-size: 2rem;
  color: var(--muted);
  line-height: 1;
  transition: color var(--ease);
}
.mobile-menu-close:hover { color: var(--text); }
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  color: var(--text);
  transition: color var(--ease);
  display: block;
  line-height: 1.6;
}
.mobile-menu nav a:hover { color: var(--sage); }
.mobile-ctas { display: flex; flex-direction: column; gap: .85rem; align-items: center; margin-top: 1rem; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .hero-poster {
  width: 100%; height: 100%; object-fit: cover;
  display: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    170deg,
    rgba(12,21,25,.2) 0%,
    rgba(12,21,25,.1) 35%,
    rgba(12,21,25,.88) 100%
  );
}
.hero-content { position: relative; z-index: 2; }
.hero-text { max-width: 520px; }

/* Desktop: break the centered wrap, anchor content to the left */
@media (min-width: 769px) {
  .hero-content.wrap {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(2.5rem, 7vw, 6rem);
  }
}
.hero-brand {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--amber);
  text-shadow: 0 2px 32px rgba(0,0,0,.55);
  margin-bottom: 1.25rem;
}
.hero-eyebrow {
  display: block;
  font-size: .92rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  margin-bottom: 1rem;
}
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); margin-bottom: 1rem; }
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,.72);
  margin-bottom: 2.5rem;
  max-width: 46ch;
  text-shadow: 0 1px 8px rgba(0,0,0,.85);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* respect OS-level "reduce motion" preference */
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
  .hero-media .hero-poster { display: block; }
}

/* mobile hero: swap to static image + readability improvements */
@media (max-width: 768px) {
  .hero-media video { display: none; }
  .hero-media .hero-poster { display: block; }

  .hero-content {
    background: rgba(10,18,22,.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 1.75rem 1.5rem;
    margin: 0 .25rem;
  }
}

@media (max-width: 860px) {
  .nav-logo .logo-main { font-size: 1.5rem; }
  .nav-logo .logo-sub  { font-size: .68rem; }
}

/* ── Section header ───────────────────────────────────────── */
.section-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .85rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--sage);
  margin-bottom: .55rem;
  border-radius: 2px;
}
.section-heading { margin-bottom: 1rem; }
.section-intro { font-size: 1.05rem; margin-bottom: 3rem; max-width: 54ch; }

/* ── Feature rows (home page) ─────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 540px;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }

.feature-img { overflow: hidden; height: 100%; }
.feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.feature-row:hover .feature-img img { transform: scale(1.04); }

.feature-body {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem);
}
.feature-body-inner { max-width: 460px; }
.feature-body h2 { margin-bottom: .8rem; }
.feature-body .feature-price {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--amber);
  margin-bottom: 1rem;
}
.feature-body p { font-size: 1.05rem; margin-bottom: 2rem; }

/* reverse: image right */
.feature-row--flip .feature-img { order: 2; }
.feature-row--flip .feature-body { order: 1; }

@media (max-width: 820px) {
  .feature-row, .feature-row--flip {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
  }
  .feature-row--flip .feature-img,
  .feature-row--flip .feature-body { order: unset; }
  .feature-img { height: 300px; }
}

/* ── Secondary grid (Activities + Gallery on home) ───────── */
.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 600px) {
  .secondary-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Stats bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--amber);
  padding: 2.25rem 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: #0c1519;
  display: block;
}
.stat-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(12,21,25,.65);
  margin-top: .35rem;
  display: block;
}

/* ── Rental cards (marina) ────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.rental-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.rental-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}
.rental-card-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.cabin-price-badge {
  position: absolute;
  top: .75rem; right: .75rem;
  background: var(--amber);
  color: #0c1519;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .65rem;
  border-radius: 3px;
}
.rental-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.rental-card:hover .rental-card-img img { transform: scale(1.07); }
.rental-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rental-card-body h3 { margin-bottom: .45rem; font-size: 1.1rem; }
.rental-card-body p { font-size: .88rem; flex: 1; margin-bottom: 1.25rem; }

/* ── Site type cards ──────────────────────────────────────── */
.site-type-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.site-type-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .25rem;
}
.site-type-header i {
  font-size: 1.4rem;
  color: var(--sage);
  flex-shrink: 0;
}
.site-type-header h3 { margin: 0; font-size: 1.25rem; }
.site-type-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.site-type-price {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

/* ── Cabin cards ──────────────────────────────────────────── */
.cabin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.cabin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cabin-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cabin-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.cabin-card:hover .cabin-card-img img { transform: scale(1.04); }
.cabin-card-body {
  padding: 1.5rem;
}
.cabin-card-body h3 { margin-bottom: .6rem; }
.cabin-card-body p { font-size: .95rem; }
.cabin-cta {
  text-align: center;
  padding-top: .5rem;
  margin-bottom: 2.5rem;
}
.cabin-cta-price {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--amber);
  margin-bottom: .4rem;
}
.cabin-cta-note {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .cabin-grid { grid-template-columns: 1fr; }
}

/* ── Amenities ────────────────────────────────────────────── */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}
.amenity-item { display: flex; gap: 1rem; align-items: flex-start; }
.amenity-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(122,158,110,.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--sage);
  font-size: 1rem;
}
.amenity-text h4 { font-family: var(--sans); font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.amenity-text p { font-size: .88rem; max-width: none; }

/* ── Spotlights (activities) ──────────────────────────────── */
.spotlight-list { display: flex; flex-direction: column; }
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  border-bottom: 1px solid var(--border);
}
.spotlight-img { overflow: hidden; }
.spotlight-img img { width: 100%; height: 100%; object-fit: cover; }
.spotlight:nth-child(even) .spotlight-img { order: 2; }
.spotlight:nth-child(even) .spotlight-body { order: 1; }
.spotlight-body {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem);
}
.spotlight-body-inner h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: .75rem; }
.spotlight-body-inner p { margin-bottom: 1.75rem; font-size: 1.02rem; }

@media (max-width: 768px) {
  .spotlight { grid-template-columns: 1fr; min-height: unset; }
  .spotlight:nth-child(even) .spotlight-img,
  .spotlight:nth-child(even) .spotlight-body { order: unset; }
  .spotlight-img { height: 260px; }
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-grid { columns: 3; column-gap: .6rem; }
.gallery-grid a {
  display: block;
  margin-bottom: .6rem;
  overflow: hidden;
  border-radius: var(--radius);
  break-inside: avoid;
}
.gallery-grid img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }

@media (max-width: 768px) { .gallery-grid { columns: 2; } }
@media (max-width: 480px) { .gallery-grid { columns: 1; } }

/* ── Page hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  filter: brightness(.35);
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p { font-size: 1.1rem; color: rgba(232,226,214,.75); max-width: 50ch; }

/* ── Camping split layout ─────────────────────────────────── */
.camping-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.camping-iframe {
  width: 100%;
  height: 72em;
  border: none;
  border-radius: var(--radius);
  display: block;
  background: transparent;
}
@media (max-width: 960px) {
  .camping-split { grid-template-columns: 1fr; }
  .camping-booking { order: -1; }
  .camping-iframe { height: 52em; }
}

/* ── Booking iframe ───────────────────────────────────────── */
.booking-iframe {
  width: 100%;
  height: 52em;
  border: none;
  border-radius: var(--radius);
  display: block;
  background: #fff;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; max-width: 960px;
  height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.75);
  animation: modal-in .2s ease;
}
@keyframes modal-in {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.modal-title {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}
.modal-close {
  font-size: 1.5rem; line-height: 1; color: var(--muted);
  transition: color var(--ease); padding: .2rem;
}
.modal-close:hover { color: var(--text); }
.modal-iframe { flex: 1; width: 100%; border: none; }

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 600;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 2.2rem; color: rgba(255,255,255,.65);
  cursor: pointer; transition: color var(--ease); line-height: 1;
}
.lightbox-close:hover { color: #fff; }

/* ── Contact & footer ─────────────────────────────────────── */
.contact-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
}
.contact-items {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.contact-item { display: flex; align-items: center; gap: .9rem; }
.contact-icon { color: var(--sage); font-size: 1.05rem; width: 1.2rem; text-align: center; flex-shrink: 0; }
.contact-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  display: block;
  margin-bottom: .15rem;
}
.contact-item a,
.contact-item span { font-size: .95rem; color: var(--text); }
.contact-item a:hover { color: var(--sage); }

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.6rem 0;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}

/* ── Dividers ─────────────────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ── Mobile overflow fixes ────────────────────────────────── */
@media (max-width: 600px) {
  .contact-items { gap: 1.75rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
