/* ==========================================================================
   Brand Family Farm — BrandFamilyFarm.com
   Mobile-first, vanilla CSS. Earthy + whimsical.
   ========================================================================== */

:root {
  --green-900: #1f2e1c;
  --green-800: #2c4227;
  --green-700: #3f5d3a;
  --green-600: #567a4d;
  --green-300: #a9c39a;

  --gold-600: #b8862f;
  --gold-500: #d6a441;
  --gold-300: #f0d79a;

  --clay: #a8552f;

  --cream: #faf5ea;
  --cream-2: #f2e9d8;
  --paper: #ffffff;

  --ink: #22201b;
  --ink-soft: #5c574c;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(31, 46, 28, .08);
  --shadow: 0 12px 34px rgba(31, 46, 28, .14);
  --shadow-lg: 0 26px 60px rgba(31, 46, 28, .22);

  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, serif;

  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-700); text-decoration-color: rgba(63, 93, 58, .35); text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 8vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 5vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
p  { margin: 0 0 1.05em; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green-800); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  color: var(--green-600);
  margin: 0 0 .8rem;
}
.eyebrow.gold { color: var(--gold-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-600); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--green-800); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.4rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(31, 46, 28, .30);
  backdrop-filter: blur(10px);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(31, 46, 28, .96); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand-mark { font-size: 1.4rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .04em; }
.brand-text .llc { font-size: .72em; opacity: .75; letter-spacing: .1em; }
.brand-text em { font-style: normal; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green-300); }

.nav-toggle {
  display: grid; place-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: rgba(31, 46, 28, .98);
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.nav.open { max-height: 70vh; }
.nav ul { display: flex; flex-direction: column; padding: .5rem 1.25rem 1.5rem; }
.nav a {
  display: block; padding: .85rem .25rem; color: #f4efe3; text-decoration: none;
  font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav a:hover, .nav a.active { color: var(--gold-300); }
.nav .nav-cta { border-bottom: 0; margin-top: .75rem; background: var(--gold-600); color: #fff; text-align: center; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--gold-500); color: var(--green-900); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { position: static; max-height: none; overflow: visible; background: transparent; }
  .nav ul { flex-direction: row; align-items: center; gap: .35rem; padding: 0; }
  .nav a { border-bottom: 0; padding: .55rem .8rem; border-radius: 999px; }
  .nav a:hover { background: rgba(255,255,255,.1); }
  .nav .nav-cta { margin-top: 0; margin-left: .5rem; padding: .6rem 1.15rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  isolation: isolate; overflow: hidden;
  color: #fff; text-align: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(31,46,28,.25) 0%, rgba(31,46,28,.72) 70%, rgba(20,29,18,.9) 100%),
    linear-gradient(180deg, rgba(20,29,18,.65) 0%, rgba(20,29,18,.15) 35%, rgba(20,29,18,.85) 100%);
}
.hero-content { padding: calc(var(--header-h) + 3rem) 0 6rem; max-width: 900px; }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { text-shadow: 0 4px 34px rgba(0,0,0,.55); margin-bottom: .35em; }
.hero h1 .llc { font-size: .42em; letter-spacing: .18em; vertical-align: .5em; color: var(--gold-300); }
.hero .lede {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 46ch; margin-inline: auto; color: #f0ead9;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.hero .btn-row { justify-content: center; margin-top: 2rem; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 999px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px;
  background: #fff; transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; transform: translate(-50%, 12px); } }

/* ---------- Event banner ---------- */
.event-banner {
  background: linear-gradient(90deg, var(--gold-600), var(--clay));
  color: #fff; text-align: center; font-size: .95rem;
}
.event-banner p { margin: 0; padding: .95rem 0; }
.event-banner strong { font-family: var(--font-display); letter-spacing: .04em; }
.event-banner a { color: #fff; font-weight: 600; margin-left: .6rem; white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section-alt { background: var(--cream-2); }
.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-sub { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.split-media { display: grid; gap: 1rem; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.split-media img.stacked { aspect-ratio: 16/10; }
@media (min-width: 900px) {
  .split-media { grid-template-columns: 1fr 1fr; }
  .split-media img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
}

.feature-list { display: grid; gap: .7rem; margin-top: 1.6rem; }
.feature-list li { display: flex; gap: .75rem; align-items: flex-start; }
.feature-list span { font-size: 1.15rem; line-height: 1.4; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 2rem; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16/10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.9rem; display: flex; flex-direction: column; flex: 1; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.chips li {
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--cream-2); color: var(--green-800);
  padding: .35rem .8rem; border-radius: 999px;
}

/* ---------- Featured event ---------- */
.event {
  background:
    linear-gradient(rgba(24,35,21,.90), rgba(24,35,21,.94)),
    url("images/PartyTree Daytime.jpg") center / cover fixed;
  color: #f3ecdc;
}
.event h2 { color: #fff; }
.event .section-sub { color: #cfc7b3; }

.event-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .event-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; } }

.detail-list { display: grid; gap: 1.1rem; margin: 0 0 2.25rem; }
.detail-list > div {
  border-left: 3px solid var(--gold-500);
  padding: .15rem 0 .15rem 1.15rem;
}
.detail-list dt {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--gold-300); margin-bottom: .2rem;
}
.detail-list dd { margin: 0; }
.detail-list .muted { color: #b8b0a0; }

.potluck {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(240,215,154,.25);
  border-radius: var(--radius); padding: 1.75rem;
}
.potluck h3 { color: var(--gold-300); }
.potluck .btn-primary { background: var(--gold-500); color: var(--green-900); }
.potluck .btn-primary:hover { background: #fff; color: var(--green-900); }
.food-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.5rem; }
.food-chips li {
  background: rgba(240,215,154,.12); border: 1px solid rgba(240,215,154,.3);
  color: #f3ecdc; padding: .4rem .9rem; border-radius: 999px; font-size: .9rem;
}

.event-media { display: grid; gap: 1rem; }
.event-media figure { margin: 0; }
.event-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.event-media figure img { aspect-ratio: 4/3; object-fit: cover; object-position: center; }
.event-media figcaption { font-size: .85rem; color: #b8b0a0; font-style: italic; margin-top: .6rem; text-align: center; }
.event-media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.event-media-row img { aspect-ratio: 3/4; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.gallery figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--green-900);
}
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s ease, opacity .3s ease; }
.gallery figure:hover img { transform: scale(1.07); opacity: .8; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .8rem;
  color: #fff; font-family: var(--font-display); font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(20,29,18,.85));
}

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 1.25rem; margin: 1.75rem 0 0; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ico {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--cream-2); border-radius: 50%; font-size: 1.05rem;
}
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: clamp(300px, 45vw, 460px); border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #d7d1c2; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #e9e2d1; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer-brand { color: #fff; font-size: 1.3rem; margin-bottom: .6rem; }
.site-footer h4 {
  color: var(--gold-300); font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: .9rem;
}
.footer-links { display: grid; gap: .5rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .muted { color: #8d8778; font-style: italic; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .event { background-attachment: scroll; }
}
