/* Michigan U-pick farms — Mockup 1: Harvest Ledger
   Production path: /alpaca-farm/states/michigan/u-pick-farms/style/u-pick-farms.css */

.michigan-upick-page {
  --up-ink: #17231f;
  --up-forest: #204c3b;
  --up-forest-dark: #123126;
  --up-berry: #6d1c32;
  --up-berry-dark: #4a1222;
  --up-orange: #c95f27;
  --up-gold: #e2ad35;
  --up-white: #ffffff;
  --up-paper: #f3f1eb;
  --up-line: #c9ccc6;
  --up-muted: #5b6560;
  --up-display: "Manrope", system-ui, sans-serif;
  --up-body: "DM Sans", system-ui, sans-serif;
  margin: 0;
  background: var(--up-paper);
  color: var(--up-ink);
  font-family: var(--up-body);
}

.michigan-upick-page main { padding-bottom: 0; }
.michigan-upick-page .wrap { max-width: 78rem; }
.michigan-upick-page .site-header {
  background: rgba(255, 255, 255, .98);
  border-bottom: 4px solid var(--up-berry);
}
.michigan-upick-page .nav-links .is-current {
  background: var(--up-forest-dark);
  color: var(--up-white);
}

/* Edge-to-edge hero */
.harvest-hero {
  position: relative;
  min-height: clamp(32rem, 60vw, 46rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--up-forest-dark);
  color: var(--up-white);
}
.harvest-photo,
.harvest-shade { position: absolute; inset: 0; }
.harvest-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.harvest-shade {
  background:
    linear-gradient(90deg, rgba(38, 8, 18, .93) 0%, rgba(63, 13, 31, .7) 39%, rgba(18, 49, 38, .18) 78%),
    linear-gradient(0deg, rgba(18, 49, 38, .68), transparent 52%);
}

.harvest-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.harvest-title-block { max-width: 50rem; padding-left: 1.5rem; border-left: 7px solid var(--up-gold); }
.state-path {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, .75);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.state-path a { color: #f1cf79; text-decoration: none; }
.state-path a:hover { text-decoration: underline; }
.harvest-title-block h1 {
  margin: 0;
  color: var(--up-white);
  font-family: var(--up-display);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.065em;
}
.harvest-title-block > p:last-child {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  color: #f0ecec;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.65;
}
.hero-total {
  flex: 0 0 auto;
  display: flex;
  gap: .85rem;
  align-items: flex-end;
  padding: 1rem 1.2rem;
  background: var(--up-gold);
  color: var(--up-ink);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, .32);
}
.hero-total strong { font-family: var(--up-display); font-size: 3rem; font-weight: 800; line-height: .78; letter-spacing: -.06em; }
.hero-total span { font-size: .68rem; font-weight: 800; letter-spacing: .11em; line-height: 1.15; text-transform: uppercase; }

