/* DetectraPro homepage V2 — built against the approved visual mockup. */

.dp-homepage-v2{
  margin:0;
  background:#04110b;
  color:#f3f4ef;
}
.dp-homepage-v2 .site-footer{
  background:#04110b!important;
  border-top:1px solid rgba(255,255,255,.07)!important;
  color:#8fa096!important;
}
.dp-homepage-v2 .site-footer a{color:#aeb9b2!important}
.dp2{
  --lime:#8af02c;
  --lime2:#72d720;
  --bg:#04110b;
  --bg2:#07170f;
  --panel:#071a11;
  --text:#f5f5ef;
  --muted:#aebdb3;
  --line:rgba(137,238,74,.22);
  background:var(--bg);
  color:var(--text);
  overflow:hidden;
}
.dp2 *{box-sizing:border-box}
.dp2-shell{width:min(1200px,calc(100% - 80px));margin:0 auto}
.dp2 h1,.dp2 h2,.dp2 h3,.dp2 blockquote{
  font-family:Georgia,"Times New Roman",serif;
}
.dp2 a{text-decoration:none}
.dp2-eyebrow{
  display:block;
  margin:0 0 16px;
  color:var(--lime);
  font-size:.72rem;
  font-weight:900;
  line-height:1;
  letter-spacing:.16em;
  text-transform:uppercase;
}

/* Shared header comes from includes/header.php. */
.dp-homepage-v2 .site-header{position:relative;z-index:100}
.dp-homepage-v2 .site-header + .dp2{display:block}

/* Hero */
.dp2-hero{
  position:relative;
  min-height:475px;
  padding-top:0;
  background:
    radial-gradient(circle at 28% 20%,rgba(27,83,46,.19),transparent 34%),
    linear-gradient(90deg,#04110b 0%,#06160e 47%,#092017 100%);
  border-bottom:1px solid rgba(255,255,255,.06);
  overflow:hidden;
}
.dp2-hero-pattern{
  position:absolute;
  inset:0 50% 0 0;
  opacity:.18;
  background-image:
    radial-gradient(circle at 35% 25%,transparent 0 48px,rgba(132,226,75,.17) 49px 50px,transparent 51px),
    radial-gradient(circle at 65% 65%,transparent 0 72px,rgba(132,226,75,.12) 73px 74px,transparent 75px);
  background-size:180px 180px,220px 220px;
}
.dp2-hero-grid{
  min-height:409px;
  display:grid;
  grid-template-columns:minmax(0,45%) minmax(0,55%);
  align-items:center;
}
.dp2-hero-copy{
  position:relative;
  z-index:3;
  min-width:0;
  padding:56px 35px 38px 0;
}
.dp2-hero-copy h1{
  margin:0 0 18px;
  font-size:clamp(3.6rem,5.3vw,5.3rem);
  line-height:.91;
  letter-spacing:-.05em;
  color:#fff;
}
.dp2-hero-line{
  display:block;
}
@media (min-width:851px){
  .dp2-hero-line{
    white-space:nowrap;
  }
}

.dp2-hero-copy h1 em{
  color:var(--lime);
  font-weight:400;
}
.dp2-hero-copy>p{
  max-width:555px;
  margin:0;
  color:#c2cdc6;
  font-size:.94rem;
  line-height:1.62;
}
.dp2-hero-buttons{
  display:flex;
  gap:14px;
  margin-top:25px;
  flex-wrap:wrap;
}
.dp2-btn{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 21px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:850;
  white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease;
}
.dp2-btn:hover{transform:translateY(-1px)}
.dp2-btn-lime{
  color:#102006;
  background:linear-gradient(180deg,#94f43e,#79df27);
  box-shadow:0 10px 28px rgba(118,225,38,.16);
}
.dp2-btn-dark{
  color:#fff;
  border:1px solid rgba(255,255,255,.30);
  background:rgba(255,255,255,.025);
}
.dp2-btn-outline{
  color:#fff;
  min-height:40px;
  background:rgba(4,12,8,.15);
  border:1px solid rgba(255,255,255,.35);
}
.dp2-scroll{
  margin-top:29px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#b1bdb6;
  font-size:.77rem;
}
.dp2-scroll span{
  width:28px;height:28px;
  display:grid;place-items:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
}
.dp2-hero-map{
  position:relative;
  z-index:1;
  width:100%;
  height:416px;
  justify-self:stretch;
  align-self:end;
  overflow:hidden;
  clip-path:polygon(8% 0,100% 0,100% 100%,0 100%);
}
.dp2-hero-map:before{
  content:"";
  position:absolute;
  z-index:2;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(4,17,11,.44) 0%,transparent 22%);
}
.dp2-hero-map img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* Two ways */
.dp2-explore{
  padding:30px 0 30px;
  background:linear-gradient(180deg,#04110b,#05150d);
}
.dp2-section-head{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:30px;
  margin-bottom:21px;
}
.dp2-section-head h2{
  margin:0;
  color:#fff;
  font-size:2.75rem;
  line-height:1;
  letter-spacing:-.04em;
}
.dp2-under{
  margin:5px 0 0 200px;
  color:#aab7af;
  font-size:.94rem;
}
.dp2-head-copy{
  margin:0 0 5px;
  color:#aab7af;
  text-align:left;
  font-size:.76rem;
  line-height:1.5;
}
.dp2-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.dp2-card{
  position:relative;
  height:255px;
  display:grid;
  grid-template-columns:61% 39%;
  overflow:hidden;
  background:#071b11;
  border:1px solid rgba(129,225,73,.28);
  border-radius:14px;
}
.dp2-card-copy{
  position:relative;
  z-index:3;
  padding:27px 13px 22px 22px;
  background:linear-gradient(90deg,#071b11 0%,rgba(7,27,17,.98) 76%,rgba(7,27,17,.62));
}
.dp2-card h3{
  margin:0 0 15px;
  color:#fff;
  font-size:2.25rem;
  line-height:.96;
  letter-spacing:-.045em;
}
.dp2-card p{
  margin:0;
  max-width:305px;
  color:#bdc7c0;
  font-size:.78rem;
  line-height:1.55;
}
.dp2-card-link{
  position:absolute;
  left:22px;
  bottom:19px;
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  font-size:.78rem;
  font-weight:800;
}
.dp2-card-link i{
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:50%;
  background:var(--lime);
  color:#122009;
  font-style:normal;
  font-size:1rem;
}
.dp2-card-image{position:absolute;inset:0 0 0 auto;width:48%}
.dp2-card-image:before{
  content:"";
  position:absolute;z-index:2;inset:0;
  background:linear-gradient(90deg,#071b11 0%,rgba(7,27,17,.5) 33%,transparent 70%);
}
.dp2-card-image img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}

/* Evidence */
.dp2-evidence{
  min-height:300px;
  background:#07170f;
  border-top:1px solid rgba(255,255,255,.06);
}
.dp2-evidence-grid{
  position:relative;
  min-height:350px;
  display:block;
}
.dp2-evidence-copy{
  position:relative;
  z-index:3;
  width:47%;
  min-height:350px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:42px 38px 34px 0;
}
.dp2-evidence-copy h2{
  margin:0 0 13px;
  color:#fff;
  font-size:3rem;
  line-height:.95;
  letter-spacing:-.045em;
}
.dp2-evidence-copy p{
  max-width:455px;
  margin:0 0 18px;
  color:#c2ccc5;
  font-size:.78rem;
  line-height:1.6;
}
.dp2-evidence-image{
  position:absolute;
  z-index:1;
  top:0;
  right:0;
  bottom:0;
  width:58%;
  min-height:350px;
  overflow:hidden;
}
.dp2-evidence-image:before{
  content:"";
  position:absolute;
  z-index:2;
  inset:0;
  background:
    linear-gradient(90deg,#07170f 0%,rgba(7,23,15,.88) 8%,rgba(7,23,15,.34) 28%,rgba(7,23,15,.04) 60%,rgba(7,23,15,.22) 100%),
    linear-gradient(180deg,rgba(7,23,15,.03),rgba(7,23,15,.20));
}
.dp2-evidence-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  filter:saturate(.85) brightness(.9);
  transform:none;
}
.dp2-evidence-image blockquote{
  position:absolute;
  z-index:3;
  right:42px;
  bottom:34px;
  margin:0;
  color:#fff;
  font-size:1.28rem;
  line-height:1.15;
  font-style:italic;
}
.dp2-evidence-image blockquote:after{
  content:"";
  display:block;
  width:31px;height:2px;
  margin-top:13px;
  background:var(--lime);
}

/* Journey */
.dp2-journey{
  padding:35px 0;
  background:linear-gradient(90deg,#0d321f,#082418 55%,#061a11);
  border-top:1px solid rgba(255,255,255,.05);
}
.dp2-journey-grid{
  display:grid;
  grid-template-columns:31% 69%;
  align-items:center;
  gap:20px;
}
.dp2-journey-title h2{
  margin:0;
  color:#fff;
  font-size:2.7rem;
  line-height:.96;
  letter-spacing:-.045em;
}
.dp2-steps{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;
  align-items:center;
  gap:16px;
}
.dp2-steps article{min-width:0}
.dp2-step-icon{
  width:39px;height:39px;
  margin-bottom:9px;
  display:grid;place-items:center;
  border:1.5px solid var(--lime);
  border-radius:50%;
  color:var(--lime);
  font-size:.75rem;
  font-weight:900;
}
.dp2-steps strong{
  display:block;
  margin-bottom:3px;
  color:#fff;
  font-size:.82rem;
}
.dp2-steps p{
  margin:0;
  color:#b7c3bb;
  font-size:.67rem;
  line-height:1.38;
}
.dp2-steps>b{
  color:#97a69d;
  font-size:1.15rem;
  font-weight:400;
}

/* Final CTA */
.dp2-final{
  position:relative;
  min-height:185px;
  overflow:hidden;
  background:#06160e;
}
.dp2-final:before{
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 18% 45%,rgba(26,74,44,.18),transparent 34%);
}
.dp2-final-image{
  display:none !important;
}
.dp2-final-grid{
  position:relative;
  z-index:2;
  min-height:185px;
  display:grid;
  grid-template-columns:47% 53%;
  align-items:center;
  overflow:hidden;
}

/* Final CTA image is contained inside the same centered shell as the sections above. */
.dp2-final-grid:before{
  content:"";
  position:absolute;
  z-index:-1;
  top:0;
  bottom:0;
  right:0;
  width:53%;
  background:
    linear-gradient(90deg,
      rgba(6,22,14,.96) 0%,
      rgba(6,22,14,.76) 22%,
      rgba(6,22,14,.48) 48%,
      rgba(6,22,14,.30) 100%
    ),
    url('../images/home-redesign/final-landscape.jpg') center center / cover no-repeat;
  pointer-events:none;
}

.dp2-final-title{
  padding-right:35px;
  border-right:1px solid rgba(255,255,255,.18);
}
.dp2-final-title h2{
  margin:0;
  color:#fff;
  font-size:2.5rem;
  line-height:.96;
  letter-spacing:-.04em;
}
.dp2-final-title h2 em{
  color:var(--lime);
  font-weight:400;
}
.dp2-final-copy{padding-left:39px}
.dp2-final-copy p{
  margin:0 0 16px;
  color:#c3cdc6;
  font-size:.78rem;
  line-height:1.5;
}
.dp2-final-copy>div{display:flex;gap:12px;flex-wrap:wrap}

/* Responsive */
@media(max-width:1050px){
  .dp2-nav-inner,.dp2-shell{width:min(100% - 44px,1200px)}
  .dp2-links{gap:14px}
  .dp2-hero-copy h1{font-size:4rem}
  .dp2-card h3{font-size:2rem}
}

/* Desktop proportions — content-driven, never fixed-height. */

@media (min-width:1181px){
  .dp2-hero-grid{
    grid-template-columns:minmax(0,45%) minmax(0,55%);
  }

  .dp2-hero-map{
    width:100% !important;
    max-width:none !important;
    height:416px !important;
    overflow:hidden !important;
  }

  .dp2-hero-map img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    transform:none !important;
  }
}

@media (min-width:851px) and (max-width:1180px){
  .dp2-nav-inner,
  .dp2-shell{
    width:calc(100% - 80px);
    max-width:none;
  }

  .dp2-nav-inner{
    grid-template-columns:180px minmax(0,1fr) auto;
    gap:16px;
  }

  .dp2-logo,
  .dp2-logo img{width:168px}

  .dp2-links{gap:15px}
  .dp2-links a{font-size:.72rem}

  .dp2-hero{
    min-height:470px;
  }

  .dp2-hero-grid{
    min-height:404px;
    grid-template-columns:minmax(0,48%) minmax(0,52%);
  }

  .dp2-hero-copy{
    padding:50px 22px 36px 0;
  }

  .dp2-hero-copy h1{
    font-size:3.25rem;
    line-height:.91;
    margin-bottom:17px;
  }

  .dp2-hero-copy>p{
    max-width:445px;
    font-size:.79rem;
    line-height:1.55;
  }

  .dp2-hero-buttons{
    margin-top:20px;
    flex-wrap:nowrap;
    gap:10px;
  }

  .dp2-hero-buttons .dp2-btn{
    min-height:40px;
    padding:0 15px;
    font-size:.70rem;
  }

  .dp2-scroll{
    margin-top:18px;
  }

  .dp2-hero-map{
    height:404px;
    width:100%;
  }

  .dp2-section-head h2{font-size:2.55rem}
  .dp2-under{margin-left:170px}
  .dp2-card h3{font-size:1.95rem}
}

@media(max-width:850px){
  .dp2-evidence-grid{
    display:grid;
    grid-template-columns:1fr;
    min-height:0;
  }
  .dp2-evidence-copy{
    width:100%;
    min-height:0;
    padding:40px 0 28px;
  }
  .dp2-evidence-image{
    position:relative;
    inset:auto;
    width:100%;
    min-height:250px;
  }
.dp2-hero{height:auto;padding-top:0}
  .dp2-hero-grid{
    height:auto;
    display:grid;
    grid-template-columns:1fr;
  }
  .dp2-hero-copy{padding:52px 0 34px}
  .dp2-hero-copy h1{font-size:clamp(3.15rem,13vw,4.8rem)}
  .dp2-hero-line{white-space:normal}
  .dp2-hero-map{
    position:relative;
    top:auto;right:auto;
    width:100%;max-width:none;height:auto;
    clip-path:none;
    margin:0;
  }
  .dp2-hero-map img{height:auto;aspect-ratio:1.28/1;object-fit:cover}
  .dp2-section-head{grid-template-columns:1fr}
  .dp2-under{margin-left:0}
  .dp2-cards{grid-template-columns:1fr}
  .dp2-card{height:280px}
  .dp2-evidence-copy{padding:40px 0 28px}
  .dp2-evidence-image{min-height:250px}
  .dp2-journey-grid{grid-template-columns:1fr;gap:28px}
  .dp2-steps{grid-template-columns:1fr 1fr;gap:24px}
  .dp2-steps>b{display:none}
  .dp2-final-grid{grid-template-columns:1fr;gap:22px;padding:40px 0}
  .dp2-final-title{border-right:0;border-bottom:1px solid rgba(255,255,255,.16);padding:0 0 22px}
  .dp2-final-copy{padding-left:0}
}
@media(max-width:560px){
  .dp2-nav-inner,.dp2-shell{width:min(100% - 28px,1200px)}
  .dp2-hero-copy>p{font-size:.88rem}
  .dp2-hero-buttons{display:grid}
  .dp2-btn{width:100%}
  .dp2-section-head h2{font-size:2.35rem}
  .dp2-card{height:430px;display:block}
  .dp2-card-copy{
    height:58%;
    padding:24px 20px;
    background:linear-gradient(180deg,#071b11 0%,rgba(7,27,17,.96) 73%,rgba(7,27,17,.56));
  }
  .dp2-card-image{left:0;top:auto;width:100%;height:52%}
  .dp2-card-image:before{background:linear-gradient(180deg,#071b11 0%,rgba(7,27,17,.12) 48%,transparent)}
  .dp2-card-link{left:20px;bottom:18px}
  .dp2-evidence-copy h2{font-size:2.55rem}
  .dp2-evidence-image blockquote{right:20px;bottom:24px}
  .dp2-journey-title h2{font-size:2.45rem}
  .dp2-steps{grid-template-columns:1fr}
  .dp2-final-title h2{font-size:2.25rem}
}


/* Structural spacing safeguards */
.dp2-explore{
  position:relative;
  z-index:5;
  clear:both;
}
.dp2-hero + .dp2-explore{
  margin-top:0;
}
.dp2-section-head,
.dp2-cards{
  position:relative;
  z-index:1;
}


/* Image composition fixes */
@media (min-width:851px){
  .dp2-evidence{
    min-height:350px;
  }
}


@media (min-width:851px){
  .dp2-final{
    min-height:200px;
  }
  .dp2-final-grid{
    min-height:200px;
  }
}




/* Final CTA: true section background, no overflowing image element. */
@media (min-width:851px){
  .dp2-final{
    min-height:200px;
    background-position:center center;
  }
  .dp2-final-grid{
    min-height:200px;
  }
}


@media(max-width:850px){
  .dp2-final-grid{
    overflow:hidden;
  }
  .dp2-final-grid:before{
    width:100%;
    opacity:.72;
    background:
      linear-gradient(90deg,rgba(6,22,14,.94),rgba(6,22,14,.56)),
      url('../images/home-redesign/final-landscape.jpg') center center / cover no-repeat;
  }
}


/* =========================================================
   Mobile spacing / readability pass
========================================================= */
@media (max-width:850px){
  .dp2-nav-inner,
  .dp2-shell{
    width:calc(100% - 36px) !important;
  }

  .dp2-hero-copy{
    padding:42px 0 32px !important;
  }

  .dp2-hero-copy h1{
    font-size:clamp(2.85rem,12vw,4.15rem) !important;
    line-height:.94 !important;
    margin-bottom:18px !important;
  }

  .dp2-hero-copy>p{
    font-size:.92rem !important;
    line-height:1.62 !important;
    max-width:none !important;
  }

  .dp2-hero-buttons{
    margin-top:24px !important;
    gap:12px !important;
  }

  .dp2-hero-buttons .dp2-btn{
    min-height:46px !important;
    padding:0 18px !important;
    font-size:.82rem !important;
  }

  .dp2-scroll{
    margin-top:22px !important;
  }

  .dp2-explore{
    padding:42px 0 46px !important;
  }

  .dp2-section-head{
    gap:14px !important;
    margin-bottom:26px !important;
  }

  .dp2-section-head h2{
    font-size:2.55rem !important;
    line-height:1.02 !important;
  }

  .dp2-under{
    margin:7px 0 0 !important;
    font-size:.92rem !important;
  }

  .dp2-head-copy{
    font-size:.82rem !important;
    line-height:1.55 !important;
  }

  .dp2-cards{
    gap:18px !important;
  }

  .dp2-card{
    border-radius:16px !important;
  }

  .dp2-card-copy{
    padding:26px 22px !important;
  }

  .dp2-card h3{
    font-size:2.25rem !important;
    line-height:.98 !important;
  }

  .dp2-card p{
    font-size:.84rem !important;
    line-height:1.58 !important;
  }

  .dp2-card-link{
    left:22px !important;
  }

  .dp2-evidence-copy{
    padding:46px 0 34px !important;
  }

  .dp2-evidence-copy h2{
    font-size:2.5rem !important;
    line-height:.98 !important;
    margin-bottom:16px !important;
  }

  .dp2-evidence-copy p{
    font-size:.86rem !important;
    line-height:1.62 !important;
  }

  .dp2-evidence-image{
    min-height:280px !important;
    border-radius:14px;
    overflow:hidden;
    margin-bottom:8px;
  }

  .dp2-journey{
    padding:44px 0 !important;
  }

  .dp2-journey-grid{
    gap:30px !important;
  }

  .dp2-journey-title h2{
    font-size:2.45rem !important;
    line-height:1 !important;
  }

  .dp2-steps{
    gap:22px !important;
  }

  .dp2-steps article{
    padding:0 2px;
  }

  .dp2-steps strong{
    font-size:.9rem !important;
  }

  .dp2-steps p{
    font-size:.76rem !important;
    line-height:1.48 !important;
  }

  .dp2-final{
    padding:0 !important;
  }

  .dp2-final-grid{
    padding-top:44px !important;
    padding-bottom:44px !important;
    gap:28px !important;
  }

  .dp2-final-title{
    padding-bottom:24px !important;
  }

  .dp2-final-title h2{
    font-size:2.35rem !important;
    line-height:.98 !important;
  }

  .dp2-final-copy p{
    font-size:.84rem !important;
    line-height:1.58 !important;
  }

  .dp2-final-copy>div{
    gap:12px !important;
  }

  .dp2-final-copy .dp2-btn{
    min-height:45px;
  }
}

@media (max-width:560px){
  .dp2-nav-inner,
  .dp2-shell{
    width:calc(100% - 32px) !important;
  }

  .dp2-hero-copy{
    padding:36px 0 30px !important;
  }

  .dp2-hero-copy h1{
    font-size:clamp(2.65rem,12.5vw,3.7rem) !important;
  }

  .dp2-section-head h2{
    font-size:2.3rem !important;
  }

  .dp2-card{
    height:auto !important;
    min-height:430px !important;
  }

  .dp2-card-copy{
    min-height:245px;
  }

  .dp2-card-link{
    position:static !important;
    margin-top:18px !important;
  }

  .dp2-evidence-copy h2{
    font-size:2.25rem !important;
  }

  .dp2-journey-title h2{
    font-size:2.2rem !important;
  }

  .dp2-final-title h2{
    font-size:2.15rem !important;
  }
}

@media (max-width:390px){
  .dp2-nav-inner,
  .dp2-shell{
    width:calc(100% - 28px) !important;
  }

  .dp2-hero-copy h1{
    font-size:2.45rem !important;
  }

  .dp2-section-head h2,
  .dp2-evidence-copy h2,
  .dp2-journey-title h2,
  .dp2-final-title h2{
    font-size:2rem !important;
  }
}


/* Homepage integration with the shared includes/header.php navigation. */
.dp-homepage-v2 .site-header{
  position:relative !important;
  top:auto !important;
  background:#07120d !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}
.dp-homepage-v2 .site-header .nav{
  width:min(1180px,calc(100% - 40px));
  margin-inline:auto;
}
.dp-homepage-v2 .site-header .brand img{
  width:168px;
}
.dp-homepage-v2 .site-header .nav-links a{
  color:rgba(255,255,255,.82);
}
.dp-homepage-v2 .site-header .nav-links a:hover{
  color:#fff;
  background:rgba(255,255,255,.07);
}
.dp-homepage-v2 .site-header .nav-cta{
  background:linear-gradient(180deg,#8af02c,#72d720)!important;
  color:#102008!important;
}
@media(max-width:850px){
  .dp-homepage-v2 .site-header .nav{
    width:min(100% - 36px,1180px);
  }
}
@media(max-width:560px){
  .dp-homepage-v2 .site-header .nav{
    width:min(100% - 32px,1180px);
  }
}
@media(max-width:390px){
  .dp-homepage-v2 .site-header .nav{
    width:min(100% - 28px,1180px);
  }
}
