/**
 * Homepage — fresh creative look with new topnav
 */

body.home {
  --home-max: 1180px;
}

body.home #page,
body.home .site-front {
  background: transparent;
  overflow-x: clip;
}

body.home .asw-hero-section.top-header,
body.home .section.top-header.asw-hero-section {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 640px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
}

body.home .asw-hero-section .home-video-wrapper,
body.home .asw-hero-section .home-video-wrapper.front-full {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.home .asw-hero-section .home-video-wrapper video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  pointer-events: none !important;
}

body.home .asw-hero-section .home-video-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 10% 20%, rgba(142, 171, 255, 0.3), transparent 58%),
    radial-gradient(ellipse 55% 45% at 90% 80%, rgba(225, 29, 72, 0.26), transparent 55%),
    linear-gradient(115deg, rgba(8, 12, 24, 0.78) 0%, rgba(10, 16, 34, 0.4) 48%, rgba(8, 12, 24, 0.8) 100%);
}

body.home .asw-hero-section .front-full-inner {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: calc(var(--asw-topnav-h, 72px) + 24px) clamp(20px, 5vw, 64px) clamp(56px, 10vh, 96px) !important;
  box-sizing: border-box !important;
  pointer-events: none;
}

body.home .asw-hero-content {
  max-width: min(880px, 100%);
  pointer-events: auto;
  background: none !important;
}

.asw-hero-brand {
  margin: 0 0 14px !important;
  font-family: var(--asw-font-display) !important;
  font-size: clamp(3.2rem, 10vw, 6.5rem) !important;
  font-weight: 700 !important;
  line-height: 0.9 !important;
  letter-spacing: -0.045em !important;
  color: #fff !important;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.asw-hero-headline,
body.home .asw-hero-content h1.asw-hero-headline {
  margin: 0 !important;
  max-width: 18ch;
  font-family: var(--asw-font-display) !important;
  font-size: clamp(1.45rem, 3.6vw, 2.45rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: rgba(255, 255, 255, 0.96) !important;
  background: none !important;
}

.asw-hero-lead {
  max-width: 34rem;
  margin: 16px 0 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(1.02rem, 2vw, 1.22rem) !important;
  line-height: 1.5 !important;
  background: none !important;
}

body.home .asw-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px !important;
}

body.home .asw-hero-cta a {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.22s ease, background 0.22s ease;
}

body.home .asw-btn-primary {
  background: var(--asw-brand) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(225, 29, 72, 0.36);
}

body.home .asw-btn-primary:hover {
  transform: translateY(-2px);
  background: var(--asw-brand-hover) !important;
}

body.home .asw-btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

body.home .asw-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2) !important;
}

body.home .asw-hero-content > * {
  animation: aswHomeRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
body.home .asw-hero-brand { animation-delay: 0.05s; }
body.home .asw-hero-headline { animation-delay: 0.16s; }
body.home .asw-hero-lead { animation-delay: 0.28s; }
body.home .asw-hero-cta { animation-delay: 0.4s; }

@keyframes aswHomeRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

body.home .home-more-down {
  z-index: 4 !important;
}

body.home .asw-home-services,
body.home .asw-impact,
body.home .asw-home-band,
body.home .asw-home-cta {
  position: relative;
  z-index: 2;
  clear: both;
}

body.home .asw-home-services,
body.home .asw-home-band,
body.home .asw-home-cta {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 64px);
}

body.home .asw-home-services-inner {
  max-width: 1180px;
}

body.home .asw-home-services-track {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: 1fr !important;
  grid-auto-columns: unset !important;
  overflow: visible !important;
  gap: 16px !important;
  padding: 0 !important;
}

@media (min-width: 640px) {
  body.home .asw-home-services-track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (min-width: 980px) {
  body.home .asw-home-services-track {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

body.home .asw-home-svc-card {
  min-height: 270px;
  height: 100%;
  border-radius: 18px !important;
  padding: 22px 20px !important;
}

body.home .asw-home-svc-card h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.22rem) !important;
  line-height: 1.28 !important;
}

body.home .asw-home-svc-card p {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
}

body.home .asw-home-svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(15, 20, 25, 0.1);
}

body.home .asw-home-band-inner,
body.home .asw-impact-inner,
body.home .asw-home-cta-inner {
  max-width: var(--home-max);
  margin: 0 auto;
}

body.home .asw-home-services-title,
body.home .asw-svc-section-head h2,
body.home .asw-impact h2,
body.home .asw-home-cta h2 {
  font-size: clamp(2.15rem, 4.8vw, 3.3rem);
  line-height: 1.08;
}

body.home .asw-home-services-lead {
  white-space: normal;
  max-width: 36rem;
}

body.home .asw-impact {
  overflow: hidden;
  margin: 0;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 64px);
  background: var(--asw-gradient-panel);
}

body.home .asw-impact h2 {
  color: #fff !important;
}

body.home .asw-impact-lead {
  max-width: 40rem;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.86);
}

body.home .asw-impact-item {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body.home .asw-impact-item .asw-stat {
  font-family: var(--asw-font-display) !important;
  color: #ff7a93;
}

body.home .asw-home-community {
  color: #fff;
  background: var(--asw-gradient-panel);
}

body.home .asw-home-community .asw-svc-section-head h2,
body.home .asw-home-community .asw-svc-section-head p {
  color: #fff;
}

body.home .asw-community-card {
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

body.home .asw-home-cta {
  text-align: center;
}

body.home .asw-home-cta p {
  max-width: 34rem;
  margin: 0 auto 26px;
  color: var(--asw-muted);
}

body.home .asw-home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

body.home .asw-home-cta-actions a {
  display: inline-flex;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

body.home .asw-home-cta-actions .asw-btn-ghost {
  background: #fff;
  color: var(--asw-ink) !important;
  border: 1px solid var(--asw-line);
}

@media (max-width: 640px) {
  .asw-hero-brand {
    font-size: clamp(2.7rem, 13vw, 3.6rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .asw-hero-content > * {
    animation: none !important;
  }
}
