/* ============================================
   White Birch Vacations — Mountain Resort
   ============================================ */

:root {
  --color-bg: #faf8f5;
  --color-bg-warm: #f5f1eb;
  --color-cream: #f0ebe3;
  --color-wood: #8b7355;
  --color-wood-dark: #5c4a38;
  --color-forest: #2d4a3e;
  --color-forest-light: #3d5f52;
  --color-snow: #e8e4de;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-accent: #206CFF;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --shadow-soft: 0 4px 20px rgba(45, 74, 62, 0.08);
  --shadow-card: 0 8px 32px rgba(45, 74, 62, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 74, 62, 0.06);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(250, 248, 245, 0.98);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--color-forest);
}

.btn-nav-book,
a.btn-nav-book {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-forest);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-nav-book:hover,
a.btn-nav-book:hover {
  background: var(--color-forest-light);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-forest);
  border-radius: 1px;
}

/* Book Now modal */
.booking-bar {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 2rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-bar.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.booking-bar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 0;
}

.booking-bar-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 1.75rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

.booking-modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-forest);
  margin: 0 2.5rem 0.75rem 0;
  text-align: left;
}

.booking-bar-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.booking-bar-close:hover {
  color: var(--color-forest);
  background: var(--color-bg-warm);
}

.booking-ical-status {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin: 0 2rem 1rem 0;
  min-height: 1.2em;
}

.booking-ical-status--warn {
  color: #8b6914;
}

.booking-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 9.5rem);
  gap: 0.75rem 1rem;
  align-items: end;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.booking-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-forest);
  letter-spacing: 0.03em;
}

.booking-field input,
.booking-field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(45, 74, 62, 0.2);
  border-radius: var(--radius);
  color: var(--color-text);
  background: #fff;
}

.booking-field input:focus,
.booking-field select:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 2px rgba(45, 74, 62, 0.15);
}

.btn-booking {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--color-forest);
  color: #fff;
  padding: 0.7rem 1rem;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.btn-booking:hover {
  background: var(--color-forest-light);
}

@media (max-width: 640px) {
  .booking-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Flatpickr (appends to body — not inside .hero-booking) */
.flatpickr-calendar {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}

.flatpickr-calendar.open {
  z-index: 100000;
}

.flatpickr-day.flatpickr-disabled:not(.blocked-calendar) {
  color: rgba(44, 44, 44, 0.35);
}

.flatpickr-day.flatpickr-disabled.blocked-calendar,
.flatpickr-day.blocked-calendar {
  color: var(--color-text);
  opacity: 1;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  background: rgba(45, 74, 62, 0.06);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-forest);
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg + .hero-overlay {
  background: linear-gradient(165deg, rgba(45, 74, 62, 0.88) 0%, rgba(30, 51, 41, 0.92) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0,0,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.75rem;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero-booking {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.hero-booking .booking-ical-status {
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.hero-booking .booking-field label {
  color: var(--color-forest);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.95;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--color-forest);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  border-radius: 1px;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Container */
.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Gallery carousel */
.gallery-section {
  padding: 4rem 0;
  background: var(--color-bg-warm);
  overflow: hidden;
}

.gallery-heading-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--color-forest);
  margin: 0;
  letter-spacing: 0.02em;
}

.gallery-carousel-wrap {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.gallery-carousel {
  width: 100%;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: gallery-scroll 60s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-slide {
  flex-shrink: 0;
  width: 350px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes gallery-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section layout: content + accent image */
.section-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.25rem;
  align-items: center;
  padding: 4rem 1.5rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.section-inner-reverse {
  direction: rtl;
}

.section-inner-reverse > * {
  direction: ltr;
}

.section-content {
  min-width: 0;
}

.section-content .section-title {
  margin-top: 0;
}

.section-accent-img {
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.section-accent-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.section-accent-img-small img {
  aspect-ratio: 16 / 9;
  max-width: 300px;
}

.section-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-wood);
}

.section-icon svg {
  width: 100%;
  height: 100%;
}

.link-button {
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--color-forest);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-button:hover {
  color: var(--color-forest-light);
}

/* Section titles */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-forest);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

/* Intro */
.intro {
  padding: 0;
  background: var(--color-bg);
}

.intro .section-inner {
  padding: 4.5rem 1.5rem;
}

.intro-summary {
  margin: 0 0 1.25rem;
  color: var(--color-text);
}

.intro-summary:last-of-type {
  margin-bottom: 2rem;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.highlights li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-forest-light);
  font-weight: 500;
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--color-wood);
  border-radius: 50%;
}

/* The Space */
.the-space {
  padding: 0;
  background: var(--color-bg-warm);
}

.the-space .section-inner {
  padding: 4.5rem 1.5rem;
}

.floor-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.floor-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(45, 74, 62, 0.06);
}

.floor-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-wood);
  margin-bottom: 0.5rem;
}

.floor-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-forest);
  margin: 0 0 0.5rem;
}

.floor-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.floor-card-featured {
  border-color: rgba(45, 74, 62, 0.12);
  box-shadow: var(--shadow-card);
}

/* Ski section */
.ski-section {
  padding: 0;
  background: var(--color-bg);
}

.ski-section .section-inner {
  padding: 4.5rem 1.5rem;
}

.ski-intro {
  margin: 0 0 1.25rem;
  color: var(--color-text);
}

.ski-intro:last-child {
  margin-bottom: 0;
}

/* Location */
.location {
  padding: 0;
  background: var(--color-bg-warm);
}

.location .section-inner {
  padding: 4.5rem 1.5rem;
}

.location p {
  margin: 0 0 1.25rem;
}

.location p:last-child {
  margin-bottom: 0;
}

/* Guest access */
.guest-access {
  padding: 4rem 1.5rem;
  background: var(--color-bg);
}

.guest-access p {
  margin: 0;
}

/* Amenities note */
.amenities-note {
  padding: 0;
  background: var(--color-cream);
}

.amenities-note .section-inner {
  padding: 3.25rem 1.5rem;
  max-width: 960px;
}

.amenities-text {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-forest-light);
  font-style: italic;
  text-align: center;
}

/* Contact */
.contact {
  padding: 4rem 1.5rem;
  background: var(--color-bg-warm);
}

.contact p {
  margin: 0 0 0.75rem;
}

.contact-cta {
  margin-top: 1rem !important;
  font-weight: 500;
  color: var(--color-forest);
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem;
  background: var(--color-forest);
  color: rgba(255,255,255,0.85);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #fff;
}

.footer-location {
  font-size: 0.9rem;
  margin: 0 0 1rem;
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: rgba(250, 248, 245, 0.98);
    border-bottom: 1px solid rgba(45, 74, 62, 0.08);
  }

  .nav.open a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(45, 74, 62, 0.06);
  }

  .nav.open a:last-child {
    border-bottom: none;
  }

  .nav.open .btn-nav-book {
    margin-top: 0.5rem;
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 5rem 1rem 3rem;
  }

  .highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .section-inner,
  .section-inner-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }

  .section-accent-img {
    max-width: 400px;
    margin: 0 auto;
  }

  .section-accent-img-small img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .section-inner {
    padding: 3rem 1.25rem !important;
  }

  .gallery-slide {
    width: 300px;
  }
}
