@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700&display=swap");

:root{
  --ink-900:#111827;
  --ink-700:#374151;
  --muted-500:#6B7280;
  --border-200:#E5E7EB;
  --surface:#FFFFFF;
  --subsurface:#F6F8FB;
  --accent-600:#2563EB;
  --accent-700:#1D4ED8;
  --shadow-card:0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-card-hover:0 12px 32px rgba(17, 24, 39, 0.10);
}

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

body{
  margin:0;
  background:var(--surface);
  color:var(--ink-900);
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:24px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{ text-decoration:none; color:inherit; }
a:visited{ color:inherit; }

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

*:focus-visible{
  outline:2px solid var(--accent-600);
  outline-offset:2px;
  border-radius:8px;
}

h1{
  font-family:"Manrope",sans-serif;
  font-weight:700;
  font-size:44px;
  line-height:56px;
  letter-spacing:-0.02em;
  margin:0;
}
h2{
  font-family:"Manrope",sans-serif;
  font-weight:700;
  font-size:32px;
  line-height:40px;
  letter-spacing:-0.01em;
  margin:0;
}

@media (max-width:1024px){
  h1{ font-size:36px; line-height:44px; }
  h2{ font-size:28px; line-height:36px; }
}
@media (max-width:430px){
  h1{ font-size:30px; line-height:40px; }
  h2{ font-size:24px; line-height:32px; }
}

/* ===== Header/Navbar (safe) ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--surface);
  border-bottom:1px solid var(--border-200);
}
.header-inner{
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.site-brand{
  display:flex;
  align-items:center;
  gap:16px;
}
.brand-text{
  font-family:"Manrope",sans-serif;
  font-weight:700;
  font-size:18px;
  line-height:24px;
  color:var(--ink-900);
}
.site-nav{
  display:flex;
  align-items:center;
  gap:22px;
}
.nav-link{
  position:relative;
  padding:8px 0;
  font-size:16px;
  font-weight:500;
  line-height:24px;
  color:#0B1220;
}
.nav-link::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:2px;
  width:24px;
  height:2px;
  background:transparent;
  border-radius:999px;
  transition:background .15s ease;
}
.nav-link:hover::after{ background:rgba(26,76,224,0.30); }
.nav-link.is-active{ color:#1A4CE0; }
.nav-link.is-active::after{ background:#1A4CE0; }

.btn.btn-header{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 20px;
  border-radius:12px;
  font-size:16px;
  font-weight:500;
  background:#1A4CE0;
  color:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  white-space:nowrap;
}
.btn.btn-header:hover{ background:#1742C7; }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:10px;
  border-radius:10px;
}
.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:var(--ink-900);
  margin:5px 0;
  border-radius:2px;
}

/* Mobile nav */
.mobile-nav{
  position:fixed;
  inset:0;
  background:rgba(17,24,39,0.35);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:99;
}
.mobile-nav.open{ opacity:1; pointer-events:auto; }
.mobile-panel{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:min(360px, 90vw);
  background:var(--surface);
  border-left:1px solid var(--border-200);
  padding:18px;
  transform:translateX(100%);
  transition:transform .18s ease;
}
.mobile-nav.open .mobile-panel{ transform:translateX(0); }
.mobile-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.m-link{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  font-weight:500;
  color:var(--ink-700);
}
.m-link:hover{ background:var(--subsurface); }
.m-link.is-active{ background:var(--subsurface); color:var(--accent-600); }
.btn.btn-mobile{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  height:48px;
  border-radius:12px;
  background:var(--accent-600);
  color:#fff;
  font-weight:600;
}
@media (max-width:1020px){
  .site-nav, .btn.btn-header{ display:none; }
  .nav-toggle{ display:block; }
}

/* ===== Hero ===== */
.page-hero{
  background:var(--subsurface);
  border-bottom:1px solid var(--border-200);
  padding:48px 0 34px;
  text-align:center;
}
.page-hero p{
  margin:12px auto 0;
  max-width:920px;
  color:var(--ink-700);
}
.page-hero strong{ font-weight:600; }

/* ===== Services rows ===== */
.service-row{
  position:relative;
  padding:56px 0;
  overflow:hidden;
  border-bottom:1px solid var(--border-200);
}
.service-row .service-bg{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  opacity:1;
}
.service-row .service-overlay{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.88);
}
.service-content{
  position:relative;
  z-index:2;
}

/* ✅ RED BOX width */
.service-row .service-content.container{
  max-width:980px;
}

.service-row--scan .service-bg{ background-image:url("../assets/Scan-to-CAD Lite.png"); }
.service-row--concept .service-bg{ background-image:url("../assets/Concept-to-Prototype Sprint.png"); }
.service-row--enclosure .service-bg{ background-image:url("../assets/Device Enclosure.png"); }
.service-row--dfm .service-bg{ background-image:url("../assets/bg.png"); opacity:0.8; }

.service-head{
  max-width:980px;
  margin:0 auto 18px;
  text-align:left;
}
.service-head p{ margin:10px 0 0; color:var(--ink-700); }

.service-cards{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:18px;
  align-items:start;
}

.service-card{
  border:1px solid var(--border-200);
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow-card);
  padding:16px;
}

