/* ItalianWines.co.uk - Homepage redesign
   Section styles for app/Views/home/page.php. Loaded after tokens.css, so it
   reuses the site design tokens (--color-*, --font-*, --radius-*, --shadow-*,
   --dur-*, --ease-*). Carousels, the Atlas map, article cards, the offer
   label and the coming-soon teaser are reused partials and styled elsewhere.

   Adapted from the "Homepage Redesign.html" design handoff (homepage.css). */

:root {
  --hp-max-width: 1280px;
  /* Tokens used below that tokens.css does not define */
  --color-surface-container-high: #ebe8e3;
  --color-error: #ba1a1a;
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

.hp { display: block; }
.hp img { max-width: 100%; }
.hp-wrap { max-width: var(--hp-max-width); margin: 0 auto; padding: 0 32px; }

/* ───────────────────────── SECTION SHELL ───────────────────────── */
.hp-section { padding: 88px 32px; }
.hp-section-low { background: var(--color-surface-container-low); }
.hp-section-inverse { background: var(--color-primary); color: var(--color-primary-300); }
.hp-section-tinted {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(86,19,113,0.06), transparent 60%),
    var(--color-background);
}

.hp-shead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  max-width: var(--hp-max-width); margin: 0 auto 44px;
}
.hp-shead-l { max-width: 720px; }
.hp-shead-eyebrow,
.hp-eyebrow {
  font-family: var(--font-label); font-weight: 700; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-primary); display: inline-flex; align-items: center; gap: 12px;
}
.hp-shead-eyebrow::after,
.hp-eyebrow::after { content: ""; height: 1px; width: 36px; background: var(--color-primary); opacity: .4; }
.hp-section-inverse .hp-shead-eyebrow { color: var(--color-primary-300); }
.hp-section-inverse .hp-shead-eyebrow::after { background: var(--color-primary-300); }
.hp-shead h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 3.4vw, 46px); line-height: 1.06;
  letter-spacing: -0.02em; color: var(--color-primary);
  margin: 14px 0 10px;
}
.hp-section-inverse .hp-shead h2 { color: #fff; }
.hp-shead h2 em { font-style: italic; font-weight: 400; color: var(--color-on-surface); }
.hp-section-inverse .hp-shead h2 em { color: var(--color-primary-300); }
.hp-shead-lead {
  font-family: var(--font-display); font-style: italic;
  font-size: 17px; line-height: 1.5; color: var(--color-on-surface-variant);
  margin: 0; max-width: 600px;
}
.hp-section-inverse .hp-shead-lead { color: var(--color-primary-300); }
.hp-shead-r { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.hp-link {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  color: var(--color-primary); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; border-bottom: 2px solid var(--color-primary);
  transition: gap var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.hp-link:hover { gap: 10px; color: var(--color-primary); }
.hp-section-inverse .hp-link { color: #fff; border-bottom-color: #fff; }

/* ───────────────────────── HERO ───────────────────────── */
.hp-hero { position: relative; overflow: hidden; background: var(--color-background); }
.hp-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hp-hero-media img,
.hp-hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.8s var(--ease-out);
}
.hp-hero-video { opacity: 0; }
/* Slight dark scrim over the hero video so the copy stays legible. */
.hp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
}
.hp-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--hp-max-width); margin: 0 auto;
  padding: 80px 32px 64px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end;
}
/* min-width:0 lets this grid item shrink to its track instead of being
   forced wide by a child's intrinsic width (the no-wrap, horizontally
   scrollable Popular chip row inside the search card). */
.hp-hero-copy { max-width: 640px; min-width: 0; }
.hp-hero .hp-eyebrow { color: var(--color-primary); }
.hp-hero .hp-eyebrow::after { background: var(--color-primary); opacity: 0.55; }
.hp-hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 5.4vw, 78px); line-height: 1.0;
  letter-spacing: -0.025em; color: #fff;
  margin: 20px 0 22px;
}
.hp-hero-title em { font-style: italic; font-weight: 400; color: var(--color-primary); }
.hp-hero-lead {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, 0.88);
  max-width: 540px; margin: 0 0 28px;
}
.hp-hero-search { max-width: 640px; }
/* The hero "Popular" chips moved inside the search card and became per-tab.
   They are now rendered and styled by the search partial (variant `home`) and
   search-autosuggest-styles.php (.site-search-popular*). See
   docs/plans/2026-05-22-homepage-search-tabbed-redesign.md. */

