/* Wild Bergamot Farm — Styles
   Inspired by grandholland.com: editorial, generous whitespace, refined serif type */

/* ───── Reset & Base ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest: #3B4A3F;
  --forest-light: #4D5F52;
  --sage: #8B9D83;
  --sage-light: #C2CEBB;
  --sage-faint: #E8EDE5;
  --cream: #F7F3ED;
  --warm-white: #FDFCFA;
  --earth: #A67C52;
  --earth-dark: #8B6540;
  --wheat: #D4B896;
  --wheat-light: #E8D5B8;
  --charcoal: #2C2C2C;
  --soft-gray: #7A7A72;
  --border: #E0DDD6;

  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --transition: .25s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--earth); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--earth-dark); }

/* ───── Typography ───── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--forest);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: 1.15rem; font-weight: 500; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

.subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 1rem;
  display: block;
}

.lead {
  font-size: 1.15rem;
  color: var(--soft-gray);
  line-height: 1.9;
  max-width: 620px;
}

blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-style: italic;
  color: var(--forest);
  line-height: 1.4;
  border-left: 3px solid var(--sage);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* ───── Layout ───── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section--cream { background: var(--cream); }
.section--white { background: var(--warm-white); }
.section--sage { background: var(--sage-faint); }
.section--forest {
  background: var(--forest);
  color: var(--cream);
}
.section--forest h2,
.section--forest h3,
.section--forest h4 { color: var(--cream); }
.section--forest .subtitle { color: var(--wheat); }
.section--forest .lead { color: var(--sage-light); }
.section--forest a { color: var(--wheat); }
.section--forest a:hover { color: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

/* ───── Grid ───── */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 700px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ───── Split (asymmetric two-column) ───── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split--wide { grid-template-columns: 3fr 2fr; }
  .split--wide-reverse { grid-template-columns: 2fr 3fr; }
  .split--reverse > :first-child { order: 2; }
  .split--reverse > :last-child { order: 1; }
}

/* ───── Header ───── */
.header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 70px;
  max-width: 1100px;
  margin: 0 auto;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header__brand img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
}

.header__brand span {
  color: var(--wheat);
}

.header__nav {
  display: none;
  gap: 2rem;
}

.header__nav a {
  color: var(--sage-light);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--cream);
}

@media (min-width: 800px) {
  .header__nav { display: flex; }
  .hamburger { display: none !important; }
}

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--forest);
  padding: 1rem 1.5rem 2rem;
  border-top: 1px solid var(--forest-light);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  color: var(--sage-light);
  padding: 0.75rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--cream); }

/* ───── Hero ───── */
.hero {
  background: var(--forest);
  color: var(--cream);
  padding: 8rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(139,157,131,.15) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero .lead {
  color: var(--sage-light);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero .subtitle {
  color: var(--wheat);
}

/* ───── Buttons ───── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--earth {
  background: var(--earth);
  color: var(--warm-white);
}
.btn--earth:hover {
  background: var(--earth-dark);
  color: var(--warm-white);
}

.btn--outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn--outline:hover {
  background: var(--cream);
  color: var(--forest);
}

.btn--outline-earth {
  background: transparent;
  border-color: var(--earth);
  color: var(--earth);
}
.btn--outline-earth:hover {
  background: var(--earth);
  color: var(--warm-white);
}

.btn--forest {
  background: var(--forest);
  color: var(--cream);
}
.btn--forest:hover {
  background: var(--forest-light);
  color: var(--cream);
}

/* ───── Cards ───── */
.card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--soft-gray);
  font-size: 0.95rem;
}

/* ───── Product Table ───── */
.product-group {
  margin-bottom: 3rem;
}

.product-group:last-child {
  margin-bottom: 0;
}

.product-group h3 {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sage);
}

.product-list {
  list-style: none;
  columns: 2;
  column-gap: 2rem;
  padding: 0;
}

.product-list li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--charcoal);
  break-inside: avoid;
}

