/* ==========================================================================
   Mountain View Meadow
   Palette: Blue Ridge atmospheric perspective — near ridge dark, far ridge
   hazing to pale blue-grey. Accent gold lifted from the logo's sun.
   ========================================================================== */

:root {
  --ink:        #12211f;
  --ridge:      #1e3a3f;
  --ridge-mid:  #3a5b60;
  --haze:       #7f9ba0;
  --haze-pale:  #b9cbcd;
  --mist:       #eaefee;
  --paper:      #ffffff;
  --meadow:     #b9781f;
  --meadow-lt:  #dda545;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1240px;
  --radius: 3px;
  --hdr-h: 66px;

  --shadow-sm: 0 1px 2px rgba(18,33,31,.06), 0 4px 12px rgba(18,33,31,.05);
  --shadow-md: 0 2px 4px rgba(18,33,31,.06), 0 12px 32px rgba(18,33,31,.10);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .97rem + .16vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0;
  font-variation-settings: "opsz" 90;
}

:focus-visible {
  outline: 2.5px solid var(--meadow);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--mist);
  padding: .75rem 1.25rem; font-size: .9rem;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }

/* ---------- shared type helpers ---------- */
.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ridge-mid);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--haze-pale); }

.lede {
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.3rem);
  line-height: 1.55;
  max-width: var(--measure);
  color: var(--ridge);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  font-family: var(--body);
  font-size: .875rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--meadow); color: #fff; border-color: var(--meadow); }
.btn--primary:hover { background: #a06718; border-color: #a06718; }

.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(18,33,31,.28); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(18,33,31,.04); }

.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--onDark:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--sm { padding: .7rem 1.2rem; font-size: .78rem; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(234,239,238,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18,33,31,.09);
}
.hdr__in {
  max-width: var(--maxw); margin-inline: auto;
  padding: .7rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.hdr__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.hdr__logo img { width: 44px; height: 44px; border-radius: 50%; }
.hdr__logo b {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: -.01em; line-height: 1.15; max-width: 8.5em;
  font-variation-settings: "opsz" 20;
}
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: .8rem; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; text-decoration: none;
  color: var(--ridge); padding: .35rem 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--meadow); }
/* The nav's own CTA is for the mobile drawer only — on desktop .hdr__cta covers it. */
.nav .btn { display: none; }

.navToggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .5rem; color: var(--ink);
}
.navToggle svg { display: block; }

@media (max-width: 900px) {
  .navToggle { display: block; order: 3; position: relative; z-index: 2; }
  .hdr__logo { position: relative; z-index: 2; }
  .hdr__cta { display: none; }
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mist);
    border-bottom: 1px solid rgba(18,33,31,.12);
    /* Padding clears the header; the drawer itself starts at the very top so
       that translateY(-100%) is guaranteed to hide it whatever its height.
       (Anchoring lower and shifting by >100% leaves a sliver on screen.) */
    padding: calc(var(--hdr-h) + .6rem) var(--gutter) 1.5rem;
    transform: translateY(-100%);
    transition: transform .32s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: .95rem 0; border-bottom: 1px solid rgba(18,33,31,.08); font-size: .95rem; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: rgba(18,33,31,.08); }
  .nav .btn { display: inline-flex; margin-top: 1.1rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ridge); overflow: hidden; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .92;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(12,26,25,.86) 0%, rgba(12,26,25,.62) 42%, rgba(12,26,25,.18) 78%);
}
.hero__in {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(5rem, 16vh, 10rem) var(--gutter) clamp(3.5rem, 9vh, 6rem);
  color: #fff;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 5.2vw, 5.1rem);
  font-weight: 400;
  letter-spacing: -.03em;
  max-width: 13ch;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(1.05rem, .98rem + .5vw, 1.32rem);
  line-height: 1.5; max-width: 42ch;
  margin: 1.4rem 0 2.2rem;
  color: rgba(255,255,255,.9);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* star / review strip */
.stars { display: inline-flex; align-items: center; gap: .5rem; }
.stars__glyphs { color: var(--meadow-lt); letter-spacing: .06em; font-size: 1rem; }
.hero__rating {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  margin-bottom: 1.6rem;
  font-size: .875rem; letter-spacing: .04em;
  color: rgba(255,255,255,.88);
}
.hero__rating b { font-weight: 600; }

/* ---------- sections ---------- */
.sect { padding-block: clamp(3.5rem, 9vw, 7rem); }
.sect--paper { background: var(--paper); }
.sect--ridge { background: var(--ridge); color: var(--mist); }
.sect--ridge h2, .sect--ridge h3 { color: #fff; }
.sect--ink { background: var(--ink); color: var(--mist); }

.sect__head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sect__head h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 3rem); font-weight: 400; }
.sect__head p { margin: 1rem 0 0; }

/* ---------- property cards ---------- */
.homes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.home {
  background: var(--paper);
  border: 1px solid rgba(18,33,31,.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.home:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.home__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--haze-pale); }