/* Hero spotlight card - curator pick */
.hp-hero-spot {
  position: relative;
  background: var(--color-surface-container-lowest);
  border-radius: var(--radius-xl);
  /* Single source of truth for the cropped bottle's width; the gutter below
     and the bottle itself both derive from it. Fixed px (not %) so the gutter
     never reflows the text column, and the bottle is a consistent size. */
  --spot-bottle-w: 106px;
  padding: 26px 26px 26px calc(var(--spot-bottle-w) + 36px);
  box-shadow: var(--shadow-ambient-lg);
  /* Tall enough that the cropped bottle (a tall ~1:4 shape) reads as filling
     the card rather than floating in it. */
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: center;
}
/* The bottle image is ~2/3 transparent padding - the real glass is only the
   centre ~33%. object-fit:cover with a tall glass aspect ratio crops that
   padding away, so the element box IS the visible bottle. The crop ratio is
   230x784 (not the original 198x784): served bottles run ~150-340px wide in
   the 600px frame (median ~205), and a bottle that sits a few px off-centre
   gets its near edge sliced by too tight a crop - which is exactly what
   happened to the ~214px-wide curator pick. 230 widens the crop window to
   ~234px so the whole bottle reads with a small even margin instead of a
   clipped edge, trading a slightly shorter render. Its width is the
   --spot-bottle-w token; the card's left padding (that token + a 14px left
   offset + a 22px gap) clears it. The cropped bottle is tall and overhangs
   the shorter card on purpose.
   See docs/decisions/2026-05-30-curator-spot-bottle-crop-fix.md. */
.hp-hero-spot-bottle {
  position: absolute; left: 14px; bottom: -22px;
  width: var(--spot-bottle-w); height: auto;
  aspect-ratio: 230 / 784;
  object-fit: cover;
  filter: drop-shadow(0 26px 30px rgba(86,19,113,0.26));
}
.hp-hero-spot-eyebrow {
  font-family: var(--font-label); font-weight: 700; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 8px;
}
.hp-hero-spot h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 23px;
  color: var(--color-primary); margin: 0 0 4px; line-height: 1.12;
  letter-spacing: 0;
  /* Cap the name at 4 lines so the card height stays bounded (a long name on
     a narrow column would otherwise outgrow the bottle); 4 lines fits a long
     full wine name on phones without truncating. */
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-hero-spot-prod { font-family: var(--font-display); font-style: italic; font-size: 13.5px; color: var(--color-on-surface-variant); margin: 0 0 12px; }
.hp-hero-spot-note { font-family: var(--font-body); font-size: 13px; line-height: 1.55; color: var(--color-on-surface); margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hp-hero-spot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(86,19,113,.10); }
.hp-hero-spot-price { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--color-primary); }
.hp-hero-spot-price small { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-on-surface-variant); margin-right: 6px; font-weight: 700; }
.hp-hero-spot-cta {
  color: var(--color-primary); font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; border-bottom: 2px solid var(--color-primary);
  white-space: nowrap;
}
.hp-hero-spot-cta:hover { color: var(--color-primary); }

/* ───────────────────────── TRUST STRIP ───────────────────────── */
.hp-trust { position: relative; z-index: 2; background: var(--color-primary); padding: 26px 32px; }
.hp-trust-inner {
  max-width: var(--hp-max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: center;
}
.hp-trust-item { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; position: relative; }
.hp-trust-item + .hp-trust-item::before {
  content: ""; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  height: 36px; width: 1px; background: rgba(255,255,255,0.14);
}
.hp-trust-num { font-family: var(--font-display); font-size: 27px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.01em; }
.hp-trust-lbl { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-primary-300); font-weight: 700; }