.product-list li::before {
  content: '·';
  color: var(--sage);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ───── Divider ───── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--sage);
  margin: 3rem auto;
}

.divider--left {
  margin-left: 0;
}

/* ───── Practice Cards ───── */
.practice {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.practice:last-child {
  border-bottom: none;
}

.practice h3 {
  margin-bottom: 0.75rem;
}

.practice p {
  color: var(--soft-gray);
  max-width: 680px;
}

/* ───── Event List ───── */
.event {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 700px) {
  .event {
    grid-template-columns: 200px 1fr;
    gap: 3rem;
  }
}

.event:last-child { border-bottom: none; }

.event__label {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--forest);
}

.event__desc {
  color: var(--soft-gray);
  font-size: 0.95rem;
}

/* ───── Contact ───── */
.contact-item {
  margin-bottom: 2rem;
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  color: var(--forest);
}

.contact-item p {
  color: var(--soft-gray);
  font-size: 0.95rem;
}

.hours-table {
  width: 100%;
  max-width: 360px;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--forest);
  padding-right: 2rem;
}

/* ───── Footer ───── */
.footer {
  background: var(--forest);
  color: var(--sage-light);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 700px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--sage-light);
}

.footer a {
  color: var(--sage-light);
  text-decoration: none;
}
.footer a:hover { color: var(--cream); }

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--sage);
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer__brand img {
  height: 56px;
  width: 56px;
  border-radius: 50%;
}

.footer__brand span { color: var(--wheat); }

/* ───── Page Header ───── */
.page-header {
  background: var(--forest);
  color: var(--cream);
  padding: 6rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.page-header .lead {
  margin: 0 auto;
  color: var(--sage-light);
}

/* ───── CTA Banner ───── */
.cta-banner {
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner .lead {
  margin: 0 auto 2rem;
}

/* ───── Accent Block (pull-quote / visual break) ───── */
.accent-block {
  background: var(--sage-faint);
  padding: 4rem 2.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.accent-block p {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--forest);
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}

/* ───── Parallax Image Breaks ───── */
.parallax {
  position: relative;
  height: 70vh;
  min-height: 400px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.parallax--storefront { background-image: url('images/storefront.png'); }
.parallax--soil       { background-image: url('images/soil.png'); }
.parallax--community  { background-image: url('images/community.png'); }
.parallax--pigs       { background-image: url('images/pigs.png'); }
.parallax--church     { background-image: url('images/church.png'); }
.parallax--farmtable  { background-image: url('images/farmtable.png'); }

.parallax__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 44, 44, .35);
  z-index: 1;
}

.parallax__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.parallax__content h2 {
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.parallax__content p {
  color: rgba(247, 243, 237, .9);
  font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  max-width: 520px;
  margin: 0 auto;
}

.parallax__content .subtitle {
  color: var(--wheat-light);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* Smaller parallax variant */
.parallax--short {
  height: 50vh;
  min-height: 300px;
  max-height: 500px;
}

/* Parallax as hero (taller) */
.parallax--hero {
  height: 85vh;
  min-height: 550px;
  max-height: 900px;
}

.parallax--hero .parallax__overlay {
  background: linear-gradient(
    to bottom,
    rgba(59, 74, 63, .55) 0%,
    rgba(44, 44, 44, .35) 50%,
    rgba(59, 74, 63, .6) 100%
  );
}

.parallax--hero .parallax__content {
  max-width: 800px;
}

.parallax--hero .parallax__content h1 {
  color: var(--cream);
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}

.parallax--hero .parallax__content .lead {
  color: rgba(247, 243, 237, .9);
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}

/* Mobile: background-attachment:fixed doesn't work well, fall back to scroll */
@media (max-width: 799px) {
  .parallax {
    background-attachment: scroll;
  }
}

/* ───── Utilities ───── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ───── Responsive ───── */
@media (max-width: 799px) {
  .section { padding: 4rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .section-header { margin-bottom: 2.5rem; }
  blockquote { font-size: 1.3rem; }
  .product-list { columns: 1; }
}
