/* GDS New Hero Override - 2026-07-27
   Namespaced under .gds-newhero to avoid collision with existing styles.
   Only affects the injected hero markup on the homepage. */

/* --- Hide original hero until swap (prevents flash) --- */
/* Use substring match to avoid backslash escaping issues in data-loc */
section[data-loc*="Home.tsx:79"] {
  visibility: hidden !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

/* --- Wrapper background (dark body for all injected sections) --- */
#gds-newhero-wrap {
  background: #021a0a;
}

/* --- Colors (scoped vars) --- */
.gds-newhero {
  --nh-green-dark: #05541E;
  --nh-green-deeper: #032a0f;
  --nh-green-hero: #042d11;
  --nh-cream: #faf5e7;
  --nh-cream-soft: #f5f0e4;
  --nh-cream-dim: rgba(250,245,231,0.7);
  --nh-gold: #C9962E;
  --nh-gold-light: #D0980E;
}

/* --- Hero Section --- */
.gds-newhero {
  position: relative;
  background: var(--nh-green-hero);
  background-image: url('/hero-newdesign/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 20px 20px 32px;
  font-family: 'Inter', 'Nunito Sans', system-ui, -apple-system, sans-serif;
  color: var(--nh-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
}
.gds-newhero *, .gds-newhero *::before, .gds-newhero *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.gds-newhero img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Overlay */
.gds-newhero .nh-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(3,42,15,0.72) 0%,
    rgba(3,32,13,0.78) 40%,
    rgba(2,26,10,0.85) 100%
  );
  z-index: 1;
}

.gds-newhero .nh-inner {
  position: relative;
  z-index: 2;
}

/* Location pill */
.gds-newhero .nh-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(201,150,46,0.08);
  border: 1px solid rgba(201,150,46,0.22);
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--nh-cream-dim);
  margin-bottom: 18px;
  font-weight: 500;
}
.gds-newhero .nh-pill-pin {
  width: 13px;
  height: 13px;
  color: var(--nh-gold);
  flex-shrink: 0;
}

/* Headline */
.gds-newhero .nh-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 4px;
  text-shadow: 0 2px 24px rgba(3,32,13,0.5), 0 1px 2px rgba(0,0,0,0.25);
}
.gds-newhero .nh-line-cream {
  display: block;
  color: var(--nh-cream);
  font-size: 54px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
.gds-newhero .nh-line-gold {
  display: block;
  color: var(--nh-gold);
  font-style: italic;
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

/* Leaf divider */
.gds-newhero .nh-leaf-divider {
  margin: 14px 0 16px;
  width: 100px;
  height: 20px;
  opacity: 0.8;
}
.gds-newhero .nh-leaf-divider svg {
  width: 100%;
  height: 100%;
}

/* Body copy */
.gds-newhero .nh-body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(250,245,231,0.82);
  max-width: 340px;
  margin-bottom: 6px;
}
.gds-newhero .nh-body-strong {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(250,245,231,0.82);
  max-width: 340px;
  margin-bottom: 0;
}
.gds-newhero .nh-body-strong strong {
  color: var(--nh-cream);
  font-weight: 600;
}

/* Products */
.gds-newhero .nh-products {
  position: relative;
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Product scene */
.gds-newhero .nh-product-scene {
  position: relative;
  width: 300px;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201,150,46,0.18);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    0 0 80px rgba(0,0,0,0.3),
    0 0 60px rgba(201,150,46,0.06),
    inset 0 1px 0 rgba(201,150,46,0.12);
}
.gds-newhero .nh-scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.65) saturate(0.8);
}
.gds-newhero .nh-scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,45,17,0.45) 0%,
    rgba(4,45,17,0.15) 40%,
    rgba(4,45,17,0.25) 100%
  );
}
.gds-newhero .nh-product-bottles {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 12px;
  z-index: 2;
}

.gds-newhero .nh-product-img {
  filter:
    drop-shadow(0 8px 24px rgba(0,0,0,0.5))
    drop-shadow(0 2px 8px rgba(0,0,0,0.3))
    drop-shadow(0 0 20px rgba(208,152,14,0.08));
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.gds-newhero .nh-product-img:hover {
  transform: translateY(-6px) scale(1.03);
}
.gds-newhero .nh-product-img.nh-serum {
  height: 230px;
  width: auto;
  z-index: 2;
  transform: translateX(12px);
  position: relative;
}
.gds-newhero .nh-product-img.nh-serum:hover {
  transform: translateX(12px) translateY(-6px) scale(1.03);
}
.gds-newhero .nh-product-img.nh-mist {
  height: 195px;
  width: auto;
  z-index: 1;
  transform: translateX(-12px);
  position: relative;
}
.gds-newhero .nh-product-img.nh-mist:hover {
  transform: translateX(-12px) translateY(-6px) scale(1.03);
}

/* 20+ Years badge */
.gds-newhero .nh-badge {
  position: absolute;
  top: -6px;
  right: 10px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--nh-green-dark);
  border: 2.5px solid var(--nh-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.35),
    inset 0 0 20px rgba(201,150,46,0.05);
}
.gds-newhero .nh-badge-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--nh-gold);
  line-height: 1;
}
.gds-newhero .nh-badge-unit {
  font-size: 6px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--nh-cream);
  line-height: 1;
  margin-top: 1px;
}
.gds-newhero .nh-badge-text {
  font-size: 6.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--nh-cream);
  line-height: 1.25;
  font-weight: 600;
}

