/* SCREEN 01 homepage presentation layer.
   Business data and interaction hooks remain in index.html/app.js. */

:root {
  --screen01-ink: #1d130d;
  --screen01-brown: #2d1c12;
  --screen01-cream: #f7f0e5;
  --screen01-paper: #fffaf1;
  --screen01-gold: #c68a32;
  --screen01-line: rgba(85, 52, 28, .16);
}

body:has(#home.active) {
  background:
    radial-gradient(circle at 50% 0, rgba(213, 166, 98, .2), transparent 31rem),
    #33271e;
  color: var(--screen01-ink);
}

body:has(#home.active) .announcement-bar { display: none; }

body:has(#home.active) .site-header {
  position: relative;
  inset: auto;
  z-index: 30;
  width: min(1340px, calc(100% - 16px));
  min-height: 66px;
  margin: 8px auto 0;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(100deg, #26180f, #160f0a 68%, #21150e);
  box-shadow: 0 20px 55px rgba(10, 6, 4, .23);
}

body:has(#home.active) .site-header .header-main {
  width: 100%;
  max-width: none;
  min-height: 66px;
  padding: 0 28px;
  gap: 20px;
}

body:has(#home.active) .brand-button {
  min-width: 205px;
  padding: 0;
  color: #f7d79c;
  text-align: left;
}

body:has(#home.active) .brand-button img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 0;
  background: transparent;
}

body:has(#home.active) .brand-copy strong {
  color: #f4d18f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body:has(#home.active) .brand-copy small {
  color: rgba(255, 246, 229, .75);
  font-size: 10px;
}

body:has(#home.active) .primary-nav {
  position: static;
  margin-left: auto;
  background: transparent;
  box-shadow: none;
}

body:has(#home.active) .primary-nav .nav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
}

body:has(#home.active) .primary-nav button,
body:has(#home.active) .header-category-nav button {
  min-height: 36px;
  padding: 0 10px;
  color: rgba(255, 249, 238, .88);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

body:has(#home.active) .primary-nav button:hover,
body:has(#home.active) .primary-nav button.is-active {
  color: #f1bd61;
  background: transparent;
}

body:has(#home.active) .header-category-nav { display: none; }

body:has(#home.active) .header-search {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

body:has(#home.active) .header-search input,
body:has(#home.active) .search-label { display: none; }

body:has(#home.active) .header-search button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  color: #fff8ed;
  border: 0;
  background: transparent;
  font-size: 22px;
}

body:has(#home.active) .header-actions { gap: 2px; }

body:has(#home.active) .header-action {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #fff8ed;
  background: transparent;
  border-radius: 50%;
}

body:has(#home.active) .header-action:hover { background: rgba(255, 255, 255, .08); }
body:has(#home.active) .header-action > span:not(.action-icon) { display: none; }
body:has(#home.active) .header-action .action-icon { font-size: 20px; }

body:has(#home.active) .cart-action { position: relative; }
body:has(#home.active) .cart-action b {
  position: absolute;
  top: -1px;
  right: -1px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #1c120c;
  border-radius: 999px;
  color: #432b16;
  background: #e8aa45;
  font-size: 10px;
}

body:has(#home.active) #home {
  width: min(1340px, calc(100% - 16px));
  margin: 0 auto 34px;
  padding: 0;
  border-radius: 0 0 18px 18px;
  background: var(--screen01-cream);
  box-shadow: 0 28px 70px rgba(10, 6, 4, .25);
  overflow: clip;
}

body:has(#home.active) #home > .home-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

body:has(#home.active) .home-hero-stack { margin: 0; }
body:has(#home.active) #campaignSlider { display: none !important; }
body:has(#home.active) .home-hero-stack.has-managed-slider #campaignSlider {
  display: block !important;
}
body:has(#home.active) .home-hero-stack.has-managed-slider .screen01-hero-presentation {
  display: none;
}

body:has(#home.active) .screen01-hero-presentation {
  position: relative;
  width: 100%;
  aspect-ratio: 2.12 / 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #2b170d;
}

body:has(#home.active) .screen01-hero-presentation > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body:has(#home.active) .screen01-hero-cta {
  position: absolute;
  left: 8.8%;
  top: 72.5%;
  width: 20.5%;
  height: 11.5%;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}

body:has(#home.active) .screen01-hero-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

body:has(#home.active) .trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  min-height: 78px;
  margin: 0;
  padding: 0 34px;
  border: 0;
  border-bottom: 1px solid var(--screen01-line);
  border-radius: 0;
  background: #fbf6ed;
  box-shadow: none;
}

body:has(#home.active) .trust-strip article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 18px;
  border: 0;
}

body:has(#home.active) .trust-strip article > span {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #9a6220;
  background: #f2dfbd;
  font-size: 17px;
}

body:has(#home.active) .trust-strip strong {
  display: block;
  margin-bottom: 3px;
  color: #2b1d14;
  font-size: 12px;
  font-weight: 700;
}

body:has(#home.active) .trust-strip small {
  display: block;
  color: #6f6257;
  font-size: 10px;
  line-height: 1.35;
}

body:has(#home.active) .home-section {
  margin: 0;
  padding: 32px 46px 36px;
  border: 0;
  border-radius: 0;
  background: #fffaf1;
  box-shadow: none;
}

body:has(#home.active) .home-categories { padding-bottom: 34px; }

body:has(#home.active) .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
}

body:has(#home.active) .section-heading .eyebrow { display: none; }

body:has(#home.active) .section-heading h2 {
  margin: 0;
  color: #25170f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
}

body:has(#home.active) .section-heading .text-link {
  color: #2e2118;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

body:has(#home.active) .category-showcase {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

body:has(#home.active) .category-tile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #21150e;
  background: transparent;
  box-shadow: none;
  text-align: center;
  text-shadow: none;
  overflow: visible;
}

body:has(#home.active) .category-tile::after { display: none; }
body:has(#home.active) .category-tile:hover { transform: translateY(-2px); }

body:has(#home.active) .category-photo {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  min-height: 0;
  margin: 0 0 9px;
  border: 1px solid rgba(95, 56, 29, .12);
  border-radius: 8px;
  overflow: hidden;
  background: #eadbc8;
  background-position: center;
  background-size: cover;
  box-shadow: 0 5px 14px rgba(54, 33, 19, .08);
}

body:has(#home.active) .category-copy {
  display: block;
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #21150e;
  text-shadow: none;
}

body:has(#home.active) .category-tile strong {
  display: block;
  position: static;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: #21150e;
  text-shadow: none;
}

body:has(#home.active) .category-tile small { display: none; }

body:has(#home.active) .home-editorial.brand-story {
  position: relative;
  display: grid;
  grid-template-columns: 43% 57%;
  height: 330px;
  min-height: 330px;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  color: #fff7e9;
  background: #392015;
  box-shadow: none;
}

body:has(#home.active) .brand-story .home-editorial-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 42px 54px;
  background: linear-gradient(90deg, rgba(45, 24, 14, .98), rgba(45, 24, 14, .86));
}

body:has(#home.active) .brand-story .home-editorial-copy .eyebrow { display: none; }

body:has(#home.active) .brand-story h2 {
  max-width: 420px;
  margin: 0 0 14px;
  color: #fff6e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.3vw, 52px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.035em;
}

body:has(#home.active) .brand-story p {
  max-width: 390px;
  margin: 0 0 20px;
  color: rgba(255, 247, 234, .84);
  font-size: 14px;
  line-height: 1.5;
}

body:has(#home.active) .brand-story .light-button {
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(255, 230, 190, .42);
  border-radius: 999px;
  color: #fff6e8;
  background: #b77727;
  font-size: 12px;
  font-weight: 600;
}

body:has(#home.active) .brand-story .home-editorial-media {
  position: relative;
  height: 330px;
  min-height: 330px;
  border-radius: 0;
  background-position: center;
  background-size: cover;
}

body:has(#home.active) .brand-story .home-editorial-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(49, 25, 14, .75), transparent 42%);
  pointer-events: none;
}

body:has(#home.active) .brand-story .home-editorial-media img {
  display: none;
}

body:has(#home.active) .home-showcase,
body:has(#home.active) #homeDiscountedSection,
body:has(#home.active) #homeNewSection { background: #f7f0e5; }

body:has(#home.active) .product-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:has(#home.active) .product-rail .product-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(86, 53, 30, .15);
  border-radius: 9px;
  background: #fffaf3;
  box-shadow: 0 6px 18px rgba(63, 39, 23, .08);
}

body:has(#home.active) .product-rail .product-card img,
body:has(#home.active) .product-rail .product-image {
  aspect-ratio: 1.08 / 1;
  border-radius: 6px;
}

body:has(#home.active) .product-rail .product-card h3 {
  min-height: 0;
  margin: 9px 2px 5px;
  font-size: 14px;
  line-height: 1.3;
}

body:has(#home.active) .product-rail .card-code,
body:has(#home.active) .product-rail .card-availability,
body:has(#home.active) .product-rail .card-category { display: none; }

body:has(#home.active) .product-rail .card-price { font-size: 17px; }

body:has(#home.active) .product-rail .card-actions .primary,
body:has(#home.active) .product-rail .card-actions .secondary {
  min-height: 36px;
  border-radius: 5px;
  font-size: 12px;
}

body:has(#home.active) .home-personalization,
body:has(#home.active) .home-dealer-callout { margin: 0; border-radius: 0; }

body:has(#home.active) .home-personalization {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 340px;
  color: #fff7ea;
  background: #322016;
}

body:has(#home.active) .home-personalization .home-editorial-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 44px 52px;
}

body:has(#home.active) .home-personalization h2 {
  margin: 8px 0 14px;
  color: #fff8ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 400;
}

body:has(#home.active) .home-personalization p {
  max-width: 470px;
  color: rgba(255, 248, 236, .78);
}

body:has(#home.active) .home-personalization .mini-product-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(145px, 1fr);
  min-height: 340px;
  gap: 2px;
  background: #24150e;
}

body:has(#home.active) .home-personalization .mini-product {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

body:has(#home.active) .home-personalization .mini-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

body:has(#home.active) .home-personalization .mini-product div,
body:has(#home.active) .home-personalization .mini-product b { display: none; }

body:has(#home.active) .home-dealer-callout {
  padding: 32px 46px;
  border: 0;
  border-top: 1px solid rgba(94, 59, 34, .14);
  background: #fffaf1;
}

body:has(#home.active) + .site-footer { display: none; }
body:has(#home.active) .site-footer { display: none; }

@media (max-width: 1000px) {
  body:has(#home.active) .site-header { width: min(100% - 20px, 760px); margin-top: 10px; }
  body:has(#home.active) .site-header .header-main { padding: 0 18px; }
  body:has(#home.active) .primary-nav { display: none; }
  body:has(#home.active) .primary-nav.is-open { display: block; }
  body:has(#home.active) .mobile-menu-toggle { display: inline-flex; color: #fff8ed; }
  body:has(#home.active) .brand-button { min-width: 0; margin-right: auto; }
  body:has(#home.active) #home { width: min(100% - 20px, 760px); }
  body:has(#home.active) .trust-strip { padding: 0 12px; }
  body:has(#home.active) .trust-strip article { padding-inline: 10px; }
  body:has(#home.active) .category-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body:has(#home.active) { background: #f5eee4; }
  body:has(#home.active) .site-header {
    width: 100%;
    min-height: 58px;
    margin: 0;
    border-radius: 0;
    background: #fffaf3;
    box-shadow: 0 2px 14px rgba(50, 30, 18, .1);
  }
  body:has(#home.active) .site-header .header-main { min-height: 58px; padding: 0 13px; gap: 7px; }
  body:has(#home.active) .site-header .header-main {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px auto;
  }
  body:has(#home.active) .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 34px;
    height: 34px;
    color: #21150e;
  }
  body:has(#home.active) .mobile-menu-toggle span {
    display: block;
    width: 17px;
    height: 1.5px;
    margin: 0;
    border-radius: 999px;
    background: #21150e;
  }
  body:has(#home.active) .brand-copy { display: flex !important; min-width: 0; }
  body:has(#home.active) .brand-button img { width: 31px; height: 31px; }
  body:has(#home.active) .brand-copy strong { color: #21150e; font-size: 13px; }
  body:has(#home.active) .brand-copy small { color: #6a5c50; font-size: 7px; }
  body:has(#home.active) .header-search { width: 34px; min-width: 34px; height: 34px; }
  body:has(#home.active) .header-search button,
  body:has(#home.active) .header-action { width: 34px; min-width: 34px; height: 34px; color: #21150e; }
  body:has(#home.active) #dealerLoginOpen { display: none; }
  body:has(#home.active) #home { width: 100%; margin: 0; border-radius: 0; box-shadow: none; }
  body:has(#home.active) .screen01-hero-presentation { aspect-ratio: 1.25 / 1; }
  body:has(#home.active) .screen01-hero-presentation > img {
    width: 100%;
    max-width: none;
    object-position: left center;
    transform: none;
  }
  body:has(#home.active) .screen01-hero-cta { left: 8%; top: 72%; width: 62%; height: 12%; }
  body:has(#home.active) .trust-strip {
    grid-template-columns: repeat(3, 1fr);
    min-height: 70px;
    padding: 0 4px;
  }
  body:has(#home.active) .trust-strip article { flex-direction: column; gap: 4px; padding: 8px 3px; text-align: center; }
  body:has(#home.active) .trust-strip article > span { flex-basis: 28px; width: 28px; height: 28px; font-size: 13px; }
  body:has(#home.active) .trust-strip strong { font-size: 9px; }
  body:has(#home.active) .trust-strip small { display: none; }
  body:has(#home.active) .trust-strip article.trust-desktop-only { display: none !important; }
  body:has(#home.active) .home-section { padding: 24px 16px 28px; }
  body:has(#home.active) .section-heading { margin-bottom: 14px; }
  body:has(#home.active) .section-heading h2 { font-size: 18px; }
  body:has(#home.active) .section-heading .text-link { font-size: 10px; }
  body:has(#home.active) .category-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body:has(#home.active) .category-photo { aspect-ratio: 1.35 / 1; margin-bottom: 6px; }
  body:has(#home.active) .home-editorial.brand-story { grid-template-columns: 1fr; min-height: 0; }
  body:has(#home.active) .brand-story .home-editorial-copy { min-height: 205px; padding: 30px 24px; }
  body:has(#home.active) .brand-story h2 { max-width: 270px; font-size: 34px; }
  body:has(#home.active) .brand-story p { font-size: 12px; }
  body:has(#home.active) .brand-story .home-editorial-media { min-height: 190px; }
  body:has(#home.active) .brand-story .home-editorial-media img { min-height: 190px; }
  body:has(#home.active) .product-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body:has(#home.active) .home-personalization { grid-template-columns: 1fr; }
  body:has(#home.active) .home-personalization .mini-product-stack { min-height: 260px; }
  body:has(#home.active) .home-personalization .home-editorial-copy { padding: 30px 22px; }
  body:has(#home.active) .home-personalization h2 { font-size: 32px; }
  body:has(#home.active) .home-dealer-callout { padding: 26px 18px; }
}
