/* =============================================================
   HOME PAGE — scoped under .asl-home
   ============================================================= */

/* ---- 1. Hero ---- */
.asl-home-hero{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: url('images/home-security-hero.webp') center/cover no-repeat;
  background-color: var(--asl-navy-deep);
  color: var(--asl-white);
  padding: clamp(72px, 11vw, 128px) 0 clamp(56px, 8vw, 96px);
}
/* background video (falls back to the photo above if it can't play) */
.asl-home-hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.asl-home-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(10,18,51,.92) 0%, rgba(17,27,77,.78) 42%, rgba(17,27,77,.45) 68%, rgba(17,27,77,.25) 100%);
}
@media (prefers-reduced-motion: reduce){
  .asl-home-hero__video{ display: none; }
}
.asl-home-hero__inner{
  max-width: var(--asl-maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.asl-home-hero__content{
  max-width: 620px;
}
.asl-home-hero__tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--asl-sky);
  border: 1px solid rgba(140,200,237,.35);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.asl-home-hero__tag svg{ width: 13px; height: 13px; }
.asl-home-hero__title{
  font-family: var(--asl-font-head);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0 0 20px;
}
.asl-home-hero__lede{
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  color: #CBD4EC;
  max-width: 52ch;
  margin: 0 0 34px;
}
.asl-home-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.asl-home-hero .asl-btn-ghost{
  color: var(--asl-white) !important;
  border-color: rgba(255,255,255,.55);
}
.asl-home-hero .asl-btn-ghost:hover{
  background: var(--asl-white);
  color: var(--asl-navy) !important;
}

/* ---- 2. Intro / built around your needs ---- */
.asl-home-intro{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--asl-gap);
  align-items: center;
}
.asl-home-intro__media img{
  border-radius: var(--asl-radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.asl-home-intro__points{
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.asl-home-intro__points li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--asl-text);
}
.asl-home-intro__points svg{
  width: 18px; height: 18px;
  color: var(--asl-royal);
  flex: none;
  margin-top: 2px;
}

/* ---- 3. Services overview ---- */
.asl-home-services__head{
  max-width: 640px;
  margin: 0 0 44px;
}
.asl-home-service{
  border: 1px solid var(--asl-line);
  border-radius: var(--asl-radius);
  padding: 30px 26px;
  background: var(--asl-white);
  transition: border-color .22s ease, transform .22s ease;
}
.asl-home-service:hover{
  border-color: var(--asl-royal);
  transform: translateY(-3px);
}
.asl-home-service__num{
  font-family: var(--asl-font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--asl-sky);
  background: var(--asl-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--asl-radius);
  margin-bottom: 18px;
}
.asl-home-service p{
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--asl-text-mute);
  margin: 0;
}

/* ---- 4. Why Affinity Security ---- */
.asl-home-why{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--asl-gap);
}
.asl-home-why__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.asl-home-why__list li{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.asl-home-why__list li:last-child{ border-bottom: 0; padding-bottom: 0; }
.asl-home-why__list svg{
  width: 20px; height: 20px;
  color: var(--asl-sky);
  flex: none;
  margin-top: 2px;
}
.asl-home-why__list b{
  display: block;
  font-family: var(--asl-font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--asl-white);
  margin-bottom: 4px;
}
.asl-home-why__list span{
  font-size: 14.5px;
  color: #C7D0E8;
  line-height: 1.6;
}
.asl-home-why__media img{
  border-radius: var(--asl-radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: 22% center;   /* keep the guard's face in frame */
  width: 100%;
}

/* ---- 5. CTA band ---- */
.asl-home-cta{
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: var(--asl-radius);
  background: var(--asl-navy);
  padding: clamp(36px, 5vw, 56px);
}
.asl-home-cta__head{ max-width: 560px; }
.asl-home-cta__contacts{
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.asl-home-cta__contacts a{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--asl-white);
}
.asl-home-cta__contacts svg{ width: 17px; height: 17px; color: var(--asl-sky); }

/* ---- 6. Service area ---- */
.asl-home-area__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.asl-home-area__grid div{
  border: 1px solid var(--asl-line);
  border-radius: var(--asl-radius);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--asl-navy);
  background: var(--asl-white);
}

/* ---- mobile refinements ---- */
@media (max-width: 719px){
  .asl-home-hero{ padding: 64px 0 48px; }
  .asl-home-hero::before{
    background: linear-gradient(180deg, rgba(10,18,51,.6) 0%, rgba(10,18,51,.82) 55%, rgba(10,18,51,.94) 100%);
  }
  .asl-home-hero__actions .asl-btn{ width: 100%; }
  .asl-home-cta .asl-home-cta__contacts .asl-btn{ width: 100%; }
}

@media (min-width: 720px){
  .asl-home-intro{ grid-template-columns: 1fr 1fr; }
  .asl-home-why{ grid-template-columns: 1.1fr 1fr; }
  .asl-home-cta{ flex-direction: row; align-items: center; }
  .asl-home-area__grid{ grid-template-columns: repeat(4, 1fr); }
}