.home__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.home:hover .home__media img { transform: scale(1.035); }
.home__body { padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.home__body h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 500; }
.home__specs {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  margin: .85rem 0 1rem; padding: 0; list-style: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ridge-mid);
}
.home__specs li { display: flex; align-items: center; gap: .5rem; }
.home__specs li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--haze); }
.home__body p { margin: 0 0 1.6rem; color: var(--ridge); }
.home__foot { margin-top: auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.home__rating { font-size: .82rem; color: var(--ridge-mid); display: flex; align-items: center; gap: .4rem; }

/* ==========================================================================
   SIGNATURE — the distance board.
   Guests here are always asking "how far to the wineries / to DC". This is
   that answer as a typographic index, set like a trailhead sign.
   ========================================================================== */
.board { border-top: 1px solid rgba(255,255,255,.18); }
.board__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: 0 clamp(1.75rem, 3.5vw, 3.25rem);
}
.board__group { padding-block: 1.6rem; }
.board__group h3 {
  font-family: var(--body); font-size: .72rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--meadow-lt);
  margin: 0 0 .3rem;
}
.board__list { list-style: none; margin: 0; padding: 0; }
.board__row {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .62rem 0;
  border-bottom: 1px solid rgba(255,255,255,.11);
  font-size: .96rem;
}
.board__row:last-child { border-bottom: 0; }
.board__name { color: rgba(255,255,255,.93); }
.board__leader {
  flex: 1;
  border-bottom: 1px dotted rgba(255,255,255,.32);
  transform: translateY(-.28em);
  min-width: 1.5rem;
}
.board__time {
  font-variant-numeric: tabular-nums;
  font-size: .84rem; font-weight: 600; letter-spacing: .05em;
  color: var(--haze-pale); white-space: nowrap;
}
.board__note {
  margin: 2.2rem 0 0; font-size: .84rem; color: var(--haze);
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.2rem;
}

/* ---------- booking ---------- */
.bookGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.bookCard { background: var(--paper); border: 1px solid rgba(18,33,31,.1); border-radius: var(--radius); overflow: hidden; }
.bookCard__head { padding: 1.5rem clamp(1.2rem, 3vw, 1.8rem) .4rem; }
.bookCard__head h3 { font-size: 1.35rem; font-weight: 500; }
.bookCard__head p { margin: .5rem 0 0; font-size: .88rem; color: var(--ridge-mid); }
/* Hospitable documents a minimum container of 320px wide by 900px tall.
   Below that the booking form scrolls inside the iframe, which reads badly. */
.widget { position: relative; min-height: 900px; }
.widget iframe { width: 100%; height: 900px; min-width: 320px; border: 0; display: block; }
.widget__skeleton {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .9rem;
  background: var(--paper); color: var(--ridge-mid);
  font-size: .88rem; text-align: center; padding: 2rem;
}
.widget[data-loaded="true"] .widget__skeleton { display: none; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--haze-pale); border-top-color: var(--meadow);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fallback {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(18,33,31,.12);
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem;
  font-size: .89rem; color: var(--ridge-mid);
}
.fallback a { color: var(--ridge); text-underline-offset: 3px; }

/* ---------- reviews ---------- */
.revHead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 2.5rem; margin-bottom: 2.5rem; }
.revScore { display: flex; align-items: baseline; gap: .6rem; }
.revScore b { font-family: var(--display); font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); font-weight: 400; line-height: 1; font-variation-settings: "opsz" 144; }
.revScore span { font-size: .85rem; color: var(--ridge-mid); letter-spacing: .05em; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.quote {
  background: var(--paper); border: 1px solid rgba(18,33,31,.1);
  border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 1.8rem);
  display: flex; flex-direction: column;
}
.quote blockquote { margin: 0 0 1.2rem; font-size: .97rem; line-height: 1.6; color: var(--ridge); }
.quote figcaption { margin-top: auto; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ridge-mid); display: flex; gap: .55rem; align-items: center; }
.quote figcaption b { font-weight: 600; color: var(--ink); }

/* ---------- gallery ---------- */
.galGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .55rem; }
.galItem {
  margin: 0; padding: 0; border: 0; background: var(--haze-pale);
  aspect-ratio: 3 / 2; overflow: hidden; cursor: zoom-in;
  border-radius: 2px;
}
.galItem img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease), opacity .3s var(--ease); }
.galItem:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,20,19,.95);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 2px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
  transition: background-color .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav--prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: .8rem; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

/* ---------- prose / FAQ ---------- */
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15rem; }
.prose h3 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; font-weight: 500; }

.faq { border-top: 1px solid rgba(18,33,31,.13); }
.faq details { border-bottom: 1px solid rgba(18,33,31,.13); }
.faq summary {
  cursor: pointer; padding: 1.15rem 0; list-style: none;
  font-weight: 500; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; color: var(--meadow); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 1.3rem; color: var(--ridge); max-width: var(--measure); }
.faq details > div p { margin: 0 0 .8rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- amenities ---------- */
.amen { columns: 2; column-gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 560px) { .amen { columns: 1; } }
.amen li {
  break-inside: avoid; padding: .5rem 0 .5rem 1.5rem; position: relative;
  font-size: .95rem; color: var(--ridge);
}
.amen li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--meadow); opacity: .85;
}

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 400; margin-bottom: 1rem; }
.cta p { max-width: 46ch; margin: 0 auto 2rem; color: var(--haze-pale); }
.cta .btn { margin-inline: .3rem; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--haze); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .9rem; }
.ftr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.ftr h4 { font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--haze-pale); margin: 0 0 1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: .6rem; }
.ftr a { color: var(--haze); text-decoration: none; transition: color .2s var(--ease); }
.ftr a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ftr__brand img { width: 62px; height: 62px; border-radius: 50%; margin-bottom: 1rem; }
.ftr__brand p { margin: 0; max-width: 30ch; line-height: 1.6; }
.ftr__base {
  border-top: 1px solid rgba(255,255,255,.11); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: var(--ridge-mid);
}
.ftr__base a { color: var(--ridge-mid); }
