/* Homepage layout, using the palette shared by the rest of the site. */
.home { background: var(--bg); }
.home .section-head h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
.home .section-head .lead { margin-bottom: 0; }

/* The wide and mobile photographs are composed separately, with live text above. */
.home-hero { background: #f9edda; }
.home-hero .slider { width: 100%; }
.home-hero .slide { height: clamp(340px, 45vw, 640px); overflow: hidden; }
.home-hero__picture { position: absolute; inset: 0; }
.home-hero .home-hero__picture img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.slide--fresh .home-hero__picture img { object-position: center top; }
.slide--value .home-hero__picture img, .slide--bakery .home-hero__picture img { object-position: center bottom; }
.home-hero__inner { position: absolute; inset: 0; display: flex; align-items: center; direction: ltr; }
.home-hero__copy { position: relative; width: 45%; padding: 28px 12px 48px 0; }
[dir="rtl"] .home-hero__copy { direction: rtl; }
.home-hero .home-hero__logo { width: 128px; height: auto; aspect-ratio: auto; margin-bottom: 20px; }
.home-hero__eyebrow { display: block; margin-bottom: 14px; color: #28562e; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.home-hero h1, .home-hero h2 { margin: 0 0 20px; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.08; color: #173e23; }
.home-hero h1 span, .home-hero h2 span { color: var(--red-600); }
.home-hero__copy p { max-width: 360px; margin-bottom: 26px; color: #344e36; font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.home-hero .slide .btn { display: inline-flex; min-height: 46px; }
.slide--bakery h2 { color: #613615; }
.slide--store::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,30,17,.94), rgba(7,30,17,.62) 32%, transparent 65%); pointer-events: none; }
.slide--store .home-hero__inner { z-index: 1; }
.slide--store h2, .slide--store h2 span { color: #fff; }
.slide--store .home-hero__eyebrow { color: #d6efbd; }
.slide--store .home-hero__copy p { color: #f3f5ea; }
.home-hero .slider__arrow { width: 40px; height: 40px; }
.home-hero .slider__arrow--prev { inset-inline-start: 10px; }
.home-hero .slider__arrow--next { inset-inline-end: 10px; }

/* Product photographs sit above their labels, retaining the full, bright image. */
.home-departments { background: var(--bg); }
.home-departments .section-head { margin-bottom: 28px; }
.home-departments__mobile-link { display: none; }

/* Four useful shortcuts, with color across the whole tile. */
.home-shortcuts { margin: 0; padding: 0 0 clamp(36px, 5vw, 64px); background: var(--bg); border: 0; }
.home-shortcuts .quickbar__grid { gap: 16px; }
.home-shortcuts .quickbar__item { min-width: 0; min-height: 112px; padding: 20px 18px; border: 1px solid rgba(32,72,38,.06); border-radius: 18px; background: var(--surface-mint); color: #234b2a; transition: transform .2s, box-shadow .2s; }
.home-shortcuts .quickbar__item:nth-child(2) { background: var(--red-600); color: #fff; border-color: var(--red); }
.home-shortcuts .quickbar__item:nth-child(3) { background: var(--surface-sun); color: #654b0b; }
.home-shortcuts .quickbar__item:nth-child(4) { background: var(--surface-cool); color: #1b573a; }
.home-shortcuts .quickbar__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.home-shortcuts .quickbar__icon { width: 44px; height: 44px; background: rgba(255,255,255,.65); color: inherit; }
.home-shortcuts .quickbar__item:nth-child(2) .quickbar__icon { background: rgba(255,255,255,.16); color: #fff; }
.home-shortcuts .quickbar__item:nth-child(2):focus-visible { outline-color: var(--red-600); }
.home-shortcuts .quickbar__copy { min-width: 0; }
.home-shortcuts .quickbar__item span { color: inherit; }
.home-shortcuts .quickbar__item strong { margin-bottom: 5px; font-size: .93rem; }
.home-shortcuts .quickbar__desktop-label { font: inherit; }
.home-shortcuts .quickbar__description { display: block; font-size: .75rem; line-height: 1.5; opacity: .87; }
.home-shortcuts .quickbar__mobile-label { display: none; }

/* Only three previews on Home; the complete directory remains on Stores. */
.home-stores { background: var(--surface); border-block: 1px solid #dce8d3; }
.home-store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-store { display: grid; grid-template-rows: auto 1fr; background: var(--card); }
.home-store__photo { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: #dce6d3; }
.home-store__photo img { width: 100%; height: 100%; object-fit: cover; }
.home-store__body { padding: 18px 20px; }
.home-store__city { margin: 0 0 6px; font-size: .75rem; line-height: 1.45; font-weight: 700; color: #377140; }
.home-store h3 { margin-bottom: 12px; font-size: 1.15rem; line-height: 1.3; }
.home-store__actions { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.home-store__actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .8rem; font-weight: 700; }
.home-store__actions svg { flex: none; width: 16px; height: 16px; }
.home-store__directions { color: #35613c; }

.home-welcome { background: var(--surface-peach); }
.home-welcome .intro { gap: 56px; }
.home-welcome .intro h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
.home-welcome .intro__media > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.home-welcome .intro__badge { bottom: 14px; padding: 12px 18px; }
.home-welcome .intro__badge b { font-size: 2rem; }
.home-contact { background: var(--bg); }
.home-contact .band { padding: clamp(28px, 4vw, 48px); }
.home-contact .band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

@media (min-width: 701px) and (max-width: 1000px) {
  .home-hero__copy { width: 47%; padding-bottom: 28px; }
  .home-hero .home-hero__logo { display: none; }
  .home-hero__eyebrow { font-size: .65rem; margin-bottom: 10px; }
  .home-hero h1, .home-hero h2 { margin-bottom: 12px; }
  .home-hero__copy p { margin-bottom: 16px; font-size: .9rem; }
  .home-hero .slide .btn { padding: 11px 16px; font-size: .8rem; }
  .home-shortcuts .quickbar__item { gap: 10px; padding-inline: 12px; }
}

@media (max-width: 900px) {
  .home-shortcuts .quickbar__item { height: auto; min-height: 106px; flex-direction: column; gap: 8px; padding: 14px 6px; text-align: center; }
  .home-shortcuts .quickbar__item > span:last-child { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .home-shortcuts .quickbar__item strong { margin: 0; }
  .home-shortcuts .quickbar__desktop-label, .home-shortcuts .quickbar__description { display: none; }
  .home-shortcuts .quickbar__mobile-label { display: block; font-size: .78rem; font-weight: 700; }
  .home-shortcuts .quickbar__grid { gap: 10px; }
  .home-welcome .intro { gap: 28px; }
}

@media (max-width: 700px) {
  .home-hero .slide { height: clamp(340px, 75vw, 525px); }
  .home-hero .home-hero__picture img { object-position: center; }
  .home-hero__inner { align-items: flex-start; }
  .home-hero__copy { width: 100%; padding: 18px 0 0; text-align: center; }
  .home-hero .home-hero__logo, .home-hero__eyebrow, .home-hero__copy p { display: none; }
  .home-hero h1, .home-hero h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.08; }
  .home-hero .slide .btn { min-height: 36px; padding: 8px 15px; font-size: .76rem; }
  .home-hero .slide .btn svg { width: 15px; height: 15px; }
  .slide--store::after { display: none; }
  .home .section { padding-block: 36px; }
  .home .section-head { gap: 14px; margin-bottom: 22px; }
  .home .section-head .eyebrow { margin-bottom: 10px; font-size: .67rem; }
  .home .section-head h2 { font-size: 1.8rem; }
  .home .section-head .lead { font-size: .93rem; line-height: 1.6; }
  .home-departments__desktop-link { display: none; }
  .home-departments__mobile-link { display: flex; width: fit-content; margin: 24px auto 0; font-size: .85rem; border-color: #d8cbb7; }
  .home-store-grid { grid-template-columns: 1fr; gap: 14px; }
  .home-store { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto; }
  .home-store__photo { aspect-ratio: auto; min-height: 156px; height: 100%; }
  .home-store__body { min-width: 0; padding: 14px 15px; }
  .home-store h3 { margin-bottom: 5px; font-size: 1rem; }
  .home-store__actions { gap: 0 12px; }
  .home-store__actions a { font-size: .74rem; }
  .home-welcome .intro__media { margin-top: 0; }
  .home-welcome .intro__media > img { max-height: 230px; }
  .home-welcome .intro .lead { font-size: 1rem; }
  .home-contact .band__actions { gap: 10px; }
}

@media (max-width: 360px) {
  .home-shortcuts .quickbar__grid { gap: 7px; }
  .home-shortcuts .quickbar__mobile-label { font-size: .7rem; }
  .home-shortcuts .quickbar__item { border-radius: 14px; }
  .home-store { grid-template-columns: 94px minmax(0, 1fr); }
  .home-store__body { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-shortcuts .quickbar__item { transition: none; }
}
