/* ==========================================================
   Moonlight Homestead — shared styles
   Palette: warm cream, sage, charcoal + "Pink Moment" accent
   ========================================================== */
:root {
  --cream: #f5efe3;
  --paper: #fffcf6;
  --sand: #e9e0cf;
  --sage: #7d8c6c;
  --sage-deep: #4c5a42;
  --charcoal: #2b2a27;
  --ink-soft: #5d5a53;
  --pink: #c2557f;          /* from the logo — the evening "Pink Moment" */
  --pink-soft: #f1d6e0;
  --line: rgba(43, 42, 39, 0.12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --caps: "Josefin Sans", "Nunito Sans", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --shadow: 0 20px 50px -24px rgba(43, 42, 39, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.accent { color: var(--pink); font-style: italic; }

.eyebrow {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 246, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--caps);
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--pink);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.98rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--sage-deep); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--pink); font-weight: 700; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--charcoal);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--charcoal);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); }
.btn-primary:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--paper); }
.btn-pink { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-pink:hover { background: #a8456b; border-color: #a8456b; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
.hero-main h1 { margin-bottom: 0.25em; }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.hero-img {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.hero-side p { font-size: 0.97rem; color: var(--ink-soft); margin: 0.4rem 0 0.4rem; }
.stack-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}
.stack-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.stack-img:hover img { transform: scale(1.04); }
.stack-img figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 252, 246, 0.92);
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 10px 4px;
  border-radius: 999px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-paper { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body p { color: var(--ink-soft); }

/* Feature cards (home "explore") */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { margin-bottom: 0.3em; }
.card-body p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.card-link {
  margin-top: 1rem;
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--sage-deep);
}

/* Quote band */
.band {
  background: var(--sage-deep);
  color: var(--paper);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.band img.band-emblem {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.4rem;
}
.band blockquote {
  margin: 0 auto;
  max-width: 820px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.25;
}
.band cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: var(--caps);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--pink-soft);
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: clamp(340px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 42, 39, 0.05) 20%, rgba(43, 42, 39, 0.72) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-hero .eyebrow { color: var(--pink-soft); }
.page-hero h1 { max-width: 16ch; margin-bottom: 0; }

/* About: three pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pink-soft);
  color: var(--pink);
  margin-bottom: 1.2rem;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.45;
  color: var(--charcoal);
}

.poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 420px;
  justify-self: center;
}

/* Fact strip */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 2.5rem;
}
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--sage-deep);
}
.fact span { font-size: 0.9rem; color: var(--ink-soft); }

/* Life: numbered sections */
.chapter-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--pink);
  display: block;
  margin-bottom: 0.4rem;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}
.tag-list li {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--sage-deep);
  font-weight: 600;
}

/* Backyard video (the clip is a vertical phone video inside a 16:9 frame;
   object-fit: cover in a 9:16 box crops away the black side bars) */
.video-split { grid-template-columns: minmax(0, 380px) 1fr; justify-content: center; }
.video-split.reverse { grid-template-columns: 1fr minmax(0, 380px); }
.video-split.reverse .video-frame { order: 2; }
.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sage-deep);
  box-shadow: var(--shadow);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 252, 246, 0.9);
  color: var(--charcoal);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.video-sound svg { width: 18px; height: 18px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.9rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery figure.wide { grid-column: span 2; }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 10px; }
.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.contact-list .ico {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--sage-deep);
}
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong {
  display: block;
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.contact-list a { color: var(--charcoal); font-weight: 600; text-underline-offset: 3px; }
.contact-list small { display: block; color: var(--ink-soft); font-size: 0.88rem; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.form-card > p { color: var(--ink-soft); }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field textarea {
  font: inherit;
  font-size: 16px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(125, 140, 108, 0.2);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.8rem; }
.hp { position: absolute; left: -9999px; }

.map {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.cta-strip h2 { margin-bottom: 0.2em; }
.cta-strip p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 252, 246, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 252, 246, 0.14);
}
.site-footer .brand-name { color: var(--paper); }
.site-footer h4 {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--pink-soft);
  margin: 0 0 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; color: rgba(255, 252, 246, 0.86); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-top: 1rem; max-width: 30ch; }
.footer-bottom { padding-top: 1.5rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .hero-side p { grid-column: 1 / -1; order: -1; }
  .cards, .pillars { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { height: 66px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.2rem; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line); color: var(--pink); }

  .hero-side { grid-template-columns: 1fr 1fr; }
  .hero-side figure:last-of-type { display: none; }
  .split, .contact-grid, .video-split { grid-template-columns: 1fr; }
  .video-frame { max-width: 340px; width: 100%; margin-inline: auto; }
  .video-split.reverse { grid-template-columns: 1fr; }
  .video-split.reverse .video-frame { order: 0; }
  .split.reverse .split-media { order: 0; }
  .cards, .pillars { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: span 2; }
  .gallery figure.tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
}