/* ───────────────────────── ATLAS ───────────────────────── */
.hp-atlas-grid {
  max-width: var(--hp-max-width); margin: 0 auto;
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: start;
}
.hp-atlas-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; align-content: start; }
.hp-atlas-zone {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-label); font-weight: 700; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-primary); padding: 16px 0 6px;
}
.hp-atlas-zone:first-child { padding-top: 0; }
.hp-atlas-zone::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(86,19,113,0.18), transparent 90%); }
.hp-atlas-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px 7px 7px; margin: 0 -8px;
  border-radius: 8px; text-decoration: none; color: var(--color-on-surface);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.hp-atlas-icon {
  width: 28px; height: 28px; flex-shrink: 0; object-fit: contain;
  border-radius: 50%; background: var(--color-surface-container-lowest);
  box-shadow: 0 0 0 1px rgba(86,19,113,0.10);
  transition: transform var(--dur-fast) var(--ease-out);
}
.hp-atlas-row-name { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; flex: 1; min-width: 0; }
.hp-atlas-row-name em { font-style: italic; font-weight: 400; color: var(--color-on-surface-variant); font-size: 12px; margin-left: 5px; }
.hp-atlas-row-count { font-family: var(--font-display); font-size: 13px; color: var(--color-on-surface-variant); font-weight: 600; }
.hp-atlas-row:hover { background: var(--color-primary-tint-5); color: var(--color-primary); }
.hp-atlas-row:hover .hp-atlas-icon { transform: scale(1.12); }
.hp-atlas-row:hover .hp-atlas-row-count { color: var(--color-primary); }
.hp-atlas-mapcol { display: flex; flex-direction: column; }

/* ───────────────────────── DENOMINATIONS ───────────────────────── */
.hp-classify {
  max-width: var(--hp-max-width); margin: 0 auto 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 24px 28px;
  background: var(--color-surface-container-lowest);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-ambient-sm);
}
.hp-classify-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.hp-classify-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  background: var(--color-primary); color: #fff;
  padding: 6px 10px; border-radius: var(--radius-sm);
  letter-spacing: 0.04em; min-width: 56px; text-align: center;
}
.hp-classify-mark.doc { background: var(--color-primary-tint-10); color: var(--color-primary); }
.hp-classify-mark.igt { background: var(--color-surface-container-high); color: var(--color-on-surface); }
.hp-classify-item h5 { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--color-primary); margin: 0 0 2px; }
.hp-classify-item p { font-family: var(--font-body); font-size: 12.5px; color: var(--color-on-surface-variant); margin: 0; line-height: 1.45; }

.hp-denom-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.hp-denom {
  background: var(--color-surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-ambient);
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  position: relative; text-decoration: none; overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.hp-denom:hover { transform: translateY(-6px); box-shadow: var(--shadow-ambient-lg); }
.hp-denom-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hp-denom-class {
  font-family: var(--font-label); font-weight: 700; font-size: 9.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-primary);
  padding: 4px 8px; border-radius: var(--radius-sm); background: var(--color-primary-tint-5);
}
.hp-denom-class.docg { background: var(--color-primary); color: #fff; }
.hp-denom-class.doc { background: var(--color-primary-tint-10); color: var(--color-primary); }
.hp-denom-class.igt,
.hp-denom-class.vdt { background: var(--color-surface-container-high); color: var(--color-on-surface); }
.hp-denom-pin {
  font-family: var(--font-label); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600; color: var(--color-on-surface-variant);
  display: inline-flex; align-items: center; gap: 4px; text-align: right;
}
.hp-denom-pin svg { width: 12px; height: 12px; flex-shrink: 0; }
.hp-denom-art {
  height: 178px;
  display: flex; align-items: flex-end; justify-content: center;
  margin: 6px 0 2px;
}
.hp-denom-art img {
  height: 192px; width: auto; object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(86,19,113,0.22));
  transition: transform var(--dur-slow) var(--ease-out);
}
.hp-denom:hover .hp-denom-art img { transform: translateY(-4px) scale(1.05); }
.hp-denom h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  color: var(--color-primary); margin: 6px 0 0; line-height: 1.15; letter-spacing: -0.01em;
}
.hp-denom-grape { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--color-on-surface-variant); margin: 0; }
.hp-denom-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(86,19,113,.08); }
.hp-denom-count { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--color-primary); }
.hp-denom-count small { font-family: var(--font-label); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-on-surface-variant); font-weight: 700; margin-left: 4px; }
.hp-denom-cta {
  font-family: var(--font-label); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--dur-fast) var(--ease-out);
}
.hp-denom:hover .hp-denom-cta { gap: 8px; }

