/* Source Sans 3 (Adobe), self-hosted variable font. SIL Open Font License: fonts/OFL.txt */
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* Blue Hen Organics: single-page site
   Palette: paper base, soil brown, one working green, yellow as a small highlight.
   All text/background pairs are checked against WCAG 2.1 AA. */

:root {
  --soil: #4b3704;         /* brand brown: nav, products band, buttons */
  --soil-deep: #2f2100;    /* footer */
  --green: #4e7330;        /* the one working green: headings, links, buttons (5.0:1 on paper) */
  --link: #1d5fa0;         /* links: Blue Hen blue, 6.0:1 on paper, 5.3:1 on the sage band */
  --link-hover: #123f6b;
  --sun: #ffe000;          /* highlight on brown only */
  --no: #8a3b12;           /* rust, used only for "can't accept" */
  --paper: #f5f4f8;         /* the original site's cool off-white */
  --line: #dad8e0;         /* neutral rules and borders */
  --ink: #333;
  --muted: #666;
  --on-soil: #e3dac2;      /* body text on brown */
  --sage: #e3e9cf;         /* light green band behind products */

  --font-head: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --wrap: 68rem;
  --gutter: 1.25rem;
  --nav-h: 3.75rem;
  --bar-h: 4.5rem;
  --radius: 4px;
  --section: clamp(3.5rem, 7vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.6 var(--font-body);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }

:focus-visible { outline: 3px solid var(--soil); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--soil); color: #fff; padding: 0.5rem 1rem; border-radius: 4px;
}
.skip:focus { top: 1rem; }

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

/* Type: italic is reserved for the page and section headings (the brand's signature).
   Everything smaller is upright. */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; }
h1, h2 { font-style: italic; }

.section-title {
  color: var(--green);
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  margin-bottom: 0.6rem;
}
.section-lede { margin: 0 0 2.5rem; max-width: 40rem; }

/* ---------- Masthead ---------- */
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
}
.logo { display: block; }
.logo img { width: clamp(200px, 26vw, 280px); }

.masthead__hours { text-align: right; font-size: 0.95rem; }
.masthead__hours p { margin: 0; }
.masthead__title { font-family: var(--font-head); font-weight: 700; color: var(--green); }
.masthead__hours a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--link);
  text-decoration: none;
}
.masthead__hours a:hover { text-decoration: underline; }

.menu-btn { display: none; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--soil); }
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}
.nav__list a {
  display: block;
  white-space: nowrap;
  padding: 0 1.1rem;
  line-height: var(--nav-h);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}
.nav__list li:first-child a { padding-left: 0; }
.nav__list a:hover { color: var(--sun); }
.nav a:focus-visible { outline-color: var(--sun); outline-offset: -4px; color: var(--sun); }
.nav__hours { display: none; }

/* ---------- Hero: text on the wrap's left edge, photo bleeds to the right edge ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  padding-left: max(var(--gutter), (100% - var(--wrap)) / 2);
  min-height: min(30rem, 70vh);
}
.intro__text {
  align-self: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem) 0;
}
.intro h1 {
  color: var(--green);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.intro p { max-width: 34rem; margin: 0 0 2rem; font-size: 1.15rem; }

.intro__photo { margin: 0; position: relative; }
.intro__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 60%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn svg { flex: none; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--soil); color: var(--sun); }

/* ---------- Products: the one bold band ---------- */
.soil {
  background: var(--sage);
  color: var(--ink);
  padding-block: var(--section);
}
.soil h2 { color: var(--green); font-size: clamp(1.85rem, 3.4vw, 2.5rem); margin-bottom: 2rem; }

.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3.5vw, 3rem);
  row-gap: 0;
}
/* subgrid lines up photo, name, description and toggle across all three,
   so opening one "Good for" never shifts the others */
.product {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
}
.product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.product:nth-child(1) img { object-position: 40% 60%; }
.product:nth-child(2) img { object-position: 60% 75%; }
.product:nth-child(3) img { object-position: 50% 50%; }
.product h3 { color: var(--soil); font-size: 1.35rem; margin-bottom: 0.45rem; }
.product p { margin: 0; text-wrap: pretty; }
/* "Good for": a light inline toggle, pinned to the bottom so the three line up */
.product__use { align-self: start; padding-top: 1rem; }
.product__use summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--soil);
}
.product__use summary::-webkit-details-marker { display: none; }
/* plus / minus in a brown circle */
.product__use summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--soil);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}
.product__use[open] summary::before { content: "\2212"; }
.product__use summary:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.product__use p {
  margin: 0.6rem 0 0 2.1rem !important;
  color: var(--soil);
}

/* ---------- What we accept ---------- */
.accepted { padding-block: var(--section); }
.accepted .section-title { margin-bottom: 1.75rem; }

.accept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.accept h3, .rates h3 {
  font-size: 1.2rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 2px solid currentColor;
}
.accept--yes h3 { color: var(--green); }
.rates h3 { color: var(--soil); }

