/* Alpine Garden — shared design system */

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

:root {
  --black: #111111;
  --burgundy: #7a1e1e;
  --burgundy-light: #9e2a2a;
  --cream: #f5f0e8;
  --warm: #e8ddc8;
  --white: #faf9f6;
  --mist: #d4c4c4;
  --stone: #8a7a7a;
  /* legacy aliases */
  --forest: var(--black);
  --pine: var(--black);
  --sage: var(--stone);
  --amber: var(--burgundy);
  --wine: var(--burgundy);
  --sky: #b8cdd4;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* Tabler amenity / feature icons */
.amenity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 16px 0 24px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #555;
}

.amenity-item i,
.feature-item i,
.inc-item i,
.perk i,
.unit-meta-item i {
  font-size: 16px;
  color: #8B7355;
  flex-shrink: 0;
}

.unit-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
  color: #555;
  margin: 12px 0 24px;
}

.unit-highlights .dot {
  color: #ccc;
}

.amenity-card-icon i,
.pillar-icon i,
.discount-badge-icon i {
  color: #8B7355;
  flex-shrink: 0;
  font-size: inherit;
}

/* —— Unit page nav + switcher —— */
.unit-page-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1a1a;
  width: 100%;
  padding: 16px 32px;
  min-height: 80px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.unit-page-nav .nav-logo img {
  height: 110px;
  width: auto;
  max-width: min(220px, 42vw);
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.all-accommodations-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.all-accommodations-link:hover {
  color: #fff;
}

.unit-switcher {
  position: sticky;
  top: 142px;
  z-index: 90;
  background: #f4f0eb;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  display: flex;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 24px;
  scrollbar-width: none;
  pointer-events: auto;
}

.unit-switcher::-webkit-scrollbar { display: none; }

.unit-switcher a {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  padding: 16px 24px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.unit-switcher a.active {
  color: #1a1a1a;
  border-bottom-color: #6b1a1a;
  font-weight: 500;
}

.unit-switcher a:hover { color: #1a1a1a; }

@media (max-width: 900px) {
  .unit-page-nav { padding: 12px 20px; }
  .unit-page-nav .nav-logo img { height: 72px; max-width: calc(100vw - 80px); }
  .unit-switcher { top: 96px; padding: 0 20px; }
}

/* —— Nav (homepage & about) —— */
nav:not(.footer-nav):not(.unit-page-nav) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: linear-gradient(to bottom, rgba(17,17,17,0.85), transparent);
  transition: background 0.4s, padding 0.4s;
}
nav:not(.footer-nav):not(.unit-page-nav).scrolled {
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(12px);
  padding: 16px 48px;
}
.nav-logo {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}
.nav-logo img {
  height: 110px;
  width: auto;
  max-width: min(220px, 42vw);
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-book {
  background: var(--burgundy);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 500 !important;
}
.nav-book:hover { background: var(--burgundy-light) !important; }

/* —— Mobile nav toggle —— */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(212,196,196,0.35);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s, opacity 0.25s;
}
nav:not(.footer-nav):not(.unit-page-nav).nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav:not(.footer-nav):not(.unit-page-nav).nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
nav:not(.footer-nav):not(.unit-page-nav).nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-menu-open { overflow: hidden; }

/* —— Hero (shared typography & motion) —— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1.0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.hero-eyebrow {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-title {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 0.92;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}
.hero-title em { font-style: italic; color: var(--mist); }
.hero-sub {
  position: relative;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(212,196,196,0.9);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeUp 0.9s 0.85s forwards;
}
.hero-cta-row {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s 1.1s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--mist);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--mist);
  animation: scrollPulse 2s 2s infinite;
}

/* —— Buttons —— */
.btn-primary {
  display: inline-block;
  background: var(--burgundy);
  color: var(--white);
  padding: 16px 38px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--burgundy-light);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(212,196,196,0.6);
  color: var(--mist);
  padding: 15px 30px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--cream);
  color: var(--cream);
}

/* —— Section typography —— */
section { padding: 100px 48px; }
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--black);
}
.section-title em { font-style: italic; color: var(--burgundy); }

/* —— Scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* —— AOS — subtle image scale on feature photos —— */
[data-aos="fade-up"] img {
  transform: scale(1.03);
  transition: transform 1.2s ease-out;
}
[data-aos="fade-up"].aos-animate img {
  transform: scale(1);
}

/* —— Footer —— */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding: 56px 48px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 260px;
  margin: 0;
}

.footer-col-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.footer-nav {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  margin: 0;
  background: none;
  backdrop-filter: none;
}