/* ───────────────────────── MEET THE MAKERS ───────────────────────── */
.hp-makers {
  max-width: var(--hp-max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start;
}
/* min-width:0 lets the grid items shrink to their track instead of being
   held wide by intrinsic content (the coming-soon teaser would otherwise
   force the single mobile column past the viewport). */
.hp-makers > * { min-width: 0; }
.hp-makers-list {
  background: var(--color-surface-container-lowest);
  border-radius: var(--radius-xl); padding: 26px 28px;
  box-shadow: var(--shadow-ambient);
}
.hp-makers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid rgba(86,19,113,.10); }
.hp-makers-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--color-primary); margin: 0; }
.hp-makers-head span { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-on-surface-variant); font-weight: 700; }
.hp-winery-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 12px 8px; margin: 0 -8px; border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: background var(--dur-fast) var(--ease-out);
}
.hp-winery-row:hover { background: var(--color-primary-tint-5); }
.hp-winery-flag {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  background: var(--color-surface-container-low);
  display: grid; place-items: center; flex-shrink: 0;
}
.hp-winery-flag img { width: 100%; height: 100%; object-fit: cover; }
.hp-winery-flag span {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 26px; color: var(--color-primary);
}
.hp-winery-main { min-width: 0; display: flex; flex-direction: column; }
.hp-winery-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--color-on-surface); margin: 0; line-height: 1.2; }
.hp-winery-desc {
  font-family: var(--font-body); font-size: 12.5px; color: var(--color-on-surface-variant);
  margin: 3px 0 0; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hp-winery-region { font-family: var(--font-label); font-size: 10.5px; letter-spacing: 0.08em; color: var(--color-on-surface-variant); margin: 5px 0 0; text-transform: uppercase; font-weight: 600; }
.hp-winery-arrow { color: var(--color-on-surface-variant); display: grid; place-items: center; flex-shrink: 0; }
.hp-winery-arrow svg { width: 18px; height: 18px; }
.hp-winery-row:hover .hp-winery-arrow { color: var(--color-primary); }
.hp-makers-soon {
  background: var(--color-surface-container-lowest);
  border-radius: var(--radius-xl); padding: 22px;
  box-shadow: var(--shadow-ambient);
}
.hp-makers-soon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hp-makers-soon-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--color-primary); margin: 0; }
.hp-makers-soon-head span {
  font-family: var(--font-label); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700; color: var(--color-primary);
  background: var(--color-primary-tint-10); padding: 4px 9px; border-radius: 999px;
}
/* the .wsoon teaser partial fills the column edge-to-edge */
.hp-makers-soon .wsoon { margin: 0; }

/* ───────────────────────── WHAT TO EAT ───────────────────────── */
.hp-eat {
  max-width: var(--hp-max-width); margin: 0 auto;
  display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 48px; align-items: center;
}
.hp-eat-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 44px); line-height: 1.06; letter-spacing: -0.02em; color: var(--color-primary); margin: 14px 0 12px; }
.hp-eat-copy h2 em { font-style: italic; font-weight: 400; color: var(--color-on-surface); }
.hp-eat-copy p { font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.55; color: var(--color-on-surface-variant); margin: 0 0 20px; max-width: 460px; }
/* Food tiles match the desktop nav mega-menu: large rounded-square photo,
   image cover-fill, faint border, no card background. */
