/* =========================================================
   QB Care Updates — design system
   Palette: white / paper-blue / bright blue / navy / amber
   Type: Space Grotesk (display) + Inter (body) + IBM Plex Mono (labels)
   Signature: blueprint / schematic motif — dot-grid, corner brackets,
   dashed connector lines, spec-sheet tags.
   ========================================================= */

:root{
  --white:#ffffff;
  --paper:#f4f8fd;
  --paper-line:#e2eaf5;
  --blue:#0b5fff;
  --blue-dark:#0847c9;
  --blue-tint:#eaf1ff;
  --navy:#0b1f3a;
  --navy-soft:#33455f;
  --slate:#5b6b7f;
  --amber:#ff9c2a;
  --green-ok:#1f9d55;
  --radius-lg:18px;
  --radius-md:12px;
  --radius-sm:8px;
  --shadow-card:0 2px 8px rgba(11,31,58,0.06), 0 10px 24px rgba(11,31,58,0.06);
  --shadow-card-hover:0 6px 16px rgba(11,31,58,0.10), 0 18px 36px rgba(11,31,58,0.10);
  --maxw:1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--navy-soft);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:"Space Grotesk", "Inter", sans-serif;
  color:var(--navy);
  margin:0 0 .5em 0;
  line-height:1.15;
  letter-spacing:-0.01em;
}
p{margin:0 0 1em 0;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
ul{margin:0;padding:0;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
.tag{
  font-family:"IBM Plex Mono", monospace;
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--blue);
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.tag::before{
  content:"";
  width:18px;height:1px;background:var(--blue);display:inline-block;
}
section{padding:88px 0;}
@media (max-width:768px){ section{padding:56px 0;} }

/* ---------- dot grid backgrounds ---------- */
.dot-grid{
  background-image:radial-gradient(var(--paper-line) 1.4px, transparent 1.4px);
  background-size:24px 24px;
}
.dot-grid-dark{
  background-image:radial-gradient(rgba(255,255,255,0.14) 1.4px, transparent 1.4px);
  background-size:24px 24px;
}

/* ---------- skip link / focus ---------- */
.skip-link{
  position:absolute;left:-999px;top:0;background:var(--navy);color:#fff;
  padding:10px 16px;z-index:1000;border-radius:0 0 8px 0;
}
.skip-link:focus{left:0;}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:3px solid var(--amber); outline-offset:2px;
}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--paper-line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; max-width:var(--maxw); margin:0 auto;
}
.brand{display:flex; align-items:center; gap:10px; font-family:"Space Grotesk",sans-serif; font-weight:700; font-size:19px; color:var(--navy);}
.brand-mark{
  width:38px;height:38px;border-radius:10px;
  background:linear-gradient(155deg, var(--blue), var(--blue-dark));
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  box-shadow:0 4px 10px rgba(11,95,255,0.28);
}
.brand-mark svg{width:22px;height:22px;}
.brand small{display:block;font-family:"Inter",sans-serif;font-weight:500;font-size:11px;color:var(--slate);letter-spacing:0.03em;}

.main-nav{display:flex; align-items:center; gap:30px;}
.main-nav ul{display:flex; gap:26px; list-style:none;}
.main-nav a{
  font-size:14.5px; font-weight:600; color:var(--navy-soft);
  padding:6px 2px; position:relative;
}
.main-nav a.active, .main-nav a:hover{color:var(--blue);}
.main-nav a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--blue);
}
.call-btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--navy); color:#fff !important; font-weight:700; font-size:14.5px;
  padding:11px 20px; border-radius:100px; white-space:nowrap;
  transition:transform .15s ease, background .15s ease;
  border:none; cursor:pointer;
}
.call-btn:hover{background:var(--blue); transform:translateY(-1px);}
.call-btn svg{width:16px;height:16px;flex-shrink:0;}

.nav-toggle{display:none; background:none; border:none; cursor:pointer; padding:8px; border-radius:8px;}
.nav-toggle:hover{background:var(--paper);}
.nav-toggle svg{width:26px;height:26px;color:var(--navy);}
.mobile-nav{display:none;}

@media (max-width:960px){
  .main-nav ul{display:none;}
  .nav-toggle{display:block;}
  .header-inner{flex-wrap:wrap;}
  .mobile-nav{
    width:100%; flex-direction:column; gap:2px;
    border-top:1px solid var(--paper-line); margin-top:14px; padding-top:14px;
  }
  .mobile-nav.open{display:flex;}
  .mobile-nav a{padding:12px 4px; font-weight:600; color:var(--navy-soft); border-bottom:1px solid var(--paper-line);}
  .mobile-nav a.active{color:var(--blue);}
}

