/* =============================================================
   Highland Cabinetry — Front Page (Homepage)
   Enqueued only on is_front_page() via functions.php.
   Bootstrap 5 handles grid layout; this file covers visual /
   brand-specific styles that Bootstrap does not provide.
   ============================================================= */


/* ─── Hero ───────────────────────────────────────────────────────
   Full-bleed dark-green hero. A background photo is optional: when one
   is set the image sits under .hero__overlay, which carries the green
   wash. With no photo the base gradient shows through unchanged, so the
   section looks finished either way.
   ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--hc-dark) 82%, #fff) 0%, var(--hc-dark) 55%, var(--hc-dark2) 100%);
  color: var(--hc-white);
  padding: 96px 0 84px;
  overflow: hidden;
}
.hero--has-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hc-hero-img);
  background-size: cover;
  background-position: center;
}
/* Video takes the same layer as the image ::before above; when both are
   present the <video> tag sits on top of it, so only the video is visible. */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Green wash over the photo. Two stops keep the centre readable while the
   edges stay dark enough for the white heading to hold contrast. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--hc-dark) 86%, transparent) 0%,
      color-mix(in srgb, var(--hc-dark) 78%, transparent) 45%,
      color-mix(in srgb, var(--hc-dark2) 90%, transparent) 100%);
}
.hero:not(.hero--has-img) .hero__overlay { display: none; }

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Gold pill badge with star rating */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 7px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hc-accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--hc-accent) 55%, transparent);
  color: color-mix(in srgb, var(--hc-accent) 45%, #fff);
  font-size: var(--hc-text-sm);
  font-weight: 600;
}
.hero-badge__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--hc-accent);
}

/* Two-tone display heading: white roman, gold italic on line two. */
.hero-title {
  margin: 0 0 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--hc-white);
  max-width: 16ch;
}
.hero-title em {
  display: block;
  font-style: italic;
  color: color-mix(in srgb, var(--hc-accent) 62%, #fff);
}

.hero .hero-sub {
  margin: 0 0 34px;
  max-width: 56ch;
  font-size: var(--hc-text-lg);
  line-height: 1.6;
  color: color-mix(in srgb, var(--hc-white) 82%, transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  font-size: var(--hc-text-md);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--hc-text-sm);
  color: color-mix(in srgb, var(--hc-white) 80%, transparent);
}
.hero-trust svg { color: var(--hc-accent); flex-shrink: 0; }

.hero-scroll {
  margin-top: 46px;
  font-size: var(--hc-text-xs);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hc-white) 55%, transparent);
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 34px;
  margin: 12px auto 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--hc-white) 45%, transparent), transparent);
}

@media (max-width: 991.98px) {
  .hero { padding: 64px 0 56px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero .hero-sub { font-size: var(--hc-text-md); }
  .hero-trust { gap: 10px 18px; }
  .hero-scroll { display: none; }
}
@media (max-width: 575.98px) {
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}


/* ─── Stats Band ─────────────────────────────────────────────────
   Four trust stats with warm hairline dividers between them. The design
   uses a gold-tinted rule here (#E2D8C7) rather than the cool card border,
   so it is mixed from the accent and follows a palette swap.
   ──────────────────────────────────────────────────────────────── */
.hc-stats {
  background: var(--hc-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--hc-accent) 22%, var(--hc-bg));
  padding: 30px 0;
}
.hc-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 16px;
}
/* Dividers between columns only — not on the outer edges. */
.hc-stat + .hc-stat {
  border-left: 1px solid color-mix(in srgb, var(--hc-accent) 22%, var(--hc-bg));
}
.hc-stat__icon {
  color: var(--hc-heading);
  opacity: .78;
  margin-bottom: 10px;
  line-height: 0;
}
.hc-stat__value {
  margin: 0 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--hc-heading);
}
.hc-stat__suffix {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: var(--hc-text-sm);
  font-weight: 400;
  color: var(--hc-muted);
  margin-left: 2px;
}
.hc-stat__label {
  margin: 0;
  font-size: var(--hc-text-sm);
  font-weight: 600;
  color: var(--hc-body);
}