.hp-foods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 18px; }
.hp-food {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none;
}
.hp-food-img {
  display: block;
  position: relative;
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 10px; overflow: hidden;
  background: var(--color-surface-container-low);
  border: 1px solid rgba(209, 194, 209, 0.45);
  box-shadow: var(--shadow-ambient-sm);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.hp-food-img img {
  display: block;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit;
  transition: transform var(--dur-slow) var(--ease-out);
}
.hp-food:hover .hp-food-img { border-color: var(--color-primary); }
.hp-food:hover .hp-food-img img { transform: scale(1.08); }
.hp-food-name { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--color-on-surface); text-align: center; }
.hp-food:hover .hp-food-name { color: var(--color-primary); }

/* ───────────────────────── LEARN GRID ───────────────────────── */
.hp-learn-grid {
  max-width: var(--hp-max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}

/* ───────────────────────── NEWSLETTER ───────────────────────── */
.hp-news-section { padding: 88px 32px; }
.hp-news {
  max-width: var(--hp-max-width); margin: 0 auto;
  background: var(--color-surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 46px 52px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
  box-shadow: var(--shadow-ambient); position: relative; overflow: hidden;
}
.hp-news::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-tint-10) 0%, transparent 70%);
  pointer-events: none;
}
.hp-news h3 { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.08; letter-spacing: -0.02em; color: var(--color-primary); margin: 12px 0 8px; }
.hp-news h3 em { font-style: italic; font-weight: 400; color: var(--color-on-surface); }
.hp-news p { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--color-on-surface-variant); margin: 0; line-height: 1.5; max-width: 400px; }
.hp-news-form { display: flex; gap: 8px; background: var(--color-surface-container-low); padding: 6px; border-radius: 999px; position: relative; z-index: 1; }
.hp-news-form input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: inherit; padding: 13px 18px; font-size: 14px; color: var(--color-on-surface); }
.hp-news-form button {
  background: var(--gradient-cta); color: #fff; border: 0; cursor: pointer;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.hp-news-form button:hover { transform: translateY(-1px); }
.hp-news-foot { margin-top: 14px; font-family: var(--font-label); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-on-surface-variant); font-weight: 700; }

/* Carousel band - wraps the reused common/bottle-carousel partial.
   #map-stage / #bottle-row-section keep the styling from
   region/partials/map-styles and the regions page's own utility classes. */
.hp-band { padding-top: 80px; padding-bottom: 80px; }

/* Homepage bottle carousels use the shared wine card, so override only the
   mobile carousel density states that render bottle imagery. */
@media (max-width: 767.98px) {
  .hp-band [data-carousel="hp-cellar"][data-bottle-carousel-density-target] .wine-card-media,
  .hp-band [data-carousel="hp-offers"][data-bottle-carousel-density-target] .wine-card-media {
    aspect-ratio: auto !important;
    overflow: hidden;
  }

  .hp-band [data-carousel-root] [data-carousel-prev] {
    left: 0.25rem !important;
  }

  .hp-band [data-carousel-root] [data-carousel-next] {
    right: 0.25rem !important;
  }

  .hp-band [data-carousel-root] {
    overflow: visible;
  }

  .hp-band [data-carousel] {
    padding: 0.85rem 0.35rem 1.25rem;
    scroll-padding-inline: 0.35rem;
  }

  .hp-band [data-carousel-item] {
    position: relative;
    z-index: 0;
  }

  .hp-band [data-carousel-item] > * {
    position: relative;
    z-index: 1;
  }

  .hp-band [data-carousel-item]:hover,
  .hp-band [data-carousel-item]:focus-within {
    z-index: 2;
  }

  .hp-band [data-carousel="hp-cellar"][data-bottle-carousel-density-target][data-bottle-carousel-density="1"] .wine-card-media,
  .hp-band [data-carousel="hp-offers"][data-bottle-carousel-density-target][data-bottle-carousel-density="1"] .wine-card-media {
    min-height: 17.25rem !important;
    padding: 1rem 0.625rem 0.875rem !important;
  }

  .hp-band [data-carousel="hp-cellar"][data-bottle-carousel-density-target][data-bottle-carousel-density="1"] .wine-card-img,
  .hp-band [data-carousel="hp-offers"][data-bottle-carousel-density-target][data-bottle-carousel-density="1"] .wine-card-img {
    height: 15.75rem !important;
    max-height: 15.75rem !important;
    max-width: 118% !important;
    transform: scale(1.08);
  }

  .hp-band [data-carousel="hp-cellar"][data-bottle-carousel-density-target][data-bottle-carousel-density="2"] .wine-card-media,
  .hp-band [data-carousel="hp-offers"][data-bottle-carousel-density-target][data-bottle-carousel-density="2"] .wine-card-media {
    min-height: 13.75rem !important;
    padding: 0.75rem 0.375rem 0.625rem !important;
  }

  .hp-band [data-carousel="hp-cellar"][data-bottle-carousel-density-target][data-bottle-carousel-density="2"] .wine-card-img,
  .hp-band [data-carousel="hp-offers"][data-bottle-carousel-density-target][data-bottle-carousel-density="2"] .wine-card-img {
    height: 12.45rem !important;
    max-height: 12.45rem !important;
    max-width: 122% !important;
    transform: scale(1.08);
  }
}


