/*
Theme Name:   Hairedin Child
Theme URI:    https://hairedincorp.com
Description:  Custom child theme for Hairedin Corp, built on Kadence. Editorial polish, warm palette, B2B food distribution.
Author:       Makelocal
Author URI:   https://makelocal.ca
Template:     kadence
Version:      1.0.1
Text Domain:  hairedin
*/

/* =====================================================
   HAIREDIN CORP - Design tokens
   ===================================================== */

:root {
  --hd-paper:       #F8F4ED;
  --hd-paper-2:     #F1EADA;
  --hd-ink:         #1A1410;
  --hd-muted:       #6B5F4F;
  --hd-rule:        #E2D6BE;
  /* Brand purple from the Hairedin logo (primary accent) */
  --hd-purple:      #5C2BFF;
  --hd-purple-deep: #4318C7;
  --hd-purple-soft: #E8E2FF;
  /* Legacy aliases — keep so older rules continue to work */
  --hd-copper:      var(--hd-purple);
  --hd-copper-deep: var(--hd-purple-deep);
  --hd-olive:       #5C6644;
  --hd-white:       #FFFFFF;

  --hd-font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --hd-font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* =====================================================
   Global type
   ===================================================== */

body {
  font-family: var(--hd-font-body) !important;
  background: var(--hd-paper) !important;
  color: var(--hd-ink) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
  font-family: var(--hd-font-display) !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.01em;
  color: var(--hd-ink) !important;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem) !important; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem) !important; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem) !important; }
h4 { font-size: 1.25rem !important; }

p { font-size: 1.05rem; }
.lead, .has-large-font-size { font-size: 1.18rem !important; line-height: 1.55 !important; }

/* Eyebrow tag (small caps) */
.hd-eyebrow,
.has-eyebrow {
  display: inline-block;
  font-family: var(--hd-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hd-copper-deep);
  margin-bottom: 1rem;
}

/* =====================================================
   Links
   ===================================================== */