/* --- RESPONSIVE --- */

/* Small phones */
@media (max-width: 360px) {
  .gds-newhero .nh-line-cream,
  .gds-newhero .nh-line-gold { font-size: 42px; }
  .gds-newhero .nh-product-scene { width: 260px; height: 240px; }
  .gds-newhero .nh-product-img.nh-serum { height: 195px; }
  .gds-newhero .nh-product-img.nh-mist  { height: 165px; }
  .gds-newhero .nh-badge { width: 70px; height: 70px; }
  .gds-newhero .nh-badge-num { font-size: 22px; }
}

/* Phablet */
@media (min-width: 400px) {
  .gds-newhero .nh-product-scene { width: 330px; height: 300px; }
  .gds-newhero .nh-product-img.nh-serum { height: 250px; }
  .gds-newhero .nh-product-img.nh-mist  { height: 215px; }
  .gds-newhero .nh-badge { width: 88px; height: 88px; right: 6px; }
  .gds-newhero .nh-badge-num { font-size: 28px; }
}

/* Tablet */
@media (min-width: 600px) {
  .gds-newhero { padding: 32px 36px 44px; }
  .gds-newhero .nh-line-cream,
  .gds-newhero .nh-line-gold { font-size: 64px; }
  .gds-newhero .nh-body,
  .gds-newhero .nh-body-strong { font-size: 15px; max-width: 420px; }
  .gds-newhero .nh-product-scene { width: 380px; height: 340px; }
  .gds-newhero .nh-product-img.nh-serum { height: 280px; }
  .gds-newhero .nh-product-img.nh-mist  { height: 240px; }
  .gds-newhero .nh-badge { width: 95px; height: 95px; top: -8px; right: 0; }
  .gds-newhero .nh-badge-num { font-size: 30px; }
  .gds-newhero .nh-badge-unit { font-size: 6.5px; }
  .gds-newhero .nh-badge-text { font-size: 7px; }
}

/* Desktop */
@media (min-width: 900px) {
  .gds-newhero {
    padding: 48px 56px 56px;
    min-height: 500px;
  }
  .gds-newhero .nh-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }
  .gds-newhero .nh-content { max-width: 480px; flex-shrink: 0; }
  .gds-newhero .nh-products { margin-top: 0; flex-shrink: 0; }
  .gds-newhero .nh-line-cream,
  .gds-newhero .nh-line-gold { font-size: 72px; }
  .gds-newhero .nh-body,
  .gds-newhero .nh-body-strong { font-size: 15.5px; max-width: 400px; }
  .gds-newhero .nh-product-scene { width: 400px; height: 380px; }
  .gds-newhero .nh-product-img.nh-serum { height: 310px; }
  .gds-newhero .nh-product-img.nh-mist  { height: 270px; }
  .gds-newhero .nh-badge { width: 105px; height: 105px; top: -12px; right: -8px; }
  .gds-newhero .nh-badge-num { font-size: 34px; }
  .gds-newhero .nh-badge-unit { font-size: 7px; }
  .gds-newhero .nh-badge-text { font-size: 7.5px; }
}

/* Large desktop */
@media (min-width: 1200px) {
  .gds-newhero .nh-line-cream,
  .gds-newhero .nh-line-gold { font-size: 80px; }
  .gds-newhero .nh-inner { max-width: 1200px; }
  .gds-newhero .nh-product-scene { width: 440px; height: 400px; }
  .gds-newhero .nh-product-img.nh-serum { height: 340px; }
  .gds-newhero .nh-product-img.nh-mist  { height: 295px; }
}

/* ================================================================
   TRUST STRIP
   ================================================================ */
