/* ============================================================
   MIDLAND FARM — Warm Heritage design system
   cream #FAF7F2 · charcoal #2B2B28 · sage #8A9A7B · gold #C9A85C
   ============================================================ */
:root {
  --cream: #FAF7F2;
  --cream-deep: #F3EDE3;
  --charcoal: #2B2B28;
  --ink: #55554E;
  --sage: #8A9A7B;
  --gold: #C9A85C;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --script: "Great Vibes", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  letter-spacing: .01em;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(201, 168, 92, .35);
  padding: 14px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 52px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: .14em;
}
.brand-sub {
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-nav { display: flex; gap: 38px; }
.site-nav a {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, color .25s;
}
.site-nav a:hover, .site-nav a.active { border-color: var(--gold); color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px; height: 26px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; background: var(--charcoal); transition: .25s;
}
.nav-toggle span { top: 12px; }
.nav-toggle span::before { top: -9px; }
.nav-toggle span::after { top: 9px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 64vh;  /* 25% shorter than the original 86vh */
  min-height: 390px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,28,24,.34) 0%, rgba(30,28,24,.22) 45%, rgba(30,28,24,.5) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 0 6vw; }
.hero-content::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(18,16,13,.52) 0%, rgba(18,16,13,.30) 46%, rgba(18,16,13,0) 72%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-script {
  font-family: var(--script);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 400;
  text-shadow: 0 2px 5px rgba(0,0,0,.55), 0 6px 30px rgba(0,0,0,.5);
}
.hero-line {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-top: 18px;
  text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 2px 18px rgba(0,0,0,.6);
}
.hero .btn { margin-top: 38px; }
.hero.hero-small { height: 52vh; min-height: 380px; }
/* home banner: Keswick-style full-bleed hero (original spec), photo pre-cropped
   of its empty sky; bottom-anchored so any residual trim only takes sky */
.hero.hero-full { height: 86vh; min-height: 520px; }
.hero.hero-full .hero-bg { object-position: center bottom; }
/* about banner: zero-crop — box locked to the aerial's shape after the
   top-40% + bottom-15% trims (1195x457, ~2.6:1 wide cinematic) */
.hero.hero-about-full {
  height: auto;
  aspect-ratio: 1792 / 685;  /* exact output dims of the cropped hero image */
  min-height: 340px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  color: #fff;
  background: rgba(201, 168, 92, .16);
  backdrop-filter: blur(2px);
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--gold); color: #fff; }
.btn.btn-dark { color: var(--charcoal); background: transparent; }
.btn.btn-dark:hover { background: var(--gold); color: #fff; }

/* ---------- intro strip (compact blurb + actions under the hero) ---------- */
.intro-band {
  padding: 21px 6vw 19px;
  background: var(--cream);
  border-top: 1px solid rgba(201,168,92,.45);
  border-bottom: 1px solid rgba(201,168,92,.45);
  text-align: center;
}
.intro-inner { max-width: 1200px; margin: 0 auto; }
.intro-blurb {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--charcoal);
  max-width: 64ch;
  margin: 0 auto 12px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 11px; }
