/*
  Maido Customs Pure PHP Rebuild - Stage 3P
  Fine tune after screenshot comparison:
  - Hero text smaller, less heavy, lower-left like old Maido.
  - Menu/contact fonts slightly smaller.
  - BMW/Toyota dropdown kept on-screen and reduced.
  - Logo remains true-centred, header remains over the hero.
*/

:root {
  --maido-3p-font-menu: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
  --maido-3p-font-hero: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
  --maido-3p-black: #050505;
}

/* Header/menu: reduce slightly and keep the old-site black condensed feel. */
body.has-hero-header .site-header--hero .container.header-grid,
body.has-hero-header .site-header--hero .container.header-grid--landing {
  padding-left: clamp(50px, 3.2vw, 66px) !important;
  padding-right: clamp(36px, 2.5vw, 52px) !important;
}

body.has-hero-header .site-header--hero .main-nav {
  gap: clamp(22px, 2.25vw, 40px) !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,
body.has-hero-header .site-header--hero .maido-stage3o-header-contact {
  font-family: var(--maido-3p-font-menu) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: var(--maido-3p-black) !important;
  text-transform: none !important;
  text-shadow: none !important;
}

body.has-hero-header .site-header--hero .nav-caret {
  font-size: 13px !important;
  margin-left: 7px !important;
  opacity: .65 !important;
}

body.has-hero-header .site-header--hero .header-actions {
  gap: clamp(15px, 1.35vw, 24px) !important;
}

body.has-hero-header .site-header--hero .maido-stage3o-header-contact {
  font-size: 15px !important;
  letter-spacing: .012em !important;
  white-space: nowrap !important;
}

body.has-hero-header .site-header--hero .header-icon {
  width: 28px !important;
  height: 32px !important;
}

/* Logo: keep centred but a little closer to the old live size. */
body.has-hero-header .site-header--hero .brand--center {
  top: 20px !important;
}
body.has-hero-header .site-header--hero .brand__logo--full,
body.has-hero-header .site-header--hero .brand img {
  max-height: 92px !important;
}

/* Top category dropdown: do not centre it off-screen. Make it smaller like old Journal. */
body.has-hero-header .maido-stage3k-menu-panel,
body .maido-stage3k-menu-panel {
  left: 0 !important;
  right: auto !important;
  transform: translateY(6px) !important;
  min-width: 330px !important;
  width: 360px !important;
  max-width: min(88vw, 390px) !important;
  border-radius: 0 !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.14) !important;
  overflow: visible !important;
}

body.has-hero-header .maido-stage3k-top-category:hover > .maido-stage3k-menu-panel,
body.has-hero-header .maido-stage3k-top-category:focus-within > .maido-stage3k-menu-panel,
body.has-hero-header .maido-stage3k-top-category.maido-stage3k-menu-open > .maido-stage3k-menu-panel,
body .maido-stage3k-top-category:hover > .maido-stage3k-menu-panel,
body .maido-stage3k-top-category:focus-within > .maido-stage3k-menu-panel,
body .maido-stage3k-top-category.maido-stage3k-menu-open > .maido-stage3k-menu-panel {
  transform: translateY(0) !important;
}

body .maido-stage3k-row {
  min-height: 48px !important;
  padding: 0 24px !important;
  gap: 12px !important;
}

body .maido-stage3k-menu-panel a,
body .maido-stage3k-menu-panel .maido-stage3k-category-link,
body .maido-stage3k-view-all {
  font-family: var(--maido-3p-font-menu) !important;
  font-size: 15px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  color: #111111 !important;
  letter-spacing: 0 !important;
}

body .maido-stage3k-child-arrow {
  font-size: 27px !important;
  color: #9a9a9a !important;
}

body .maido-stage3k-view-all {
  padding: 17px 24px !important;
}

body .maido-stage3k-tree ul {
  min-width: 260px !important;
  max-width: min(82vw, 320px) !important;
  border-radius: 0 !important;
}

/* Hero image/crop: keep old full-width visual proportions. */
body.maido-stage3k-home .landing-hero {
  height: clamp(650px, 47.8vw, 940px) !important;
  min-height: clamp(650px, 47.8vw, 940px) !important;
  max-height: 940px !important;
  background-size: cover !important;
  background-position: center center !important;
}

/* Hero wording: the previous pass was too large/bold/high. */
body.maido-stage3k-home .landing-hero__inner {
  left: clamp(70px, 5vw, 96px) !important;
  bottom: clamp(150px, 8.8vw, 184px) !important;
  max-width: none !important;
}

body.maido-stage3k-home .landing-hero h1,
body.maido-stage3k-home .landing-hero__title {
  font-family: var(--maido-3p-font-hero) !important;
  font-size: clamp(33px, 2.32vw, 46px) !important;
  line-height: .94 !important;
  font-weight: 700 !important;
  letter-spacing: -.022em !important;
  color: #ffffff !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.34) !important;
  white-space: nowrap !important;
}

/* Keep Shop Now hidden, in case older CSS tries to bring it back. */
body.maido-stage3k-home .landing-hero a[href*="shop"],
body.maido-stage3k-home .landing-hero a[href*="category"],
body.maido-stage3k-home .landing-hero .btn,
body.maido-stage3k-home .landing-hero .button,
body.maido-stage3k-home .landing-hero .hero-actions,
body.maido-stage3k-home .landing-hero .landing-hero__actions,
body.maido-stage3k-home .landing-hero .landing-hero__cta,
body.maido-stage3k-home .landing-hero .shop-now {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 1180px) {
  body.has-hero-header .site-header--hero .brand__logo--full,
  body.has-hero-header .site-header--hero .brand img { max-height: 78px !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,
  body.has-hero-header .site-header--hero .maido-stage3o-header-contact { font-size: 15px !important; }

  body.maido-stage3k-home .landing-hero__inner {
    left: 54px !important;
    bottom: clamp(126px, 13vw, 168px) !important;
  }
  body.maido-stage3k-home .landing-hero h1,
  body.maido-stage3k-home .landing-hero__title { font-size: clamp(30px, 3.4vw, 42px) !important; }
}

@media (max-width: 980px) {
  body .maido-stage3k-menu-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body.maido-stage3k-home .landing-hero__inner {
    left: 28px !important;
    right: 24px !important;
    bottom: clamp(82px, 13vh, 118px) !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;
  }
}
