/* ==========================================================
   Responsive — Brightlink Projects
   ========================================================== */

@media (min-width:1600px){
  :root{--container:1360px}
  .page-hero{min-height:370px}
  .home-hero{min-height:620px}
}

@media (max-width:1280px){
  .nav-link{padding:9px 10px;font-size:.88rem}
  .nav-cta .btn{padding:11px 18px}
  .brand img{height:44px}
  .footer-main{grid-template-columns:1.3fr .8fr 1.1fr 1.1fr 1.2fr;gap:26px}
}

/* ---------- Tablet landscape / small laptop ---------- */
@media (max-width:1100px){
  :root{--header-h:70px}
  .nav-toggle{display:grid}
  .main-nav{position:fixed;top:0;right:0;bottom:0;width:min(380px,88vw);background:#fff;flex-direction:column;align-items:stretch;padding:84px 20px 30px;gap:0;transform:translateX(100%);transition:transform .35s var(--ease);box-shadow:var(--shadow-lg);overflow-y:auto;z-index:1001;visibility:hidden}
  .main-nav.open{transform:none;visibility:visible}
  .nav-close{position:absolute;top:16px;right:16px}
  .nav-list{flex-direction:column;align-items:stretch;gap:2px}
  .nav-link{width:100%;justify-content:space-between;padding:14px 14px;font-size:1rem}
  .dropdown{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0 0 0 10px;min-width:0;max-height:0;overflow:hidden;transition:max-height .35s var(--ease)}
  .dropdown::before{display:none}
  .nav-item:hover>.dropdown{max-height:0}
  .nav-item.open>.dropdown{max-height:520px}
  .nav-item:focus-within>.dropdown{max-height:0}
  .nav-item.open:focus-within>.dropdown{max-height:520px}
  .nav-item:hover>.nav-link svg{transform:none}
  .nav-item.open>.nav-link svg{transform:rotate(180deg)}
  .nav-cta{margin:18px 0 0}
  .nav-cta .btn{width:100%}
  .nav-overlay{position:fixed;inset:0;background:rgba(7,27,56,.55);opacity:0;visibility:hidden;transition:.3s;z-index:999}
  .nav-overlay.show{opacity:1;visibility:visible}
  body.nav-open{overflow:hidden}

  .grid-5,.grid-6{grid-template-columns:repeat(3,1fr)}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(3,1fr);row-gap:34px}
  .step-card:nth-child(3n)::after{display:none}
  .cap-flow{grid-template-columns:repeat(3,1fr);row-gap:34px}
  .cap:nth-child(3n)::after{display:none}
  .icon-row{grid-template-columns:repeat(3,1fr);row-gap:26px}
  .icon-feature:nth-child(3n){border-right:0}
  .footer-main{grid-template-columns:1fr 1fr 1fr;gap:34px}
  .footer-brand{grid-column:1/-1;max-width:520px}
  .band-inner{grid-template-columns:1fr}
  .band-title{padding:34px 0 6px 60px}
  .band-items{grid-auto-flow:row;grid-template-columns:repeat(3,1fr)}
  .band-item{border-left:0;border-top:1px solid rgba(255,255,255,.15)}
  .closing-grid{grid-template-columns:1fr 1fr}
  .closing-img{display:none}
  .closing-lime{display:none}
  .split{gap:40px}
}

@media (min-width:1101px){
  .nav-close,.nav-overlay{display:none}
}

/* ---------- Tablet portrait ---------- */
@media (max-width:900px){
  .section{padding:68px 0}
  .split,.split-55{grid-template-columns:1fr}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .detail{grid-template-columns:1fr;gap:26px}
  .detail:nth-child(even) .detail-media{order:0}
  .flow{grid-template-columns:repeat(3,1fr);row-gap:30px}
  .flow-item:nth-child(3n)::after,.flow-item:nth-child(3n)::before{display:none}
  .highlights-inner{grid-template-columns:repeat(2,1fr);row-gap:10px}
  .hl:nth-child(2){border-right:0}
  .head-row{flex-direction:column;align-items:flex-start}
  .cta-strip .container{flex-direction:column;align-items:flex-start;padding:40px 24px 40px 90px;gap:16px}
  .cta-strip .cta-icon{margin-left:0}
  .cta-strip h2{border-right:0;padding-right:0}
  .qe-grid{grid-template-columns:repeat(2,1fr)}
  .cert-section .cert-bg{display:none}
  .topbar-info .tb-loc{display:none}
  .topbar-info .tb-mail{padding-left:0}

  /* Heroes: image becomes top band */
  .page-hero{flex-direction:column;align-items:stretch;min-height:0}
  .page-hero-media,.page-hero-stripe{position:relative;width:100%;height:220px;clip-path:polygon(0 0,100% 0,100% 100%,0 86%)}
  .page-hero-stripe{display:none}
  .page-hero-media::after{background:linear-gradient(0deg,rgba(7,27,56,.4),transparent 50%)}
  .page-hero-content{padding:28px 0 46px;max-width:none}
  .home-hero{flex-direction:column;align-items:stretch;min-height:0}
  .home-hero .slides{position:relative;width:100%;height:280px;clip-path:polygon(0 0,100% 0,100% 100%,0 88%)}
  .home-hero .slides-stripe{display:none}
  .slider-dots{left:50%;transform:translateX(-50%);bottom:auto;top:244px}
  .hero-content{padding:30px 0 80px;max-width:none}
  .home-hero .hero-content{order:2}
}

