/* ============================================================
   HERO REDESIGN — White + Red Wave Hero
   Dastagir Machines PVT LTD
   Scoped exclusively to .s-hero — no global selectors.
   Red: #ED1C24 (brand specification)
   ============================================================ */

/* ----------------------------------------------------------
   HERO SECTION — Core override (replaces dark background)
   ---------------------------------------------------------- */
.s-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #FFFFFF;
  padding-block: calc(var(--header-h) + 80px) 0;
}

/* ----------------------------------------------------------
   HERO BACKGROUND LAYER — White canvas + subtle grid
   ---------------------------------------------------------- */
.s-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #FFFFFF;
}

/* Override old dark grid to a very subtle light grid */
.s-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.028) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Kill old dark gradient overlay */
.s-hero__gradient {
  display: none;
}

/* Kill old red radial accent */
.s-hero__accent {
  display: none;
}

/* ----------------------------------------------------------
   RED WAVE / STRIPE LAYER — centered in hero
   ---------------------------------------------------------- */
.s-hero__waves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* SVG fills the full hero height, waves are at vertical center */
.s-hero__waves svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .s-hero__waves svg {
    animation: heroWaveDrift 18s ease-in-out infinite alternate;
  }
}

@keyframes heroWaveDrift {
  0%   { transform: translateX(0px); }
  100% { transform: translateX(-18px); }
}

/* ----------------------------------------------------------
   HERO INNER — Two-column grid layout
   ---------------------------------------------------------- */
.s-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0 48px;
  width: 100%;
  min-height: calc(100svh - var(--header-h) - 80px);
  padding-bottom: 72px;
}

/* ----------------------------------------------------------
   LEFT — Content column
   ---------------------------------------------------------- */
.s-hero__content {
  max-width: 560px;
  padding-top: 16px;
}

/* Eyebrow — red on white */
.s-hero .t-eyebrow,
.s-hero .t-eyebrow--light {
  color: #ED1C24;
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}

/* Main headline — near-black */
.s-hero__headline {
  font-size: clamp(3rem, 5.5vw, 7rem);
  font-weight: var(--fw-bold);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #141414;
  margin-bottom: var(--sp-lg);
}

/* "machinery." italic — outlined in dark for visual depth */
.s-hero__headline em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px #141414;
}

/* Body text — dark neutral */
.s-hero__body {
  font-size: var(--t-lg);
  line-height: 1.65;
  color: #4D5874;
  max-width: 480px;
  margin-bottom: var(--sp-xl);
}

/* CTA actions row */
.s-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   HERO CTA BUTTON OVERRIDES (scoped to .s-hero only)
   ---------------------------------------------------------- */

/* Primary CTA — Dastagir Red fill, white text */
.s-hero .btn--primary {
  background: #ED1C24;
  color: #FFFFFF;
  border-color: #ED1C24;
}
.s-hero .btn--primary:hover {
  background: #C4161D;
  border-color: #C4161D;
}

/* Secondary CTA — white bg, black text, dark border */
.s-hero .btn--ghost-light {
  background: #FFFFFF;
  color: #141414;
  border-color: rgba(20,20,20,0.22);
}
.s-hero .btn--ghost-light:hover {
  background: #F5F5F5;
  border-color: #141414;
}

/* ----------------------------------------------------------
   RIGHT — Machine visual column
   ---------------------------------------------------------- */
.s-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-hero__machine-wrap {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-hero__machine-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.10));
}

/* Machine badge — subtle precision label */
.s-hero__machine-badge {
  position: absolute;
  bottom: -20px;
  left: -16px;
  background: #FFFFFF;
  border: 1px solid #EBEBEB;
  border-left: 3px solid #ED1C24;
  padding: 10px 16px;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  pointer-events: none;
}

.s-hero__machine-badge-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ED1C24;
  margin-bottom: 2px;
}

.s-hero__machine-badge-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #141414;
  letter-spacing: -0.01em;
}

/* ----------------------------------------------------------
   SCROLL INDICATOR — adapted for light hero
   ---------------------------------------------------------- */
.s-hero__scroll {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.s-hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(20,20,20,0.35), transparent);
  animation: heroScrollLine 2.5s ease infinite;
}