@media (max-width: 767.98px) {
  .hc-stats__grid { grid-template-columns: repeat(2, 1fr); }
  /* On two columns the divider rule has to reset per row, so drive it off
     nth-child instead of the adjacent-sibling rule above. */
  .hc-stat + .hc-stat { border-left: 0; }
  .hc-stat:nth-child(even) {
    border-left: 1px solid color-mix(in srgb, var(--hc-accent) 22%, var(--hc-bg));
  }
  .hc-stat:nth-child(n+3) {
    border-top: 1px solid color-mix(in srgb, var(--hc-accent) 22%, var(--hc-bg));
    padding-top: 20px;
    margin-top: 12px;
  }
}


/* ─── Collections ────────────────────────────────────────────── */
/* .collections uses the .hc-bg-wash gradient (global.css),
   applied via a class in front-page.php. */

/* Collection card — wraps Bootstrap's .card */
.hc-col-card {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  overflow: hidden;
  background: var(--hc-surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hc-col-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hc-sh-lg);
}
.hc-col-card .col-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
/* Thumbnail tint — shown until the collection's product_cat term has a
   WooCommerce category thumbnail set, at which point .col-thumb__img covers
   it. The base colour comes from the card's own data as --hc-thumb (a
   physical cabinet finish, not brand chrome), so a palette swap leaves it
   alone. The gradient is derived from that one colour so any tint reads as a
   lit cabinet face. */
.col-thumb {
  --hc-thumb: #E7DFD2;
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--hc-thumb) 78%, white) 0%,
      var(--hc-thumb) 55%,
      color-mix(in srgb, var(--hc-thumb) 82%, black) 100%);
}
.col-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Door faces sit a step lighter than the tint, with a defined edge, so the
   grid stays legible whether the tint is pale (antique white) or dark (onyx). */
.col-thumb .col-door {
  background: color-mix(in srgb, var(--hc-thumb) 32%, white);
  border-color: color-mix(in srgb, var(--hc-thumb) 45%, white);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 60%, transparent);
}
.col-thumb .col-door::after {
  border-color: color-mix(in srgb, var(--hc-thumb) 35%, white);
}

.col-thumb-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 16px;
}
.col-door {
  border-radius: 4px;
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(255, 255, 255, .55);
  position: relative;
}
.col-door::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 2px;
}
/* Serif name + italic tagline, per the design. Column layout so the
   "Explore Collection" link can be pinned to the bottom, keeping the
   links aligned across cards with different numbers of finishes. */
.hc-col-card .card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}
.col-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--hc-heading);
  margin: 0 0 4px;
}
.col-tag {
  font-size: var(--hc-text-sm);
  font-style: italic;
  color: var(--hc-muted);
  margin: 0 0 16px;
}

/* Finish swatches. The dot colour is a physical cabinet finish passed in
   from the template as --hc-finish, so it stays outside the palette. */
.col-finishes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.hc-col-card .col-link { margin-top: auto; align-self: flex-start; }
.col-finish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--hc-text-xs);
  color: var(--hc-body);
  white-space: nowrap;
}
.col-finish__dot {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: var(--hc-finish, var(--hc-border));
  border: 1px solid color-mix(in srgb, var(--hc-dark) 18%, transparent);
  flex-shrink: 0;
}

/* Gold link with a rule under it, matching the design. */
.col-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--hc-accent);
  font-size: var(--hc-text-sm);
  font-weight: 600;
  color: var(--hc-accent);
  text-decoration: none;
  transition: gap .15s;
}
.col-link:hover { gap: 11px; color: var(--hc-accent-d); border-bottom-color: var(--hc-accent-d); }


/* ─── 3D Design Studio ───────────────────────────────────────────
   Deep-green band holding a browser-chrome frame around a screenshot of
   the planner. The .hc-browser* frame styles live in global.css so the
   DIY Design Studio page can reuse them.
   ──────────────────────────────────────────────────────────────── */
.hc-studio {
  background:
    radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--hc-dark) 88%, var(--hc-white)) 0%, var(--hc-dark) 60%, var(--hc-dark2) 100%);
  color: var(--hc-white);
  padding: 84px 0 78px;
}
.hc-studio__head { margin-bottom: 40px; }
.hc-studio__head .sec-title { color: var(--hc-white); }

.hc-studio__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.hc-studio__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  font-size: var(--hc-text-md);
}

@media (max-width: 767.98px) {
  .hc-studio { padding: 60px 0 56px; }
}


/* ─── Shop By Cabinet Type ─────────────────────────────────────────
   Full-bleed photo tiles (3 then 2, via row-cols-md-3), label
   bottom-left over a dark scrim so it reads on any photo. Same section
   background as Shop By Color (.inspo below) — it never got one of its
   own and sat on the plain page background instead. */
