/* =============================================================
   Hertes Premium — shared D2C design system
   Reference: Cinnamon Kitchen, Alpino, Ella Foods
   ============================================================= */

:root {
  --hp-cream: #faf6f2;
  --hp-cream-deep: #f3ebe3;
  --hp-brown: #5c3428;
  --hp-brown-mid: #7a4a3a;
  --hp-brown-soft: #9d7868;
  --hp-green: #396d1b;
  --hp-green-light: #4a8530;
  --hp-gold: #d4a574;
  --hp-shadow: rgba(92, 52, 40, 0.07);
  --hp-shadow-lg: rgba(61, 34, 25, 0.11);
  --hp-radius: 18px;
  --hp-radius-lg: 24px;
  --hp-font-display: var(--font-primary);
}

/* ---- USP marquee ---- */
.hp-marquee {
  overflow: hidden;
  background: var(--hp-brown);
  color: var(--hp-cream);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 0;
}

.hp-marquee__track {
  display: flex;
  width: max-content;
  animation: hp-marquee-scroll 38s linear infinite;
}

.hp-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 2rem;
}

.hp-marquee__item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 0.15rem;
}

.hp-marquee__sep {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 1.1rem;
  border-radius: 50%;
  background: var(--hp-gold);
  opacity: 0.85;
  flex-shrink: 0;
}

/* Green & white marquee — Dhatri & Fitlys */
.page-dhatri .hp-marquee,
.page-fitlys .hp-marquee {
  background: var(--hp-green);
  color: #fff;
  border-block-color: rgba(255, 255, 255, 0.14);
}

.page-dhatri .hp-marquee__sep,
.page-fitlys .hp-marquee__sep {
  background: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

@keyframes hp-marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ---- Hero overlay (home) ---- */
.hp-hero {
  position: relative;
}

.hp-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 6vw, 72px) 0 clamp(32px, 8vw, 96px);
  background: linear-gradient(
    to top,
    rgba(61, 34, 25, 0.72) 0%,
    rgba(61, 34, 25, 0.28) 45%,
    transparent 75%
  );
  pointer-events: none;
}

.hp-hero__overlay .container {
  pointer-events: auto;
}

.hp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hp-cream);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.hp-hero__title {
  margin: 0 0 22px;
  max-width: 14ch;
  font-family: var(--hp-font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--white);
}

.hp-hero__title em {
  font-style: italic;
  color: var(--hp-gold);
}

.hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Buttons ---- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hp-btn:hover {
  transform: translateY(-2px);
}

.hp-btn--primary {
  color: var(--hp-brown);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hp-btn--primary:hover {
  color: var(--hp-brown);
  background: var(--hp-cream);
}

.hp-btn--ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.hp-btn--ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hp-btn--green {
  color: var(--white);
  background: var(--hp-green);
  box-shadow: 0 8px 22px rgba(57, 109, 27, 0.28);
}

.hp-btn--green:hover {
  color: var(--white);
  background: var(--hp-green-light);
}

/* ---- Stats strip ---- */
.hp-stats {
  padding: 28px 0;
  background: var(--hp-cream);
  border-bottom: 1px solid rgba(92, 52, 40, 0.08);
}

.hp-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hp-stats__item {
  text-align: center;
  padding: 8px 12px;
}

.hp-stats__num {
  display: block;
  font-family: var(--hp-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--hp-brown);
  line-height: 1.1;
}

.hp-stats__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hp-brown-soft);
}

/* ---- Section header ---- */
.hp-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.hp-section-head--left {
  text-align: left;
  margin-left: 0;
}

.hp-section-head__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hp-brown-mid);
}

.hp-section-head__title {
  margin: 0 0 12px;
  font-family: var(--hp-font-display);
  font-size: var(--type-heading);
  font-weight: 400;
  line-height: var(--type-heading-line);
  color: var(--hp-green);
}

.hp-section-head__lead {
  margin: 0;
  font-size: var(--type-body);
  line-height: var(--type-body-line);
  color: var(--hp-brown-soft);
}

/* ---- Dive-in category cards ---- */
.hp-dive {
  padding: 72px 0;
  background: var(--white);
}

.hp-dive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hp-dive__card {
  position: relative;
  display: block;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  min-height: 280px;
  color: var(--white);
  box-shadow: 0 12px 36px var(--hp-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hp-dive__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px var(--hp-shadow-lg);
  color: var(--white);
}

.hp-dive__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hp-dive__card:hover img {
  transform: scale(1.06);
}

.hp-dive__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 42%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hp-dive__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 20px;
  z-index: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hp-dive__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hp-dive__title {
  margin: 0 0 6px;
  font-family: var(--hp-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
}

.hp-dive__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ---- Brand story legacy card grid (homepage story uses css/hp-story.css) ---- */

.hp-story__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hp-story__card {
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid rgba(92, 52, 40, 0.08);
  border-radius: var(--hp-radius);
  box-shadow: 0 8px 28px var(--hp-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-story__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--hp-shadow-lg);
}

.hp-story__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  font-weight: 800;
  color: var(--black);
  background: var(--hp-cream-deep);
  border-radius: 50%;
}

.hp-story__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
}

.hp-story__title {
  margin: 0 0 10px;
  font-family: var(--hp-font-display);
  font-weight: 400;
  color: var(--black);
}

.hp-story__text {
  margin: 0;
  color: var(--black);
}

/* ---- CTA band ---- */
.hp-cta-band {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--hp-brown) 0%, var(--hp-brown-mid) 100%);
}

.hp-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hp-cta-band__title {
  margin: 0 0 8px;
  font-family: var(--hp-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}

.hp-cta-band__text {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
}

/* ---- Premium card lift (home sections) ---- */
.hp-card-lift {
  border: none !important;
  border-radius: var(--hp-radius) !important;
  box-shadow: 0 10px 32px var(--hp-shadow) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  overflow: hidden;
}

.hp-card-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px var(--hp-shadow-lg) !important;
}

/* ---- Trust pills (optional inline) ---- */
.hp-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px 0 0;
}

.hp-trust__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hp-brown);
  background: var(--hp-cream);
  border: 1px solid rgba(92, 52, 40, 0.1);
  border-radius: 100px;
}

.hp-trust__pill i {
  color: var(--hp-green);
  font-size: 13px;
}

/* ---- Responsive ---- */
@media screen and (max-width: 991px) {
  .hp-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-dive__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hp-dive__card {
    min-height: 260px;
  }

  .hp-dive__card:last-child:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% - 9px);
    justify-self: center;
  }

  .hp-story__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-cta-band__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
  .hp-dive {
    padding: 56px 0;
  }

  .hp-dive__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hp-dive__card {
    min-height: 280px;
    border-radius: 12px;
  }

  .hp-dive__card:last-child:nth-child(3) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .hp-dive__body {
    padding: 24px 20px;
  }

  .hp-dive__title {
    font-size: 1.45rem;
  }
}

@media screen and (max-width: 575px) {
  .hp-hero__title {
    max-width: none;
  }

  .hp-dive__grid,
  .hp-story__grid {
    grid-template-columns: 1fr;
  }

  .hp-dive__card:last-child:nth-child(3) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .hp-dive__card {
    min-height: 260px;
  }

  .hp-dive__title {
    font-size: 1.35rem;
  }

  .hp-stats__grid {
    gap: 8px;
  }

  .hp-stats__item {
    padding: 6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-marquee__track {
    animation: none;
  }

  .hp-dive__card:hover img,
  .hp-dive__card:hover,
  .hp-story__card:hover,
  .hp-btn:hover,
  .hp-card-lift:hover {
    transform: none;
  }
}
