/* ============================================================
   CADSPIRA ENGINEERING CONSULTANTS — v2 (light, premium)
   ============================================================ */
:root {
  --navy:      #0B1F3A;
  --navy-2:    #0e2748;
  --navy-3:    #103061;
  --blue:      #1479FF;
  --blue-dark: #0f63e0;
  --blue-soft: #EAF2FF;
  --ink:       #0B1F3A;
  --body:      #55617A;
  --muted:     #8A94A6;
  --light:     #F5F7FA;
  --light-2:   #EDF1F7;
  --white:     #FFFFFF;
  --line:      #E5EAF2;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow:    0 10px 30px rgba(11,31,58,0.06);
  --shadow-md: 0 18px 44px rgba(11,31,58,0.10);
  --shadow-lg: 0 30px 70px rgba(11,31,58,0.14);
  --ease:      cubic-bezier(.4,0,.2,1);
  --font:      'Manrope', 'Inter', system-ui, sans-serif;
  --maxw:      1200px;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--body); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img,svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1,h2,h3,h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); }

/* ── eyebrow + heading ── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }
.h-title { font-size: clamp(28px, 3.4vw, 42px); }
.h-sub { font-size: 16.5px; color: var(--body); max-width: 620px; margin-top: 14px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .h-sub { margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: 52px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.01em; cursor: pointer; border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(20,121,255,0.28); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(20,121,255,0.36); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── NAVBAR ── */
.nav { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), #0f5fd6); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; box-shadow: 0 6px 16px rgba(20,121,255,0.35); }
.brand-name { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.brand-name em { display: block; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--body); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ── HERO ── */
.hero { background: radial-gradient(ellipse 80% 120% at 85% -10%, #143a6e 0%, var(--navy) 55%); color: #fff; position: relative; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 60px 60px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000, transparent 75%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 84px 0 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #9db8e0; margin-bottom: 22px; }
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); color: #fff; line-height: 1.05; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--blue); }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,0.72); max-width: 500px; margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }

/* trust chips row */
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,0.8); font-weight: 600; }
.trust span svg { width: 16px; height: 16px; color: var(--blue); }

/* stats bar */
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 34px 0 46px; margin-top: 46px; border-top: 1px solid rgba(255,255,255,0.1); }
.stat { display: flex; align-items: center; gap: 14px; }
.stat-ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(20,121,255,0.16); color: #6fb0ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-num { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.stat-lbl { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 3px; }

/* ── SERVICE CARDS ── */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d3e0f5; }
.card-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.card-ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 18px; }
.card-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.card-list li { font-size: 14px; color: var(--body); display: flex; align-items: center; gap: 10px; font-weight: 600; }
.card-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--blue); transition: gap .2s; }
.card-link:hover { gap: 10px; }