a {
  color: var(--hd-ink);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover { color: var(--hd-copper-deep); }

.entry-content a {
  text-decoration: underline;
  text-decoration-color: var(--hd-rule);
  text-underline-offset: 4px;
}

/* =====================================================
   Header / Nav
   ===================================================== */

.site-header,
.site-header-row {
  background: rgba(248,244,237,0.94) !important;
  backdrop-filter: blur(10px);
}

/* Hide site title text COMPLETELY - logo is the brand */
.site-branding .site-title,
.site-branding .site-title-wrap,
.site-branding p.site-title,
.site-title-wrap,
p.site-title,
.site-branding .site-description {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
}

/* Logo sizing: forced, with white-bg-to-transparent via mix-blend-mode */
.site-branding .brand,
.site-branding a.brand {
  display: inline-flex !important;
  align-items: center;
  padding: 0 !important;
  line-height: 0 !important;
}

.site-branding,
.site-branding .brand,
.site-header .brand,
.site-branding a {
  display: inline-flex !important;
  align-items: center !important;
  height: 100%;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.site-branding .brand img,
.site-header .brand img,
.custom-logo-link img {
  max-height: 56px !important;
  width: auto !important;
  height: 56px !important;
  display: block !important;
  margin: 0 !important;
  vertical-align: middle !important;
  mix-blend-mode: multiply;  /* Lets cream nav bg show through white logo bg */
}

@media (max-width: 1024px) {
  .site-branding .brand img,
  .custom-logo-link img { max-height: 44px !important; height: 44px !important; }
}

/* Header row: vertical center everything + horizontal breathing room from screen edges */
.site-main-header-inner-wrap,
.site-header-row-inner {
  min-height: 84px !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .site-main-header-inner-wrap,
  .site-header-row-inner { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}

.site-header .header-navigation .menu > .menu-item > a {
  font-family: var(--hd-font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: var(--hd-ink) !important;
  text-decoration: none;
}

.site-header .header-navigation .menu > .menu-item > a:hover,
.site-header .header-navigation .menu > .current-menu-item > a {
  color: var(--hd-copper-deep) !important;
}

/* CTA button in nav: add a gap from the rest of the menu */
li.menu-item.hd-nav-cta { margin-left: 1.5rem !important; }

/* CTA button in nav (assigned class "hd-nav-cta" on a menu item) - high specificity */
.main-navigation .primary-menu-container ul li.menu-item.hd-nav-cta > a,
.main-navigation .primary-menu-container > ul > li.menu-item.hd-nav-cta > a,
.header-navigation .header-menu-container ul li.menu-item.hd-nav-cta > a,
.header-navigation .header-menu-container > ul > li.menu-item.hd-nav-cta > a,
li.menu-item.hd-nav-cta > a,
li.menu-item.hd-nav-cta > a:link,
li.menu-item.hd-nav-cta > a:visited {
  background: var(--hd-purple) !important;
  background-color: var(--hd-purple) !important;
  color: #FFFFFF !important;
  padding: 10px 22px !important;
  border-radius: 10px !important;
  transition: background 200ms ease;
  font-weight: 600 !important;
}

.main-navigation .primary-menu-container ul li.menu-item.hd-nav-cta > a:hover,
.header-navigation .header-menu-container ul li.menu-item.hd-nav-cta > a:hover,
li.menu-item.hd-nav-cta > a:hover {
  background: var(--hd-purple-deep) !important;
  background-color: var(--hd-purple-deep) !important;
  color: #FFFFFF !important;
}

/* Force right alignment of the primary nav: push the menu container all the way right */
.site-header-row-inner-wrap,
.site-main-header-wrap .site-header-row-container-inner-wrap,
.site-header-main-section {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.site-header-main-section-left { margin-right: auto !important; }
.site-header-main-section-center,
.site-header-main-section-right { margin-left: auto !important; }

.main-navigation,
.header-navigation {
  margin-left: auto !important;
}

/* If Kadence stuffs the menu into the center column, push it right anyway */
.site-header-item-main-navigation { margin-left: auto !important; }

/* =====================================================
   Buttons (Kadence block buttons + Gutenberg)
   ===================================================== */

.wp-block-button__link,
.kb-btn,
.kb-button {
  font-family: var(--hd-font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border-radius: 10px !important;
  padding: 14px 28px !important;
  transition: all 200ms ease !important;
}

.is-style-hd-primary .wp-block-button__link {
  background: var(--hd-ink) !important;
  color: var(--hd-paper) !important;
}

.is-style-hd-primary .wp-block-button__link:hover {
  background: var(--hd-copper-deep) !important;
}

.is-style-hd-accent .wp-block-button__link {
  background: var(--hd-copper) !important;
  color: var(--hd-paper) !important;
}

.is-style-hd-accent .wp-block-button__link:hover {
  background: var(--hd-copper-deep) !important;
}

.is-style-hd-outline .wp-block-button__link {
  background: transparent !important;
  border: 1.5px solid var(--hd-ink) !important;
  color: var(--hd-ink) !important;
}

.is-style-hd-outline .wp-block-button__link:hover {
  background: var(--hd-ink) !important;
  color: var(--hd-paper) !important;
}

.is-style-hd-outline-light .wp-block-button__link {
  background: transparent !important;
  border: 1.5px solid var(--hd-paper) !important;
  color: var(--hd-paper) !important;
}

.is-style-hd-outline-light .wp-block-button__link:hover {
  background: var(--hd-paper) !important;
  color: var(--hd-ink) !important;
}

/* =====================================================
   Hero - editorial pattern v2
   ===================================================== */

/* Force full-bleed: break out of Kadence's content wrapper */
.page .entry-content > .hd-hero,
.page .entry-content > .wp-block-cover.hd-hero,
.page .entry-content > .hd-section,
.page .entry-content > .hd-cta-banner,
.page .entry-content > .wp-block-group.hd-section,
.page .entry-content > .wp-block-group.hd-cta-banner,
.page .entry-content > .hd-marquee,
.page .entry-content > .hd-cert-strip,
.page .entry-content > section.hd-marquee,
.page .entry-content > section.hd-cert-strip {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box;
}

/* Also strip Kadence's site container side padding */
.site-container,
.content-container,
.site-main-section-wrap,
.kadence-main-container,
.content-wrap {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Inner content of sections is constrained to a comfortable reading width */
.hd-section > .wp-block-group__inner-container,
.hd-cta-banner > .wp-block-group__inner-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

/* Hide Kadence's default page title header on ALL pages */
.page .entry-header,
.page-title-bar,
.kadence-title-row-wrap,
.entry-content > header.entry-header {
  display: none !important;
}

/* Strip wrapper padding so the hero + sections touch the viewport */
.page .content-wrap,
.page .entry-content-wrap,
.page .entry-content,
.page article.entry {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  background: transparent !important;
  border: 0 !important;
}

.page .site-main { padding: 0 !important; }

.hd-hero.wp-block-cover {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-end !important;   /* anchor content to bottom */
  min-height: 42vh !important;            /* leaves room for marquee + first section above the fold */
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  position: relative;
  border: 0 !important;
}

/* Replace the cover's flat dim with a directional gradient. Image stays bright on top, dark at bottom. */
.hd-hero > .wp-block-cover__background {
  background:
    linear-gradient(
      to top,
      rgba(15, 11, 8, 0.96) 0%,
      rgba(15, 11, 8, 0.92) 28%,
      rgba(15, 11, 8, 0.62) 52%,
      rgba(15, 11, 8, 0.22) 80%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      rgba(15, 11, 8, 0.40) 0%,
      rgba(15, 11, 8, 0.20) 30%,
      transparent 60%
    ) !important;
  opacity: 1 !important;
  z-index: 1;
}

.hd-hero > .wp-block-cover__image-background {
  z-index: 0;
  filter: none !important;
}

.hd-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 2.5rem 2rem;
}

@media (min-height: 800px) {
  .hd-hero .wp-block-cover__inner-container { padding-bottom: 3rem; padding-top: 3rem; }
}

@media (max-width: 768px) {
  .hd-hero .wp-block-cover__inner-container { padding: 2rem 1.25rem 2rem; }
}

/* Eyebrow: accent line + small caps in cream */
.hd-hero .hd-eyebrow,
.hd-hero p.hd-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  color: rgba(248, 244, 237, 0.92) !important;
  font-family: var(--hd-font-body);
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.25rem 0 !important;
}

.hd-hero .hd-eyebrow::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 1px;
  background: var(--hd-copper);
}

/* Headline */
.hd-hero h1 {
  color: var(--hd-paper) !important;
  font-family: var(--hd-font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(2.25rem, 4vw, 3.75rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 1.5rem 0 !important;
  max-width: 820px;
  text-shadow: 0 2px 24px rgba(15,11,8,0.30);
}

/* Lead paragraph */
.hd-hero p:not(.hd-eyebrow) {
  color: rgba(248, 244, 237, 0.95) !important;
  font-size: 1.18rem !important;
  line-height: 1.55 !important;
  max-width: 540px;
  margin: 0 0 2rem 0 !important;
  text-shadow: 0 1px 12px rgba(15,11,8,0.45);
}

/* Buttons */
.hd-hero .wp-block-buttons {
  margin-top: 0 !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
}

.hd-hero .wp-block-button__link {
  padding: 14px 30px !important;
  font-size: 0.92rem !important;
}

/* Sub-hero variant for inner pages (smaller, centered) */
.hd-hero-sub.wp-block-cover {
  min-height: 38vh !important;
  height: 38vh !important;
  justify-content: center !important;
}

.hd-hero-sub h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem) !important;
}

.hd-hero-sub .wp-block-cover__inner-container {
  padding: 0 2rem !important;
}

/* =====================================================
   Sections
   ===================================================== */

.hd-section { padding: 4rem 0; }
.hd-section-tight { padding: 2.75rem 0; }
.hd-section-cream { background: var(--hd-paper-2); }
.hd-section-dark { background: var(--hd-ink); color: var(--hd-paper); }
.hd-section-dark h2, .hd-section-dark h3 { color: var(--hd-paper) !important; }
.hd-section-dark p { color: rgba(248,244,237,0.78) !important; }
.hd-section-dark .hd-eyebrow { color: var(--hd-copper) !important; }

@media (max-width: 900px) {
  .hd-section { padding: 3rem 0; }
}

/* =====================================================
   Cards
   ===================================================== */

.hd-card {
  background: var(--hd-white);
  border: 1px solid var(--hd-rule);
  padding: 2rem;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.hd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,20,16,0.08);
}

.hd-card-img { aspect-ratio: 4/3; overflow: hidden; margin: -2rem -2rem 1.5rem -2rem; }
.hd-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.hd-card:hover .hd-card-img img { transform: scale(1.04); }

.hd-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hd-copper-deep);
  margin-bottom: 0.5rem;
}

/* Product card (centered, paper-2 bg) */
.hd-product-card {
  background: var(--hd-paper-2);
  border: 0;
  text-align: center;
}

.hd-product-card .hd-card-img { aspect-ratio: 1/1; margin: 0 0 1rem 0; }

/* =====================================================
   Value props
   ===================================================== */

/* =====================================================
   Value-prop cards (only columns that contain a value-prop icon)
   Uses :has() for scoped targeting; safe to leave product cards alone.
   ===================================================== */

/* Section columns that contain a value-prop icon get card treatment */
.hd-section .wp-block-columns:has(.hd-valueprop-icon) {
  gap: 1.5rem !important;
  margin-top: 2.5rem !important;
}

.hd-section .wp-block-columns:has(.hd-valueprop-icon) .wp-block-column {
  background: var(--hd-white);
  border: 1px solid var(--hd-rule);
  padding: 1.75rem 1.75rem 1.5rem;
  position: relative;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.hd-section .wp-block-columns:has(.hd-valueprop-icon) .wp-block-column:hover {
  transform: translateY(-3px);
  border-color: var(--hd-copper);
  box-shadow: 0 16px 36px rgba(26,20,16,0.07);
}

/* In a cream section, cards use paper bg so they sit a tone above the section */
.hd-section-cream .wp-block-columns:has(.hd-valueprop-icon) .wp-block-column {
  background: var(--hd-paper);
}

/* Larger, more present icon */
.hd-valueprop-icon {
  width: 48px;
  height: 48px;
  background: var(--hd-paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem 0;
  border: 1px solid var(--hd-rule);
  border-radius: 2px;
}

.hd-section-cream .wp-block-columns:has(.hd-valueprop-icon) .hd-valueprop-icon {
  background: var(--hd-paper-2);
}

.hd-valueprop-icon svg {
  width: 24px;
  height: 24px;
  color: var(--hd-copper-deep);
  stroke-width: 1.5;
}

/* Heading inside a value-prop card */
.hd-section .wp-block-columns:has(.hd-valueprop-icon) .wp-block-column h3 {
  font-size: 1.45rem !important;
  margin-bottom: 0.9rem !important;
  color: var(--hd-ink) !important;
}

.hd-section .wp-block-columns:has(.hd-valueprop-icon) .wp-block-column p {
  color: var(--hd-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* A subtle accent rule above the heading for visual rhythm */
.hd-section .wp-block-columns:has(.hd-valueprop-icon) .wp-block-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2.25rem;
  width: 38px;
  height: 2px;
  background: var(--hd-copper);
  transform: translateY(-1px);
}

/* =====================================================
   Partner brand cards (logo + body + outbound link)
   ===================================================== */

.hd-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

@media (max-width: 1024px) { .hd-brand-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px)  { .hd-brand-grid { grid-template-columns: 1fr; } }

.hd-brand-card {
  background: var(--hd-white);
  border: 1px solid var(--hd-rule);
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: var(--hd-ink);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
  overflow: hidden;
  min-width: 0;  /* allow shrinking inside grid */
  height: 100%;  /* uniform card heights */
}

.hd-brand-card:hover {
  transform: translateY(-3px);
  border-color: var(--hd-copper);
  box-shadow: 0 16px 36px rgba(26,20,16,0.07);
}

.hd-brand-card-logo {
  aspect-ratio: 16 / 11;  /* uniform card-logo ratio */
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hd-paper-2);
  padding: 0.75rem;
  border-bottom: 1px solid var(--hd-rule);
  overflow: hidden;
  position: relative;
}

.hd-brand-card-logo img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;  /* Lets cream bg show through any white logo bg */
}

/* For the brands where the supplied "logo" is actually a product photograph,
   fill the card and crop to the most informative area (top). */
.hd-brand-card[id="mehetta"] .hd-brand-card-logo,
.hd-brand-card[id="supreme-bammy"] .hd-brand-card-logo,
.hd-brand-card[id="noble-bison"] .hd-brand-card-logo {
  padding: 0;
}
.hd-brand-card[id="mehetta"] .hd-brand-card-logo img,
.hd-brand-card[id="supreme-bammy"] .hd-brand-card-logo img,
.hd-brand-card[id="noble-bison"] .hd-brand-card-logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: normal;
  display: block;
}

.hd-brand-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hd-brand-card-name {
  font-family: var(--hd-font-display);
  font-size: clamp(1.2rem, 1.4vw, 1.45rem);
  font-weight: 500;
  color: var(--hd-ink);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
  word-break: break-word;
}

/* Brand-name heading within each card body */
.hd-brand-card-name {
  font-family: var(--hd-font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--hd-ink);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.hd-brand-card-body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hd-brand-card-tag {
  font-family: var(--hd-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hd-copper-deep);
  margin-bottom: 0.75rem;
}

.hd-brand-card-body p {
  font-size: 0.96rem !important;
  color: var(--hd-muted) !important;
  line-height: 1.55 !important;
  margin: 0 0 1rem 0 !important;
  flex: 1;
}

.hd-brand-card-link {
  font-family: var(--hd-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hd-copper-deep);
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
  transition: color 200ms ease;
}

.hd-brand-card:hover .hd-brand-card-link { color: var(--hd-ink); }
.hd-brand-card-static { cursor: default; }
.hd-brand-card-static:hover { transform: none; border-color: var(--hd-rule); box-shadow: none; }

/* =====================================================
   Certification strip — polished band with heading + logos
   ===================================================== */

.hd-cert-strip {
  padding: 1.5rem 3rem;
  background:
    radial-gradient(circle at 0% 50%, rgba(92,43,255,0.06), transparent 40%),
    radial-gradient(circle at 100% 50%, rgba(92,43,255,0.04), transparent 40%),
    linear-gradient(180deg, var(--hd-white) 0%, #FBF7EE 100%);
  border-top: 1px solid var(--hd-rule);
  border-bottom: 1px solid var(--hd-rule);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

/* top + bottom accent rules */
.hd-cert-strip::before,
.hd-cert-strip::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--hd-purple);
}
.hd-cert-strip::before { top: -1px; }
.hd-cert-strip::after  { bottom: -1px; opacity: 0.5; }

@media (max-width: 768px) {
  .hd-cert-strip { padding: 1.5rem 1.25rem; }
}

.hd-cert-strip-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  align-items: center;
  gap: 2rem;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .hd-cert-strip-inner { grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
}

.hd-cert-strip-head {
  text-align: left;
  border-right: 1px solid var(--hd-rule);
  padding-right: 1.5rem;
}

@media (max-width: 900px) {
  .hd-cert-strip-head { border-right: 0; padding-right: 0; padding-bottom: 0.75rem; border-bottom: 1px solid var(--hd-rule); text-align: center; }
}

.hd-cert-strip-eyebrow {
  font-family: var(--hd-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hd-purple-deep);
  margin-bottom: 0.4rem;
  display: block;
}

.hd-cert-strip-title {
  font-family: var(--hd-font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--hd-ink);
  margin: 0;
  line-height: 1.2;
}

.hd-cert-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  align-items: center;
  justify-items: center;
  min-width: 0;
}

@media (max-width: 1200px) { .hd-cert-strip-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 1rem 0.5rem; } }
@media (max-width: 1024px) { .hd-cert-strip-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem 0.75rem; } }
@media (max-width: 480px)  { .hd-cert-strip-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.hd-cert-strip-grid img {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(0.15);
  opacity: 0.95;
  transition: filter 200ms ease, opacity 200ms ease, transform 200ms ease;
}

/* Pro-Cert and Foodland source files are smaller crops; bump them visually */
.hd-cert-strip-grid img[src*="pro-cert"],
.hd-cert-strip-grid img[src*="procert"],
.hd-cert-strip-grid img[src*="Pro-Cert"],
.hd-cert-strip-grid img[src*="ProCert"],
.hd-cert-strip-grid img[src*="foodland"],
.hd-cert-strip-grid img[src*="Foodland"] {
  max-height: 120px !important;
  min-height: 80px;
  transform: scale(1.35);
  transform-origin: center;
}

.hd-cert-strip-grid img:hover { filter: none; opacity: 1; transform: scale(1.08); }
.hd-cert-strip-grid img[src*="pro-cert"]:hover,
.hd-cert-strip-grid img[src*="procert"]:hover,
.hd-cert-strip-grid img[src*="Pro-Cert"]:hover,
.hd-cert-strip-grid img[src*="ProCert"]:hover,
.hd-cert-strip-grid img[src*="foodland"]:hover,
.hd-cert-strip-grid img[src*="Foodland"]:hover { transform: scale(1.22); }

/* =====================================================
   Brand pills (partner brand strip)
   ===================================================== */

.hd-brand-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--hd-white);
  border: 1px solid var(--hd-rule);
  font-family: var(--hd-font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hd-ink);
  transition: all 200ms ease;
  text-decoration: none !important;
  min-height: 130px;
  min-width: 0;
}