@media (min-width:961px) and (max-width:1120px){
  .main-nav{gap:18px;}
  .main-nav ul{gap:16px;}
  .main-nav a{font-size:14px;}
  .call-btn{padding:10px 16px; font-size:14px;}
  .brand small{display:none;}
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-weight:700; font-size:15px; padding:14px 28px; border-radius:100px;
  border:2px solid transparent; cursor:pointer; transition:all .15s ease;
  font-family:"Inter",sans-serif;
}
.btn svg{width:17px;height:17px;flex-shrink:0;}
.btn-primary{background:var(--blue); color:#fff; box-shadow:0 8px 20px rgba(11,95,255,0.28);}
.btn-primary:hover{background:var(--blue-dark); transform:translateY(-2px);}
.btn-ghost{background:transparent; color:var(--navy); border-color:var(--paper-line);}
.btn-ghost:hover{border-color:var(--blue); color:var(--blue);}
.btn-light{background:#fff; color:var(--navy);}
.btn-light:hover{transform:translateY(-2px);}
.btn-block{width:100%;}
.btn-row{display:flex; gap:14px; flex-wrap:wrap;}

/* ---------- hero ---------- */
.hero{
  position:relative; overflow:hidden;
  padding:110px 0 90px;
  background:var(--paper);
}
.hero::before{
  content:""; position:absolute; top:-180px; right:-160px; width:520px; height:520px;
  background:radial-gradient(circle, rgba(11,95,255,0.14) 0%, rgba(11,95,255,0) 68%);
  pointer-events:none;
}
.hero::after{
  content:""; position:absolute; bottom:-220px; left:-140px; width:460px; height:460px;
  background:radial-gradient(circle, rgba(255,156,42,0.10) 0%, rgba(255,156,42,0) 70%);
  pointer-events:none;
}
.hero .container{position:relative; z-index:1;}
.hero-grid{
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
}
@media (max-width:900px){ .hero-grid{grid-template-columns:1fr;} .hero{padding:70px 0 50px;} }
.hero h1{font-size:clamp(32px,4.4vw,52px); max-width:620px;}
.hero .lead{font-size:17.5px; max-width:520px; color:var(--slate);}
.hero-badges{display:flex; gap:10px; flex-wrap:wrap; margin:26px 0 30px;}
.badge{
  font-family:"IBM Plex Mono",monospace; font-size:12px; letter-spacing:0.04em;
  background:#fff; border:1px solid var(--paper-line); color:var(--navy-soft);
  padding:8px 13px; border-radius:8px; display:flex; align-items:center; gap:6px;
}
.badge svg{width:13px;height:13px;color:var(--blue);}

/* schematic illustration panel */
.schematic-panel{
  position:relative; background:linear-gradient(155deg,#ffffff 0%, var(--blue-tint) 130%);
  border-radius:var(--radius-lg);
  border:1px solid var(--paper-line); box-shadow:0 20px 50px rgba(11,31,58,0.10), 0 4px 14px rgba(11,31,58,0.06);
  padding:30px; aspect-ratio:1/1;
}
.schematic-panel::before, .schematic-panel::after,
.corner-frame::before, .corner-frame::after{content:"";}
.corner-frame{position:relative;}
.corner{
  position:absolute; width:22px; height:22px; border-color:var(--blue); border-style:solid; border-width:0;
}
.corner.tl{top:-1px; left:-1px; border-top-width:3px; border-left-width:3px; border-radius:6px 0 0 0;}
.corner.tr{top:-1px; right:-1px; border-top-width:3px; border-right-width:3px; border-radius:0 6px 0 0;}
.corner.bl{bottom:-1px; left:-1px; border-bottom-width:3px; border-left-width:3px; border-radius:0 0 0 6px;}
.corner.br{bottom:-1px; right:-1px; border-bottom-width:3px; border-right-width:3px; border-radius:0 0 6px 0;}

/* ---------- section headings ---------- */
.section-head{max-width:640px; margin:0 auto 46px;}
.section-head.center{text-align:center;}
.section-head h2{font-size:clamp(26px,3vw,36px); margin-top:10px;}
.section-head p{color:var(--slate); font-size:16px; margin-top:10px;}

/* ---------- cards ---------- */
.grid{display:grid; gap:24px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
@media (max-width:900px){ .grid-3,.grid-4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;} }

.card{
  background:#fff; border:1px solid var(--paper-line); border-radius:var(--radius-lg);
  padding:30px; box-shadow:var(--shadow-card); transition:box-shadow .18s ease, transform .18s ease;
  position:relative;
}
.card:hover{box-shadow:var(--shadow-card-hover); transform:translateY(-3px);}
.card .icon-box{
  width:52px;height:52px;border-radius:12px; background:var(--blue-tint);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.card .icon-box svg{width:26px;height:26px;color:var(--blue);}
.card h3{font-size:18.5px; margin-bottom:8px;}
.card p{color:var(--slate); font-size:14.5px; margin-bottom:0;}

.card-list{list-style:none; margin-top:16px; display:flex; flex-direction:column; gap:9px;}
.card-list li{
  display:flex; align-items:flex-start; gap:10px; font-size:14.5px; color:var(--navy-soft);
}
.card-list svg{width:16px;height:16px; color:var(--green-ok); flex-shrink:0; margin-top:3px;}

/* service note */
.service-note{
  font-size:13.5px; color:var(--slate); background:var(--paper);
  border-left:3px solid var(--amber); padding:12px 16px; border-radius:0 8px 8px 0; margin-top:18px;
}

/* ---------- why choose us ---------- */
.feature-card{text-align:left;}

/* ---------- how it works (wiring/connector motif) ---------- */
.steps{
  display:grid; grid-template-columns:repeat(3,1fr); gap:0; position:relative; counter-reset:step;
}
@media (max-width:800px){ .steps{grid-template-columns:1fr; gap:34px;} }
.step{position:relative; padding:0 26px; text-align:left;}
.step:first-child{padding-left:0;}
.step:last-child{padding-right:0;}
.step-num{
  font-family:"IBM Plex Mono",monospace; font-weight:600; font-size:13px; color:var(--blue);
  display:flex; align-items:center; gap:10px; margin-bottom:16px;
}
.step-num .dot{
  width:34px;height:34px;border-radius:50%; background:var(--navy); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:"Space Grotesk",sans-serif; font-size:14px;
}
.steps .step:not(:last-child)::after{
  content:""; position:absolute; top:17px; left:calc(100% - 8px); width:52px;
  border-top:2px dashed var(--paper-line);
}
@media (max-width:800px){ .steps .step::after{display:none;} }
.step h3{font-size:17px; margin-bottom:6px;}
.step p{font-size:14.5px; color:var(--slate);}

/* ---------- about ---------- */
.about-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
@media (max-width:860px){ .about-grid{grid-template-columns:1fr;} }
.spec-sheet{
  background:var(--navy); color:#fff; border-radius:var(--radius-lg); padding:34px;
  position:relative; overflow:hidden;
}
.spec-sheet .tag{color:var(--amber);}
.spec-sheet .tag::before{background:var(--amber);}
.spec-row{display:flex; justify-content:space-between; padding:13px 0; border-bottom:1px solid rgba(255,255,255,0.12); font-size:14.5px;}
.spec-row:last-child{border-bottom:none;}
.spec-row span:first-child{color:rgba(255,255,255,0.6); font-family:"IBM Plex Mono",monospace; font-size:12.5px; letter-spacing:0.04em;}
.spec-row span:last-child{font-weight:600; text-align:right;}

/* ---------- service area / map ---------- */
.area-panel{
  background:var(--navy); border-radius:var(--radius-lg); padding:48px; color:#fff; position:relative; overflow:hidden;
}
.area-panel .tag{color:var(--amber);}
.area-panel .tag::before{background:var(--amber);}
.area-inner{display:grid; grid-template-columns:1.1fr 0.9fr; gap:44px; align-items:center; position:relative; z-index:1;}
@media (max-width:860px){ .area-inner{grid-template-columns:1fr;} }
.address-block{
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14);
  border-radius:var(--radius-md); padding:22px; margin:22px 0 26px; font-size:15px;
}
.address-block .addr-label{font-family:"IBM Plex Mono",monospace; font-size:11.5px; color:var(--amber); letter-spacing:0.08em; margin-bottom:8px; display:block;}
.map-embed-wrap{border-radius:var(--radius-md); overflow:hidden; border:1px solid rgba(255,255,255,0.16); background:#0e2647;}
.map-embed-wrap iframe{width:100%; height:280px; border:0; display:block;}

/* ---------- contact ---------- */
.contact-grid{display:grid; grid-template-columns:0.9fr 1.1fr; gap:48px;}
@media (max-width:900px){ .contact-grid{grid-template-columns:1fr;} }
.contact-info-card{
  background:var(--paper); border:1px solid var(--paper-line); border-radius:var(--radius-lg); padding:32px;
}
.contact-line{display:flex; gap:14px; align-items:flex-start; margin-bottom:22px;}
.contact-line .icon-box{width:42px;height:42px;border-radius:10px;background:#fff;border:1px solid var(--paper-line);}
.contact-line .icon-box svg{width:20px;height:20px;}
.contact-line h4{font-size:14.5px; margin-bottom:3px; color:var(--navy);}
.contact-line p, .contact-line a{font-size:14.5px; color:var(--slate); margin:0;}
.contact-line a:hover{color:var(--blue);}

form{background:#fff;}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
@media (max-width:600px){ .form-grid{grid-template-columns:1fr;} }
.field{display:flex; flex-direction:column; gap:7px; margin-bottom:18px;}
.field label{font-size:13px; font-weight:600; color:var(--navy);}
.field input, .field select, .field textarea{
  border:1.5px solid var(--paper-line); border-radius:var(--radius-sm); padding:13px 14px;
  font-family:"Inter",sans-serif; font-size:14.5px; color:var(--navy); background:var(--paper);
  transition:border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{border-color:var(--blue); outline:none; background:#fff;}
.form-note{font-size:13px; color:var(--slate); margin-top:10px;}
.form-status{font-size:14px; margin-top:14px; padding:12px 14px; border-radius:8px; display:none;}
.form-status.show{display:block;}
.form-status.ok{background:#eafaf0; color:var(--green-ok);}

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius:var(--radius-lg); padding:52px; color:#fff; text-align:center;
  position:relative; overflow:hidden;
}
.cta-band h2{color:#fff; font-size:clamp(22px,2.6vw,30px);}
.cta-band p{color:rgba(255,255,255,0.85); max-width:520px; margin:0 auto 26px;}
.cta-band .btn-row{justify-content:center;}

/* ---------- footer ---------- */
.site-footer{background:var(--navy); color:rgba(255,255,255,0.72); padding:64px 0 26px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.1);}
@media (max-width:800px){ .footer-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:520px){ .footer-grid{grid-template-columns:1fr;} }
.footer-grid h4{color:#fff; font-size:13.5px; font-family:"IBM Plex Mono",monospace; letter-spacing:0.08em; margin-bottom:16px; text-transform:uppercase;}
.footer-brand{display:flex; align-items:center; gap:10px; margin-bottom:14px;}
.footer-brand span{font-family:"Space Grotesk",sans-serif; font-weight:700; color:#fff; font-size:18px;}
.footer-links{list-style:none; display:flex; flex-direction:column; gap:10px;}
.footer-links a{font-size:14px; color:rgba(255,255,255,0.68);}
.footer-links a:hover{color:#fff;}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:13px; flex-wrap:wrap; gap:10px;}
.footer-bottom a{color:rgba(255,255,255,0.6);}
.footer-bottom a:hover{color:#fff;}

/* ---------- misc pages (privacy/terms) ---------- */
.legal-content{max-width:760px; margin:0 auto;}
.legal-content h2{font-size:22px; margin-top:34px;}
.legal-content p, .legal-content li{color:var(--slate); font-size:15px;}
.legal-content ul{margin:0 0 1em 1.2em;}
.legal-content li{margin-bottom:6px;}
.updated-tag{font-family:"IBM Plex Mono",monospace; font-size:12.5px; color:var(--slate);}

/* ---------- page hero (inner pages) ---------- */
.page-hero{background:var(--paper); padding:64px 0 54px; text-align:left;}
.page-hero h1{font-size:clamp(28px,3.6vw,42px); max-width:700px;}
.page-hero p{color:var(--slate); max-width:560px; font-size:16px;}
.breadcrumb{font-family:"IBM Plex Mono",monospace; font-size:12.5px; color:var(--slate); margin-bottom:14px;}
.breadcrumb a{color:var(--blue);}

.alt-bg{background:var(--paper);}
