/*
  Maido Customs Pure PHP Rebuild - Stage 3N
  Hero/header match pass: transparent over-hero header, true centered logo, old-site hero sizing,
  and closer hero H1 font/size/position.
*/
:root {
  --maido-3n-header-height: 124px;
  --maido-3n-font-condensed: Impact, Haettenschweiler, "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

/* Only the homepage/hero header should overlay the banner. Other pages stay normal. */
body.has-hero-header .site-header.site-header--hero {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10020 !important;
  height: var(--maido-3n-header-height) !important;
  min-height: var(--maido-3n-header-height) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #050505 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.has-hero-header .site-header.site-header--hero.maido-stage3n-scrolled {
  position: fixed !important;
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.06) !important;
}

body.has-hero-header .site-header--hero .primary-header,
body.has-hero-header .site-header--hero .header-grid,
body.has-hero-header .site-header--hero .header-grid--landing {
  height: var(--maido-3n-header-height) !important;
  min-height: var(--maido-3n-header-height) !important;
}

/* Make the header row full-width, then centre the logo independently of left/right content. */
body.has-hero-header .site-header--hero .container.header-grid,
body.has-hero-header .site-header--hero .container.header-grid--landing {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: clamp(34px, 3.2vw, 58px) !important;
  padding-right: clamp(34px, 3.2vw, 58px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

body.has-hero-header .site-header--hero .brand--center {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  justify-self: auto !important;
  z-index: 2 !important;
}

body.has-hero-header .site-header--hero .brand__logo--full,
body.has-hero-header .site-header--hero .brand img {
  max-height: 96px !important;
  width: auto !important;
  display: block !important;
  filter: none !important;
  opacity: 1 !important;
}

body.has-hero-header .site-header--hero .main-nav {
  height: var(--maido-3n-header-height) !important;
  min-height: var(--maido-3n-header-height) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(22px, 2.8vw, 46px) !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 3 !important;
}

body.has-hero-header .site-header--hero .main-nav a,
body.has-hero-header .site-header--hero .main-nav .nav-link,
body.has-hero-header .site-header--hero .nav-link span:first-child {
  font-family: var(--maido-3n-font-condensed) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: .01em !important;
  color: #050505 !important;
  text-transform: none !important;
  text-shadow: none !important;
}

body.has-hero-header .site-header--hero .nav-caret {
  color: #050505 !important;
  font-size: 14px !important;
  margin-left: 7px !important;
  opacity: .75 !important;
}

body.has-hero-header .site-header--hero .header-actions {
  height: var(--maido-3n-header-height) !important;
  min-height: var(--maido-3n-header-height) !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(18px, 2vw, 30px) !important;
  z-index: 3 !important;
  color: #050505 !important;
}

body.has-hero-header .site-header--hero .header-icon,
body.has-hero-header .site-header--hero .header-icon span {
  color: #050505 !important;
}

/* Homepage hero: use the banner at its natural wide ratio where possible. */
body.maido-stage3k-home .landing-hero {
  position: relative !important;
  height: min(100vh, 50vw) !important;
  min-height: 640px !important;
  max-height: 1000px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background-image: url('/image/catalog/imgs/banner-1.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #ffffff !important;
  filter: none !important;
}

body.maido-stage3k-home .landing-hero::before,
body.maido-stage3k-home .landing-hero::after,
body.maido-stage3k-home .landing-hero__shade {
  display: none !important;
  content: none !important;
}

/* Old Maido-style H1: lower-left, single line, condensed and bold but not oversized. */
body.maido-stage3k-home .landing-hero__inner {
  position: absolute !important;
  left: clamp(50px, 4.8vw, 92px) !important;
  right: auto !important;
  top: auto !important;
  bottom: clamp(128px, 10.8vw, 205px) !important;
  width: auto !important;
  max-width: min(980px, 76vw) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body.maido-stage3k-home .landing-hero h1,
body.maido-stage3k-home .landing-hero__title {
  font-family: var(--maido-3n-font-condensed) !important;
  color: #ffffff !important;
  font-size: clamp(32px, 2.72vw, 50px) !important;
  line-height: .96 !important;
  font-weight: 900 !important;
  letter-spacing: -.018em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.26) !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

/* Keep the Shop Now button hidden, as previously requested. */
body.maido-stage3k-home .landing-hero a[href*="shop"],
body.maido-stage3k-home .landing-hero .btn,
body.maido-stage3k-home .landing-hero .hero-actions,
body.maido-stage3k-home .landing-hero .shop-now {
  display: none !important;
}

@media (max-width: 1180px) {
  :root { --maido-3n-header-height: 106px; }
  body.has-hero-header .site-header--hero .brand__logo--full,
  body.has-hero-header .site-header--hero .brand img { max-height: 82px !important; }
  body.has-hero-header .site-header--hero .container.header-grid,
  body.has-hero-header .site-header--hero .container.header-grid--landing {
    padding-left: 34px !important;
    padding-right: 34px !important;
  }
  body.maido-stage3k-home .landing-hero__inner {
    left: 54px !important;
    bottom: clamp(116px, 13.5vw, 160px) !important;
  }
  body.maido-stage3k-home .landing-hero h1,
  body.maido-stage3k-home .landing-hero__title {
    font-size: clamp(30px, 4vw, 44px) !important;
  }
}

@media (max-width: 980px) {
  :root { --maido-3n-header-height: 78px; }
  body.has-hero-header .site-header.site-header--hero {
    position: sticky !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
  }
  body.has-hero-header .site-header--hero .brand--center {
    position: static !important;
    transform: none !important;
  }
  body.has-hero-header .site-header--hero .brand__logo--full,
  body.has-hero-header .site-header--hero .brand img { max-height: 64px !important; }
  body.has-hero-header .site-header--hero .container.header-grid,
  body.has-hero-header .site-header--hero .container.header-grid--landing {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.maido-stage3k-home .landing-hero {
    height: calc(100vh - var(--maido-3n-header-height)) !important;
    min-height: 540px !important;
    background-image: url('/image/catalog/imgs/banner-mble-1.png') !important;
    background-size: cover !important;
    background-position: center center !important;
  }
  body.maido-stage3k-home .landing-hero__inner {
    left: 26px !important;
    right: 24px !important;
    bottom: clamp(74px, 13vh, 112px) !important;
    max-width: calc(100vw - 52px) !important;
  }
  body.maido-stage3k-home .landing-hero h1,
  body.maido-stage3k-home .landing-hero__title {
    font-size: clamp(24px, 7.2vw, 34px) !important;
    white-space: normal !important;
    line-height: 1.02 !important;
  }
}
