/*
 Theme Name: EHS Pixel Child
 Theme URI: https://example.com/
 Description: Child theme for EHS Pixel Theme.
 Author: Connor / ChatGPT
 Author URI: https://example.com/
 Template: ehs-pixel-theme
 Version: 1.0
 Text Domain: ehs-pixel-child
*/

/* Place your custom overrides below */

/* 1) Header styling to match reference */

:root {
  --ehs-max-width: 100%;
}

body.home .site-header {
  background: linear-gradient(to bottom,
              rgba(0, 0, 0, 0.8),
              rgba(0, 0, 0, 0.35),
              transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

body.home .site-header__inner {
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Burger icon + “MENU” label */
body.home .ehs-menu-icon {
  width: 22px;
  height: 16px;
  cursor: pointer;
}

body.home .ehs-menu-icon span {
  background-color: #ffffff;
}

body.home .ehs-menu-icon::after {
  content: "MENU";
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
  color: #ffffff;
}

/* Email in header */
body.home .site-header__email {
  font-size: 13px;
  opacity: 0.9;
}

/* Catalog button on the right */
body.home .site-header__right .ehs-btn.ehs-btn--primary {
  background: #0062ff;
  background-image: linear-gradient(135deg, #0062ff, #0040b8);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 13px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

/* 2) Hero image strip – keep as big, clean backdrop */
body.home .ehs-hero-strip {
  height: 520px;
  min-height: 520px;
  background-size: cover;
  background-position: center;
}

/* 3) Pull the first content section up over the hero
   so headline sits on top of the image (like your design) */
body.home .ehs-section:first-of-type {
  position: relative;
  margin-top: -380px;        /* how far text overlaps image */
  padding-top: 140px;        /* vertical centring */
  padding-bottom: 140px;
  background: transparent;
  color: #ffffff;
  pointer-events: none;      /* so clicks go “through” if needed */
}

/* Ensure only the left column shows (text) and right image is hidden */
body.home .ehs-section:first-of-type .ehs-grid-2 {
  grid-template-columns: minmax(0, 1.1fr);
}

body.home .ehs-section:first-of-type .ehs-grid-2 > :last-child {
  display: none;             /* hide duplicate image on the right */
}

/* Typography for hero text */
body.home .ehs-section:first-of-type .ehs-headline {
  font-size: clamp(2.4rem, 4vw + 0.6rem, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

body.home .ehs-section:first-of-type .ehs-lead {
  font-size: 1rem;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

/* Hide stats row in hero (your reference doesn’t show them) */
body.home .ehs-section:first-of-type .ehs-stats-row {
  display: none;
}

/* 4) Optional: style a hero CTA button if you add one
   (e.g. <a class="ehs-hero-cta" href="#">Get started</a>) */
body.home .ehs-section:first-of-type .ehs-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 32px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease,
              transform 0.15s ease, box-shadow 0.15s ease;
  pointer-events: auto;   /* re-enable click inside this section */
}

body.home .ehs-section:first-of-type .ehs-hero-cta:hover {
  background-color: #ffffff;
  color: #101828;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* 5) Make sure following sections go back to normal white background */
body.home .ehs-section:nth-of-type(2) {
  background-color: #ffffff;
}
