:root{
  --gold:#FFBF00;
  --teal:#048BA8;
  --green:#5B8C5A;
  --coral:#E3655B;
  --purple:#3D215F;
  --deep:#022429;

  --font-body:"Overpass", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display:"Black Ops One", system-ui, sans-serif;

  --max: 1280px;
  --pad: clamp(16px, 3vw, 34px);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:var(--font-body);
  color:#fff;
  background:#000;
  overflow-x:hidden;
  position:relative;
}

a{ color:inherit; }

.page-bg{
  position:fixed;
  inset:0;
  z-index:-5;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("images/pattern.png");
  background-repeat: repeat, repeat;
}

.container{
  width:min(var(--max), 100%);
  margin:0 auto;
  padding: var(--pad);
}

.section__title{
  margin:0 0 18px 0;
  font-family:var(--font-display);
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: .6px;
}

/* =========================
   1) HEAD
   ========================= */
.head{
  position:relative;
  padding-top: 28px;
  padding-bottom: 58px; /* room for video overlap */
}

.head__stars{
  position:absolute;
  top: 18px;
  right: 22px;
  width: 92px;
  height:auto;
  opacity: .95;
  pointer-events:none;
}

.head__inner{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: clamp(18px, 3vw, 28px);
  align-items:start;
}

.head__logo{
  width: min(550px, 70vw);
  height:auto;
  display:block;
}

.head__video{
  width: min(600px, 56vw);
  max-width: 760px;
  display:block;
  border-radius: 6px;
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.45);
  transform: translateY(18px); /* overlap into hero */
  text-decoration:none;
}

.head__video{
  background: rgba(0,0,0,.25); /* subtle fill behind video */
}

.head__video:focus-within{
  outline: 2px solid rgba(255,191,0,.65);
  outline-offset: 4px;
  border-radius: 8px;
}

.head__videoMedia{
  width:100%;
  height:100%;
  display:block;

  /* keeps the same “cropped nicely” behavior as your placeholder image */
  object-fit: cover;

  /* removes tiny gaps + ensures the rounded container clips correctly */
  border:0;
}

/* =========================
   2) HERO (Army-lead + teal overlay)
   ========================= */
.hero{
  position:relative;
  text-align:center;
  padding: clamp(54px, 6vw, 84px) 0 clamp(44px, 5vw, 70px);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(rgba(2,36,41,0.85), rgba(2,36,41,0.85)),
    url("images/Army-lead.png");
  background-size: cover, cover;
  background-position:center, center;
  background-repeat:no-repeat;
}

.hero__headline{
  margin: 10px auto 18px;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: .8px;
  text-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.hero__branches{
  width: min(720px, 86vw);
  height:auto;
  display:block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.35));
}

/* =========================
   3) DOMAIN (solid green)
   ========================= */
.domain{
  background: var(--green);
}

.domain__inner{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(18px, 3vw, 40px);
  align-items:center;
}

.domain p{
  margin: 0 0 18px 0;
  line-height: 1.6;
  max-width: 60ch;
/* Increased for accessibility */
  font-size: 22px;     /* was ~15–18; now “large text” */
  font-weight: 700;    /* helps readability on color fills */
  color: rgba(255,255,255,0.98);
}

.domain__emblem{
  width: min(500px, 85%);
  aspect-ratio:1/1;
  margin-left:auto;
  background: url("images/VA-Emblem.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.22));
}

/* =========================
   4) PROBLEM (pattern + teal overlay)
   ========================= */
.problem{
  position:relative;
  padding: clamp(44px, 6vw, 70px) 0;
}

.problem::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(rgba(2,36,41,0.70), rgba(2,36,41,0.70));
  background-repeat: repeat, repeat;
}

.problem__grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items:start;
}

.problem__photo{
  border-radius: 0;
  min-height: 420px;
  background: url("images/unhoused-vet.png") center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.problem__list{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset: item;
}

.problem__list li{
  counter-increment: item;
  display:grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding: 14px 0;
  line-height:1.45;
  font-size: clamp(14px, 1.05vw, 18px);
  color: rgba(255,255,255,.95);
}

.problem__list li::before{
  content: counter(item, decimal-leading-zero) ".";
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 40px;
  line-height:1;
  padding-top: 2px;
}

/* =========================
   5) SOLUTION (Va-Home-Loan + black overlay)
   ========================= */
.solution{
  position:relative;
  padding: clamp(44px, 6vw, 78px) 0;
}

.solution::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)),
    url("images/Va-Home-Loan.png");
  background-size: cover, cover;
  background-position:center, center;
  background-repeat:no-repeat;
}