.footer-nav a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}

.footer-nav a:hover { color: #fff; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.site-footer .footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  margin-bottom: 0;
}

.site-footer .footer-col p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-map {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-map:hover { opacity: 1; }

.map-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  cursor: pointer;
}

.footer-bottom {
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  padding: 20px 48px;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-link {
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.social-link:hover { color: #fff; }

/* —— Shared responsive —— */
@media (max-width: 900px) {
  nav:not(.footer-nav):not(.unit-page-nav) {
    padding: 16px 20px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: rgba(17,17,17,0.97);
    backdrop-filter: blur(12px);
  }
  nav:not(.footer-nav):not(.unit-page-nav).scrolled { padding: 14px 20px; }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    order: 2;
    flex-shrink: 0;
  }
  .nav-logo { order: 1; flex-shrink: 0; min-width: 0; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    order: 3;
    margin-top: 8px;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(138,122,122,0.2);
  }
  nav:not(.footer-nav):not(.unit-page-nav).nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 0.82rem;
  }
  .nav-book {
    display: block !important;
    text-align: center;
    margin-top: 4px;
    padding: 14px 20px !important;
  }
  section { padding: 64px 20px; }
  footer { padding: 0; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 20px 32px;
  }
}

@media (max-width: 480px) {
  html, body { overflow-x: hidden; }
  img, video, iframe, svg { max-width: 100%; }
  p, h1, h2, h3, h4, li, a, span, label {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  section { padding: 48px 16px; }
  footer { padding: 0; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
    padding: 40px 16px 28px;
  }
  .footer-desc { max-width: none; }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 20px 16px;
  }

  .hero-cta-row,
  .booking-cta-btns,
  .cta-btns {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    max-width: 100%;
    gap: 12px !important;
  }

  .btn-primary,
  .btn-ghost,
  .btn-book,
  .stay-card-book,
  .contact-form button,
  .wedding-form button,
  .adv-cta .btn-primary,
  .winery-cta .btn-primary,
  .gift-cards-cta .btn-primary,
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-ghost,
  .booking-cta-btns .btn-primary,
  .booking-cta-btns .btn-ghost,
  .cta-btns .btn-primary,
  .cta-btns .btn-ghost,
  .intro-text .btn-primary,
  .winery-content .btn-ghost {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    box-sizing: border-box;
  }

  .winery-content .btn-ghost { align-self: stretch !important; }

  .adventures-grid,
  .adv-tiles,
  .mosaic-grid,
  .intro-img-grid,
  .about-hero-layout,
  .intro-strip-inner,
  .location-details,
  .winery-hours,
  .pillars-grid,
  .amenities-header,
  .amenities-grid,
  .press-grid,
  .contact-grid,
  .wedding-intro-inner,
  .winery-about-inner,
  .adv-spot,
  .adv-spot.reverse,
  .date-inputs,
  .gallery-hero {
    grid-template-columns: 1fr !important;
  }

  .adv-spot.reverse .adv-spot-img,
  .adv-spot.reverse .adv-spot-text { order: unset !important; }

  .gallery-hero {
    grid-template-rows: auto !important;
    max-height: none !important;
  }
  .gallery-hero img:first-child { grid-row: span 1 !important; }

  .mosaic-grid .span-2-h,
  .mosaic-grid .span-2-v,
  .mosaic-grid .span-2-both {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .intro-img-grid img:first-child { grid-row: span 1; }
  .intro-img-grid { grid-template-rows: auto; }

  .stay-card-footer {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }
  .stay-card-price { white-space: normal; }
  .stay-card-book {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .winery-hours { flex-direction: column; gap: 20px; }
  .winery-hours-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  .press-bar { gap: 12px; padding: 16px; justify-content: center; }
  .nav-logo img { height: 72px; max-width: calc(100vw - 80px); }

  .unit-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .unit-main { padding: 32px 16px !important; }
  .unit-tabs { padding: 0 16px; }
  nav:not(#nav) { padding: 14px 16px !important; flex-wrap: wrap; gap: 8px; }
  .nav-back { font-size: 0.68rem; max-width: 100%; }

  .wedding-gallery { columns: 1 !important; }
  .gallery-masonry { columns: 1 !important; }

  .hero {
    height: auto !important;
    min-height: 520px !important;
    padding: 100px 16px 64px;
  }
  .hero-scroll { display: none; }

  body.page-contact,
  body.page-faqs,
  body.page-gift-cards,
  body.page-gallery,
  body.page-stays {
    padding-top: 64px !important;
  }
}
