
:root{
  --bg:#0b1220;
  --bg-soft:#101a2f;
  --surface:#ffffff;
  --surface-2:#f4f7fb;
  --text:#0f172a;
  --muted:#5b6475;
  --line:#e6ebf2;
  --brand:#e31b23;
  --brand-dark:#b51219;
  --accent:#0ea5e9;
  --success:#10b981;
  --shadow:0 18px 50px rgba(15,23,42,.10);
  --radius:8px;
  --radius-sm:8px;
  --container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--surface-2);
  line-height:1.6;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.mobile-break{display:none}
.container{width:min(var(--container), calc(100% - 32px)); margin:0 auto}
.section{padding:82px 0}
.section-sm{padding:58px 0}
.grid{display:grid; gap:24px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 22px; border-radius:999px; font-weight:700; transition:.25s ease;
  border:1px solid transparent; cursor:pointer
}
.btn-primary{background:var(--brand); color:#fff; box-shadow:0 10px 30px rgba(227,27,35,.22)}
.btn-primary:hover{background:var(--brand-dark); transform:translateY(-1px)}
.btn-secondary{background:#fff; color:var(--text); border-color:rgba(255,255,255,.3)}
.btn-secondary:hover{background:#f8fafc}
.btn-outline{border-color:#d9e0ea; color:var(--text); background:#fff}
.btn-outline:hover{border-color:var(--brand); color:var(--brand)}
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 14px; border-radius:999px; font-size:.88rem; font-weight:700;
  background:rgba(227,27,35,.1); color:var(--brand)
}
.eyebrow::before{
  content:""; width:8px; height:8px; border-radius:50%; background:var(--brand)
}
h1,h2,h3,h4{line-height:1.1; margin:0 0 14px}
h1{font-size:clamp(2.3rem, 4.5vw, 4.6rem); letter-spacing:-.04em}
h2{font-size:clamp(1.9rem, 3vw, 3rem); letter-spacing:-.03em}
h3{font-size:1.28rem}
p{margin:0 0 16px}
.lead{font-size:1.08rem; color:rgba(255,255,255,.85)}
.text-muted{color:var(--muted)}
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow)
}
.topbar{
  background:#09101d; color:#dbe3ee; font-size:.92rem; border-bottom:1px solid rgba(255,255,255,.08)
}
.topbar-inner{
  display:flex; justify-content:space-between; gap:16px; padding:10px 0; flex-wrap:wrap
}
.topbar a{color:#fff}
.header{
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(135deg, #0b1220, #111c34);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  
}
.nav{
  display:flex; align-items:center; justify-content:space-between; padding:16px 0; gap:16px
}
.brand{
  display:flex; align-items:center; gap:14px; color:#fff
}
.brand-badge{
  width:44px; height:44px; border-radius:14px;
  background:linear-gradient(145deg, var(--brand), #ff5f66);
  box-shadow:0 12px 24px rgba(227,27,35,.22)
}
.brand-text strong{display:block; letter-spacing:.02em}
.brand-text span{font-size:.82rem; color:#b7c3d6}
.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
  color:#e6edf7;
  font-weight:600;
  flex-wrap:nowrap;
}
.nav-links a{
  opacity:.88;
  color:#e6edf7;
  transition: all 0.25s ease;
  position: relative;
}
.nav-links a:hover{opacity:1; color:#fff;}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:2px;
  background: linear-gradient(90deg, #22d3ee, #84cc16);
  border-radius:999px;
  transition: width .25s ease;
}

.nav-links a:hover::after{
  width:100%;
}
.nav-cta{display:flex; align-items:center; gap:12px; flex-shrink:0;}
.menu-btn{
  display:none; width:46px; height:46px; border-radius:14px; border:1px solid rgba(255,255,255,.16);
  background:transparent; color:#fff; font-size:1.2rem
}
.hero{
  position:relative; overflow:hidden; color:#fff;
  background:
    radial-gradient(circle at 12% 14%, rgba(14,165,233,.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(227,27,35,.18), transparent 28%),
    linear-gradient(180deg, rgba(8,13,24,.92), rgba(8,13,24,.96)),
    linear-gradient(140deg, #0a1222, #111c34 55%, #0b1220);
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:
   linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
   linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.8), transparent);
}
.hero-inner{
  position:relative; display:grid; grid-template-columns:1.12fr .88fr; gap:34px;
  padding:72px 0 88px; align-items:start
}
.hero-copy p{max-width:720px}
.hero-copy{min-width:0; max-width:100%}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin-top:24px}
.hero-trust{
  display:flex; gap:18px; flex-wrap:wrap; margin-top:26px; color:#d9e5f2; font-weight:600
}
.hero-panel{
  position:relative; padding:22px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.26)
}
.panel-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px}
.hero-site-photo{
  grid-column:1 / -1;
  overflow:hidden;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background:#0f172a url("projects/maqis-cctv/maqis-a.jpeg") center/cover no-repeat;
  position:relative;
  aspect-ratio:16/9;
}
.hero-site-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.project-slider img{
  position:absolute;
  inset:0;
  opacity:0;
  transform:scale(1.03);
  transition:opacity .7s ease, transform 3.8s ease;
}
.project-slider img.active{
  opacity:1;
  transform:scale(1);
}
.metric{
  padding:18px; border-radius:18px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.10)
}
.metric strong{display:block; font-size:1.65rem; color:#fff}
.metric span{font-size:.95rem; color:#d5dfed}
.mini-service{
  display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:18px;
  background:#fff; color:var(--text); border:1px solid rgba(255,255,255,.14)
}
.mini-service i{
  width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  background:rgba(227,27,35,.1); color:var(--brand); font-style:normal; font-weight:800
}
.stats-bar{
  margin-top:-34px; position:relative; z-index:2
}
.stats-wrap{
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px
}
.stat-card{padding:24px; text-align:center}
.stat-card strong{display:block; font-size:2rem; color:var(--brand)}
.section-head{
  display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px
}
.service-grid{grid-template-columns:repeat(3,1fr)}
.service-card{padding:28px; position:relative; overflow:hidden}
.service-card::after{
  content:""; position:absolute; width:180px; height:180px; border-radius:50%;
  background:radial-gradient(circle, rgba(227,27,35,.10), transparent 70%);
  top:-70px; right:-60px
}
.service-icon{
  width:62px; height:62px; border-radius:18px; display:grid; place-items:center;
  background:rgba(227,27,35,.10); color:var(--brand); font-size:1.5rem; font-weight:800;
  margin-bottom:18px
}
.check-list{list-style:none; padding:0; margin:16px 0 0}
.check-list li{padding-left:26px; position:relative; margin:10px 0; color:var(--muted)}
.check-list li::before{
  content:"✓"; position:absolute; left:0; top:0; color:var(--success); font-weight:900
}
.dark-band{
  background:linear-gradient(135deg, #0c1527, #101c34);
  color:#fff
}
.split{
  display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:center
}
.feature-box{padding:28px}
.feature-list{display:grid; grid-template-columns:repeat(2,1fr); gap:14px}
.feature-item{
  padding:16px 18px; border:1px solid #e8edf4; border-radius:18px; background:#fff
}
.portfolio-grid{grid-template-columns:repeat(3,1fr)}
.portfolio-card{overflow:hidden}
.portfolio-media{
  aspect-ratio:16/10;
  background:#111827;
  position:relative;
  overflow:hidden;
}
.portfolio-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}
.portfolio-card:hover .portfolio-media img{transform:scale(1.035)}
.portfolio-content{padding:24px}
.logo-band{
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px
}
.logo-item{
  min-height:86px; display:grid; place-items:center; border-radius:18px; background:#fff;
  border:1px dashed #d7dee9; color:#7b8698; font-weight:800; letter-spacing:.04em
}
.brand-section{
  background:#fff;
}
.brand-logo-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
}
.brand-logo-card{
  min-height:118px;
  padding:22px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}
.brand-logo-card img{
  max-width:100%;
  max-height:58px;
  object-fit:contain;
}
.brand-category-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}
.brand-category-card{
  padding:26px;
}
.brand-logo-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:18px;
}
.brand-logo-row img{
  width:100%;
  height:76px;
  object-fit:contain;
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.cta-box{
  padding:34px; border-radius:30px; color:#fff;
  background:
    radial-gradient(circle at 0% 0%, rgba(14,165,233,.22), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(227,27,35,.22), transparent 30%),
    linear-gradient(135deg, #111b31, #0a1222);
  display:grid; grid-template-columns:1.1fr .9fr; gap:28px; align-items:center
}
.contact-grid{grid-template-columns:1fr .95fr}
.contact-card{padding:30px}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.input, .textarea, select{
  width:100%; padding:15px 16px; border-radius:16px; border:1px solid #d8e0ea;
  background:#fff; font:inherit; color:var(--text); outline:none
}
.input:focus,.textarea:focus,select:focus{border-color:var(--brand); box-shadow:0 0 0 4px rgba(227,27,35,.08)}
.textarea{min-height:140px; resize:vertical}
.footer{
  background:#0b1220; color:#d0d9e7; padding-top:70px
}
.footer-grid{display:grid; grid-template-columns:1.2fr .8fr .8fr .9fr; gap:28px}
.footer h4{color:#fff; margin-bottom:16px}
.footer a{color:#d0d9e7}
.social-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.social-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:10px 13px;
  border-radius:999px;
  color:#fff !important;
  font-weight:800;
  font-size:.88rem;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 12px 30px rgba(0,0,0,.22);
  transition:transform .2s ease, filter .2s ease, border-color .2s ease;
}
.social-link:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
  border-color:rgba(255,255,255,.34);
}
.social-link svg{
  width:19px;
  height:19px;
  fill:currentColor;
  flex:0 0 auto;
}
.social-facebook{
  background:linear-gradient(135deg, #1877f2, #0b4fb3);
}
.social-instagram{
  background:linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af 78%, #515bd4);
}
.footer-bottom{
  padding:18px 0 28px; margin-top:34px; border-top:1px solid rgba(255,255,255,.08);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap
}
.page-hero{
  background:linear-gradient(135deg, #0b1220, #121d35); color:#fff; padding:82px 0 56px
}
.breadcrumbs{color:#c7d1e2; font-size:.95rem}
.breadcrumbs a{color:#fff}
.info-grid{grid-template-columns:repeat(3,1fr)}
.info-box{padding:26px}
.whatsapp-float{
  position:fixed; right:20px; bottom:20px; z-index:99;
  width:86px; height:86px; padding:0; border-radius:50%;
  display:grid; place-items:center;
  background:transparent url("whatsapp-button-crop.png") center/contain no-repeat;
  color:#fff;
  box-shadow:0 18px 42px rgba(37,211,102,.30); font-size:0;
  transition:transform .22s ease, filter .22s ease;
}
.whatsapp-float:hover{
  transform:translateY(-2px) scale(1.03);
  filter:brightness(1.05);
}
.whatsapp-float img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.badge-line{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:18px
}
.badge{
  padding:8px 12px; border-radius:999px; background:#fff; border:1px solid var(--line);
  font-size:.92rem; color:#425066; font-weight:700
}
.notice{
  margin-top:14px; font-size:.92rem; color:#64748b; background:#f8fafc; border:1px solid #e5edf6;
  border-radius:14px; padding:12px 14px
}
.reveal{opacity:1; transform:none}

@media (max-width: 1080px){
  .hero-inner,.split,.cta-box,.contact-grid,.footer-grid{grid-template-columns:1fr}
  .service-grid,.portfolio-grid,.logo-band,.stats-wrap,.info-grid,.brand-logo-grid{grid-template-columns:repeat(2,1fr)}
  .feature-list{grid-template-columns:1fr 1fr}
}
@media (max-width: 760px){
  .container{width:min(300px, calc(100vw - 56px))}
  .nav-links,.nav-cta .btn{display:none}
  .nav{position:relative; justify-content:center}
  .menu-btn{
    display:inline-grid;
    place-items:center;
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    width:40px;
    height:40px;
  }
  .nav-links.open{
    display:flex; position:absolute; left:16px; right:16px; top:78px; padding:18px;
    background:#0f182b; border:1px solid rgba(255,255,255,.1); border-radius:20px; flex-direction:column; align-items:flex-start
  }
  .hero-inner{display:block; padding:62px 0 76px}
  .hero-panel{margin-top:34px}
  .hero-panel{padding:16px}
  .panel-grid{grid-template-columns:1fr}
  h1{font-size:1.85rem; overflow-wrap:anywhere}
  h2{font-size:1.75rem; overflow-wrap:anywhere}
  .hero-sub{font-size:1.05rem}
  .topbar{font-size:.84rem}
  .hero-copy p,
  .topbar-inner > div{
    min-width:0;
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
    white-space:normal;
  }
  .whatsapp-float{
    right:18px;
    bottom:18px;
    width:62px;
    height:62px;
    padding:0;
    border-radius:50%;
    font-size:0;
  }
  .whatsapp-float::after{
    content:none;
  }
  .service-grid,.portfolio-grid,.logo-band,.stats-wrap,.info-grid,.feature-list,.form-row,.brand-logo-grid,.brand-category-grid,.brand-logo-row{grid-template-columns:1fr}
  .section,.section-sm{padding:64px 0}
  .hero-actions{flex-direction:column; align-items:stretch}
  .topbar-inner,.section-head,.footer-bottom{flex-direction:column; align-items:flex-start}
}
.logo{
  max-height:75px;
  width:auto;
  display:block;
}

/* Header brand sizing */
.brand{
  display:flex;
  align-items:center;
}

.nav{
  align-items:center;
}
/* active menu */
.nav-links a.active{
  color:#ffffff;
  opacity:1;
}

.nav-links a.active::after{
  width:100%;
}

/* FINAL LOGO FIX */
.brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  color:#fff;
  flex-shrink:0;
}

.logo{
  height:64px;
  width:auto;
  display:block;
}

.logo-tagline{
  font-size:12px;
  line-height:1.2;
  color:#d8e2f0;
  letter-spacing:.2px;
  white-space:nowrap;
}

.footer-brand .logo{
  height:58px;
}

.footer-brand .logo-tagline{
  color:#b8c7da;
}

@media (max-width: 760px){
  .brand{
    gap:8px;
  }
  .logo{
    height:54px;
  }
  .logo-tagline{
    font-size:11px;
    white-space:normal;
  }
}


/* Header logo hard fix */
.brand{
  display:flex;
  align-items:center;
  gap:0;
  color:#fff;
  flex-shrink:0;
}
.logo{
  display:block;
  width:auto;
  height:78px;
  max-height:none;
  object-fit:contain;
}

.footer-logo{
  height:64px;
}
@media (max-width: 760px){
  .logo{height:60px;}
  .footer-logo{height:54px;}
}


/* REAL TAGLINE HTML FIX */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
}

.logo{
  height:72px;
  width:auto;
  display:block;
  flex-shrink:0;
}

.logo-tagline{
  display:inline-block;
  font-size:13px;
  color:#a8b6cc;
  white-space:nowrap;
  line-height:1.2;
  opacity:.95;
}

.footer .logo-tagline{
  display:none;
}


/* FINAL TAGLINE VISIBILITY FIX */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
}
.logo{
  height:72px;
  width:auto;
  display:block;
  flex-shrink:0;
}
.logo-tagline{
  display:inline-block !important;
  font-size:13px;
  color:#a8b6cc;
  line-height:1.2;
  white-space:nowrap;
  opacity:.95;
}
.footer .logo-tagline{
  display:none !important;
}


/* FOOTER REAL FIX */
.footer .footer-brand{
  display:flex;
  align-items:center;
  gap:0;
}
.footer .footer-brand .logo{
  height:72px;
  width:auto;
  display:block;
}
.footer .footer-brand .logo-tagline{
  display:none !important;
}


/* LOCK PRO VERSION */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
}
.logo{
  height:72px;
  width:auto;
  display:block;
  flex-shrink:0;
}
.logo-tagline{
  display:inline-block !important;
  font-size:13px;
  color:#a8b6cc;
  white-space:nowrap;
  line-height:1.2;
  opacity:.95;
}
.footer .footer-brand{
  display:flex;
  align-items:center;
  gap:0;
}
.footer .footer-brand .logo{
  height:72px;
  width:auto;
  display:block;
}
.footer .logo-tagline{
  display:none !important;
}
.notice{
  font-size:.98rem;
  color:#51627b;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}


/* HERO UPGRADE (FINAL) */
.hero-copy h1{
  max-width:700px;
}

.hero-sub{
  font-size:20px;
  font-weight:600;
  color:#e2e8f0;
  margin-top:14px;
  margin-bottom:10px;
  max-width:760px;
}

.hero-desc{
  font-size:15px;
  color:#94a3b8;
  margin-top:10px;
  margin-bottom:0;
  max-width:620px;
}


/* FINAL CONSOLIDATED FIXES */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
  flex-shrink:0;
}
.logo{
  height:72px;
  width:auto;
  display:block;
  flex-shrink:0;
}
.logo-tagline{
  display:inline-block !important;
  font-size:13px;
  color:#a8b6cc;
  line-height:1.2;
  white-space:nowrap;
  opacity:.95;
}
.footer .footer-brand{
  display:flex;
  align-items:center;
  gap:0;
}
.footer .footer-brand .logo{
  height:72px;
  width:auto;
  display:block;
}
.footer .logo-tagline{
  display:none !important;
}
.hero-copy h1{
  max-width:700px;
}
.hero-sub{
  font-size:20px;
  font-weight:600;
  color:#e2e8f0;
  margin-top:14px;
  margin-bottom:10px;
  max-width:760px;
}
.hero-desc{
  font-size:15px;
  color:#94a3b8;
  margin-top:10px;
  margin-bottom:0;
  max-width:620px;
}
.notice{
  font-size:.98rem;
  color:#51627b;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}


/* NEXT LEVEL PORTFOLIO */
.project-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:18px;
}
.project-group-head h3{
  margin-bottom:8px;
}
.project-group-head p{
  color:var(--muted);
  margin-bottom:18px;
}
.project-list{
  display:grid;
  gap:18px;
}
.project-item{
  padding:24px;
}
.project-topline{
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brand);
  margin-bottom:10px;
}
.project-item h4{
  font-size:1.16rem;
  margin:0 0 10px;
  line-height:1.3;
}
.project-item p{
  color:var(--muted);
  margin-bottom:14px;
}
.project-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.project-tags span{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--line);
  font-size:.86rem;
  color:#4b5563;
  font-weight:700;
}
.project-cta{
  margin-top:28px;
  padding:28px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:22px;
  align-items:center;
}
.project-cta p{
  color:var(--muted);
  margin:0;
}
.project-cta-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-start;
}
@media (max-width: 920px){
  .project-split,
  .project-cta{
    grid-template-columns:1fr;
  }
}


