/* ==========================================================================
   Maplebrook Farm — site stylesheet
   Palette: cream paper, deep Green Mountain green, warm maple amber.
   Type: Fraunces (display serif) + Inter (body sans).
   ========================================================================== */

:root {
  --cream: #faf6ee;
  --cream-dark: #f1ead9;
  --ink: #22301f;
  --green: #234425;
  --green-deep: #16301c;
  --amber: #c98a2b;
  --amber-soft: #e7c98f;
  --white: #fffdf8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 44px rgba(34, 48, 31, 0.12);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 480; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.32rem; line-height: 1.25; }
h4 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber); margin-bottom: 0.5rem; }

a { color: inherit; }

/* ---------- shared bits ---------- */

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 1rem;
}
.eyebrow.light { color: var(--amber-soft); }
.eyebrow .crumb { text-decoration: none; opacity: 0.75; }
.eyebrow .crumb:hover { opacity: 1; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 48, 28, 0.22); }
.btn-light { background: var(--cream); color: var(--green-deep); }
.btn-dark { background: var(--green); color: var(--cream); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--cream); }
.btn-ghost-light { border-color: rgba(250, 246, 238, 0.65); color: var(--cream); }
.btn-ghost-light:hover { background: rgba(250, 246, 238, 0.14); }

.text-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1.5px solid var(--amber);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--amber); }

/* Scroll-in animation: elements with .reveal fade up when they enter view. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 48, 31, 0.09);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-main { font-family: var(--serif); font-size: 1.5rem; font-weight: 560; color: var(--green-deep); }
.wordmark-sub { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--amber); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a {
  text-decoration: none;
  font-weight: 550;
  font-size: 0.94rem;
  color: var(--ink);
  position: relative;
}
.site-nav a:not(.nav-cta):hover { color: var(--amber); }
.nav-badge {
  background: var(--amber);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  padding: 2px 7px;
  vertical-align: super;
}
.nav-cta {
  background: var(--green);
  color: var(--cream) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
}
.nav-cta:hover { background: var(--green-deep); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero.short { min-height: 62vh; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(22, 48, 28, 0.42), rgba(22, 48, 28, 0.68));
}
.hero-content { position: relative; z-index: 2; color: var(--cream); padding: 4rem 1.5rem; max-width: 880px; }
.hero-content h1 { color: var(--white); text-shadow: 0 2px 26px rgba(0, 0, 0, 0.35); }
.hero-sub { margin: 1.4rem auto 2.2rem; font-size: 1.13rem; opacity: 0.95; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- credo strip ---------- */

.credo-strip {
  background: var(--green-deep);
  color: var(--cream);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2.4rem clamp(1.5rem, 6vw, 5rem);
  text-align: center;
}
.credo-num { display: block; font-family: var(--serif); font-size: 2.3rem; color: var(--amber-soft); }
.credo-label { font-size: 0.82rem; opacity: 0.85; letter-spacing: 0.03em; }

/* ---------- split sections ---------- */

.split-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split-section.tight-top { padding-top: 1rem; }
.split-section.flip .split-media { order: 2; }
.split-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-text h2 { margin-bottom: 1.2rem; }
.split-text p { margin-bottom: 1.1rem; color: rgba(34, 48, 31, 0.85); }
.split-text .text-link { display: inline-block; margin-top: 0.4rem; }

/* ---------- generic sections ---------- */

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) 1.5rem; }
.section.tight { padding-top: 1.5rem; }
.section.alt-bg {
  max-width: none;
  background: var(--cream-dark);
}
.section.alt-bg > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-sub { color: rgba(34, 48, 31, 0.75); }
.section-cta { text-align: center; margin-top: 3rem; }

/* ---------- cheese cards ---------- */

.cheese-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.cheese-grid.three-wide { grid-template-columns: repeat(3, 1fr); }

.cheese-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(34, 48, 31, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.cheese-card:not(.static-card):hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cheese-card-img { position: relative; overflow: hidden; }
.cheese-card-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cheese-card:hover .cheese-card-img img { transform: scale(1.045); }
.award-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--amber);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 11px;
  border-radius: 100px;
}
.cheese-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.cheese-card-body h3 { color: var(--green-deep); }
.cheese-card-body p { font-size: 0.92rem; color: rgba(34, 48, 31, 0.72); flex: 1; }
.card-detail { font-weight: 600; color: var(--amber) !important; font-size: 0.85rem !important; }

/* ---------- butter banner ---------- */

.butter-banner { background: var(--green-deep); color: var(--cream); }
.butter-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.butter-banner h2 { color: var(--white); margin-bottom: 1.2rem; }
.butter-banner p { margin-bottom: 1.2rem; opacity: 0.92; }
.butter-banner strong { color: var(--amber-soft); }
.butter-banner-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.butter-banner .hero-actions { justify-content: flex-start; }