.accept ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.accept li { break-inside: avoid; position: relative; padding: 0.3rem 0 0.3rem 1.6rem; }
.accept--yes li { font-size: 1.15rem; }
.accept--yes li::before {
  content: "";
  position: absolute; left: 0.1rem; top: 0.8rem;
  width: 0.75rem; height: 0.75rem;
  background: var(--green);
  border-radius: 0 70% 0 70%;
}

/* "can't accept" folds away under the accepted list */
.accept--no {
  margin-top: 1.75rem;
  background: #fff;
  border-radius: var(--radius);
}
.accept--no summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--no);
  border-radius: var(--radius);
}
.accept--no summary::-webkit-details-marker { display: none; }
/* chevron */
.accept--no summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s ease;
}
.accept--no[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.accept--no summary:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.accept--no ul { padding: 0 1.1rem 1rem; }
.accept--no li::before {
  content: "";
  position: absolute; left: 0.1rem; top: 1.05rem;
  width: 0.7rem; height: 2px;
  background: var(--no);
}

.rates dl { margin: 0 0 1rem; }
.rates dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
}
.rates dt { color: var(--ink); }
.rates dd { margin: 0; font-weight: 700; color: var(--soil); white-space: nowrap; }
.rates p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.accept-note { margin: 2.5rem 0 0; max-width: 44rem; }
.accept-note a { font-weight: 700; white-space: nowrap; }

/* ---------- Contact ---------- */
.contact { padding-block: 0 var(--section); }
.contact > .wrap { border-top: 1px solid var(--line); padding-top: var(--section); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
  margin-top: 1.5rem;
}
.contact__info { font-size: 1.1rem; color: var(--soil); }
.contact__info p, .contact__info address { margin: 0 0 1rem; font-style: normal; }

.contact__phone { margin: 0.25rem 0 1.5rem !important; }
.contact__phone a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  text-decoration: none;
}
.contact__phone a:hover { text-decoration: underline; }
.contact__hours { padding-top: 1rem; border-top: 1px solid var(--line); }

.contact__map {
  min-height: 22rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e7e6ec;
}
/* warm the default Google styling toward the page palette */
.contact__map iframe {
  display: block; width: 100%; height: 100%; min-height: 22rem; border: 0;
  filter: saturate(0.7) sepia(0.18);
}

/* ---------- Footer ---------- */
.footer { background: var(--soil-deep); color: #cfc4a6; font-size: 0.9rem; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}
.footer__logo { width: 130px; }
.footer__copy { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product img { aspect-ratio: 1 / 1; }
  .accept-grid { grid-template-columns: 1fr; }
  .rates { max-width: 26rem; }
}

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; padding-left: 0; min-height: 0; }
  .intro__text { padding: 2.25rem var(--gutter) 2.5rem; }
  .intro__photo img { position: static; aspect-ratio: 4 / 3; height: auto; }
  .contact__inner { grid-template-columns: 1fr; }
  .rates { max-width: none; }
  .products { grid-template-columns: 1fr; }
  .product { margin-bottom: 2.5rem; }
  .product:last-child { margin-bottom: 0; }
  .product img { aspect-ratio: 4 / 3; }
  .contact__map, .contact__map iframe { min-height: 18rem; }


  /* Header becomes a slim sticky bar: logo + menu button */
  .masthead { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 3px solid var(--soil); }
  .masthead__inner { padding-block: 0.6rem; min-height: var(--bar-h); }
  .logo img { width: 150px; }
  .masthead__hours { display: none; }

  .js .menu-btn {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: var(--soil);
    color: #fff;
    font: 700 1.05rem var(--font-head);
    cursor: pointer;
  }
  .menu-btn__icon { display: grid; gap: 5px; width: 22px; }
  .menu-btn__icon span {
    display: block; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-open .menu-btn__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn__icon span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Without JS: nav shows as a plain stacked list under the header */
  .nav { position: static; }
  .nav__list { flex-direction: column; padding-block: 0.5rem; }
  .nav__list a { padding: 0; line-height: 2.75rem; font-size: 1.15rem; }

  /* With JS: nav is a drop-down panel under the bar */
  .js .nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--bar-h));
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(47, 33, 0, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .js .menu-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav__inner { padding-block: 0.75rem 1.5rem; }
  .nav__list li { border-bottom: 1px solid #7d6a3a; }
  .nav__list a { line-height: 3.25rem; }

  .nav__hours {
    display: block;
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    background: var(--soil-deep);
    border-radius: var(--radius);
    color: var(--on-soil);
  }
  .nav__hours p { margin: 0 0 0.75rem; }
  .nav__hours .nav__hours-title { margin-bottom: 0.25rem; font: 700 1.05rem var(--font-head); color: #fff; }
  .nav__call {
    display: inline-block;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius);
    background: var(--sun);
    color: var(--soil-deep);
    font: 700 1.05rem var(--font-head);
    text-decoration: none;
  }
  .nav__call:hover { background: #fff; }
  .nav .nav__call:focus-visible { outline-offset: 3px; color: var(--soil-deep); }
}

@media (max-width: 480px) {
  .accept ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .nav, .intro__photo, .skip, .menu-btn, .contact__map { display: none; }
  .soil, .footer { background: none; color: #000; }
  .soil h2, .product h3, .product p, }