/* Homepage bottle card (design handoff: .hp-bottle) - the Editor's Cellar and
   Wines on offer carousels. Bottle floats with a drop-shadow, no plinth. */
.hp-bottle {
  scroll-snap-align: start;
  background: var(--color-surface-container-lowest);
  border-radius: var(--radius-lg);
  padding: 18px 20px 22px;
  box-shadow: var(--shadow-ambient);
  position: relative; cursor: pointer; height: 100%;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.hp-bottle:hover { transform: translateY(-6px); box-shadow: var(--shadow-ambient-lg); }
.hp-bottle-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hp-bottle-eyebrow { font-family: var(--font-label); font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-primary); }
.hp-bottle-eyebrow .dot { color: var(--color-on-surface-variant); margin: 0 5px; }
.hp-bottle-class {
  font-family: var(--font-label); font-weight: 700; font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; flex-shrink: 0;
  background: var(--color-primary-tint-5); color: var(--color-primary);
  padding: 3px 7px; border-radius: var(--radius-sm);
}
.hp-bottle-img-wrap {
  height: 220px; display: flex; align-items: flex-end; justify-content: center;
  margin: -8px 0 8px;
}
.hp-bottle-img {
  height: 230px; width: auto; object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(86,19,113,0.22));
  transition: transform var(--dur-slow) var(--ease-out);
}
.hp-bottle:hover .hp-bottle-img { transform: translateY(-4px) scale(1.04); }
.hp-bottle-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--color-primary); margin: 0 0 4px; line-height: 1.2; letter-spacing: -0.005em; }
.hp-bottle-prod { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--color-on-surface-variant); margin: 0 0 12px; }
.hp-bottle-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(86,19,113,.08); margin-top: auto; }
.hp-bottle-price { font-family: var(--font-display); font-variant-numeric: oldstyle-nums; font-size: 20px; font-weight: 600; color: var(--color-primary); line-height: 1; }
.hp-bottle-price small { font-family: var(--font-label); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-on-surface-variant); margin-left: 4px; font-weight: 600; }
.hp-bottle-retailers { font-family: var(--font-body); font-weight: 600; font-size: 11.5px; color: var(--color-on-surface-variant); text-align: right; }
.hp-bottle-retailers b { color: var(--color-primary); font-variant-numeric: oldstyle-nums; }
.hp-bottle.is-sale .hp-bottle-class { background: var(--color-error); color: #fff; }
.hp-bottle-ribbon {
  position: absolute; top: 14px; right: 14px;
  background: var(--color-error); color: #fff;
  font-family: var(--font-display); font-variant-numeric: oldstyle-nums;
  font-size: 16px; font-weight: 700;
  padding: 6px 12px; border-radius: 4px;
  box-shadow: 0 8px 14px rgba(186,26,26,0.20);
  letter-spacing: -0.01em;
}
.hp-bottle-was {
  font-family: var(--font-display); font-variant-numeric: oldstyle-nums;
  font-size: 14px; color: var(--color-on-surface-variant);
  text-decoration: line-through; margin-right: 6px;
}
.hp-bottle-now { font-family: var(--font-display); font-variant-numeric: oldstyle-nums; font-size: 22px; font-weight: 700; color: var(--color-error); }

/* ───────────────────────── RESPONSIVE ───────────────────────── */
@media (min-width: 1080.02px) {
  .hp-hero .hp-eyebrow {
    padding: 5px 11px 5px 13px;
    border-radius: 999px;
    line-height: 1.1;
    background: rgba(252, 249, 244, 0.9);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

@media (max-width: 1080px) {
  .hp-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hp-hero-copy, .hp-hero-search, .hp-hero-lead { max-width: none; }
  .hp-atlas-grid { grid-template-columns: 1fr; gap: 36px; }
  .hp-learn-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-makers { grid-template-columns: 1fr; gap: 28px; }
  .hp-eat { grid-template-columns: 1fr; gap: 32px; }
  .hp-news { grid-template-columns: 1fr; gap: 28px; padding: 40px; }
}
@media (max-width: 760px) {
  .hp-section, .hp-news-section { padding: 56px 16px; }
  .hp-band { padding-top: 48px; padding-bottom: 48px; }
  .hp-wrap { padding: 0 16px; }
  .hp-hero-inner { padding: 44px 16px 44px; }
  .hp-hero-title { font-size: 42px; }
  .hp-shead { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 26px; }

  .hp > .hp-section,
  .hp > .hp-section-low,
  .hp > .hp-section-tinted,
  .hp > .hp-news-section {
    padding-top: 20px;
  }

  /* Trust strip - three across (mobile design) */
  .hp-trust-inner { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
  .hp-trust-item + .hp-trust-item::before { display: none; }

  /* Atlas - map first, region list two-up (mobile design) */
  .hp-atlas-mapcol { order: -1; }
  .hp-atlas-list { grid-template-columns: 1fr 1fr; }
  .hp-atlas-icon { width: 24px; height: 24px; }
  .hp-atlas-row-name { font-size: 12.5px; }

  /* The shared denomination card has a fixed 160px illustration column; trim
     it in the narrower mobile carousel card so the body text keeps enough room. */
  .hp-denom-grid .di-card { grid-template-columns: 104px 1fr; height: auto; }

  /* What to eat - four across (mobile design) */
  .hp-foods { grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
  .hp-food { gap: 8px; }
  .hp-food-name { font-size: 10.5px; }


  .hp-news {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 28px 18px 30px;
    overflow: hidden;
  }
  .hp-news > * { min-width: 0; }
  .hp-news h3 {
    font-size: clamp(29px, 9.2vw, 38px);
    overflow-wrap: anywhere;
  }
  .hp-news p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hp-news-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  .hp-news-form input,
  .hp-news-form button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 54px;
    border-radius: 999px;
  }
  .hp-news-form input {
    background: var(--color-surface-container-low);
    padding: 13px 20px;
  }
  .hp-news-form button {
    justify-content: center;
    padding: 13px 20px;
  }
  .hp-news-foot {
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  /* Hero spotlight - tighter padding on phones; the bottle width and card
     min-height are inherited. The title scales with the viewport and the
     price row wraps so the narrower text column never clips. */
  .hp-hero-spot { padding: 16px 16px 16px calc(var(--spot-bottle-w) + 36px); }
  .hp-hero-spot-bottle { bottom: -8px; }
  .hp-hero-spot h3 { font-size: clamp(16px, 5vw, 23px); overflow-wrap: break-word; }
  .hp-hero-spot-row { flex-wrap: wrap; row-gap: 10px; }
  .hp-news { padding: 30px 22px; }
}
@media (max-width: 380px) {
  .hp-foods { grid-template-columns: repeat(3, 1fr); }
}
