/* home-page — server-rendered light-DOM content styling (ported from the
   former shadow-scoped <style> block; selectors now root at the tag name
   instead of :host since the markup lives in light DOM). Shared design
   tokens (.text-blue, .text-cyan, .bg-blue, .bg-smoke, .uppercase, .x-gap,
   .top-gap) already live in /V1/css/main.css and are not redeclared here —
   this file restores one homepage-specific mobile padding tweak that the
   shared .x-gap breakpoints don't cover. */

home-page .x-gap {
  padding-left: 10%;
  padding-right: 10%;
}

/* ---------- B2B banner offset ----------
   b2b-banner is fixed at the very top of this page, above nav-bar. It
   reports its own rendered height via --b2b-banner-height (see
   B2bBanner.js) so nav-bar and the page body shift down by exactly that
   much, preserving the existing nav/hero overlap. The var() fallback
   (36px, matching .b2b-bar's single-line min-height) is a safety net for
   the brief window before B2bBanner's JS runs — or for clients where it
   never does — so a slow/blocked script produces a small gap at worst,
   never nav-bar hidden under the banner. */
body {
  padding-top: var(--b2b-banner-height, 36px);
}

nav-bar .main-header {
  top: var(--b2b-banner-height, 36px);
}

nav-bar .sub-header {
  top: calc(var(--b2b-banner-height, 36px) + 47px);
}

/* ---------- Hero ---------- */
home-page .hero {
  position: relative;
  overflow: hidden;
  min-height: calc(92vh + 4rem);
  padding-top: 4rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3rem;
  background:
    radial-gradient(circle at 85% 80%, rgba(52, 191, 255, 0.08), transparent 55%),
    linear-gradient(135deg, #001a35 0%, #002f5d 55%, #0a4a8a 100%);
  color: #fff;
}

home-page .hero::before,
home-page .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: home-float 14s ease-in-out infinite;
}

home-page .hero::before {
  width: 380px;
  height: 380px;
  background: rgba(80, 130, 220, 0.35);
  top: -120px;
  right: -80px;
}

home-page .hero::after {
  width: 260px;
  height: 260px;
  background: rgba(120, 180, 255, 0.18);
  bottom: -80px;
  left: 12%;
  animation-delay: -7s;
}

@keyframes home-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -30px) scale(1.08); }
}

home-page .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

/* ---------- Hero carousel (product images) ---------- */
home-page .hero-carousel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  opacity: 0;
  animation: home-rise 0.9s ease-out 0.55s forwards;
}
home-page .hcar-frame {
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  overflow: hidden;
}
home-page .hcar-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
home-page .hcar-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2rem);
}
/* ---------- Showcase frame (white mat + display-case shadow) ---------- */
home-page .hcar-photo {
  display: flex;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  padding: clamp(8px, 1.6vw, 16px);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 2px 5px rgba(0, 0, 0, 0.07),
    0 10px 20px rgba(0, 10, 30, 0.28),
    0 3px 8px rgba(0, 10, 30, 0.18);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
home-page .hcar-photo:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 2px 5px rgba(0, 0, 0, 0.07),
    0 22px 34px rgba(0, 10, 30, 0.36),
    0 8px 16px rgba(0, 10, 30, 0.22);
}
home-page .hcar-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}
home-page .hcar-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
home-page .hcar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
home-page .hcar-dot:hover { background: rgba(255, 255, 255, 0.5); }
home-page .hcar-dot.is-active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}
home-page .hcar-dot:focus-visible {
  outline: 2px solid rgb(52, 191, 255);
  outline-offset: 2px;
}

home-page .hero-eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: home-rise 0.7s ease-out 0.1s forwards;
}

home-page .hero-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: home-rise 0.8s ease-out 0.3s forwards;
}

home-page .hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: home-rise 0.8s ease-out 0.5s forwards;
}

home-page .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: home-rise 0.8s ease-out 0.7s forwards;
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

home-page .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  border: 1px solid transparent;
}
home-page .btn-cta i { transition: transform 0.25s ease; }
home-page .btn-cta:hover i { transform: translateX(4px); }

home-page .btn-cta.primary {
  background: #fff;
  color: #002f5d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
home-page .btn-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

home-page .btn-cta.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
home-page .btn-cta.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

home-page .scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: home-bob 2.5s ease-in-out infinite;
}
home-page .scroll-hint i { display: block; margin-top: 0.4rem; }
@keyframes home-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- Reveal-on-scroll ----------
   Default state is fully visible (crawlers / no-JS clients always see the
   real content). JS adds .reveal-armed right before it starts observing,
   which is what actually hides the element pending its scroll-triggered
   reveal — so the animation only ever runs for JS-enabled clients. */