/* Seasonal overview */
.season-ribbon { background: var(--up-ink); color: var(--up-white); }
.season-ribbon-inner {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  align-items: stretch;
}
.season-heading,
.season-cell { min-height: 7.4rem; display: grid; align-content: center; padding: 1.15rem 1.3rem; }
.season-heading { padding-left: 0; }
.season-heading p,
.season-cell span {
  margin: 0 0 .45rem;
  color: var(--up-gold);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.season-heading h2 { margin: 0; color: var(--up-white); font-family: var(--up-display); font-size: 1.05rem; line-height: 1.25; }
.season-cell { border-left: 1px solid rgba(255, 255, 255, .2); }
.season-cell strong { font-size: .86rem; font-weight: 600; line-height: 1.45; }

/* Small jump links to the clearly separated directories at the page bottom */
.outings-jump {
  background: var(--up-white);
  border-bottom: 1px solid var(--up-line);
}
.outings-jump-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: .75rem 1.5rem;
}
.outings-jump-inner > span {
  margin-right: auto;
  color: var(--up-muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.outings-jump a {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  padding-block: .7rem;
  color: var(--up-forest-dark);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.outings-jump a:hover {
  color: var(--up-berry);
  border-bottom-color: var(--up-berry);
}
.outings-jump i { color: var(--up-orange); font-style: normal; }

/* Directory */
.directory-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
}
.directory-rail { position: sticky; top: 6rem; align-self: start; }
.section-label {
  margin: 0 0 .65rem;
  color: var(--up-berry);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.directory-rail h2,
.guide-heading h2,
.context-heading h2,
.outings-heading h2 {
  margin: 0;
  color: var(--up-forest-dark);
  font-family: var(--up-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}
.directory-rail > p:last-of-type { margin: 1rem 0 0; color: var(--up-muted); font-size: .95rem; line-height: 1.65; }
.field-note {
  margin-top: 2rem;
  padding: 1.2rem;
  background: var(--up-berry);
  color: var(--up-white);
  box-shadow: 7px 7px 0 var(--up-gold);
}
.field-note > span { display: block; color: #f2cf7a; font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.field-note strong { display: block; margin-top: .7rem; font-size: .93rem; }
.field-note p { margin: .55rem 0 0; color: #f0dfe4; font-size: .82rem; line-height: 1.6; }

.farm-directory { min-width: 0; }
.directory-key {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0 1rem .7rem 4.8rem;
  color: var(--up-muted);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.farm-list {
  counter-reset: upick-farm;
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.farm {
  counter-increment: upick-farm;
  position: relative;
  background: var(--up-white);
  border: 1px solid var(--up-line);
}
.farm::before {
  content: counter(upick-farm, decimal-leading-zero);
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3.8rem;
  display: grid;
  place-items: center;
  background: var(--up-forest-dark);
  color: var(--up-gold);
  font-family: var(--up-display);
  font-size: .95rem;
  font-weight: 800;
  transition: none;
}
.michigan-upick-page.upick-concept-one .farm-list > .farm::before { background: var(--up-forest-dark); transition: none; }
.farm:nth-child(4n+2)::before { background: var(--up-berry); color: var(--up-white); }
.farm:nth-child(4n+3)::before { background: var(--up-orange); color: var(--up-white); }
.farm:nth-child(4n)::before { background: var(--up-forest); color: var(--up-white); }

.farm-trigger {
  width: 100%;
  min-height: 4.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, auto) 1.4rem;
  gap: 1rem;
  align-items: center;
  padding: .95rem 1rem .95rem 4.8rem;
  background: transparent;
  border: 0;
  color: var(--up-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.farm-trigger:hover { background: #edf1ed; }
.farm-trigger:focus-visible { outline: 3px solid var(--up-gold); outline-offset: 3px; }
.farm-name { font-size: .98rem; font-weight: 800; line-height: 1.35; }
.farm-town { color: var(--up-muted); font-size: .77rem; font-weight: 700; text-align: right; }
.chev {
  width: .68rem;
  height: .68rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-.18rem);
  transition: transform .2s ease;
}
.farm-trigger[aria-expanded="true"] .chev { transform: rotate(225deg) translate(-.1rem, -.1rem); }
.farm-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  pointer-events: none;
  transition: grid-template-rows .24s ease, visibility 0s linear .24s;
}
.farm-panel > div { overflow: hidden; }
.farm.is-open .farm-panel { grid-template-rows: 1fr; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.farm-body { margin-left: 3.8rem; padding: .45rem 1.15rem 1.35rem; border-top: 1px solid #dfe2dd; }
.farm-body > p { max-width: 52rem; margin: 1rem 0 0; color: #414d47; font-size: .91rem; line-height: 1.7; }
.farm-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.3rem 0 0;
  padding: 1px;
  background: var(--up-line);
}
.farm-meta > div { min-width: 0; padding: .95rem; background: #f7f8f5; }
.farm-meta dt { color: var(--up-berry); font-size: .66rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.farm-meta dd { margin: .4rem 0 0; color: var(--up-ink); font-size: .83rem; line-height: 1.55; overflow-wrap: anywhere; }
.farm-meta a { color: var(--up-forest); font-weight: 800; text-underline-offset: .18em; }

/* Practical picking guidance */
.picking-guide { background: var(--up-gold); }
.picking-guide-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, 1fr);
  gap: 2rem 3rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.guide-heading { grid-row: 1 / span 2; }
.picking-guide .section-label { color: var(--up-berry-dark); }
.guide-point { padding-top: .85rem; border-top: 3px solid var(--up-berry); }
.guide-point span { color: var(--up-berry-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-point p { margin: .55rem 0 0; color: #342b20; font-size: .86rem; line-height: 1.6; }

/* Search context */
.upick-context {
  display: grid;
  grid-template-columns: minmax(16rem, .85fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.context-copy p { margin: 0 0 1.2rem; color: #46514c; font-size: 1rem; line-height: 1.8; }
.context-copy a { color: var(--up-berry); font-weight: 700; text-underline-offset: .18em; }

/* Clearly separate internal directories */
.michigan-outings { background: var(--up-forest-dark); color: var(--up-white); }
.outings-inner {
  display: grid;
  grid-template-columns: minmax(14rem, .7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3.8rem, 7vw, 5.8rem);
}
.michigan-outings .section-label { color: #edc86d; }
.outings-heading h2 { color: var(--up-white); }
.outings-heading > p:last-child { margin: 1rem 0 0; color: #bdcec7; font-size: .86rem; line-height: 1.6; }
.outing-links { display: grid; gap: .75rem; }
.outing-links a {
  position: relative;
  display: grid;
  gap: .3rem;
  padding: 1.1rem 3.4rem 1.1rem 1.2rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--up-white);
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
  scroll-margin-top: 6rem;
}
.outing-links a:hover { background: var(--up-berry); border-color: var(--up-berry); }
.outing-links span { font-size: .94rem; font-weight: 800; }
.outing-links small { color: #bed0c8; font-size: .76rem; line-height: 1.45; }
.outing-links i { position: absolute; right: 1.25rem; top: 50%; color: var(--up-gold); font-style: normal; font-size: 1.2rem; transform: translateY(-50%); }

@media (max-width: 900px) {
  .season-ribbon-inner { grid-template-columns: repeat(3, 1fr); }
  .season-heading { grid-column: 1 / -1; min-height: 4.5rem; padding-left: 0; }
  .season-cell:first-of-type { border-left: 0; }
  .directory-layout { grid-template-columns: 1fr; }
  .directory-rail { position: static; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; }
  .directory-rail > .section-label, .directory-rail > h2, .directory-rail > p { grid-column: 1; }
  .field-note { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .picking-guide-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-heading { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 640px) {
  .harvest-hero { min-height: 38rem; }
  .harvest-hero-inner { display: block; padding-inline: 1rem; }
  .harvest-title-block { padding-left: 1rem; }
  .harvest-title-block h1 { font-size: clamp(3.1rem, 16vw, 5.1rem); }
  .hero-total { width: max-content; margin: 1.5rem 0 0 1rem; }
  .season-ribbon-inner { grid-template-columns: 1fr; padding-inline: 1rem; }
  .season-heading, .season-cell { min-height: auto; padding: 1rem 0; }
  .season-cell { border-top: 1px solid rgba(255, 255, 255, .2); border-left: 0; }
  .outings-jump-inner { flex-wrap: wrap; gap: 0 1rem; padding: .8rem 1rem; }
  .outings-jump-inner > span { flex: 0 0 100%; margin: 0 0 .25rem; }
  .outings-jump a { padding-block: .45rem; }
  .directory-layout { padding-inline: 1rem; }
  .directory-rail { display: block; }
  .field-note { margin-top: 1.6rem; }
  .directory-key { display: none; }
  .farm::before { width: 3.1rem; }
  .farm-trigger { grid-template-columns: 1fr 1.2rem; grid-template-rows: auto auto; gap: .45rem .75rem; padding: .85rem .85rem .85rem 4rem; }
  .farm-name { grid-column: 1; }
  .farm-town { grid-column: 1; grid-row: 2; text-align: left; }
  .chev { grid-column: 2; grid-row: 1 / span 2; }
  .farm-body { margin-left: 3.1rem; padding-inline: .85rem; }
  .farm-meta { grid-template-columns: 1fr; }
  .picking-guide-grid { grid-template-columns: 1fr; padding-inline: 1rem; }
  .upick-context { grid-template-columns: 1fr; padding-inline: 1rem; }
  .outings-inner { grid-template-columns: 1fr; padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .chev, .farm-panel, .outing-links a { transition: none; }
}