/* ---------- instagram grid ---------- */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.ig-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.ig-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s ease; }
.ig-item:hover img { transform: scale(1.05); }
.ig-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 0.9rem 0.7rem;
  background: linear-gradient(to top, rgba(22, 48, 28, 0.82), transparent);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- page hero (simple text banner) ---------- */

.page-hero { padding: clamp(4rem, 9vw, 7rem) 1.5rem clamp(2rem, 5vw, 3.5rem); text-align: center; }
.page-hero-inner { max-width: 780px; margin: 0 auto; }
.page-hero h1 { margin-bottom: 1.2rem; color: var(--green-deep); }

/* ---------- cheese detail page ---------- */

.detail-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.detail-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.detail-info h1 { color: var(--green-deep); margin-bottom: 0.8rem; }
.detail-tagline { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--amber); margin-bottom: 1.4rem; }
.detail-desc { margin-bottom: 1.2rem; color: rgba(34, 48, 31, 0.85); }
.detail-sizes { margin-bottom: 1.4rem; }
.detail-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.8rem 0; }
.detail-lists ul, .detail-awards ul { list-style: none; }
.detail-lists li { padding: 0.35rem 0; border-bottom: 1px dashed rgba(34, 48, 31, 0.16); font-size: 0.94rem; }
.detail-awards { background: var(--cream-dark); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.detail-awards li { padding: 0.25rem 0; font-size: 0.92rem; }
.detail-alt { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.detail-alt img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- timeline (our story) ---------- */

.timeline { max-width: 760px; margin: 0 auto; border-left: 2px solid var(--amber-soft); padding-left: 2.2rem; }
.timeline-item { position: relative; padding-bottom: 2.4rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.75rem;
  top: 0.45rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--cream);
}
.timeline-year { font-family: var(--serif); font-size: 1.5rem; color: var(--green-deep); display: block; margin-bottom: 0.4rem; }
.timeline-item p { color: rgba(34, 48, 31, 0.82); }

/* ---------- awards grid ---------- */

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.award-year {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  box-shadow: 0 4px 18px rgba(34, 48, 31, 0.06);
}
.award-year h3 { color: var(--amber); margin-bottom: 0.7rem; }
.award-year ul { list-style: none; }
.award-year li { padding: 0.3rem 0; font-size: 0.92rem; border-bottom: 1px dashed rgba(34, 48, 31, 0.13); }
.award-year li:last-child { border-bottom: none; }

/* ---------- check list (vermont page) ---------- */

.check-list { list-style: none; margin-top: 0.5rem; }
.check-list li { padding: 0.45rem 0 0.45rem 1.9rem; position: relative; font-weight: 550; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 4px 18px rgba(34, 48, 31, 0.06);
}
.contact-card h3 { color: var(--green-deep); margin-bottom: 0.7rem; font-size: 1.1rem; }
.contact-card a { color: var(--green); font-weight: 550; }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  box-shadow: 0 3px 12px rgba(34, 48, 31, 0.05);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq-item summary::after { content: "+"; position: absolute; right: 1.4rem; color: var(--amber); font-size: 1.3rem; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 1.5rem 1.2rem; color: rgba(34, 48, 31, 0.78); }

/* ---------- cta band ---------- */

.cta-band {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.8rem; }
.cta-band .btn { margin-top: 0.8rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--green-deep); color: rgba(250, 246, 238, 0.85); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-wordmark { font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin-bottom: 0.7rem; }
.footer-tag { font-size: 0.9rem; opacity: 0.75; max-width: 300px; }
.footer-social { margin-top: 1.2rem; display: flex; gap: 1.2rem; }
.footer-social a { color: var(--amber-soft); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.footer-col h4 { color: var(--amber-soft); }
.footer-col p { font-size: 0.92rem; margin-bottom: 0.55rem; }
.footer-col a { color: inherit; text-decoration: none; }
.footer-col a:hover { color: var(--amber-soft); }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 238, 0.14);
  text-align: center;
  padding: 1.4rem;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cheese-grid, .cheese-grid.three-wide { grid-template-columns: repeat(2, 1fr); }
  .split-section, .butter-banner-inner, .detail-hero { grid-template-columns: 1fr; }
  .split-section.flip .split-media { order: 0; }
  .credo-strip { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .detail-media img { position: static; }

  /* mobile nav */
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(34, 48, 31, 0.1);
    box-shadow: 0 18px 30px rgba(34, 48, 31, 0.12);
  }
  .site-nav.open { display: flex; }
}

@media (max-width: 540px) {
  .cheese-grid, .cheese-grid.three-wide { grid-template-columns: 1fr; }
  .detail-lists { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