.gds-newhero-trust-strip {
  background: rgba(250,245,231,0.06);
  border-top: 1px solid rgba(201,150,46,0.12);
  border-bottom: 1px solid rgba(201,150,46,0.12);
  padding: 22px 12px;
  font-family: 'Inter', 'Nunito Sans', system-ui, -apple-system, sans-serif;
  color: var(--nh-cream, #faf5e7);
  -webkit-font-smoothing: antialiased;
}
.gds-newhero-trust-strip *, .gds-newhero-trust-strip *::before, .gds-newhero-trust-strip *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.nh-trust-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}
.nh-trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
  min-width: 0;
}
.nh-trust-sep {
  width: 1px;
  height: 56px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(201,150,46,0.2) 0px,
    rgba(201,150,46,0.2) 3px,
    transparent 3px,
    transparent 6px
  );
  flex-shrink: 0;
  align-self: center;
}
.nh-trust-icon-wrap {
  margin-bottom: 8px;
}
.nh-trust-icon-wrap svg {
  width: 22px;
  height: 22px;
  color: #C9962E;
}
.nh-trust-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #faf5e7;
  line-height: 1.3;
  margin-bottom: 4px;
}
.nh-trust-desc {
  font-size: 10px;
  color: rgba(250,245,231,0.55);
  line-height: 1.35;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.gds-newhero-cta {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  font-family: 'Inter', 'Nunito Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.gds-newhero-cta *, .gds-newhero-cta *::before, .gds-newhero-cta *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.nh-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #05541E;
  color: #faf5e7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.nh-btn-primary:hover {
  background: #06672a;
  box-shadow: 0 6px 28px rgba(208,152,14,0.2);
  transform: translateY(-1px);
  color: #faf5e7;
  text-decoration: none;
}
.nh-btn-primary svg { flex-shrink: 0; }
.nh-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #faf5e7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 6px;
  border: 1.5px solid rgba(250,245,231,0.3);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.nh-btn-outline svg { color: #C9962E; flex-shrink: 0; }
.nh-btn-outline:hover {
  background: rgba(250,245,231,0.05);
  border-color: rgba(250,245,231,0.5);
  transform: translateY(-1px);
  color: #faf5e7;
  text-decoration: none;
}

/* ================================================================
   RATING STRIP - Infinite horizontal ticker (marquee)
   ================================================================ */
@keyframes gds-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.gds-newhero-rating-strip {
  background: rgba(250,245,231,0.03);
  border-top: 1px solid rgba(201,150,46,0.08);
  border-bottom: 1px solid rgba(201,150,46,0.08);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Inter', 'Nunito Sans', system-ui, -apple-system, sans-serif;
  color: #faf5e7;
  -webkit-font-smoothing: antialiased;
}
.gds-newhero-rating-strip *, .gds-newhero-rating-strip *::before, .gds-newhero-rating-strip *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

/* Ticker track: two identical copies of the items side-by-side */
.nh-ticker-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  animation: gds-ticker 60s linear infinite;
}
.gds-newhero-rating-strip:hover .nh-ticker-track {
  animation-play-state: paused;
}

.nh-rating-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 0 20px;
}
.nh-rating-item .nh-stars {
  color: #C9962E;
  font-size: 14px;
  letter-spacing: 2px;
}
.nh-rating-label {
  font-size: 10px;
  color: rgba(250,245,231,0.6);
  line-height: 1.35;
}
.nh-rating-label strong {
  color: #faf5e7;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.nh-rating-sep {
  width: 1px;
  height: 28px;
  background: rgba(201,150,46,0.15);
  flex-shrink: 0;
}
.nh-rating-icon {
  width: 16px;
  height: 16px;
  color: #C9962E;
  flex-shrink: 0;
}
.nh-flag-icon {
  font-size: 14px;
  line-height: 1;
}

/* ================================================================
   PLANET SECTION (Good for You, Good for the Planet)
   ================================================================ */
.gds-newhero-planet {
  position: relative;
  background: #05541E;
  padding: 0;
  text-align: center;
  font-family: 'Inter', 'Nunito Sans', system-ui, -apple-system, sans-serif;
  color: #faf5e7;
  -webkit-font-smoothing: antialiased;
}
.gds-newhero-planet *, .gds-newhero-planet *::before, .gds-newhero-planet *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.nh-planet-wave {
  width: 100%;
  height: 30px;
  margin-top: -1px;
  display: block;
  line-height: 0;
}
.nh-planet-wave svg {
  width: 100%;
  height: 30px;
  display: block;
}
.nh-planet-content {
  padding: 20px 20px 36px;
}
.nh-planet-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #faf5e7;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.nh-planet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
}
.nh-planet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.nh-planet-icon {
  width: 26px;
  height: 26px;
  color: #C9962E;
}
.nh-planet-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #faf5e7;
}
.nh-planet-desc {
  font-size: 10px;
  color: rgba(250,245,231,0.55);
  line-height: 1.4;
}

/* ================================================================
   RESPONSIVE - Additional sections
   ================================================================ */

@media (min-width: 600px) {
  .gds-newhero-cta {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }
  .nh-btn-primary, .nh-btn-outline {
    flex: 0 1 auto;
    min-width: 200px;
  }
  .nh-trust-title { font-size: 10.5px; }
  .nh-trust-desc { font-size: 11px; }
}

@media (min-width: 900px) {
  .gds-newhero-trust-strip { padding: 28px 32px; }
  .nh-trust-sep { height: 72px; }
  .nh-trust-title { font-size: 11px; }
  .nh-trust-desc { font-size: 11.5px; }
  .nh-planet-grid { gap: 28px; max-width: 560px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gds-newhero *,
  .gds-newhero *::before,
  .gds-newhero *::after,
  .gds-newhero-trust-strip *,
  .gds-newhero-cta *,
  .gds-newhero-rating-strip *,
  .gds-newhero-planet * {
    transition-duration: 0.01ms !important;
  }
  /* Disable ticker animation -- fall back to static scrollable strip */
  .nh-ticker-track {
    animation: none !important;
  }
  .gds-newhero-rating-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Owner request: remove the trust strip under the hero */
#gds-newhero-wrap .gds-newhero-trust-strip{display:none !important;}
