/* ============================================================
   Matricial, LLC — shared stylesheet
   Clean, modern B2B. No external assets. Inline SVG icons only.
   ============================================================ */

:root {
  --navy:   #0f2540;
  --navy-2: #17365c;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --ink:    #1e293b;
  --slate:  #475569;
  --muted:  #64748b;
  --line:   #e2e8f0;
  --bg:     #ffffff;
  --bg-soft:#f8fafc;
  --bg-tint:#eef4ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,37,64,.06), 0 8px 24px rgba(15,37,64,.06);
  --maxw:   1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 15px;
  color: var(--navy);
  text-transform: uppercase;
}
.brand:hover { color: var(--navy); }
.brand .mark {
  width: 26px; height: 26px;
  display: inline-grid; place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff; font-weight: 800; letter-spacing: 0;
  font-size: 14px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--slate);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn.ghost:hover { background: var(--bg-soft); color: var(--navy); box-shadow: none; }
.btn.light {
  background: #fff; color: var(--navy); border-color: #fff;
}
.btn.light:hover { background: #eaf1ff; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(37,99,235,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), #fff);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .35;
  mask-image: radial-gradient(700px 380px at 78% 6%, #000, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 92px 0 84px;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-tint);
  border: 1px solid #dbe6ff;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 18px;
  font-weight: 800;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--slate);
  margin: 0 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: 800;
}
h3 {
  font-size: 1.18rem;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 700;
}
.section-head p { font-size: 1.08rem; color: var(--slate); margin: 0; }
.bg-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #cdd8ea; box-shadow: 0 14px 34px rgba(15,37,64,.10); }
.card p { color: var(--slate); margin: 0; }
.icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--bg-tint);
  color: var(--accent);
  margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }

/* ---------- Service detail rows ---------- */
.service {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: none; }
.service .icon { margin-bottom: 0; width: 52px; height: 52px; }
.service .icon svg { width: 26px; height: 26px; }
.service p { color: var(--slate); margin: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose p { color: var(--slate); font-size: 1.06rem; margin: 0 0 18px; }
.prose h3 { margin-top: 30px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.info-block { margin-bottom: 24px; }
.info-label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.info-value { font-size: 1.1rem; color: var(--navy); font-weight: 600; }
.info-value.addr { font-weight: 500; color: var(--ink); line-height: 1.7; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: 20px;
  padding: 54px 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d6ea; font-size: 1.1rem; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c6d9;
  padding: 46px 0 34px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 30px; flex-wrap: wrap; padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { color: #fff; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; }
.footer-brand + p { margin: 12px 0 0; max-width: 360px; color: #93a6bf; font-size: .96rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: #b9c6d9; font-size: .96rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px; font-size: .88rem; color: #7f93ad;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom address { font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 26px; }
  .service { grid-template-columns: 52px 1fr; gap: 16px; }
  .hero-inner { padding: 68px 0 60px; }
}