.hd-brand-pill img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Responsive override for the inline-styled .hd-brand-grid on the home strip */
@media (max-width: 900px) {
  div.hd-brand-grid[style*="repeat(6"] { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
}
@media (max-width: 480px) {
  div.hd-brand-grid[style*="repeat(6"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

.hd-brand-pill:hover {
  background: var(--hd-ink);
  color: var(--hd-paper);
  border-color: var(--hd-ink);
  text-decoration: none !important;
}

/* Disable global entry-content underline on brand pills */
.entry-content a.hd-brand-pill,
.wp-block-html a.hd-brand-pill { text-decoration: none !important; }

/* =====================================================
   Audience row (5-column customer types)
   ===================================================== */

.hd-audience-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--hd-paper);
  border-top: 2px solid var(--hd-copper);
  font-size: 0.95rem;
  font-weight: 500;
}

.hd-section-dark .hd-audience-item {
  background: rgba(248,244,237,0.04);
  color: var(--hd-paper);
}

/* =====================================================
   Certification cards
   ===================================================== */

.hd-cert {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--hd-paper);
  border: 1px solid var(--hd-rule);
}

.hd-cert-name {
  font-family: var(--hd-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hd-cert-desc {
  font-size: 0.88rem;
  color: var(--hd-muted);
}

/* =====================================================
   Capability list (jahmen "our capabilities")
   ===================================================== */

.hd-capability-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
}

@media (max-width: 700px) {
  .hd-capability-list { grid-template-columns: 1fr; }
}

.hd-capability-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  border-bottom: 1px solid var(--hd-rule);
  font-size: 0.98rem;
}