@media (prefers-reduced-motion: reduce) {
  .s-hero__scroll-line { animation: none; }
  .s-hero__waves svg { animation: none; }
}

/* ----------------------------------------------------------
   TABLET — <= 1024px
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .s-hero {
    padding-block: calc(var(--header-h) + 40px) 0;
    align-items: flex-start;
    min-height: auto;
  }

  .s-hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding-bottom: 0;
    align-items: start;
  }

  .s-hero__content {
    max-width: 100%;
    text-align: center;
    padding-top: 8px;
    padding-bottom: 36px;
    order: 1;
  }

  .s-hero .t-eyebrow,
  .s-hero .t-eyebrow--light {
    display: block;
    text-align: center;
  }

  .s-hero__headline {
    font-size: clamp(2.6rem, 9vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-block: 16px;
    text-align: center;
  }

  .s-hero__body {
    font-size: 0.9375rem;
    max-width: 100%;
    text-align: left;
    color: #4D5874;
  }

  .s-hero__actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    align-items: stretch;
  }

  .s-hero__actions .btn {
    width: 100%;
    justify-content: center;
    height: 52px;
    font-size: 0.9375rem;
  }

  .s-hero__visual {
    order: 2;
    width: 100%;
    justify-content: center;
    padding-top: 8px;
  }

  .s-hero__machine-wrap {
    max-width: 540px;
  }

  .s-hero__machine-img {
    max-height: 60vh;
    width: 95%;
  }

  .s-hero__machine-badge {
    display: none;
  }

  .s-hero__scroll {
    display: none;
  }

  .s-hero__waves svg {
    min-height: unset;
    opacity: 0.7;
  }
}

/* ----------------------------------------------------------
   MOBILE — <= 480px
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .s-hero {
    padding-block: calc(var(--header-h) + 24px) 0;
  }

  .s-hero__content {
    padding-bottom: 28px;
  }

  .s-hero__headline {
    font-size: clamp(2.2rem, 9.5vw, 3.4rem);
  }

  .s-hero__machine-wrap {
    max-width: 100%;
  }

  .s-hero__machine-img {
    max-height: 54vh;
    width: 98%;
  }

  .s-hero__waves svg {
    opacity: 0.5;
  }
}

/* ----------------------------------------------------------
   375px / 390px ultra-narrow phones
   ---------------------------------------------------------- */
@media (max-width: 390px) {
  .s-hero__headline {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .s-hero__machine-img {
    max-height: 40vh;
  }
}

/* ----------------------------------------------------------
   HEADER OVERRIDE — page-home only
   When transparent header sits over the new white hero,
   switch nav/logo to dark colours.
   This does NOT affect the header on any other page.
   ---------------------------------------------------------- */

/* Nav links, buttons, actions link — dark on white hero */
.page-home .c-header--transparent .c-nav__link,
.page-home .c-header--transparent .c-nav__btn,
.page-home .c-header--transparent .c-header__link {
  color: #141414;
}

/* Search icon — dark */
.page-home .c-header--transparent .c-header__search-btn {
  color: #141414;
}
.page-home .c-header--transparent .c-header__search-btn:hover {
  background: rgba(20,20,20,0.06);
}

/* Mobile hamburger bars — dark */
.page-home .c-header--transparent .c-header__mobile-toggle span {
  background: #141414;
}

/* Enquire button in header — red on white hero */
.page-home .c-header--transparent .btn--primary {
  background: #ED1C24;
  color: #FFFFFF;
  border-color: #ED1C24;
}
.page-home .c-header--transparent .btn--primary:hover {
  background: #C4161D;
  border-color: #C4161D;
}

/* Logo — switch to black logo on white hero */
.page-home .c-header--transparent .c-logo__img--white { display: none; }
.page-home .c-header--transparent .c-logo__img--black { display: block; }

/* Lang selector — dark variant */
.page-home .c-header--transparent .c-lang-selector__btn {
  color: #141414;
  border-color: rgba(20,20,20,0.15);
}
.page-home .c-header--transparent .c-lang-selector__btn:hover {
  background: rgba(20,20,20,0.05);
}
