/* ===========================================
   Bear Pines Retreat — Main Stylesheet
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Karla:wght@400;500;600;700&display=swap');

:root {
  /* Palette pulled from the logo */
  --forest-dark: #1f3326;
  --forest: #2c4530;
  --forest-light: #3f5c44;
  --cream: #f4ecdc;
  --cream-light: #faf6ec;
  --brown-dark: #3a2a1d;
  --brown: #6b4a33;
  --brown-light: #a47f5f;
  --gold: #c9a86a;
  --white: #ffffff;
  --text-dark: #2a2420;
  --text-muted: #5c5349;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;

  --shadow-sm: 0 2px 8px rgba(31, 51, 38, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 51, 38, 0.14);
  --shadow-lg: 0 16px 48px rgba(31, 51, 38, 0.2);

  --radius: 6px;
  --max-width: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { color: var(--text-muted); }

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

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--forest);
  color: var(--cream-light);
}
.btn-primary:hover {
  background: var(--forest-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--forest-dark);
  border-color: var(--forest-dark);
}
.btn-secondary:hover {
  background: var(--forest-dark);
  color: var(--cream-light);
}

.btn-gold {
  background: var(--gold);
  color: var(--brown-dark);
}
.btn-gold:hover {
  background: var(--brown-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 246, 236, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(44, 69, 48, 0.1);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 56px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--forest-dark);
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--forest-dark);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,51,38,0.15) 0%, rgba(31,51,38,0.25) 50%, rgba(20,30,22,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px 70px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero .eyebrow { color: var(--cream); opacity: 0.9; }
.hero h1 { color: var(--white); margin: 10px 0 16px; max-width: 750px; }
.hero p.lead {
  color: var(--cream);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-sub {
  min-height: 46vh;
  align-items: center;
}
.hero-sub .hero-content { padding: 100px 24px 50px; text-align: center; margin: 0 auto; }
.hero-sub h1 { margin: 10px auto 0; }
.hero-sub.has-lead h1 { margin-bottom: 16px; }
.hero-sub .lead { margin: 0 auto; text-align: center; }

/* ============ SECTIONS ============ */
section { padding: 80px 0; }
.section-tight { padding: 50px 0; }
.section-cream { background: var(--cream); }
.section-forest {
  background: var(--forest-dark);
  color: var(--cream);
}
.section-forest h2, .section-forest h3 { color: var(--cream); }
.section-forest p { color: rgba(244, 236, 220, 0.8); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { margin: 10px 0 14px; }

/* ============ CARDS / GRIDS ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card img { width: 100%; height: 230px; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card-body p { font-size: 0.92rem; }

/* Amenity items */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.amenity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  padding: 16px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.amenity-item .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.amenity-item strong { display: block; font-size: 0.95rem; color: var(--text-dark); }
.amenity-item span.detail { font-size: 0.84rem; color: var(--text-muted); }

/* Stat strip */
.stat-strip {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: center;
}
.stat-strip .stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-strip .stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(244,236,220,0.75);
}

/* ============ GALLERY ============ */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 30px;
  border: 1.5px solid var(--forest);
  background: transparent;
  color: var(--forest-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { background: rgba(44,69,48,0.08); }
.filter-btn.active { background: var(--forest); color: var(--cream-light); }

.masonry {
  columns: 3 220px;
  column-gap: 16px;
}
.masonry .gitem {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
}
.masonry .gitem img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}
.masonry .gitem:hover img { transform: scale(1.05); }
.gitem-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(31,51,38,0.85), transparent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.masonry .gitem:hover .gitem-cap { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 21, 0.94);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(244,236,220,0.12);
  border: none;
  color: var(--cream);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(244,236,220,0.25); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============ BOOKING WIDGET ============ */
.book-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  border: 1px solid rgba(44,69,48,0.08);
}
.book-card h3 { margin-bottom: 4px; }
.book-card .book-price { color: var(--brown); font-weight: 700; margin-bottom: 20px; }
.book-options { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.book-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1.5px solid rgba(44,69,48,0.15);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.book-option:hover { border-color: var(--forest); background: rgba(44,69,48,0.03); }
.book-option.featured {
  border-color: var(--gold);
  background: rgba(201,168,106,0.08);
}
.book-option-label { font-weight: 700; font-size: 1rem; color: var(--text-dark); }
.book-option-sub { font-size: 0.8rem; color: var(--text-muted); }
.badge-best {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-dark);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 6px;
}

/* ============ FORMS ============ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid rgba(44,69,48,0.2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--forest);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--forest-dark);
  color: rgba(244,236,220,0.85);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 50px; }
.footer-brand-text { font-family: var(--font-display); font-weight: 700; color: var(--cream); font-size: 1.1rem; }
.site-footer h4 {
  color: var(--cream);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(244,236,220,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(244,236,220,0.5);
}

/* ============ MISC ============ */
.divider-icon {
  text-align: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--gold);
}

.tag-pill {
  display: inline-block;
  background: rgba(44,69,48,0.08);
  color: var(--forest-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
}

.map-embed {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius);
}

.quote-block {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: var(--forest-dark);
  line-height: 1.5;
}

.notice-box {
  background: rgba(201,168,106,0.12);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2 180px; }
  .stat-strip { gap: 32px; }
}

@media (max-width: 600px) {
  .grid-3, .grid-4, .amenity-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  section { padding: 56px 0; }
  .hero { min-height: 78vh; }
}