.hc-types { background: var(--hc-warm); }
.hc-type-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--hc-r-lg);
  overflow: hidden;
  padding: 20px;
  text-decoration: none;
  background-image: var(--hc-type-img);
  background-size: cover;
  background-position: center;
  transition: transform .2s ease;
}
.hc-type-tile:hover { transform: translateY(-3px); }
.hc-type-tile--empty {
  background-image: linear-gradient(160deg,
    color-mix(in srgb, var(--hc-dark) 34%, var(--hc-warm)) 0%,
    color-mix(in srgb, var(--hc-dark) 62%, var(--hc-warm)) 100%);
}
/* Scrim so the label stays legible over any photograph. */
.hc-type-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .1) 45%, transparent 70%);
}
.hc-type-tile__name {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--hc-white);
}

/* ─── Shop By Color ────────────────────────────────────────────────
   Same photo-tile-plus-scrim construction as Shop By Cabinet Type, one
   size smaller (4-up) since there are more colours than types, with a
   design count under the name.
   ──────────────────────────────────────────────────────────────── */
.hc-color-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1;
  border-radius: var(--hc-r-lg);
  overflow: hidden;
  padding: 16px;
  text-decoration: none;
  background-image: var(--hc-color-img);
  background-size: cover;
  background-position: center;
  transition: transform .2s ease;
}
.hc-color-tile:hover { transform: translateY(-3px); }
.hc-color-tile--empty {
  background-image: linear-gradient(160deg,
    color-mix(in srgb, var(--hc-dark) 34%, var(--hc-warm)) 0%,
    color-mix(in srgb, var(--hc-dark) 62%, var(--hc-warm)) 100%);
}
/* Scrim so the label stays legible over any photograph. */
.hc-color-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .1) 45%, transparent 70%);
}
.hc-color-tile__name {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--hc-white);
}
.hc-color-tile__count {
  position: relative;
  z-index: 1;
  font-size: var(--hc-text-xs);
  color: color-mix(in srgb, var(--hc-white) 80%, transparent);
}

/* ─── Shop By Style ──────────────────────────────────────────────
   3x2 image tiles on the warm band, label bottom-left over a scrim.
   ──────────────────────────────────────────────────────────────── */
.hc-styles { background: var(--hc-warm); }
/* Dark variant — Browse by Style, on the same deep-green band treatment as
   the 3D Design Studio above it. Cards themselves (.hc-style-card) stay a
   light surface either way, same as .hc-col-card on the Collections
   section, so photos and text inside them keep their normal contrast. */
.hc-styles--dark {
  background:
    radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--hc-dark) 88%, #fff) 0%, var(--hc-dark) 60%, var(--hc-dark2) 100%);
}
/* .sec-label gold-on-dark override lives in global.css, alongside the other
   dark bands (.hero, .hc-studio, .cta-band). */
.hc-styles--dark .hc-styles__head .sec-title { color: var(--hc-white); }
.hc-styles--dark .hc-styles__head .sec-title em { color: color-mix(in srgb, var(--hc-accent) 58%, #fff); }

.hc-styles__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.hc-styles__head .sec-title { margin: 0; }

/* Gold link with rule — shared by the section headers that carry a
   "View all" affordance. */
.hc-link-gold {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--hc-accent);
  font-size: var(--hc-text-sm);
  font-weight: 600;
  color: var(--hc-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: gap .15s;
}
.hc-link-gold:hover { gap: 11px; color: var(--hc-accent-d); border-bottom-color: var(--hc-accent-d); }

/* Shop by Style cards — photo on top, white body below (same card language
   as .hc-col-card in the Collections section: border, radius, hover lift). */
.hc-style-card {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  overflow: hidden;
  background: var(--hc-surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hc-style-card:hover { transform: translateY(-3px); box-shadow: var(--hc-sh-lg); }
.hc-style-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hc-style-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hc-style-card__thumb--empty {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--hc-dark) 34%, var(--hc-warm)) 0%,
    color-mix(in srgb, var(--hc-dark) 62%, var(--hc-warm)) 100%);
}
.hc-style-card .card-body { padding: 22px; }
.hc-style-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.hc-style-card__tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--hc-warm);
  font-size: var(--hc-text-xs);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--hc-muted);
}
.hc-style-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--hc-heading);
  margin: 0 0 8px;
}
.hc-style-card__desc {
  font-size: var(--hc-text-sm);
  color: var(--hc-muted);
  margin: 0 0 16px;
}