.intro-band .btn { padding: 10px 22px; font-size: .68rem; }
.btn.btn-solid {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
  backdrop-filter: none;
}
.btn.btn-solid:hover { background: #75866A; border-color: #75866A; }
.btn.btn-outline {
  color: var(--charcoal);
  background: transparent;
  border-color: rgba(43,43,40,.3);
  backdrop-filter: none;
}
.btn.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.trust-line {
  margin-top: 0;
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
}
.trust-line .tl-gold { color: var(--gold); }

/* ---------- sections ---------- */
.section { padding: 90px 6vw; }
.section-tight { padding: 60px 6vw; }
.section-alt { background: var(--cream-deep); }
.eyebrow {
  font-size: .68rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.rule {
  width: 64px; height: 1px;
  background: var(--gold);
  margin: 26px 0;
}
.rule.center { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.lede { font-size: 1.06rem; color: var(--ink); max-width: 62ch; }

/* welcome split */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.split img { box-shadow: 0 18px 50px rgba(43,43,40,.18); width: 100%; }
.lb-item { display: block; cursor: zoom-in; }

/* highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}
.highlight h3 {
  font-size: 1.35rem;
  letter-spacing: .06em;
  margin: 14px 0 12px;
}
.highlight .num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .3em;
}
.highlight p { color: var(--ink); font-size: .95rem; }

/* featured band */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1300px;
  margin: 42px auto 0;
}
.feat-grid a { overflow: hidden; position: relative; }
.feat-grid img {
  width: 100%; height: 320px; object-fit: cover;
  transition: transform .6s ease;
}
.feat-grid a:hover img { transform: scale(1.045); }

/* ---------- about ---------- */
.story { max-width: 820px; margin: 0 auto; }
.story p { color: var(--ink); margin-bottom: 22px; font-size: 1.02rem; }
.story .drop::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: .82;
  padding-right: 10px;
  color: var(--gold);
}
.timeline {
  max-width: 760px;
  margin: 30px auto 0;
  border-left: 1px solid rgba(201,168,92,.55);
  padding-left: 42px;
}
.tl-item { position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 6px; }
.tl-item::before {
  content: "";
  position: absolute; left: -47px; top: 8px;
  width: 9px; height: 9px;
  background: var(--cream);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.tl-year {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: .08em;
}
.tl-item h3 { font-size: 1.15rem; margin: 4px 0 6px; letter-spacing: .04em; }
.tl-item p { color: var(--ink); font-size: .95rem; max-width: 58ch; }

.frame-wrap { max-width: 880px; margin: 0 auto; text-align: center; }
.frame {
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(201,168,92,.5);
  box-shadow: 0 22px 60px rgba(43,43,40,.16);
}
.frame-caption {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: .98rem;
}

/* ---------- gallery ---------- */
.filters { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.filters button {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(43,43,40,.25);
  color: var(--ink);
  padding: 11px 26px;
  cursor: pointer;
  transition: all .3s;
}
.filters button.active, .filters button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.masonry { columns: 3 340px; column-gap: 14px; max-width: 1350px; margin: 0 auto; }
.masonry a {
  display: block;
  margin-bottom: 14px;
  break-inside: avoid;
  overflow: hidden;
  position: relative;
}
.masonry img { width: 100%; transition: transform .5s ease, opacity .5s; }
.masonry a:hover img { transform: scale(1.04); }

/* curate mode (owner-only, gallery.html?curate) */
.curate-x {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75);
  background: rgba(43,43,40,.6);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.curate-x:hover { background: #B4483C; transform: scale(1.12); }
.masonry a.pending { outline: 2px dashed var(--gold); outline-offset: -2px; }
/* curate editing view: uniform grid so drag-to-reorder is predictable */
.masonry.editing {
  columns: unset; column-count: unset;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  max-width: 1350px;
  margin: 0 auto;
}
.masonry.editing a { margin: 0; cursor: grab; touch-action: none; user-select: none; }
.masonry.editing a img { width: 100%; height: 150px; object-fit: cover; transition: none; }
.masonry.editing a:hover img { transform: none; }
.masonry.editing a.dragging { opacity: .5; outline: 2px solid var(--gold); outline-offset: -2px; cursor: grabbing; }
.curate-hint {
  max-width: 1350px;
  margin: -20px auto 26px;
  text-align: center;
  font-size: .74rem;
  letter-spacing: .08em;
  font-style: italic;
  color: var(--ink);
}
.curate-bar {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--cream);
  padding: 14px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 150;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  font-size: .82rem;
  letter-spacing: .06em;
  max-width: 92vw;
}
.curate-bar button {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 9px 16px;
  cursor: pointer;
  transition: all .25s;
}
.curate-bar button:hover { background: var(--gold); color: #fff; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(24,22,19,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lb-btn {
  position: absolute;
  background: none; border: none;
  color: #fff; font-size: 2.4rem;
  cursor: pointer; opacity: .75;
  transition: opacity .2s;
  font-family: var(--serif);
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 22px; right: 34px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 100px 6vw;
  background: var(--charcoal);
  color: var(--cream);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 500; }
.cta-band .hero-script { font-size: clamp(2rem, 4.4vw, 3.2rem); color: var(--gold); text-shadow: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid rgba(201,168,92,.35);
  padding: 70px 6vw 40px;
  text-align: center;
}
.site-footer img { height: 74px; margin: 0 auto 18px; }
.foot-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .18em;
}
.foot-sub {
  font-size: .62rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.foot-info { color: var(--ink); font-size: .92rem; }
.foot-info a { color: var(--sage); }
.foot-nav { margin: 26px 0 18px; display: flex; justify-content: center; gap: 30px; }
.foot-nav a {
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.foot-nav a:hover { color: var(--gold); }
.foot-fine { font-size: .7rem; letter-spacing: .12em; color: #9a988f; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- find us / map ---------- */
.map-frame {
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(201,168,92,.5);
  box-shadow: 0 18px 50px rgba(43,43,40,.16);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: sepia(.14) saturate(.88);
}
.addr {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  margin: 18px 0 26px;
}

/* ---------- availability calendar ---------- */
.cal-wrap { max-width: 860px; margin: 0 auto; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.cal-title { font-family: var(--serif); font-size: 1.8rem; letter-spacing: .05em; }
.cal-nav {
  background: none;
  border: 1px solid rgba(43,43,40,.25);
  font-family: var(--serif);
  font-size: 1.3rem;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--ink);
  transition: all .25s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-dow {
  text-align: center;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 10px;
}
.cal-day {
  aspect-ratio: 1 / .82;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  border: 1px solid rgba(43,43,40,.12);
  background: #fff;
  position: relative;
  color: var(--charcoal);
  transition: all .25s;
}
.cal-day.empty { border: none; background: none; }
.cal-day.past { opacity: .32; background: var(--cream-deep); }
.cal-day.booked { background: var(--cream-deep); color: #9a988f; }
.cal-day.booked::after {
  content: "reserved";
  font-family: var(--sans);
  font-size: .52rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 3px;
}
.cal-day.open { cursor: pointer; }
.cal-day.open:hover { border-color: var(--gold); background: rgba(201,168,92,.1); transform: translateY(-2px); }
.cal-day.sat::before {
  content: "";
  position: absolute;
  top: 7px; right: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.cal-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--ink);
}
.cal-legend span { display: flex; align-items: center; gap: 9px; }
.chip {
  width: 14px; height: 14px;
  border: 1px solid rgba(43,43,40,.2);
  display: inline-block;
}
.chip.c-open { background: #fff; }
.chip.c-res { background: var(--cream-deep); }
.chip.c-sat { background: var(--gold); border-radius: 50%; width: 8px; height: 8px; }

/* ---------- pricing ---------- */
.draft-note {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  border: 1px solid rgba(201,168,92,.55);
  background: rgba(201,168,92,.08);
  padding: 14px 26px;
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--ink);
}
.price-table { max-width: 760px; margin: 0 auto; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 6px;
  border-bottom: 1px solid rgba(201,168,92,.35);
}
.price-row .p-name { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .04em; }
.price-row .p-sub { font-size: .8rem; color: var(--ink); letter-spacing: .06em; }
.price-row .p-amt {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
  white-space: nowrap;
  margin-left: 24px;
}
.includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  max-width: 900px;
  margin: 0 auto;
}
.includes ul { list-style: none; }
.includes li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid rgba(43,43,40,.08);
  color: var(--ink);
  font-size: .95rem;
  position: relative;
}
.includes li::before {
  content: "·";
  color: var(--gold);
  font-size: 1.6rem;
  position: absolute;
  left: 4px; top: 2px;
}
.includes h3 { font-size: 1.25rem; letter-spacing: .05em; margin-bottom: 14px; }

/* calculator */
.calc {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}
.calc-form label {
  display: block;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 22px 0 8px;
}
.calc-form select {
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: .95rem;
  padding: 13px 14px;
  border: 1px solid rgba(43,43,40,.25);
  background: #fff;
  color: var(--charcoal);
}
.calc-form select:focus { outline: none; border-color: var(--gold); }
.calc-out {
  background: var(--charcoal);
  color: var(--cream);
  padding: 40px 36px;
}
.calc-out h3 { font-size: 1.3rem; letter-spacing: .06em; margin-bottom: 20px; color: #fff; }
.calc-line {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: .9rem;
  color: rgba(250,247,242,.82);
  border-bottom: 1px solid rgba(250,247,242,.12);
}
.calc-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
}
.calc-fine { margin-top: 20px; font-size: .72rem; letter-spacing: .06em; color: rgba(250,247,242,.55); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(201,168,92,.35);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 6vw; border-bottom: 1px solid rgba(201,168,92,.15); }
  .nav-toggle { display: block; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .highlights { grid-template-columns: 1fr; gap: 36px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid img { height: 220px; }
  .section { padding: 64px 6vw; }
  .calc, .includes { grid-template-columns: 1fr; gap: 36px; }
  .map-frame iframe { height: 320px; }
  .cal-day { font-size: .9rem; }
  .cal-day.booked::after { display: none; }
}
