/* ============================================================
   Home page specific styles
   Move all home.html inline styles here
   Load AFTER theme.css
   ============================================================ */

.hero-carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 620px;
  min-height: 620px;
  background: #0d1117;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
}

.hero-carousel-wrap .carousel,
.hero-carousel-wrap .carousel-inner,
.hero-carousel-wrap .carousel-item {
  height: 100%;
  min-height: 620px;
}

.hero-slide {
  position: relative;
  height: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 7s ease, filter 1.2s ease;
  filter: saturate(0.94) contrast(1.04) brightness(0.82);
}

.carousel-item.active .hero-slide-bg {
  transform: scale(1.04);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      92deg,
      rgba(7, 10, 14, 0.94) 0%,
      rgba(7, 10, 14, 0.88) 30%,
      rgba(7, 10, 14, 0.65) 56%,
      rgba(7, 10, 14, 0.32) 78%,
      rgba(7, 10, 14, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0) 30%,
      rgba(7, 10, 14, 0.28) 100%
    );
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(200, 23, 23, 0.18) 0%, rgba(200, 23, 23, 0) 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  background-position: left top, right -1px top, right top -1px;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 62%, transparent 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 62%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 4.5rem 0;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 360px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero-copy {
  max-width: 46rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker-line {
  width: 3.25rem;
  height: 1px;
  background: linear-gradient(90deg, #ff5757 0%, rgba(255, 255, 255, 0.18) 100%);
  flex: 0 0 auto;
}

.hero-title {
  font-size: clamp(2.9rem, 5.5vw, 5.4rem);
  line-height: 0.93;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.65),
    0 12px 40px rgba(0, 0, 0, 0.42);
}

.hero-text {
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  max-width: 39rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.6rem;
  line-height: 1.7;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  max-width: 44rem;
  margin-bottom: 2rem;
  margin-top: 0;
}

.hero-meta-item {
  padding: 1rem 1.1rem 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.hero-meta-label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta-item dd {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 0.95rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.hero-button:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-button-primary {
  background: linear-gradient(135deg, #c81717, #ff4949);
  box-shadow: 0 18px 34px rgba(200, 23, 23, 0.28);
}

.hero-button-primary:hover {
  box-shadow: 0 22px 40px rgba(200, 23, 23, 0.36);
}

.hero-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(13, 17, 23, 0.28);
  backdrop-filter: blur(10px);
}

.hero-button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.hero-aside {
  padding: 1.4rem 1.35rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.62), rgba(10, 13, 18, 0.38));
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.hero-aside-kicker {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.hero-aside-list li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.hero-aside-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #ff7a7a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-aside-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.hero-aside-copy {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity, transform;
  transform: scale(1.02);
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transform: scale(1);
}

.carousel-control-prev,
.carousel-control-next {
  width: 6%;
  z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(10, 13, 18, 0.45);
  background-size: 55% 55%;
  backdrop-filter: blur(8px);
}

.carousel-indicators {
  z-index: 4;
  justify-content: flex-start;
  margin-right: auto;
  margin-bottom: 1.8rem;
  margin-left: clamp(1.25rem, 4vw, 2.25rem);
}

.carousel-indicators [data-bs-target] {
  width: 2.75rem;
  height: 3px;
  border-radius: 0;
  border: 0;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.3);
}

.carousel-indicators .active {
  background-color: #fff;
}

.hover-lift {
  transition: all 0.25s ease;
  cursor: pointer;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.home-intro,
.home-proof {
  position: relative;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.home-intro::before,
.home-proof::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, rgba(200, 23, 23, 0.06) 0%, rgba(200, 23, 23, 0) 30%);
  background-size: 64px 64px, 64px 64px, auto;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 82%);
  pointer-events: none;
}

.home-intro > .container,
.home-proof > .container {
  position: relative;
  z-index: 1;
}

.home-section-kicker {
  display: inline-block;
  color: #c81717;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.home-section-title {
  color: #0f172a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.home-section-text {
  color: #4f5663;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 760px;
}

.home-section-text-centered {
  margin-left: auto;
  margin-right: auto;
}

.home-intro-copy,
.home-highlight-card,
.home-feature-card,
.home-proof-card,
.home-cta {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94));
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.06);
}

.home-intro-copy,
.home-highlight-card,
.home-feature-card,
.home-cta {
  padding: 2rem;
}

.home-cta {
  text-align: center;
  padding: 2.75rem 2.5rem;
}

.home-cta-inner {
  max-width: 52rem;
  margin: 0 auto;
}

.home-cta-kicker {
  margin-bottom: 0.85rem;
}

.home-cta-title {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.home-cta-text {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.home-cta-links {
  justify-content: center;
}

.home-intro-copy,
.home-highlight-card {
  height: 100%;
}

.home-highlight-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-highlight-body {
  display: grid;
  gap: 0.75rem;
}

.home-highlight-type {
  color: #697386;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-highlight-brand {
  margin-bottom: 0.2rem;
  font-size: 1.95rem;
  line-height: 1;
}

.home-highlight-card .home-section-text {
  max-width: 34rem;
}

.home-highlight-card .home-card-link {
  margin-top: 1.5rem;
  align-self: flex-start;
}

.home-feature-topline {
  color: #c81717;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.home-feature-card h3 {
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.home-feature-card p {
  color: #4f5663;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.home-text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  margin-top: 1.25rem;
}

.home-text-links-centered {
  justify-content: center;
}

.home-text-links a,
.home-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #c81717;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: rgba(200, 23, 23, 0.35);
  text-underline-offset: 0.24em;
}

.home-text-links a::after,
.home-card-link::after {
  content: ">";
  font-size: 0.95em;
  transition: transform 0.2s ease;
}

.home-text-links a:hover,
.home-card-link:hover {
  color: #9f1111;
  text-decoration-color: rgba(159, 17, 17, 0.7);
}

.home-text-links a:hover::after,
.home-card-link:hover::after {
  transform: translateX(3px);
}

.home-proof-card {
  padding: 1.6rem;
  display: grid;
  gap: 0.55rem;
  height: 100%;
}

.home-proof-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.home-proof-card p {
  margin: 0;
  color: #4f5663;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .hero-carousel-wrap,
  .hero-carousel-wrap .carousel,
  .hero-carousel-wrap .carousel-inner,
  .hero-carousel-wrap .carousel-item,
  .hero-slide {
    height: 620px;
    min-height: 620px;
  }

  .hero-carousel-wrap {
    border-radius: 1rem;
  }

  .hero-content {
    padding: 3rem 0 3.5rem;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .hero-copy,
  .hero-meta {
    max-width: none;
  }

  .hero-kicker {
    gap: 0.7rem;
    letter-spacing: 0.1em;
  }

  .hero-kicker-line {
    width: 2.4rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-button {
    width: 100%;
  }

  .hero-aside {
    display: none;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 12%;
  }

  .carousel-indicators {
    margin-left: 1rem;
    margin-bottom: 1rem;
  }

  .carousel-indicators [data-bs-target] {
    width: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-carousel-wrap,
  .hero-carousel-wrap .carousel,
  .hero-carousel-wrap .carousel-inner,
  .hero-carousel-wrap .carousel-item,
  .hero-slide {
    height: 680px;
    min-height: 680px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-meta {
    max-width: none;
  }

  .hero-aside {
    max-width: 34rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }
}