.solution__header{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-bottom: 14px;
}

.solution__name{
  font-family: var(--font-display);
  color: var(--gold);
  font-size: clamp(40px, 4vw, 64px);
  letter-spacing: 1px;
}

.solution__grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items:start;
}

.solution__chief{
  margin: 0 auto;  
  width: min(420px, 95%);
  aspect-ratio: 1 / 1;
  background: url("images/chiefbud.png") left center / contain no-repeat;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.5));
}

.solution__bullets{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap: 22px;
  line-height:1.45;
  font-size: clamp(15px, 1.1vw, 20px);
  font-weight: 600;
}

.solution__bullets li{
  position:relative;
  padding-left: 56px;
  color: rgba(255,255,255,.95);
}

.solution__bullets li::before{
  content:"";
  position:absolute;
  left:0;
  top:2px;
  width: 34px;
  height: 34px;
  background: url("images/star.png") center / contain no-repeat;
}

/* =========================
   6) FOOTER (solid deep green + right card + bottom-left stars)
   ========================= */
.footer{
  position:relative;
  background: var(--deep);
  padding: 60px 0 80px;
}

.footer__stars{
  position:absolute;
  left: 22px;
  bottom: 18px;
  width: 92px;
  height:auto;
  opacity: .95;
  pointer-events:none;
}

.footer__inner{
  display:flex;
  justify-content:flex-end;
}

.footer__card{
  position:relative;
  width: min(520px, 100%);
  padding: 18px 18px 18px 18px;
}

.footer__logo{
  width: 150px;
  height:auto;
  display:block;
  margin-left:auto;
}

.footer__rule{
  height: 2px;
  width: 100%;
  background: var(--gold);
  margin: 10px 0 14px;
  opacity: .95;
}

.footer__links{
  display:flex;
  flex-direction:column;
  gap: 10px;
  font-size: 16px;
}

.footer__line{
  display:flex;
  align-items:center;
  gap: 10px;
}

.footer__line img{
  width: 18px;
  height: 18px;
}

.footer__line a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__li{
  position:absolute;
  right: 17px;
  top: 180px;
  width: 26px;
  height: 26px;
  display:grid;
  place-items:center;
}

.footer__li img{
  width: 22px;
  height: 22px;
}
.footer__brand{
  width: max-content;     /* shrink-wrap to the logo */
  margin-left: auto;      /* keeps it right-aligned like your current layout */
  text-align: center;     /* centers caption under logo */
}

.footer__logo{
  display:block;          /* removes inline gap */
  margin: 0 auto;         /* center inside brand wrapper */
}

.footer__tagline{
  font-family: var(--font-body);   /* Overpass */
  font-size: 12px;                 /* adjust as needed */
  font-weight: 400;
  letter-spacing: .6px;
  line-height: 1.1;
  margin-top: 4px;
  color: rgba(255,255,255,.92);
  white-space: nowrap;             /* keeps it on one line */
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .head__video{ width: min(760px, 60vw); }
  .domain__inner{ grid-template-columns: 1fr; }
  .domain__emblem{ margin: 0 auto; width: min(420px, 80%); }
  .problem__grid{ grid-template-columns: 1fr; }
  .solution__grid{ grid-template-columns: 1fr; }
  .footer__inner{ justify-content:flex-start; }
}

@media (max-width: 560px){
  .domain p{
    font-size: 18px;
    font-weight: 700;
  }
}


@media (max-width: 560px){
  .head{ padding-bottom: 18px; }
  .head__inner{
    grid-template-columns: 1fr;
    justify-items:center;
  }
  .head__video{
    width: 100%;
    max-width: 420px;
    transform:none; /* no overlap on mobile */
  }

  .hero{ padding-top: 28px; }
  .hero__headline{ max-width: 20ch; }



  .problem__photo{ min-height: 320px; }

  .problem__list li{
    grid-template-columns: 64px 1fr;
  }
  .problem__list li::before{
    font-size: 30px;
  }

  .solution__bullets{
    gap: 16px;
  }
  .solution__bullets li{
    padding-left: 46px;
  }
  .solution__bullets li::before{
    width: 28px;
    height: 28px;
  }

  .head__stars{ width: 72px; top: 10px; right: 12px; }
  .footer__stars{ width: 72px; left: 12px; bottom: 10px; }
}