/* ═══════════════════════════════════════════════════════════════════
   Pine Street Lodge — Stylesheet
   ═══════════════════════════════════════════════════════════════════

   QUICK REFERENCE — things you're most likely to want to change:

   Colors & fonts  →  :root variables at the top of this file
   Section spacing →  section { padding }
   Max page width  →  --max variable

   ═══════════════════════════════════════════════════════════════════ */

/* ─── CONFIG-DRIVEN VISIBILITY ─────────────────────────────────── */
/* Sections are shown/hidden by toggling these classes on <body>    */
body.hide-gallery      #gallery      { display: none; }
body.hide-booking      #booking      { display: none; }
body.hide-amenities    #amenities    { display: none; }
body.hide-rules        #rules        { display: none; }
body.hide-neighborhood #neighborhood { display: none; }
body.hide-reviews      #reviews      { display: none; }
body.hide-contact      #contact      { display: none; }

/* ─── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  /* Colors — change these to retheme the whole site */
  --cream:    #f7f3ee;   /* page background */
  --bark:     #2c2218;   /* primary text / footer bg */
  --pine:     #2d4a35;   /* primary accent (nav CTA, buttons, icons) */
  --pine-lt:  #3a5e44;   /* hover state for pine */
  --amber:    #c4813a;   /* secondary accent (labels, dots, borders) */
  --amber-lt: #d9a06a;   /* lighter amber for hover / hero text */
  --stone:    #8c8075;   /* secondary / muted text */
  --rule:     rgba(44,34,24,0.12); /* divider lines */

  /* Layout */
  --max: 1120px;   /* max content width */
  --r:   6px;      /* base border radius */
}

/* ─── RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--bark);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--amber); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
section + section { border-top: 1px solid var(--rule); }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--bark);
  margin-bottom: 20px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--stone);
  max-width: 640px;
  line-height: 1.75;
}

/* ─── NAV ────────────────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,238,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--bark);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bark);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--pine); }

.nav-cta {
  background: var(--pine);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--r);
  opacity: 1 !important;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--pine-lt) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--bark); border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 680px) {
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--rule);
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 10px 24px; opacity: 0.8; }
  .nav-hamburger { display: flex; }
}

/* ─── HERO ───────────────────────────────────────────────────────── */
#hero {
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: 0;
  border-top: none;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(20,14,8,0.78) 0%,
    rgba(20,14,8,0.2)  55%,
    rgba(20,14,8,0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(196,129,58,0.25);
  border: 1px solid rgba(196,129,58,0.5);
  color: var(--amber-lt);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #fff;
  font-weight: 400;
  margin-bottom: 14px;
  max-width: 640px;
}

.hero-title em { font-style: italic; color: var(--amber-lt); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}

.hero-stat { color: #fff; }

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.hero-stat span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-lt); color: #fff; }

.btn-outline {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ─── GALLERY ────────────────────────────────────────────────────── */
#gallery { padding: 60px 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 200px;
  gap: 8px;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-grid .g-main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-more-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(247,243,238,0.92);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: var(--r);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--bark);
  transition: background 0.2s;
}
.gallery-more-btn:hover { background: #fff; }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20,14,8,0.93);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw; max-height: 88vh;
  border-radius: var(--r);
  object-fit: contain;
}
.lb-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; opacity: 0.7;
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  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; font-size: 1.4rem; cursor: pointer;
  padding: 12px 18px; border-radius: var(--r);
  transition: background 0.2s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 160px);
  }
  .gallery-grid .g-main { grid-column: 1 / 3; grid-row: 1 / 2; }
}

/* ─── BOOKING ────────────────────────────────────────────────────── */
#booking .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.booking-widget-placeholder {
  background: #fff;
  border: 2px dashed var(--amber);
  border-radius: 10px;
  padding: 48px 32px;
  text-align: center;
  color: var(--stone);
}

.booking-widget-placeholder .ph-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.booking-widget-placeholder p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.booking-widget-placeholder code {
  display: block;
  margin-top: 14px;
  background: var(--cream);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--amber);
}

@media (max-width: 800px) {
  #booking .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── AMENITIES ──────────────────────────────────────────────────── */
.amenity-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.amenity-group h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 14px;
}

.amenity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.amenity-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--bark);
}

.amenity-list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--amber-lt);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── HOUSE RULES ────────────────────────────────────────────────── */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.rule-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  border-left: 3px solid var(--amber);
}

.rule-card h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--bark);
}

.rule-card p {
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.6;
}

/* ─── NEIGHBORHOOD ───────────────────────────────────────────────── */
#neighborhood .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.highlight-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hl-icon {
  width: 38px; height: 38px;
  background: var(--pine);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  flex-shrink: 0;
}

.hl-text strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.hl-text span   { font-size: 0.85rem; color: var(--stone); }

.neighborhood-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.neighborhood-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 800px) {
  #neighborhood .two-col { grid-template-columns: 1fr; }
  .neighborhood-img { display: none; }
}

/* ─── REVIEWS ────────────────────────────────────────────────────── */
#reviews { background: var(--pine); }
#reviews .section-label { color: var(--amber-lt); }
#reviews .section-title { color: #fff; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.review-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 28px;
  transition: background 0.2s;
}
.review-card:hover { background: rgba(255,255,255,0.11); }

.review-stars {
  color: var(--amber-lt);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; font-weight: 600;
  flex-shrink: 0;
}

.review-author-info strong { display: block; font-size: 0.88rem; color: #fff; }
.review-author-info span   { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

.reviews-source {
  margin-top: 32px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ─── CONTACT ────────────────────────────────────────────────────── */
#contact .two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bark);
  letter-spacing: 0.03em;
}

.form-field input,
.form-field textarea,
.form-field select {
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: var(--r);
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--bark);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--pine);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-submit {
  background: var(--pine);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 13px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--pine-lt); }

.form-success {
  display: none;
  background: #edf5f0;
  border: 1px solid #a8d5b8;
  border-radius: var(--r);
  padding: 16px 20px;
  color: var(--pine);
  font-size: 0.9rem;
}

.contact-info { padding-top: 8px; }
.contact-info p { color: var(--stone); margin-bottom: 28px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.contact-detail .ci-icon {
  width: 36px; height: 36px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  #contact .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
footer {
  background: var(--bark);
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.1rem;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover { color: var(--amber-lt); }

/* ─── FADE-IN ANIMATION ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