.hd-capability-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--hd-copper);
}

/* =====================================================
   Big closer CTA banner
   ===================================================== */

.hd-cta-banner {
  text-align: center;
  padding: 4.5rem 1rem;
  background: var(--hd-ink);
  color: var(--hd-paper);
  position: relative;
  overflow: hidden;
}

.hd-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184,118,60,0.20), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(184,118,60,0.12), transparent 55%);
  pointer-events: none;
}

.hd-cta-banner > * { position: relative; z-index: 2; }
.hd-cta-banner h2,
.hd-cta-banner h2.wp-block-heading {
  color: var(--hd-paper) !important;
  margin: 0 auto 1.25rem !important;
  max-width: 720px;
  font-family: var(--hd-font-display) !important;
  font-weight: 400 !important;
}
.hd-cta-banner p {
  color: rgba(248,244,237,0.82) !important;
  font-size: 1.15rem !important;
  max-width: 640px;
  margin: 0 auto 1.75rem !important;
}
.hd-cta-banner .hd-eyebrow {
  color: var(--hd-copper) !important;
  margin-bottom: 1.25rem !important;
}

/* =====================================================
   Footer (Kadence override) - rich, multi-column
   ===================================================== */

.site-footer {
  background: #1A1410 !important;
  color: rgba(248,244,237,0.75) !important;
  padding: 0 !important;
  font-size: 0.92rem !important;
}