/* ---------- Mobile ---------- */
@media (max-width:640px){
  body{font-size:15.5px}
  .container{padding:0 18px}
  .section{padding:56px 0}
  .section-sm{padding:42px 0}
  .topbar .container{justify-content:center}
  .topbar-info{display:none}
  .brand img{height:38px}
  .site-header.scrolled .brand img{height:36px}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .grid-5,.grid-6{grid-template-columns:repeat(2,1fr);gap:14px}
  .steps{grid-template-columns:1fr;gap:26px}
  .step-card::after{display:none}
  .step-card .step-img{aspect-ratio:16/9}
  .cap-flow{grid-template-columns:repeat(2,1fr);gap:26px 14px}
  .cap::after{display:none!important}
  .cap .cap-icon{width:96px;height:96px}
  .cap .cap-icon svg{width:44px;height:44px}
  .flow{grid-template-columns:repeat(2,1fr)}
  .flow-item::after,.flow-item::before{display:none!important}
  .icon-row{grid-template-columns:repeat(2,1fr)}
  .icon-feature{border-right:0!important}
  .highlights{margin-top:-36px}
  .highlights-inner{grid-template-columns:1fr 1fr;padding:12px 4px}
  .hl{flex-direction:column;text-align:center;gap:8px;padding:12px 8px;border-right:0}
  .hl-icon{width:48px;height:48px}
  .hl h3{font-size:.92rem}
  .title-line{gap:12px}
  .title-line::after{width:36px}
  .title-center::before,.title-center::after{width:28px}
  .title-center{gap:12px}
  .vm-card{flex-direction:column;align-items:flex-start;gap:14px;padding:24px}
  .vm-title{flex-direction:row;border-right:0;padding:0;min-width:0}
  .vm-title svg{width:40px;height:40px}
  .feature-card{padding:24px 20px;gap:16px}
  .feature-card .fc-icon{width:54px;height:54px;padding-right:14px}
  .feature-card .fc-icon svg{width:44px;height:44px}
  .band-items{grid-template-columns:repeat(2,1fr)}
  .band-title{padding:30px 0 6px 52px}
  .band::before{width:46px}
  .band-photo{grid-template-columns:1fr}
  .band-photo .bp-img{height:160px;clip-path:polygon(0 0,100% 0,100% 82%,0 100%)}
  .band-photo .bp-content{padding:24px 18px 28px}
  .closing-grid{grid-template-columns:1fr}
  .closing-text{padding:40px 22px 16px}
  .closing-text .underline-swoosh{margin-left:0}
  .closing-list{border-left:0;border-top:1px solid rgba(255,255,255,.2);padding:20px 22px 36px}
  .cta-strip::before{width:40px}
  .cta-strip::after{left:24px;width:30px}
  .cta-strip .container{padding:36px 18px 36px 58px}
  .cert-card{flex-direction:column;text-align:center;padding:26px 20px}
  .cert-card .cert-std{border-left:0;padding-left:0}
  .cert-card p{padding-left:0}
  .cert-card img{width:120px;height:120px}
  .form-card{padding:24px 18px}
  .form-grid{grid-template-columns:1fr}
  .form-actions{flex-direction:column;align-items:stretch}
  .form-actions .divider{display:none}
  .form-actions .btn{width:100%}
  .qe-panel{padding:22px 16px}
  .qe-card{padding:18px 8px;font-size:.88rem}
  .footer-main{grid-template-columns:1fr 1fr;gap:30px 20px;padding-top:50px;padding-bottom:34px}
  .footer-contact-col{grid-column:1/-1}
  .footer-bottom .container{flex-direction:column;justify-content:center;text-align:center;padding:20px 18px}
  .footer-tagline{font-size:1rem}
  .footer-tagline::before{height:30px;width:10px}
  .page-hero-media{height:180px}
  .home-hero .slides{height:230px}
  .slider-dots{top:196px}
  .hero-title{font-size:2.15rem}
  .hero-sub{font-size:1.08rem}
  .hero-actions .btn{flex:1 1 100%}
  .media-card .mc-img{aspect-ratio:16/9}
  .float-wa{right:16px;bottom:80px;width:52px;height:52px}
  .back-top{right:18px;bottom:20px;width:44px;height:44px}
  .watermark-icon{display:none}
  .mc-icon.dark{width:56px;height:56px;margin-top:-42px}
  .contact-list li{gap:14px}
  .ci-icon{width:50px;height:50px}
}

@media (max-width:380px){
  .grid-5,.grid-6{grid-template-columns:1fr 1fr;gap:10px}
  .ind-tile .tile-label{font-size:.8rem;padding:26px 10px 10px}
  .hero-title{font-size:1.95rem}
  .page-hero h1{font-size:2rem}
  .band-items{grid-template-columns:1fr 1fr}
  .band-item{font-size:.88rem;padding:20px 8px}
  .footer-main{grid-template-columns:1fr}
  .qe-grid{gap:10px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* Layout helpers — responsive */
@media (max-width:1100px){
  .cap-layout{grid-template-columns:1fr;gap:30px}
  .band-photo .strengths-items{grid-auto-flow:row;grid-template-columns:repeat(4,1fr)}
}
@media (max-width:900px){
  .split-contact{grid-template-columns:1fr}
}
@media (max-width:640px){
  .band-photo .strengths-items{grid-template-columns:repeat(2,1fr)}
  .band-photo .strengths-items .band-item{border-left:0}
  .strength-grid{grid-template-columns:repeat(2,1fr)}
  .sg-item{border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}
  .sg-item:nth-child(2n){border-right:0!important}
  .sg-item:nth-child(n+7){border-bottom:0!important}
}