home-page .reveal.reveal-armed {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
home-page .reveal.reveal-armed.in-view {
  opacity: 1;
  transform: translateY(0);
}
home-page .reveal[data-delay="1"] { transition-delay: 0.1s; }
home-page .reveal[data-delay="2"] { transition-delay: 0.2s; }
home-page .reveal[data-delay="3"] { transition-delay: 0.3s; }
home-page .reveal[data-delay="4"] { transition-delay: 0.4s; }
home-page .reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ---------- Section header ---------- */
home-page .section-eyebrow {
  display: inline-block;
  color: #002f5d;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}
home-page .section-title {
  color: #002f5d;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
home-page .section-intro {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
}

/* ---------- Brands ---------- */
home-page .brands { background: #fff; }
home-page .brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
home-page .brand-card {
  background: #fff;
  border: 1px solid rgba(0, 47, 93, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
home-page .brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 47, 93, 0.12);
  border-color: rgba(0, 47, 93, 0.25);
}
home-page .brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- About the Group ---------- */
home-page .about-group { background: rgb(245, 245, 245); }
home-page .about-inner {
  max-width: 780px;
  margin: 0 auto;
}
home-page .about-body {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.25rem;
}
home-page .about-body:last-child { margin-bottom: 0; }

/* ---------- Stat band (white cards on grey) ---------- */
home-page .stat-band {
  background: rgb(245, 245, 245);
  padding: 3rem 10%;
}
home-page .stat-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
home-page .sb-item {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 47, 93, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
home-page .sb-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 47, 93, 0.12);
}
home-page .sb-value {
  color: #002f5d;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem;
}
home-page .sb-label {
  color: #002f5d;
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.7;
}

/* ---------- Catalog band ---------- */
home-page .catalog {
  background: linear-gradient(135deg, #002f5d 0%, #0a4a8a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
home-page .catalog::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(120, 180, 255, 0.18), transparent 70%);
  top: -140px; right: -140px;
  pointer-events: none;
}
home-page .catalog::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(52, 191, 255, 0.10), transparent 70%);
  bottom: -120px; left: -120px;
  pointer-events: none;
}
home-page .catalog-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
home-page .catalog .section-eyebrow { color: #fff; opacity: 0.7; }
home-page .catalog-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
}
home-page .catalog-body {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0 0 1.75rem;
  font-size: 1rem;
  max-width: 52ch;
}
home-page .catalog-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  background: #fff;
  color: #002f5d;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
home-page .catalog-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
home-page .catalog-cta i { transition: transform 0.2s ease; }
home-page .catalog-cta:hover i { transform: translateY(2px); }
home-page .catalog-meta {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

/* ---------- Sustainability ---------- */
home-page .sustainability { background: #fff; }
home-page .sust-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
home-page .sust-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #002f5d, #0a4a8a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
home-page .sust-title {
  color: #002f5d;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  margin: 0;
}
home-page .sust-body {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

/* ---------- CTA band ---------- */
home-page .cta-band {
  background:
    radial-gradient(circle at 80% 50%, rgba(120, 180, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #002f5d, #0a4a8a);
  color: #fff;
  border-radius: 24px;
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 30px 60px rgba(0, 47, 93, 0.25);
}
home-page .cta-band-title { font-size: 1.8rem; font-weight: 800; margin: 0 0 0.5rem; }
home-page .cta-band-body { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  home-page .brands-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  home-page .brands-grid { grid-template-columns: repeat(2, 1fr); }
  home-page .stat-band { padding: 2.5rem 6%; }
  home-page .stat-band-inner { gap: 1rem; }
  home-page .cta-band { padding: 2.5rem 2rem; text-align: center; justify-content: center; }
  home-page .hero { grid-template-columns: 1fr; }
  home-page .hero-carousel { display: none; }
  home-page .hero-inner { max-width: 100%; }
  home-page .hero-cta { justify-content: center; }
  home-page .hero-title { text-align: center; }
  home-page .hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
  home-page .hero-eyebrow { text-align: center; display: block; margin-left: auto; margin-right: auto; }
}

@media (max-width: 576px) {
  home-page .brands-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
  }
  home-page .brand-card {
    grid-column: span 2;
    padding: 0.75rem;
    border-radius: 12px;
  }
  home-page .cat-row { padding: 0.75rem 1rem; }
  home-page .cat-row:hover { padding-left: 1.1rem; }
  home-page .cat-name { font-size: 0.9rem; }
  home-page .stat-band { padding: 2rem 6%; }
  home-page .stat-band-inner { gap: 0.6rem; }
  home-page .sb-item { padding: 1rem 0.5rem; border-radius: 12px; }
  home-page .sb-value { font-size: 1.4rem; margin: 0 0 0.25rem; }
  home-page .sb-label { font-size: 0.7rem; line-height: 1.2; }
  home-page .x-gap { padding-left: 6%; padding-right: 6%; }
  home-page .hero { min-height: auto; padding-top: 7rem; padding-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  home-page .hero::before,
  home-page .hero::after,
  home-page .scroll-hint { animation: none; }
  home-page .hcar-track { transition: none; }
  home-page .hcar-frame { transition: none; }
  home-page .hcar-photo { transition: none; }
  home-page .hero-eyebrow,
  home-page .hero-title,
  home-page .hero-sub,
  home-page .hero-cta {
    opacity: 1;
    animation: none;
  }
  home-page .reveal.reveal-armed {
    opacity: 1;
    transform: none;
    transition: none;
  }
  home-page .brand-card,
  home-page .btn-cta,
  home-page .cat-row { transition: none; }
}