.site-footer .content-container,
.site-footer-row-container-inner {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 2.5rem !important;
}

.hd-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(248,244,237,0.08);
}

@media (max-width: 1024px) {
  .hd-footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .hd-footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 2rem; }
}

.hd-footer-brand {
  font-family: var(--hd-font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #F8F4ED;
  margin: 0 0 0.85rem 0;
  display: inline-block;
}

.hd-footer-brand .dot { color: var(--hd-purple); }

.hd-footer-tagline {
  font-family: var(--hd-font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(248,244,237,0.7);
  margin: 0 0 1.5rem 0;
  max-width: 280px;
}

.hd-footer-meta {
  font-size: 0.78rem;
  color: rgba(248,244,237,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1.25rem;
}

.hd-footer-col h4 {
  font-family: var(--hd-font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: #F8F4ED !important;
  margin: 0 0 1.25rem 0 !important;
  line-height: 1 !important;
}

.hd-footer-col ul,
.hd-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hd-footer-col li,
.hd-footer-list li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.hd-footer-col a {
  color: rgba(248,244,237,0.78);
  text-decoration: none;
  transition: color 200ms ease;
}

.hd-footer-col a:hover { color: var(--hd-purple) !important; }

.hd-footer-contact-line {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(248,244,237,0.78);
  margin-bottom: 0.5rem;
}

.hd-footer-contact-line strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248,244,237,0.5);
  margin-bottom: 0.2rem;
}

.hd-footer-contact-line a {
  color: rgba(248,244,237,0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.hd-footer-contact-line a:hover {
  color: var(--hd-purple);
  border-bottom-color: var(--hd-purple);
}

/* Bottom legal row */
.hd-footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 0 1.5rem;
  font-size: 0.78rem;
  color: rgba(248,244,237,0.5);
}

.hd-footer-legal a {
  color: rgba(248,244,237,0.65);
  text-decoration: none;
  margin: 0 0.65rem;
}

.hd-footer-legal a:hover { color: var(--hd-purple); }

.hd-footer-legal nav { display: inline-flex; }

.hd-footer-credit {
  font-family: var(--hd-font-body);
}

.hd-footer-heart {
  display: inline-block;
  color: var(--hd-purple);
  font-size: 1em;
  vertical-align: -1px;
  margin: 0 2px;
}

/* Kadence's html footer slot — let our markup own the layout */
.site-footer-section,
.site-footer-row {
  padding: 0 !important;
}

.site-footer-html { display: block; text-align: left !important; }

.site-footer .site-footer-html,
.site-footer .site-footer-html *,
.site-footer .hd-footer-grid,
.site-footer .hd-footer-grid *,
.site-footer .hd-footer-col,
.site-footer .hd-footer-col *,
.site-footer .hd-footer-legal {
  text-align: left !important;
}

.site-footer .hd-footer-legal nav { text-align: right !important; }

.site-footer a {
  color: rgba(248,244,237,0.75) !important;
}

.site-footer a:hover {
  color: var(--hd-copper) !important;
}

.site-footer h3, .site-footer h4 {
  color: var(--hd-paper) !important;
  font-family: var(--hd-font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

.site-footer-row-inner ul {
  list-style: none;
  padding: 0;
}

.site-footer-row-inner ul li {
  margin-bottom: 0.5rem;
}

/* =====================================================
   Contact + RFQ page layout (compact)
   ===================================================== */

.hd-form-wrap {
  text-align: left;
}

.hd-form-wrap > p {
  color: var(--hd-muted) !important;
  margin-bottom: 1.5rem !important;
  font-size: 0.98rem;
}

.hd-contact-inner {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 720px) {
  .hd-contact-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.hd-contact-row { margin-bottom: 1.25rem; }

.hd-contact-label {
  font-family: var(--hd-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hd-muted);
  margin-bottom: 0.25rem;
}

.hd-contact-value {
  font-family: var(--hd-font-body);
  font-size: 1rem;
  color: var(--hd-ink);
  text-decoration: none !important;
  line-height: 1.5;
}

a.hd-contact-value { transition: color 200ms ease; }
a.hd-contact-value:hover { color: var(--hd-copper-deep); }

/* =====================================================
   Fluent Forms styling overrides
   ===================================================== */

.ff-el-input--label label,
.fluentform .ff-el-input--label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--hd-muted) !important;
}

.fluentform .ff-el-form-control {
  font-family: var(--hd-font-body) !important;
  font-size: 0.92rem !important;
  padding: 9px 12px !important;
  background: var(--hd-paper) !important;
  border: 1px solid var(--hd-rule) !important;
  color: var(--hd-ink) !important;
  border-radius: 2px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.fluentform .ff-t-cell,
.fluentform .ff-el-group {
  margin-bottom: 0.85rem !important;
}

.fluentform textarea.ff-el-form-control {
  min-height: 100px !important;
  resize: vertical;
}

.fluentform .ff-el-input--label label {
  margin-bottom: 4px !important;
}

.fluentform .ff-el-form-control:focus {
  outline: 0 !important;
  border-color: var(--hd-ink) !important;
  box-shadow: none !important;
}

.fluentform .ff-btn {
  background: var(--hd-ink) !important;
  color: var(--hd-paper) !important;
  font-family: var(--hd-font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  padding: 11px 22px !important;
  border-radius: 2px !important;
  border: 0 !important;
  transition: background 200ms ease !important;
}

.fluentform .ff-btn:hover {
  background: var(--hd-copper-deep) !important;
}

/* =====================================================
   Misc utilities
   ===================================================== */

.hd-text-center { text-align: center; }
.hd-mt-6 { margin-top: 3rem; }
.hd-mt-8 { margin-top: 4rem; }
.hd-rule {
  width: 60px;
  height: 1px;
  background: var(--hd-copper);
  margin: 1.25rem 0;
}

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .hd-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms ease, transform 700ms ease;
  }
  .hd-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   Hero marquee strip - thin, scrolling tagline + highlights
   ===================================================== */

.hd-marquee {
  background: var(--hd-ink);
  color: var(--hd-paper);
  border-top: 1px solid rgba(248,244,237,0.06);
  border-bottom: 1px solid rgba(248,244,237,0.06);
  overflow: hidden;
  position: relative;
}

.hd-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: hdMarquee 38s linear infinite;
  padding: 0.85rem 0;
  width: max-content;
}

@keyframes hdMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hd-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2.5rem;
  font-family: var(--hd-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hd-paper);
  position: relative;
}

.hd-marquee-item::after {
  content: "";
  width: 4px;
  height: 4px;
  background: #E0B074;  /* warm gold separator */
  border-radius: 50%;
  margin-left: 2.5rem;
}

.hd-marquee-item:last-child::after { display: none; }

.hd-marquee-icon {
  width: 18px;
  height: 18px;
  color: #E0B074;  /* warm gold */
  flex-shrink: 0;
}

.hd-marquee:hover .hd-marquee-track { animation-play-state: paused; }

/* =====================================================
   Capabilities differentiator cards (icon + heading + text)
   ===================================================== */

.hd-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) { .hd-diff-grid { grid-template-columns: 1fr; } }

.hd-diff {
  background: var(--hd-white);
  border: 1px solid var(--hd-rule);
  padding: 1.75rem;
  position: relative;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.hd-diff:hover {
  transform: translateY(-3px);
  border-color: var(--hd-purple);
  box-shadow: 0 14px 32px rgba(26,20,16,0.06);
}

.hd-diff::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.75rem;
  width: 36px;
  height: 2px;
  background: var(--hd-purple);
  transform: translateY(-1px);
}

.hd-diff-icon {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: var(--hd-purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.hd-diff-icon svg {
  width: 24px;
  height: 24px;
  color: var(--hd-purple-deep);
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
}

.hd-diff h3 {
  font-size: 1.25rem !important;
  margin: 0 0 0.5rem 0 !important;
}

.hd-diff p {
  font-size: 0.95rem !important;
  color: var(--hd-muted) !important;
  margin: 0 !important;
  line-height: 1.55 !important;
}

.hd-diff-tag {
  font-family: var(--hd-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hd-purple-deep);
  margin-bottom: 0.5rem;
}

/* =====================================================
   Custom-order / placeholder card on Products page
   ===================================================== */

.hd-custom-card {
  background: var(--hd-ink);
  border: 1px solid var(--hd-ink);
  color: var(--hd-paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1.75rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hd-custom-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(92,43,255,0.20), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(92,43,255,0.10), transparent 50%);
  pointer-events: none;
}

.hd-custom-card > * { position: relative; z-index: 2; }

.hd-custom-card .hd-custom-eyebrow {
  font-family: var(--hd-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hd-purple-soft);
  margin-bottom: 0.5rem;
}

.hd-custom-card h3 {
  color: var(--hd-paper) !important;
  font-family: var(--hd-font-display) !important;
  font-weight: 400 !important;
  font-size: 1.4rem !important;
  line-height: 1.2 !important;
  margin: 0 0 0.65rem 0 !important;
}

.hd-custom-card p {
  color: rgba(248,244,237,0.82) !important;
  font-size: 0.94rem !important;
  margin: 0 0 1.25rem 0 !important;
  line-height: 1.5 !important;
}

.hd-custom-card .hd-custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--hd-purple);
  color: var(--hd-paper);
  font-family: var(--hd-font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 2px;
  text-decoration: none !important;
  transition: background 200ms ease;
}

.hd-custom-card .hd-custom-btn:hover { background: var(--hd-purple-deep); }

/* Brand strip on home: more space between cards and the button */
.hd-brand-grid + .wp-block-buttons,
.wp-block-group > .wp-block-buttons.hd-mt-6 { margin-top: 3rem !important; }

/* Default Kadence container width tweaks */
.content-container {
  max-width: 1280px !important;
}

/* Hide default Kadence entry header / page title on all pages — heroes own the page top. */
.page .entry-header,
.page-title-bar,
.kadence-title-row-wrap {
  display: none !important;
}

/* Strip the inner page wrap default margins so hero is full-bleed */
.page .content-area,
.page .site-main,
.page .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Bring full-bleed cover to edges of viewport */
.page .entry-content > .wp-block-cover {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.page .entry-content > .wp-block-group {
  margin: 0;
}

/* =====================================================
   Rounded edges sitewide (images + figure)
   Buttons are handled in their own block above (10px radius)
   ===================================================== */
.entry-content img,
.wp-block-image img,
.hd-product-card img,
.hd-brand-card-logo img,
.hd-brand-card img,
.hd-prod-img img,
figure.wp-block-image,
.hd-card img,
.hd-feature-img img {
  border-radius: 14px;
}

/* Hero covers stay sharp at viewport edges (full-bleed) */
.hd-hero,
.hd-hero-sub,
.wp-block-cover.hd-hero,
.wp-block-cover.hd-hero-sub { border-radius: 0 !important; }

/* Tighter radius for inline / small logos so they don't look like floating chips */
.site-branding img,
.custom-logo-link img,
.hd-cert-strip-grid img,
.hd-brand-pill img,
.site-footer img {
  border-radius: 0 !important;
}

/* Product cards: round the whole card too */
.hd-product-card,
.hd-brand-card {
  border-radius: 16px;
  overflow: hidden;
}

/* Hero cover: clip the cover so background image follows the radius */
.hd-hero,
.wp-block-cover.hd-hero {
  overflow: hidden;
}

/* Form inputs */
.hd-form-wrap input[type="text"],
.hd-form-wrap input[type="email"],
.hd-form-wrap input[type="tel"],
.hd-form-wrap textarea,
.hd-form-wrap select,
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform textarea,
.fluentform select,
.fluentform .ff-btn-submit {
  border-radius: 10px !important;
}