/* Shop by Cabinet Section — plain icon cards, centered, no photo. */
.hc-sections { background: var(--hc-warm); }
.hc-section-card {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  background: var(--hc-surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hc-section-card:hover { transform: translateY(-3px); box-shadow: var(--hc-sh-lg); }
.hc-section-card .card-body { padding: 24px; }
.hc-section-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--hc-r);
  background: var(--hc-warm);
  color: var(--hc-dark);
  margin-bottom: 16px;
}
.hc-sections .hc-section-card .hc-section-card__icon { background: var(--hc-bg); }
.hc-section-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hc-heading);
  margin: 0 0 4px;
}
.hc-section-card__count {
  font-size: var(--hc-text-xs);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--hc-accent);
  margin: 0 0 10px;
}
.hc-section-card__desc {
  font-size: var(--hc-text-sm);
  color: var(--hc-muted);
  margin: 0 0 16px;
}

/* Shop by Size — pill filter + swapped product-card panels. */
.hc-sizes__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hc-border);
}
.hc-size-card {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  overflow: hidden;
  background: var(--hc-surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hc-size-card:hover { transform: translateY(-3px); box-shadow: var(--hc-sh-lg); }
.hc-size-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--hc-warm);
}
.hc-size-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hc-size-card .card-body { padding: 20px 22px; }
.hc-size-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--hc-heading);
  margin: 0 0 4px;
}
.hc-size-card__meta {
  font-size: var(--hc-text-sm);
  color: var(--hc-muted);
  margin: 0 0 14px;
}
@media (max-width: 575.98px) {
  .hc-styles__grid { grid-template-columns: 1fr; }
  .hc-styles__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* Six 4:3.4 tiles stacked is a long scroll on a phone; flatten them so the
     whole set stays skimmable. */
  .hc-style__link { aspect-ratio: 16 / 9; }
}


/* ─── WooCommerce Cart Notice (toast after Add to Cart) ─────── */
.woocommerce-notices-wrapper {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 100%;
  max-width: 480px;
  padding: 0 16px;
  pointer-events: none;
}
.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce-message {
  pointer-events: all;
  background: var(--hc-white);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  box-shadow: var(--hc-sh-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hc-body);
  animation: hc-notice-in .25s ease forwards;
  position: relative;
  overflow: hidden;
}
/* WooCommerce's own JS gives this a tabindex="-1" and calls .focus() on
   load so screen readers announce it — swap the browser's default focus
   ring (blue in Firefox, black in Chromium) for a themed one instead of
   dropping it, so the focus indicator stays visible. */
.woocommerce-message:focus {
  outline: 2px solid var(--hc-accent);
  outline-offset: 2px;
}
.woocommerce-message::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--hc-accent);
  border-radius: var(--hc-r-lg) 0 0 var(--hc-r-lg);
}
@keyframes hc-notice-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.woocommerce-message .button,
.woocommerce-message .wc-forward {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--hc-btn-r);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: var(--hc-dark);
  color: var(--hc-white);
  border: 2px solid var(--hc-dark);
  transition: background .18s, border-color .18s;
}
.woocommerce-message .button:hover,
.woocommerce-message .wc-forward:hover {
  background: var(--hc-accent);
  border-color: var(--hc-accent);
  /* Dark green on gold: white here is 2.31:1 and fails AA. */
  color: var(--hc-dark);
}


/* ─── How It Works ───────────────────────────────────────────────
   Three steps on the page background. Each carries an illustration tile;
   with no artwork supplied the tile shows a ghosted numeral instead.
   ──────────────────────────────────────────────────────────────── */
.how { background: var(--hc-bg); }

.hc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Illustration tile. The step numeral is passed in from the template as
   --hc-step-num so the fallback needs no per-step CSS. */