/* BONDA PROJECT INJECTION */
.featured-project{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:0;
  overflow:hidden;
}
.featured-media{
  min-height:420px;
  background:#0f172a;
}
.featured-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.featured-copy{
  padding:30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.project-topline{
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brand);
  margin-bottom:10px;
}
.project-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.project-tags span{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--line);
  font-size:.86rem;
  color:#4b5563;
  font-weight:700;
}
.project-gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:18px;
}
.project-gallery img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:20px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:block;
}
.project-cta{
  margin-top:28px;
  padding:28px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:22px;
  align-items:center;
}
.project-cta p{
  color:var(--muted);
  margin:0;
}
.project-cta-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-start;
}
@media (max-width: 920px){
  .featured-project,
  .project-gallery,
  .project-cta{
    grid-template-columns:1fr;
  }
  .featured-media{
    min-height:300px;
  }
}



.featured-highlight img{
  width:100%;
  height:300px;
  object-fit:cover;
  border-radius:20px;
  margin-bottom:20px;
}
.project-gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.project-gallery img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:16px;
}


/* CLEAN COVER (NO FORCED CROP) */
.featured-cover img{
  width:100%;
  height:auto;
  display:block;
  border-radius:20px;
  margin-bottom:20px;
}

.project-main-gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:20px;
}
.project-main-gallery img,
.project-gallery img{
  border-radius:8px;
}
.project-main-gallery img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:block;
}
@media (max-width: 920px){
  .project-main-gallery{
    grid-template-columns:1fr;
  }
}