.k{
  color:var(--muted-500);
  font-size:12px;
  line-height:16px;
  font-weight:800;
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.v{
  color:var(--ink-900);
  font-size:14px;
  line-height:20px;
  font-weight:600;
}

.kv{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px;
}
.divider{
  height:1px;
  background:var(--border-200);
  margin:12px 0;
}

.scope-block + .scope-block{ margin-top:14px; }
.scope-title{
  color:var(--muted-500);
  font-size:12px;
  line-height:16px;
  font-weight:800;
  letter-spacing:0.06em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.icon-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.icon-list li{
  position:relative;
  padding-left:24px;
  color:var(--ink-700);
  font-size:14px;
  line-height:20px;
  font-weight:500;
}
.icon-list--check li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  width:18px;
  height:18px;
  line-height:18px;
  font-size:14px;
  font-weight:900;
  color:var(--accent-600);
}
.icon-list--x li::before{
  content:"✕";
  position:absolute;
  left:0;
  top:0;
  width:18px;
  height:18px;
  line-height:18px;
  font-size:13px;
  font-weight:900;
  color:#DC2626;
}

/* ✅ Desired bottom layout */
.service-bottom{
  margin-top:18px;
}

.revisions-bar{
  border:1px solid var(--border-200);
  border-radius:16px;
  background:var(--subsurface);
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
}

.service-actions{
  margin-top:14px;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
}

/* buttons fixed like green boxes */
.sbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:48px;
  padding:0 18px;
  border-radius:16px;
  font-size:15px;
  font-weight:600;
  line-height:24px;
  white-space:nowrap;
  width:360px;
  max-width:100%;
}

.sbtn-primary{
  background:var(--accent-600);
  color:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}
.sbtn-primary:hover{ background:var(--accent-700); }

.sbtn-secondary{
  background:#fff;
  border:1px solid #D0D5DD;
  color:#0B1220;
}
.sbtn-secondary:hover{ background:#F9FAFB; }

@media (max-width:1024px){
  .service-row .service-content.container{ max-width:100%; }
  .service-cards{ grid-template-columns:1fr; }
  .sbtn{ width:100%; }
}

/* ===== Extra sections ===== */
.deliverables-section{
  padding:56px 0 64px;
  background:var(--surface);
  border-bottom:1px solid var(--border-200);
}
.deliverables-section h2{ text-align:center; margin:0 0 18px; }

.deliverables-list{
  margin:0 auto;
  padding:0;
  list-style:none;
  max-width:820px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 18px;
}
.deliverables-list li{
  position:relative;
  padding-left:18px;
  color:var(--ink-700);
  font-size:14px;
  line-height:20px;
  font-weight:500;
}
.deliverables-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:9px;
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--accent-600);
}
@media (max-width:768px){
  .deliverables-list{ grid-template-columns:1fr; }
}

.workflow-section{
  padding:56px 0 64px;
  background:var(--subsurface);
  border-bottom:1px solid var(--border-200);
}
.workflow-section h2{ text-align:center; margin:0 0 18px; }

.workflow-steps{
  max-width:920px;
  margin:0 auto;
  display:grid;
  gap:10px;
}
.wf-step{
  border:1px solid var(--border-200);
  border-radius:16px;
  background:var(--surface);
  padding:12px 14px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  color:var(--ink-700);
  font-size:14px;
  line-height:20px;
  font-weight:600;
}
.wf-num{
  width:28px;
  height:28px;
  border-radius:10px;
  background:rgba(37,99,235,0.12);
  border:1px solid rgba(37,99,235,0.25);
  color:var(--accent-600);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  flex:0 0 auto;
}

.industries-section{
  padding:44px 0 64px;
  background:var(--surface);
  border-bottom:1px solid var(--border-200);
}
.industries-section h2{ text-align:center; margin:0 0 16px; }
.industries-pills{
  margin:0 auto;
  padding:0;
  list-style:none;
  max-width:880px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}
.industries-pills li{
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 14px;
  border-radius:999px;
  background:var(--subsurface);
  border:1px solid var(--border-200);
  color:var(--ink-700);
  font-size:14px;
  line-height:20px;
  font-weight:600;
}

/* CTA bottom */
.cta-section{
  padding:44px 0 72px;
  background:var(--subsurface);
}
.cta-container{
  max-width:720px;
  margin:0 auto;
  text-align:center;
  padding:0 24px;
}
.cta-subtitle{ margin:10px auto 18px; color:var(--ink-700); }
.cta-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 20px;
  border-radius:12px;
  background:var(--accent-600);
  color:#fff;
  font-size:16px;
  line-height:24px;
  font-weight:600;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}
.cta-button:hover{ background:var(--accent-700); }

/* Footer */
.site-footer{
  background:var(--surface);
  border-top:1px solid var(--border-200);
  padding:56px 24px 28px;
  color:var(--ink-700);
}
.footer-inner{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:44px;
}
.footer-brand .brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  color:var(--ink-900);
  font-family:"Manrope",sans-serif;
  font-weight:700;
}
.footer-brand p{ margin:0; font-size:14px; line-height:20px; }
.footer-nav h4,
.footer-contact h4{
  margin:0 0 12px;
  color:var(--ink-900);
  font-family:"Manrope",sans-serif;
  font-weight:600;
}
.footer-nav a{
  display:block;
  margin:8px 0;
  color:var(--ink-700);
  font-size:14px;
  line-height:20px;
}
.footer-nav a:hover{ color:var(--ink-900); }
.footer-contact .email-link{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink-700);
}
.footer-contact img{ width:18px; height:18px; }
.socials{ display:flex; gap:12px; margin-top:12px; }
.socials img{ width:18px; height:18px; opacity:0.9; }
.footer-bottom{
  margin-top:28px;
  text-align:center;
  font-size:14px;
  line-height:20px;
  color:var(--muted-500);
}
@media (max-width:1024px){
  .footer-inner{ grid-template-columns:1fr; gap:22px; }
}

/* visited hotfix */
a.btn.btn-header:visited,
a.btn.btn-mobile:visited,
a.sbtn-primary:visited,
a.cta-button:visited{ color:#fff; }
a.sbtn-secondary:visited{ color:#0B1220; }