.hc-step__art {
  position: relative;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1 / 1;
  margin-bottom: 22px;
  border-radius: var(--hc-r-lg);
  overflow: hidden;
  background: color-mix(in srgb, var(--hc-warm) 62%, var(--hc-surface));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-step__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hc-step__art:not(:has(img))::after {
  content: var(--hc-step-num, '');
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.4rem;
  line-height: 1;
  color: color-mix(in srgb, var(--hc-heading) 12%, transparent);
}

/* Small caps step label with a rule above it, per the design. */
.hc-step__num {
  position: relative;
  margin: 0 0 12px;
  padding-top: 16px;
  font-size: var(--hc-text-xs);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--hc-muted);
}
.hc-step__num::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 1px;
  background: color-mix(in srgb, var(--hc-heading) 26%, transparent);
}
.hc-step__title {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--hc-heading);
}
.hc-step__desc {
  margin: 0 0 18px;
  max-width: 34ch;
  font-size: var(--hc-text-md);
  line-height: 1.6;
  color: var(--hc-muted);
}

/* Dark underlined link — the design uses green here, not the gold used on
   the "view all" links. */
.hc-link-dark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--hc-heading);
  font-size: var(--hc-text-sm);
  font-weight: 600;
  color: var(--hc-heading);
  text-decoration: none;
  transition: gap .15s;
}
.hc-link-dark:hover { gap: 11px; color: var(--hc-accent); border-bottom-color: var(--hc-accent); }

@media (max-width: 767.98px) {
  .hc-steps { grid-template-columns: 1fr; gap: 40px; }
}


/* ─── Shop By Color ────────────────────────────────────────────── */
.inspo { background: var(--hc-warm); }

@media (max-width: 575.98px) {
  .hc-pill { padding: 7px 14px; font-size: var(--hc-text-xs); }
}


/* ─── Kitchen Comparisons (before / after) ────────────────────────
   The reveal is driven by a range input: --hc-ba clips the "before" pane
   and positions the handle, so keyboard, touch and mouse all work through
   one native control.
   ──────────────────────────────────────────────────────────────── */
.hc-projects { background: var(--hc-bg); }

.hc-project {
  max-width: 1000px;
  margin: 0 auto 26px;
  border-radius: var(--hc-r-lg);
  overflow: hidden;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
}