/* RESPONSIVE POLISH PASS */
.section, .section-sm, .page-hero, .hero{
  overflow-x:hidden;
}
.brand-logo-card,
.brand-logo-row img,
.service-card,
.portfolio-card,
.feature-box,
.project-item,
.project-cta,
.contact-card{
  border-radius:8px;
}
.hero-panel,
.metric,
.mini-service,
.notice,
.featured-cover img,
.project-gallery img,
.project-main-gallery img{
  border-radius:8px;
}
.brand-logo-card img{
  width:100%;
}
.brand-logo-card img[alt="Dahua Technology"],
.brand-logo-card img[alt="Ruijie Reyee"]{
  max-height:66px;
}
.brand-logo-row img[alt="Dahua Technology"],
.brand-logo-row img[alt="Ruijie Reyee"]{
  padding:10px;
}
@media (min-width: 1081px){
  .hero-inner{
    min-height:680px;
    align-items:center;
  }
  .hero-panel{
    max-width:520px;
    justify-self:end;
  }
}
@media (max-width: 1080px){
  .hero-inner{
    padding:58px 0 76px;
  }
  .hero-panel{
    max-width:720px;
  }
}
@media (max-width: 760px){
  .container{
    width:calc(100% - 32px);
  }
  .topbar{
    text-align:center;
  }
  .topbar-inner{
    align-items:center;
    gap:8px;
  }
  .nav{
    padding:14px 0;
  }
  .brand{
    max-width:calc(100% - 52px);
    align-items:flex-start;
  }
  .logo{
    height:52px;
    max-width:240px;
  }
  .logo-tagline{
    font-size:11px;
    white-space:normal;
  }
  .menu-btn{
    right:0;
    border-radius:8px;
  }
  .nav-links.open{
    left:0;
    right:0;
    top:72px;
    border-radius:8px;
  }
  .hero-inner{
    padding:48px 0 64px;
  }
  h1{
    font-size:1.9rem;
    letter-spacing:0;
    line-height:1.15;
  }
  h2{
    font-size:1.85rem;
    letter-spacing:0;
  }
  .hero-sub{
    font-size:1.08rem;
    line-height:1.45;
  }
  .hero-desc{
    font-size:.96rem;
  }
  .hero-actions .btn,
  .cta-box .btn{
    width:100%;
  }
  .hero-trust{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .hero-panel{
    margin-top:30px;
    padding:14px;
  }
  .metric,
  .mini-service{
    padding:16px;
  }
  .stats-bar{
    margin-top:0;
  }
  .stats-wrap{
    gap:12px;
  }
  .stat-card{
    padding:18px;
  }
  .brand-logo-card{
    min-height:96px;
    padding:16px;
  }
  .brand-logo-card img{
    max-height:56px;
  }
  .brand-category-card,
  .service-card,
  .contact-card,
  .project-cta{
    padding:22px;
  }
  .project-gallery{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }
  .project-main-gallery{
    grid-template-columns:1fr;
    gap:12px;
  }
  .project-gallery img{
    aspect-ratio:1/1;
  }
  .featured-cover img{
    border-radius:8px;
  }
  .footer{
    padding-top:46px;
  }
}
@media (max-width: 420px){
  .logo{
    height:48px;
    max-width:220px;
  }
  h1{
    font-size:2rem;
  }
  .project-gallery{
    grid-template-columns:1fr 1fr;
  }
}

/* FINAL MOBILE + IMAGE STABILITY PASS */
.project-slider img:first-child{
  opacity:1;
  transform:scale(1);
}
.project-slider img.active{
  z-index:1;
}
.brand-logo-card{
  align-content:center;
  gap:10px;
}
.brand-logo-card span{
  display:block;
  color:#64748b;
  font-size:.82rem;
  font-weight:800;
  line-height:1;
  text-align:center;
}
.brand-logo-card img[alt="pfSense"]{
  max-height:54px;
}
@media (max-width: 760px){
  body,
  .site{
    max-width:100%;
    overflow-x:hidden;
  }
  .container{
    width:calc(100vw - 32px);
    max-width:100%;
  }
  .hero-copy,
  .hero-copy h1,
  .hero-sub,
  .hero-desc,
  .hero-copy p{
    width:100%;
    max-width:100%;
    overflow-wrap:break-word;
    word-break:normal;
  }
  .hero-desc{
    line-height:1.65;
  }
  .hero-sub{
    font-size:.98rem;
    line-height:1.55;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .topbar-inner{
    justify-content:center;
    text-align:center;
  }
  .topbar-inner > div{
    width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .topbar{
    font-size:.76rem;
    line-height:1.45;
  }
  .mobile-break{
    display:block;
  }
  .page-hero p,
  .section-head p,
  .service-card p,
  .service-card li,
  .feature-box p,
  .feature-box li,
  .project-category-card p,
  .project-category-card li,
  .text-muted{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .page-hero .lead,
  .page-hero p{
    font-size:.96rem;
    line-height:1.65;
  }
  .page-hero p,
  .section-head h2,
  .section-head p,
  .service-card p,
  .service-card li,
  .project-category-card p,
  .project-category-card li{
    width:min(100%, calc(100vw - 56px));
  }
}

/* WHATSAPP IMAGE BUTTON HARDENING */
.whatsapp-float{
  right:20px !important;
  bottom:20px !important;
  z-index:99999 !important;
  background:transparent url("whatsapp-button-crop.png") center/contain no-repeat !important;
  overflow:visible;
}
.whatsapp-float img{
  display:none !important;
}
@media (max-width:760px){
  .whatsapp-float{
    left:280px !important;
    right:auto !important;
    bottom:20px !important;
    width:62px !important;
    height:62px !important;
  }
}
@media (max-width:360px){
  .whatsapp-float{
    left:230px !important;
  }
}