/* ── INDUSTRIES ── */
.industries { display: grid; grid-template-columns: repeat(8,1fr); gap: 16px; }
.ind { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.ind:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3e0f5; }
.ind-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.ind-ic svg { width: 24px; height: 24px; }
.ind span { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* ── WHY CHOOSE (dark) ── */
.why { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.why .why-bg { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(20,121,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20,121,255,0.06) 1px, transparent 1px); background-size: 54px 54px; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 20% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 20% 30%, #000, transparent 70%); }
.why-in { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 60px; align-items: start; }
.why h2 { color: #fff; font-size: clamp(26px,3vw,38px); }
.why .h-sub { color: rgba(255,255,255,0.66); }
.why-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; }
.feat { display: flex; gap: 16px; }
.feat-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(20,121,255,0.15); color: #6fb0ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feat-ic svg { width: 22px; height: 22px; }
.feat h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.feat p { font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── PROCESS ── */
.process { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; position: relative; }
.step { text-align: center; position: relative; }
.step-num { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 18px; font-weight: 800; position: relative; z-index: 1; }
.step h4 { font-size: 15.5px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--body); }
.process::before { content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: 0; }

/* ── SOFTWARE ── */
.software { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.soft-chip { display: flex; align-items: center; gap: 14px; padding: 20px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 220px; }
.soft-chip .si { width: 44px; height: 44px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.soft-chip b { display: block; color: var(--ink); font-size: 15px; }
.soft-chip small { color: var(--muted); font-size: 12.5px; }

/* ── CTA BAND ── */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; border-radius: 24px; padding: 56px 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 360px; height: 360px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='none' stroke='%231479FF' stroke-opacity='0.16'%3E%3Cellipse cx='180' cy='180' rx='40' ry='30'/%3E%3Cellipse cx='180' cy='180' rx='80' ry='60'/%3E%3Cellipse cx='180' cy='180' rx='120' ry='92'/%3E%3Cellipse cx='180' cy='180' rx='160' ry='126'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain; }
.cta-txt { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(24px,2.6vw,32px); margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,0.7); font-size: 15px; max-width: 520px; }
.cta .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ── FOOTER ── */
.footer { background: var(--navy); color: #fff; padding: 70px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { color: rgba(255,255,255,0.55); font-size: 14px; margin-top: 16px; max-width: 280px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: background .2s, color .2s; }
.foot-social a:hover { background: var(--blue); color: #fff; }
.foot-col h5 { color: #fff; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.foot-col a, .foot-col p { display: block; color: rgba(255,255,255,0.55); font-size: 14px; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap; }
.foot-bottom a { color: rgba(255,255,255,0.5); }
.foot-bottom a:hover { color: #fff; }

/* ── PAGE HERO (inner) ── */
.phero { background: radial-gradient(ellipse 80% 130% at 85% -20%, #143a6e 0%, var(--navy) 60%); color: #fff; padding: 66px 0 58px; position: relative; overflow: hidden; }
.phero .hero-grid-bg { -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 50%, #000, transparent 72%); mask-image: radial-gradient(ellipse 60% 90% at 80% 50%, #000, transparent 72%); }
.phero-in { position: relative; z-index: 1; }
.phero h1 { color: #fff; font-size: clamp(30px,3.8vw,46px); }
.crumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; }
.crumb a:hover { color: #fff; }

/* ── ABOUT ── */
.about-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.vmv { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.vmv .card { text-align: left; }
.values-row { display: flex; flex-wrap: wrap; gap: 12px; }
.value-pill { padding: 12px 22px; border-radius: 30px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 14px; border: 1px solid #d6e6ff; }

/* ── SERVICES DETAIL ── */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 40px; }
.svc-row.rev .svc-media { order: 2; }
.svc-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--light); }
.svc-media svg { width: 100%; height: auto; display: block; }
.svc-body h3 { font-size: 26px; margin-bottom: 12px; }
.svc-body > p { font-size: 15px; margin-bottom: 20px; }
.svc-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 26px; }
.svc-tags li { font-size: 14px; color: var(--body); display: flex; align-items: center; gap: 10px; font-weight: 600; }
.svc-tags li::before { content: '✓'; color: var(--blue); font-weight: 800; }

/* ── FAQ ── */
.faq-wrap { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 40px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq-item.open { box-shadow: var(--shadow); border-color: #d3e0f5; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 700; color: var(--ink); font-size: 15.5px; }
.faq-q .pm { width: 26px; height: 26px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; transition: transform .3s var(--ease), background .2s, color .2s; }
.faq-item.open .pm { background: var(--blue); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 24px 22px; font-size: 14.5px; color: var(--body); }
.faq-aside { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-md); }
.faq-aside h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.faq-aside p { color: rgba(255,255,255,0.85); font-size: 14.5px; margin-bottom: 22px; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea { padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font); font-size: 14.5px; color: var(--ink); background: var(--light); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(20,121,255,0.12); }
.field textarea { resize: vertical; min-height: 120px; }
.info-card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 34px; }
.info-item { display: flex; gap: 15px; margin-bottom: 24px; }
.info-item .ii { width: 44px; height: 44px; border-radius: 11px; background: rgba(20,121,255,0.16); color: #6fb0ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-item h5 { color: #fff; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.info-item p { color: rgba(255,255,255,0.72); font-size: 14px; }
.info-cta { margin-top: 6px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); border-radius: var(--radius); padding: 26px 24px; }
.info-cta h4 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.info-cta p { color: rgba(255,255,255,0.85); font-size: 13.5px; margin-bottom: 16px; }
#formMsg { display: none; background: #e8f6ee; color: #1c7d46; border: 1px solid #bfe6cf; padding: 14px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }

/* ── reveal animation ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
  .hero-visual { max-width: 520px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .cards-3 { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(4,1fr); }
  .why-in { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr 1fr; gap: 34px; }
  .process::before { display: none; }
  .about-split, .svc-row, .svc-row.rev, .faq-wrap, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .svc-row.rev .svc-media { order: 0; }
  .vmv { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px 20px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .burger { display: flex; }
  .nav-cta-btn { display: none; }
  .industries { grid-template-columns: repeat(2,1fr); }
  .why-feats { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .cta { flex-direction: column; text-align: center; padding: 44px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-bottom { flex-direction: column; text-align: center; }
}