.hc-ba {
  --hc-ba: 50%;
  position: relative;
  aspect-ratio: 16 / 7.4;
  overflow: hidden;
  isolation: isolate;
}
.hc-ba__pane {
  position: absolute;
  inset: 0;
}
/* Placeholder tints so the split reads even before photography is added. */
.hc-ba__pane--after  { background: linear-gradient(150deg, color-mix(in srgb, var(--hc-dark) 46%, var(--hc-warm)), color-mix(in srgb, var(--hc-dark) 74%, var(--hc-warm))); }
.hc-ba__pane--before { background: linear-gradient(150deg, color-mix(in srgb, var(--hc-warm) 92%, #fff), color-mix(in srgb, var(--hc-warm) 62%, var(--hc-muted))); }
.hc-ba__pane--before { clip-path: inset(0 calc(100% - var(--hc-ba)) 0 0); }
.hc-ba__pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hc-ba__badge {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: var(--hc-text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
/* Design uses a neutral dark grey here, not the brand green — a deliberate
   camera-UI convention (BEFORE/AFTER labels), not a brand-colored element. */
.hc-ba__badge--before {
  left: 14px;
  background: color-mix(in srgb, #3a3a38 88%, transparent);
  color: var(--hc-white);
}
/* Lighter than --hc-accent on its own, matching the design's paler gold —
   same adjustment as .btn-gold's gradient. */
.hc-ba__badge--after {
  right: 14px;
  background: color-mix(in srgb, var(--hc-accent) 78%, #fff);
  color: var(--hc-dark);
}

/* Handle. pointer-events:none so drags land on the range input beneath it. */
.hc-ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--hc-ba);
  z-index: 3;
  width: 2px;
  transform: translateX(-1px);
  background: var(--hc-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hc-ba__divider svg {
  /* box-sizing so the padding stays inside the 34px circle — without it the
     inline width/height attributes on the SVG win and the handle turns oval. */
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 9px;
  border-radius: 50%;
  background: var(--hc-surface);
  color: var(--hc-heading);
  box-shadow: var(--hc-sh-md);
  flex-shrink: 0;
}

/* The range input covers the whole image and is transparent — it is the
   actual control, the visible handle above is decoration. */
.hc-ba__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.hc-ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 100%;
}
.hc-ba__range::-moz-range-thumb {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
}
.hc-ba__range:focus-visible + .hc-ba__divider svg,
.hc-ba:has(.hc-ba__range:focus-visible) .hc-ba__divider svg {
  outline: 2px solid var(--hc-accent);
  outline-offset: 3px;
}

.hc-project__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}
.hc-project__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hc-muted);
  margin-bottom: 3px;
}
.hc-project__meta p {
  margin: 0;
  font-size: var(--hc-text-md);
  font-weight: 500;
  color: var(--hc-heading);
}
.hc-project__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hc-projects__cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--hc-border);
  background: var(--hc-surface);
  color: var(--hc-heading);
  font-size: var(--hc-text-sm);
  font-weight: 600;
}
.btn-outline-dark:hover {
  /* Bootstrap's own .btn-outline-dark:hover fills the background near-
     black (#212529) by default; this override previously only touched
     border-color, so that fill still applied underneath dark-green text
     — unreadable. Filling with --hc-dark (same green as the text) and
     switching to white text keeps it on-brand instead of falling back to
     Bootstrap's off-palette black. */
  background: var(--hc-dark);
  border-color: var(--hc-dark);
  color: var(--hc-white);
}

@media (max-width: 767.98px) {
  .hc-ba { aspect-ratio: 4 / 3; }
  .hc-project__meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .hc-project__cta { grid-column: 1 / -1; justify-content: center; }
}


/* ─── Why Highland ───────────────────────────────────────────────
   Two columns: feature list left, photo with an overlapping frosted stats
   card right.
   ──────────────────────────────────────────────────────────────── */
.hc-why { background: var(--hc-warm); }

/* g-5 sets --bs-gutter-x:3rem on the row, giving it -24px side margins, but
   the parent .container keeps Bootstrap's default 12px padding. The 12px
   difference escapes as page-wide horizontal scroll below the lg breakpoint,
   where the columns stack and nothing else absorbs it. Match the container
   to the row's gutter instead of removing the gutter. */
.hc-why > .container { --bs-gutter-x: 3rem; }
@media (max-width: 575.98px) {
  /* 3rem of padding is too much on a phone; drop both sides together so they
     stay in step. */
  .hc-why > .container { --bs-gutter-x: 1.5rem; }
  .hc-why > .container > .row { --bs-gutter-x: 1.5rem; }
}

.hc-why__title {
  margin: 0 0 30px;
}
.hc-why__title em {
  display: block;
  font-style: italic;
  color: color-mix(in srgb, var(--hc-heading) 78%, var(--hc-accent));
}

.hc-why__list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.hc-why__item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
}
.hc-why__item + .hc-why__item {
  border-top: 1px solid color-mix(in srgb, var(--hc-heading) 14%, transparent);
}
.hc-why__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--hc-heading) 20%, transparent);
  color: var(--hc-heading);
}
.hc-why__name {
  margin: 0 0 5px;
  /* Sans here, not the global Playfair for h3 — the design uses the serif
     only for display headings, not these smaller feature titles. */
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: var(--hc-text-md);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--hc-heading);
}
.hc-why__desc {
  margin: 0;
  font-size: var(--hc-text-sm);
  line-height: 1.65;
  color: var(--hc-muted);
  max-width: 46ch;
}
.hc-why__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
}

/* Outer wrapper is deliberately NOT clipped — the stats card below needs to
   overflow past its right and bottom edges, per the design. The image itself
   is clipped by .hc-why__media-frame instead. */
.hc-why__media {
  position: relative;
  margin: 0;
}
.hc-why__media-frame {
  border-radius: var(--hc-r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.2;
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--hc-dark) 30%, var(--hc-warm)) 0%,
    color-mix(in srgb, var(--hc-dark) 62%, var(--hc-warm)) 100%);
}
.hc-why__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Frosted stats card overflowing the photo's bottom-right corner, per the
   design — negative right/bottom offsets push it past the frame instead of
   sitting flush inside it. */
.hc-why__stats {
  position: absolute;
  right: -24px;
  bottom: -24px;
  left: 22%;
  display: flex;
  justify-content: space-around;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--hc-r-lg);
  background: color-mix(in srgb, var(--hc-dark2) 42%, transparent);
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--hc-sh-lg);
  color: var(--hc-white);
  text-align: center;
}
.hc-why__stat b {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
}
.hc-why__stat i {
  font-style: normal;
  font-size: .78em;
}
.hc-why__stat small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hc-white) 74%, transparent);
}

@media (max-width: 991.98px) {
  .hc-why__media-frame { aspect-ratio: 4 / 3; }
  .hc-why__stats { left: 16px; right: 16px; bottom: -18px; }
}

