/* Harvest Lane Mercantile — bespoke landing styles (built on theme.css tokens) */

/* ---------- brand mark ----------
   The landing page inlines the traced sprig once and stamps it into the
   header and footer lockups with <use>, so a single trace serves both fills
   through currentColor. */

.hl-sprig-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.page-landing .brand-mark {
  background: none;
  color: #4B5040;
}

.page-landing .site-footer .brand-mark { color: #DFE3D8; }

.hl-sprig-glyph {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- header utility icons ----------
   The landing page has real markup for the icons, so it inlines the lucide
   glyphs (search / user / shopping-bag) and the CSS-painted set theme.css
   supplies for the shared pages stands down here. */

.page-landing .site-nav::after { display: none; }

.hl-nav-icons {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: 1rem;
}

.hl-nav-icon {
  display: block;
  width: 21px;
  height: 21px;
  color: var(--color-ink);
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.hl-nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
}

.hl-nav-icon:hover { opacity: 0.6; }

/* ---------- mobile menu toggle ----------
   Hidden entirely above the drawer breakpoint; the inline nav is unchanged
   there. Styling follows the header chrome: ink strokes on the cream field. */

.hl-nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  cursor: pointer;
}

.hl-nav-toggle:hover { color: var(--color-brand); border-color: var(--color-border); }

.hl-nav-toggle-bars {
  display: block;
  width: 22px;
  height: 14px;
  position: relative;
}

.hl-nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hl-nav-toggle-bars span:nth-child(1) { top: 0; }
.hl-nav-toggle-bars span:nth-child(2) { top: 6.25px; }
.hl-nav-toggle-bars span:nth-child(3) { top: 12.5px; }

.hl-nav-toggle.is-open .hl-nav-toggle-bars span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.hl-nav-toggle.is-open .hl-nav-toggle-bars span:nth-child(2) { opacity: 0; }
.hl-nav-toggle.is-open .hl-nav-toggle-bars span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* SHOP caret (lucide chevron-down) */
.hl-caret {
  width: 11px;
  height: 11px;
  margin-left: 0.4em;
  vertical-align: -1px;
  stroke-width: 1.5;
}

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

.hl-hero {
  background:
    /* real shelf still-life; painted layers below remain the fallback */
    url("../../assets/img/harvest-lane/hero.webp") center / cover no-repeat,
    /* foliage in a crock, left of the card */
    radial-gradient(circle at 17% 26%, rgba(124, 141, 84, 0.85) 0 5%, transparent 12%),
    radial-gradient(circle at 22% 34%, rgba(154, 168, 112, 0.8) 0 5%, transparent 12%),
    radial-gradient(circle at 12% 35%, rgba(105, 122, 68, 0.8) 0 5%, transparent 12%),
    radial-gradient(circle at 26% 24%, rgba(178, 189, 140, 0.7) 0 4%, transparent 10%),
    /* stoneware crock */
    radial-gradient(ellipse 7% 22% at 18% 60%, #E8E0CC 0 62%, #C8BC9F 78%, transparent 100%),
    /* smaller jug */
    radial-gradient(ellipse 4.5% 15% at 31% 66%, #D9CDB0 0 62%, #B3A484 80%, transparent 100%),
    /* bowl */
    radial-gradient(ellipse 6% 7% at 42% 72%, #8A6F49 0 64%, transparent 100%),
    /* upper shelf clutter */
    radial-gradient(ellipse 3% 10% at 55% 26%, #4A3E2C 0 60%, transparent 100%),
    radial-gradient(ellipse 3% 9% at 60% 27%, #5C4C33 0 60%, transparent 100%),
    radial-gradient(ellipse 3.5% 10% at 66% 26%, #43382a 0 60%, transparent 100%),
    /* shelf boards */
    linear-gradient(0deg, transparent 66.6%, rgba(64, 51, 34, 0.55) 67%, rgba(64, 51, 34, 0.55) 68.6%, transparent 69%),
    linear-gradient(0deg, transparent 31.6%, rgba(64, 51, 34, 0.45) 32%, rgba(64, 51, 34, 0.45) 33.4%, transparent 33.8%),
    /* warm window light upper-right */
    radial-gradient(ellipse 45% 55% at 78% 18%, rgba(233, 216, 180, 0.4) 0%, transparent 100%),
    /* table surface */
    linear-gradient(0deg, #63512F 0%, #7A6540 14%, transparent 32%),
    linear-gradient(160deg, #A18A5F 0%, #8D7650 45%, #6F5A3B 100%);
  padding-block: 5.5rem;
}

.hl-hero-inner {
  display: flex;
  justify-content: flex-end;
}

.hl-hero-card {
  background: rgba(250, 246, 236, 0.94);
  border: 1px solid rgba(222, 212, 189, 0.7);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-width: 460px;
  padding: 2.75rem 2.75rem 3rem;
}

.hl-hero-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 500;
  margin: 0 0 0.8rem;
}

.hl-hero-text {
  color: var(--color-ink-muted);
  margin: 0 0 1.6rem;
}

/* ---------- category circles ---------- */

/* no rules here: the hero photo and the seasonal band meet the cream field
   directly in the mockup */
.hl-categories {
  background: var(--color-surface);
  padding-block: 3.5rem;
}

.hl-cat-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.hl-cat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--color-ink);
  gap: 0.2rem;
}

.hl-cat-circle {
  width: clamp(96px, 10vw, 132px);
  height: clamp(96px, 10vw, 132px);
  border-radius: 50%;
  border: 1px solid var(--color-border);
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.hl-cat-link:hover .hl-cat-circle { transform: scale(1.04); }

.hl-cat-circle--home {
  background:
    url("../../assets/img/harvest-lane/prod-vase.webp") center / cover no-repeat,
    radial-gradient(circle at 34% 62%, #D8CBAE 0 26%, transparent 46%),
    radial-gradient(circle at 66% 44%, #B4A582 0 20%, transparent 40%),
    linear-gradient(165deg, #EDE4CE, #C9B992);
}

.hl-cat-circle--garden {
  background:
    url("../../assets/img/harvest-lane/prod-fern.webp") center / cover no-repeat,
    radial-gradient(circle at 40% 36%, #7C8D54 0 24%, transparent 46%),
    radial-gradient(circle at 66% 62%, #9AA870 0 20%, transparent 42%),
    linear-gradient(165deg, #DDE0C4, #8E9C64);
}

.hl-cat-circle--pantry {
  background:
    url("../../assets/img/harvest-lane/cat-pantry.webp") center / cover no-repeat,
    radial-gradient(circle at 36% 52%, #8A5F32 0 18%, transparent 38%),
    radial-gradient(circle at 62% 40%, #B08549 0 16%, transparent 36%),
    linear-gradient(165deg, #E9DCBE, #A9834F);
}

.hl-cat-circle--bath {
  background:
    url("../../assets/img/harvest-lane/prod-soak.webp") center / cover no-repeat,
    radial-gradient(circle at 50% 44%, #F1E9D4 0 22%, transparent 42%),
    radial-gradient(circle at 40% 68%, #D9C89E 0 16%, transparent 36%),
    linear-gradient(165deg, #EFE7D2, #C4B58C);
}

.hl-cat-circle--gifts {
  background:
    url("../../assets/img/harvest-lane/prod-tote.webp") center / cover no-repeat,
    radial-gradient(circle at 44% 40%, #C89F5C 0 20%, transparent 40%),
    radial-gradient(circle at 64% 66%, #A98A57 0 16%, transparent 36%),
    linear-gradient(165deg, #EBDFC2, #B18E55);
}

.hl-cat-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.hl-cat-desc {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  max-width: 18ch;
}

/* ---------- in-season split banner ---------- */

.hl-season {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}

.hl-season-copy {
  position: relative;
  background: var(--color-tan);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* traced botanical line art on the right of the tan field, anchored to the
   bottom edge — the source art's clipped stem reads as an intentional bleed
   there. Kept clear of the copy on the left. */
.hl-season-copy::before {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 0;
  width: 132px;
  height: 152px;
  background: var(--flourish-spring) bottom center / contain no-repeat;
  pointer-events: none;
}

.hl-season-copy-inner {
  position: relative;
  padding: 2rem clamp(2rem, 8vw, 6.5rem);
}

.hl-season-title {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin: 0 0 0.6rem;
}

.hl-season-text {
  color: var(--color-ink-muted);
  max-width: 30ch;
  margin: 0 0 1.6rem;
}

.hl-season-photo {
  background:
    url("../../assets/img/harvest-lane/seasonal.webp") center / cover no-repeat,
    radial-gradient(circle at 30% 40%, rgba(199, 128, 166, 0.75) 0 7%, transparent 14%),
    radial-gradient(circle at 44% 30%, rgba(214, 152, 186, 0.7) 0 6%, transparent 12%),
    radial-gradient(circle at 56% 46%, rgba(199, 128, 166, 0.65) 0 6%, transparent 13%),
    radial-gradient(circle at 38% 55%, rgba(240, 236, 224, 0.85) 0 5%, transparent 11%),
    radial-gradient(circle at 64% 32%, rgba(240, 236, 224, 0.8) 0 5%, transparent 10%),
    radial-gradient(ellipse 34% 30% at 45% 48%, rgba(122, 141, 84, 0.85) 0%, rgba(122, 141, 84, 0) 100%),
    radial-gradient(ellipse 30% 40% at 44% 82%, rgba(160, 160, 158, 0.9) 0%, rgba(160, 160, 158, 0) 100%),
    radial-gradient(ellipse 26% 44% at 88% 70%, rgba(178, 146, 92, 0.9) 0%, rgba(178, 146, 92, 0) 100%),
    linear-gradient(150deg, #C7C0AC 0%, #A5A288 55%, #7E7B60 100%);
}

/* ---------- handpicked favorites ---------- */

.hl-fav-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hl-fav-head .section-title { margin: 0; }

.hl-view-all {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink-muted);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 0.15rem;
}

.hl-view-all:hover { color: var(--color-brand); }

.hl-product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
}

.hl-product-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--color-ink);
  gap: 0.15rem;
}

.hl-product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hl-product-link:hover .hl-product-media {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.hl-product-media--candle {
  background:
    url("../../assets/img/harvest-lane/prod-candle.webp") center / cover no-repeat,
    linear-gradient(0deg, transparent 62%, rgba(228, 178, 84, 0.9) 63%, transparent 68%),
    linear-gradient(90deg, transparent 34%, #F4EEDC 34%, #EFE6CC 66%, transparent 66%),
    linear-gradient(175deg, #E3D9C0, #C5B48C);
}

.hl-product-media--vase {
  background:
    url("../../assets/img/harvest-lane/prod-vase.webp") center / cover no-repeat,
    radial-gradient(circle at 50% 26%, rgba(124, 141, 84, 0.85) 0 12%, transparent 26%),
    radial-gradient(ellipse 22% 32% at 50% 66%, #F1EAD6 0 60%, transparent 100%),
    linear-gradient(175deg, #E7DDC6, #C2B189);
}

.hl-product-media--board {
  background:
    url("../../assets/img/harvest-lane/prod-board.webp") center / cover no-repeat,
    linear-gradient(28deg, transparent 26%, #7A5A34 27%, #8D6A3F 48%, #7A5A34 72%, transparent 73%),
    linear-gradient(175deg, #E5DAC0, #BCA97E);
}

.hl-product-media--soak {
  background:
    url("../../assets/img/harvest-lane/prod-soak.webp") center / cover no-repeat,
    linear-gradient(90deg, transparent 32%, rgba(244, 240, 228, 0.95) 33%, rgba(233, 226, 205, 0.95) 67%, transparent 68%),
    radial-gradient(circle at 50% 38%, rgba(151, 128, 168, 0.5) 0 12%, transparent 26%),
    linear-gradient(175deg, #E6DCC5, #C3B38B);
}

.hl-product-media--tote {
  background:
    url("../../assets/img/harvest-lane/prod-tote.webp") center / cover no-repeat,
    linear-gradient(0deg, transparent 68%, rgba(47, 43, 32, 0.75) 69%, transparent 74%),
    linear-gradient(0deg, #C9A868 30%, #D8BB80 62%, transparent 62%),
    linear-gradient(175deg, #EBE1CA, #CDBB92);
}

.hl-product-media--fern {
  background:
    url("../../assets/img/harvest-lane/prod-fern.webp") center / cover no-repeat,
    radial-gradient(circle at 36% 38%, rgba(94, 116, 58, 0.85) 0 12%, transparent 26%),
    radial-gradient(circle at 62% 32%, rgba(122, 141, 84, 0.85) 0 12%, transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(105, 128, 66, 0.8) 0 14%, transparent 30%),
    radial-gradient(ellipse 20% 16% at 50% 74%, #A9834F 0 60%, transparent 100%),
    linear-gradient(175deg, #E9E0C9, #C4B38A);
}

.hl-product-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.hl-product-price {
  font-size: 0.88rem;
  color: var(--color-ink-muted);
}

/* ---------- our story ---------- */

.hl-story {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
  padding-block: var(--section-pad);
  position: relative;
  overflow: hidden;
}

/* traced olive branch at the bottom-right of the copy column, as in the mockup */
.hl-story-copy { position: relative; }

.hl-story-copy::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 132px;
  height: 127px;
  background: var(--flourish-corner) center / contain no-repeat;
  pointer-events: none;
}

.hl-story-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hl-story-photo {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  background:
    url("../../assets/img/harvest-lane/storefront.webp") center / cover no-repeat,
    /* sign board */
    linear-gradient(0deg, transparent 74%, rgba(250, 246, 236, 0.95) 75%, rgba(250, 246, 236, 0.95) 86%, transparent 87%) 50% 0 / 56% 100% no-repeat,
    /* door */
    linear-gradient(90deg, transparent 43%, #3E4A26 44%, #4A5730 56%, transparent 57%) 0 100% / 100% 62% no-repeat,
    /* windows */
    linear-gradient(90deg, transparent 8%, rgba(62, 74, 38, 0.55) 9%, rgba(94, 104, 66, 0.5) 30%, transparent 31%) 0 100% / 100% 52% no-repeat,
    linear-gradient(90deg, transparent 69%, rgba(62, 74, 38, 0.55) 70%, rgba(94, 104, 66, 0.5) 91%, transparent 92%) 0 100% / 100% 52% no-repeat,
    /* awning shadow */
    linear-gradient(0deg, transparent 66%, rgba(47, 43, 32, 0.25) 67%, transparent 72%),
    /* facade */
    linear-gradient(175deg, #EFE8D6 0%, #E2D7BC 60%, #CDBE9C 100%);
}

.hl-story-copy .eyebrow { margin-bottom: 0.5rem; }

.hl-story-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.8rem;
}

.hl-story-text {
  color: var(--color-ink-muted);
  margin: 0 0 1.4rem;
}

.hl-story-signoff {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  color: var(--color-brand);
  margin: 0 0 0.1rem;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.hl-story-byline {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin: 0 0 1.6rem;
}

/* ---------- testimonials ---------- */

.hl-testimonials-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hl-quote-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hl-quote-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.hl-quote {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* lucide star, filled, five per quote */
.hl-stars {
  display: inline-flex;
  justify-content: center;
  gap: 0.28rem;
  color: var(--color-accent);
}

.hl-star {
  width: 12px;
  height: 12px;
  stroke-width: 1.2;
}

.hl-quote-text {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
}

.hl-quote-name {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

.hl-quote-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink-muted);
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* lucide chevron-left / chevron-right */
.hl-quote-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.hl-quote-arrow:hover {
  background: var(--color-brand);
  color: var(--color-on-brand);
  border-color: var(--color-brand);
}

/* ---------- info strip ---------- */

.hl-info {
  background: var(--color-surface-alt);
  border-block: 1px solid var(--color-border);
  padding-block: 3rem;
}

.hl-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.hl-info-item { text-align: center; }

/* lucide map-pin / clock / truck / shopping-bag, inlined in the markup */
.hl-info-icon {
  display: inline-block;
  width: 44px;
  height: 44px;
  margin-bottom: 0.7rem;
  color: var(--color-brand);
}

.hl-info-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hl-info-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.hl-info-text {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  margin: 0;
  max-width: 26ch;
  margin-inline: auto;
}

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

.hl-footer { margin-top: 0; }

.hl-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

.hl-news-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.4rem;
}

.hl-news-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid rgba(247, 244, 234, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
}

.hl-news-btn {
  border-color: var(--color-tan);
  color: var(--color-tan);
}

.hl-news-btn:hover {
  background: var(--color-tan);
  border-color: var(--color-tan);
  color: var(--color-brand-deep);
}

/* simple-icons Instagram / Facebook / Pinterest, cream on the olive footer */
.hl-social {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: 1.1rem;
}

.hl-social-link {
  display: block;
  width: 18px;
  height: 18px;
  color: rgba(247, 244, 234, 0.9);
  transition: color 0.15s ease;
}

.hl-social-link:hover { color: var(--color-on-brand); }

.hl-social-link svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- tablet ---------- */

@media (max-width: 1024px) {
  /* three across still reads well here, but five tiles leave the second row
     two-of-three and a hole on the right, so the grid runs on six columns and
     each tile spans two of them: the two stragglers can then be nudged inward
     to sit centred under the first row. Column widths are identical to a
     three-column grid at the same gap. */
  .hl-cat-row { grid-template-columns: repeat(6, 1fr); row-gap: 2rem; }
  .hl-cat-row .hl-cat { grid-column: span 2; }
  .hl-cat-row .hl-cat:nth-child(4) { grid-column: 2 / span 2; }
  .hl-cat-row .hl-cat:nth-child(5) { grid-column: 4 / span 2; }

  .hl-product-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .hl-quote-list { grid-template-columns: 1fr; gap: 2rem; }
  /* every quote is on screen at once now, so the pager arrows page nothing and
     would just float in the side margins beside the middle quote */
  .hl-quote-arrow { display: none; }
  .hl-info-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-story-inner { grid-template-columns: 1fr; }
  .hl-story-copy::after { display: none; }
  /* the botanical flourish runs into the copy once the tan column is half of a
     narrower page */
  .hl-season-copy::before { display: none; }
}

/* ---------- mobile nav drawer ----------
   Below this width the inline links collapse behind the hamburger and the
   same <nav> re-renders as a drawer layered over the page: it is positioned
   against the header, so opening it never moves anything below the header. */

@media (max-width: 1024px) {
  .page-landing .site-header {
    position: relative;
    z-index: 30;
  }

  .page-landing .site-header-inner {
    justify-content: space-between;
    text-align: left;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .page-landing .hl-nav-toggle { display: inline-flex; }

  .page-landing .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.25rem 1.5rem 1.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .page-landing .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .page-landing .site-nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.7rem 0.1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .page-landing .site-nav .nav-link.is-active { border-bottom-color: var(--color-accent); }

  .page-landing .hl-nav-icons {
    margin-left: -11px;
    gap: 0.4rem;
    padding-top: 0.6rem;
  }

  .page-landing .hl-nav-icon {
    width: 44px;
    height: 44px;
    padding: 11px;
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .page-landing .site-nav,
  .hl-nav-toggle-bars span { transition: none; }
}

/* At touch widths the underlined "View All" text is too short to tap, so it
   becomes an outlined pill tall enough for a thumb instead. */
@media (max-width: 1024px) {
  .hl-fav-head { align-items: center; }

  .hl-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.25rem;
    border: 1px solid var(--color-accent);
    border-radius: 999px;
  }
}

/* ---------- phone ---------- */

@media (max-width: 640px) {
  /* the ribbon has no slack left at this width, so it runs a shorter line */
  .page-landing .site-header::before {
    content: var(--sprig-ribbon) "\00a0 Free local delivery $75+  \00b7  Curbside pickup";
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.75rem;
  }

  /* desktop-scale hero padding wastes most of the first screen at phone width */
  .hl-hero { padding-block: 2.25rem; }
  .hl-hero-inner { justify-content: center; }
  .hl-hero-card { padding: 1.75rem 1.5rem 2rem; text-align: center; }
  .hl-categories { padding-block: 2.5rem; }
  /* two across, and the six-column tablet scheme unwinds back to plain cells */
  .hl-cat-row { grid-template-columns: repeat(2, 1fr); }
  .hl-cat-row .hl-cat,
  .hl-cat-row .hl-cat:nth-child(4),
  .hl-cat-row .hl-cat:nth-child(5) { grid-column: auto; }
  /* five categories in two columns strand the last one on a ragged row */
  .hl-cat-row .hl-cat:last-child { grid-column: 1 / -1; }
  .hl-product-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-season { grid-template-columns: 1fr; }
  .hl-season-photo { min-height: 240px; }
  .hl-season-copy-inner { padding: 2rem 1.5rem; text-align: center; }
  .hl-season-text { max-width: none; }
  .hl-story-copy { text-align: center; }
  .hl-story-signoff { transform-origin: center; }
  .hl-info-grid { grid-template-columns: 1fr; }
  .hl-footer-grid { grid-template-columns: 1fr; row-gap: 2rem; }
  .hl-fav-head { flex-direction: column; align-items: center; }
  /* keep the subscribe row on one line and both controls thumb-sized */
  .hl-news-form { flex-wrap: nowrap; }
  .hl-news-input { min-height: 44px; }
  .hl-news-btn { flex: 0 0 auto; min-height: 44px; padding-inline: 0.9rem; }
  .hl-social { gap: 0.25rem; margin-inline-start: -13px; }
  .hl-social-link { width: 44px; height: 44px; padding: 13px; }
}
