/* =============================================================
   Temp Sense Team LLC — Production stylesheet
   Brand: industrial, premium, US B2B distributor
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --c-navy-950: #022142;
  --c-navy-900: #0B2A52;
  --c-navy-800: #11294A;
  --c-navy-700: #1B3A66;
  --c-navy-600: #284E82;
  --c-orange-600: #E55A12;
  --c-orange-500: #FF6B1A;
  --c-orange-400: #FF8542;
  --c-steel-600: #5A6B80;
  --c-steel-400: #94A2B5;
  --c-steel-200: #D7DEE8;
  --c-surface: #FFFFFF;
  --c-surface-soft: #F4F6F9;
  --c-surface-band: #EEF1F6;
  --c-border: #E2E8F0;
  --c-border-strong: #C7D0DC;
  --c-text: #0F1B2D;
  --c-text-body: #3A4B61;
  --c-text-muted: #6B7A8F;
  --c-success: #1F8A5B;

  /* type */
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --container-max: 1240px;
  --container-pad: clamp(20px, 4vw, 40px);
  --section-py: clamp(64px, 9vw, 110px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* shadows */
  --shadow-xs: 0 1px 2px rgba(11,31,58,.06);
  --shadow-sm: 0 4px 14px rgba(11,31,58,.07);
  --shadow-md: 0 10px 30px rgba(11,31,58,.10);
  --shadow-lg: 0 24px 50px rgba(11,31,58,.16);

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-body);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a {
  color: var(--c-navy-700);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--c-orange-500); }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em 0;
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem 0; }

ul { margin: 0 0 1rem 0; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section--soft   { background: var(--c-surface-soft); }
.section--band   { background: var(--c-surface-band); }
.section--navy   { background: var(--c-navy-900); color: #D8E2F2; }
.section--navy h2,
.section--navy h3 { color: #fff; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(34px, 5vw, 60px) auto;
}
.section-head .eyebrow { margin-bottom: 14px; justify-content: center; }
.section-head p { color: var(--c-text-body); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-orange-600);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--c-orange-500);
  display: inline-block;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: .98rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: .005em;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--c-orange-500);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255,107,26,.30);
}
.btn-primary:hover { background: var(--c-orange-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 22px rgba(255,107,26,.36); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.10); color:#fff; border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--c-navy-900);
  border-color: var(--c-border-strong);
}
.btn-outline:hover { border-color: var(--c-navy-900); color: var(--c-navy-900); background: var(--c-surface-soft); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--c-orange-600);
  padding: 0;
}
.btn-link svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.btn-link:hover { color: var(--c-orange-600); }
.btn-link:hover svg { transform: translateX(4px); }

/* ---------- 5. Top utility bar ---------- */
.topbar {
  background: var(--c-navy-950);
  color: #C9D4E5;
  font-size: .82rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.topbar a { color: #DCE5F4; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-left svg { width: 14px; height: 14px; opacity: .85; }
.topbar-right { display: inline-flex; align-items: center; gap: 18px; }

/* ---------- 6. Header / Nav ---------- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800;
  color: var(--c-navy-900);
  font-size: 1.05rem;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--c-navy-900), var(--c-navy-700));
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: .92rem;
  position: relative;
  box-shadow: 0 4px 10px rgba(11,31,58,.16);
}
.brand-mark::after {
  content:"";
  position: absolute; inset: auto 6px 6px 6px;
  height: 3px;
  background: var(--c-orange-500);
  border-radius: 2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small {
  font-size: .65rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav a {
  display: inline-block;
  padding: 8px 14px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--c-navy-800);
  letter-spacing: .01em;
  border-radius: 6px;
  position: relative;
}
.nav a:hover, .nav a.active {
  color: var(--c-orange-600);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -2px;
  height: 3px;
  background: var(--c-orange-500);
  border-radius: 3px;
}
.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-border-strong);
  border-radius: 7px;
  padding: 9px;
  margin-left: auto;
  color: var(--c-navy-900);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background: var(--c-navy-900);
  color: #E2EAF7;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content:"";
  position: absolute; inset: 0;
  background-image: url("../images/hero-bg-industrial.jpg");
  background-size: cover;
  background-position: center;
  opacity: .35;
  z-index: -2;
}
.hero::after {
  content:"";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,20,39,.94) 0%, rgba(6,20,39,.78) 45%, rgba(6,20,39,.55) 70%, rgba(6,20,39,.85) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(255,107,26,.18), transparent 55%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr;
  align-items: center;
  padding: clamp(70px, 11vw, 130px) 0 clamp(80px, 12vw, 140px);
  max-width: 880px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 22px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--c-orange-400); }
.hero p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #BCCBE3;
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

/* trust strip floats over hero base */
.trust-strip {
  background: #fff;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--shadow-md);
  margin-top: -52px;
  position: relative;
  z-index: 5;
  overflow: hidden;
}
.trust-strip > div {
  display: flex;
  gap: 14px;
  padding: 22px 24px;
  align-items: center;
  border-right: 1px solid var(--c-border);
}
.trust-strip > div:last-child { border-right: none; }
.trust-strip .ic {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--c-surface-soft);
  color: var(--c-navy-900);
}
.trust-strip .ic svg { width: 22px; height: 22px; }
.trust-strip strong {
  display: block;
  color: var(--c-navy-900);
  font-size: .98rem;
  margin-bottom: 2px;
}
.trust-strip span {
  display: block;
  font-size: .8rem;
  color: var(--c-text-muted);
}

/* ---------- 8. Two-col block (about/intro) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.two-col.reverse { grid-template-columns: .95fr 1.05fr; }
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-media { order: 1; }
.col-text h2 { margin-bottom: 18px; }
.col-text p { color: var(--c-text-body); font-size: 1.02rem; }
.col-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
}
.col-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.col-media .badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(11,31,58,.92);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  display: inline-flex; gap: 8px; align-items: center;
}
.col-media .badge svg { width: 16px; height: 16px; color: var(--c-orange-400); }

/* feature grid inline */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  list-style: none;
  padding: 0;
  margin: 22px 0 28px 0;
}
.feature-list li {
  display: flex; gap: 10px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--c-text);
  font-weight: 500;
}
.feature-list svg {
  width: 18px; height: 18px;
  color: var(--c-orange-500);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- 9. Cards (products / solutions) ---------- */
.card-grid {
  display: grid;
  gap: 26px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}
.product-card .img {
  background: var(--c-surface-soft);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.product-card .img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .img img { transform: scale(1.05); }
.product-card .img .tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(11,31,58,.92);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
}
.product-card .body {
  padding: 24px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--c-navy-900);
}
.product-card p {
  color: var(--c-text-muted);
  font-size: .94rem;
  margin-bottom: 18px;
  flex: 1;
}
.product-card .icon-row {
  display: flex; gap: 16px; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
}
.product-card .icon-row .meta {
  font-size: .78rem;
  color: var(--c-text-muted);
  margin-right: auto;
}

/* ---------- 10. Industries strip ---------- */
.industries-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.industries-strip > a {
  text-align: center;
  padding: 30px 18px;
  color: var(--c-navy-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--c-border);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.industries-strip > a:last-child { border-right: none; }
.industries-strip > a:hover {
  background: var(--c-navy-900);
  color: #fff;
}
.industries-strip .ic {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-surface-soft);
  color: var(--c-navy-700);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.industries-strip > a:hover .ic { background: var(--c-orange-500); color: #fff; }
.industries-strip .ic svg { width: 28px; height: 28px; }
.industries-strip strong { font-size: .95rem; font-weight: 600; }

/* ---------- 11. Why-choose section ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 30px 26px 32px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.why-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.20); transform: translateY(-4px); }
.why-card .ic {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: rgba(255,107,26,.14);
  color: var(--c-orange-400);
  border-radius: 10px;
  margin-bottom: 18px;
}
.why-card .ic svg { width: 24px; height: 24px; }
.why-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { color: #B5C2D8; font-size: .92rem; margin: 0; }

/* ---------- 12. Inline support CTA band ---------- */
.support-band {
  background: var(--c-navy-700);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.support-band .ic {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: var(--c-orange-500);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.support-band .ic svg { width: 28px; height: 28px; }
.support-band .text { flex: 1; min-width: 240px; }
.support-band h3 { color: #fff; margin-bottom: 4px; font-size: 1.1rem; }
.support-band p { color: #C7D4EC; margin: 0; font-size: .94rem; }
.support-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 13. Steps / process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 56px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-orange-500), var(--c-border-strong));
  z-index: 0;
}
.step {
  position: relative;
  text-align: left;
  background: #fff;
  z-index: 1;
  padding: 28px 24px 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.step .num {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--c-orange-500);
  color: var(--c-orange-600);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-family: var(--ff-display);
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--c-text-muted); margin: 0; }

/* ---------- 14. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat {
  text-align: center;
  padding: 10px 8px;
}
.stat .num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--c-navy-900);
  line-height: 1;
  font-family: var(--ff-display);
  letter-spacing: -.02em;
}
.stat .label {
  display: block;
  margin-top: 8px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-text-muted);
  font-weight: 600;
}

/* ---------- 15. CTA banner ---------- */
.cta-banner {
  position: relative;
  background: var(--c-navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px clamp(28px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner::before {
  content:"";
  position: absolute; inset: 0;
  background-image: url("../images/strip-bg-industrial.jpg");
  background-size: cover;
  background-position: center;
  opacity: .25;
  z-index: -2;
}
.cta-banner::after {
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(11,31,58,.95) 0%, rgba(11,31,58,.78) 70%, rgba(255,107,26,.40) 100%);
  z-index: -1;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; max-width: 600px; }
.cta-banner p { color: #C7D4EC; margin: 0; max-width: 560px; }
.cta-banner .text { flex: 1; min-width: 280px; }
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 16. Footer ---------- */
.footer {
  background: var(--c-navy-950);
  color: #B5C2D8;
  padding-top: 70px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer h4 {
  color: #fff;
  font-size: .98rem;
  letter-spacing: .04em;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #B5C2D8; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .brand-text small { color: #94A2B5; }
.footer-about p { color: #94A2B5; margin-top: 14px; max-width: 320px; }

.footer-contact-line {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px;
}
.footer-contact-line svg {
  width: 16px; height: 16px;
  color: var(--c-orange-400);
  margin-top: 4px;
  flex-shrink: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: .84rem;
  color: #6E7E96;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #94A2B5; margin-left: 18px; }
.footer-bottom a:first-of-type { margin-left: 0; }

/* ---------- 17. Page hero (interior pages) ---------- */
.page-hero {
  background: var(--c-navy-900);
  color: #E2EAF7;
  padding: clamp(60px, 8vw, 110px) 0 clamp(60px, 8vw, 90px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content:"";
  position:absolute; inset:0;
  background-image: url("../images/hero-bg-industrial.jpg");
  background-size: cover;
  background-position: center;
  opacity: .22;
  z-index: -2;
}
.page-hero::after {
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(6,20,39,.93), rgba(11,31,58,.85));
  z-index:-1;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; max-width: 760px; }
.page-hero p {
  color: #BCCBE3;
  max-width: 680px;
  font-size: 1.08rem;
}
.crumbs { font-size: .82rem; color: #8FA0BD; margin-bottom: 18px; }
.crumbs a { color: #BCCBE3; }
.crumbs span { margin: 0 8px; opacity: .6; }

/* ---------- 18. Forms ---------- */
.form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-row.full { grid-template-columns: 1fr; }
.form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-navy-900);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 13px 15px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--c-orange-500);
  box-shadow: 0 0 0 3px rgba(255,107,26,.15);
}
.form .form-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--c-text-muted); }

/* ---------- 19. Contact info card ---------- */
.contact-card {
  background: var(--c-navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  height: 100%;
}
.contact-card h3 { color: #fff; margin-bottom: 22px; }
.contact-card p { color: #BCCBE3; margin-bottom: 24px; }
.contact-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.contact-row:first-of-type { border-top: none; }
.contact-row .ic {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--c-orange-400);
  flex-shrink: 0;
}
.contact-row .ic svg { width: 18px; height: 18px; }
.contact-row strong { display: block; color: #fff; font-size: .95rem; margin-bottom: 2px; }
.contact-row span, .contact-row a { color: #BCCBE3; font-size: .9rem; }

/* ---------- 20. Capability tiles ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cap-tile {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cap-tile:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.cap-tile .ic {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(255,107,26,.10);
  color: var(--c-orange-600);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.cap-tile .ic svg { width: 22px; height: 22px; }
.cap-tile h3 { font-size: 1.08rem; margin-bottom: 8px; }
.cap-tile p { font-size: .92rem; color: var(--c-text-muted); margin: 0; }

/* ---------- 21. Industry detail card ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-navy-900);
  color: #fff;
  isolation: isolate;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 28px 26px;
  transition: transform .25s var(--ease);
}
.industry-card:hover { transform: translateY(-4px); }
.industry-card::before {
  content:"";
  position:absolute; inset: 0;
  background-image: linear-gradient(to top, rgba(6,20,39,.95) 10%, rgba(6,20,39,.55) 60%, rgba(6,20,39,.30) 100%);
  z-index: -1;
}
.industry-card .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform .6s var(--ease);
}
.industry-card:hover .bg { transform: scale(1.05); }
.industry-card .ic {
  width: 44px; height: 44px;
  background: rgba(255,107,26,.85);
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 14px;
}
.industry-card .ic svg { width: 22px; height: 22px; }
.industry-card h3 { color: #fff; font-size: 1.18rem; margin-bottom: 6px; }
.industry-card p { color: #C7D4EC; font-size: .92rem; margin: 0; }
.industry-card .text { z-index: 1; position: relative; }

/* ---------- 22. Reveal animations (perf-light) ---------- */
/* Reveal: always visible; subtle slide-up only on first scroll into view */
.reveal { opacity: 1; transform: none; transition: transform .5s var(--ease); }
.js .reveal:not(.in) { transform: translateY(8px); }
.js .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   23. Responsive — three tiers
   - Desktop  >= 1024px (default rules above)
   - Tablet   600–1023px
   - Mobile   < 600px
   Borders inside grids are reset by tier to avoid stray edges.
   ============================================================ */

/* ---------- Tablet: 600 – 1023px ---------- */
@media (max-width: 1023px) {
  :root { --section-py: clamp(56px, 8vw, 88px); }

  /* Layout grids */
  .card-grid--4    { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3    { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .cap-grid        { grid-template-columns: repeat(2, 1fr); }
  .industry-grid   { grid-template-columns: repeat(2, 1fr); }
  .stats           { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps           { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps::before   { display: none; }
  .footer-grid     { grid-template-columns: 1.4fr 1fr 1fr; }

  /* Two-col stays side-by-side but slightly tighter */
  .two-col         { grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 44px); }
  .two-col.reverse { grid-template-columns: 1fr 1fr; }

  /* Trust strip: 2 cols, clean borders */
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -40px;
  }
  .trust-strip > div { padding: 20px 22px; gap: 14px; border-right: none; border-bottom: none; }
  .trust-strip > div:nth-child(odd)  { border-right: 1px solid var(--c-border); }
  .trust-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--c-border); }

  /* Industries strip: 3 across, clean grid */
  .industries-strip { grid-template-columns: repeat(3, 1fr); }
  .industries-strip > a { border-right: none; border-bottom: none; }
  .industries-strip > a:nth-child(3n+1),
  .industries-strip > a:nth-child(3n+2) { border-right: 1px solid var(--c-border); }
  .industries-strip > a:nth-child(-n+3) { border-bottom: 1px solid var(--c-border); }
  /* If only 5 items, the orphaned 5th sits in row 2 col 2; the 4th already spans row 2 */

  /* Hero: tighter padding */
  .hero-inner { padding: clamp(60px, 10vw, 110px) 0 clamp(70px, 11vw, 130px); }

  /* Industry image cards shorter on tablet */
  .industry-card { min-height: 280px; padding: 24px 22px; }

  /* CTA banner stacks tighter */
  .cta-banner { padding: 44px 36px; gap: 22px; }
}

/* ---------- Tablet/header collapse: < 980px nav-toggle ---------- */
@media (max-width: 979px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 10px 16px 18px;
    box-shadow: var(--shadow-md);
    margin-left: 0;
  }
  .nav.open a {
    padding: 14px 10px;
    border-bottom: 1px solid var(--c-border);
    font-size: 1rem;
  }
  .nav.open a:last-of-type { border-bottom: none; }
  .nav.open .btn { margin-top: 12px; justify-content: center; }
  .header { position: relative; }
  .header-inner { height: 70px; gap: 16px; }
}

/* ---------- Extra-small phones: <380px ---------- */
@media (max-width: 379px) {
  :root { --container-pad: 16px; }
  .industries-strip { grid-template-columns: 1fr !important; }
  .industries-strip > a {
    border-right: none !important;
    border-bottom: 1px solid var(--c-border) !important;
  }
  .industries-strip > a:last-child { border-bottom: none !important; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- 24a. Floating action bar (mobile-only) ---------- */
.fab { display: none; }
@media (max-width: 599px) {
  .fab {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 0;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -8px 24px rgba(11,31,58,.10);
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transform: translateY(0);
    transition: transform .25s var(--ease);
  }
  .fab.fab--hide { transform: translateY(110%); }
  .fab a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 11px 6px 13px;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c-navy-900);
    border-right: 1px solid var(--c-border);
    line-height: 1;
  }
  .fab a:last-child { border-right: none; }
  .fab a svg { width: 20px; height: 20px; color: var(--c-navy-900); }
  .fab a.fab-cta {
    background: var(--c-orange-500);
    color: #fff;
  }
  .fab a.fab-cta svg { color: #fff; }
  .fab a.fab-cta:hover { background: var(--c-orange-600); }

  body.nav-open { overflow: hidden; }
  body.nav-open .fab { transform: translateY(110%); }
}

/* ---------- 24. Misc utility ---------- */
.text-center { text-align: center; }
.muted       { color: var(--c-text-muted); }
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  padding: 10px 16px;
  background: var(--c-navy-900);
  color: #fff;
  border-radius: 6px;
  z-index: 1000;
}

/* ============================================================
   25. Mobile (<600px) layout & typography overrides
   - Comes after all earlier rules so cascade favors mobile
   ============================================================ */
@media (max-width: 599px) {
  :root {
    --container-pad: 22px;
    --section-py: 56px;
  }
  body { padding-bottom: 70px; line-height: 1.6; font-size: 15.5px; }

  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); line-height: 1.18; }
  h2 { font-size: clamp(1.45rem, 6.2vw, 1.85rem); }
  h3 { font-size: 1.1rem; }
  p  { font-size: 1rem; }

  .section-head    { margin-bottom: 32px; }
  .section-head p  { font-size: .98rem; }
  .eyebrow         { font-size: .72rem; }

  /* Topbar: phone only */
  .topbar { font-size: .78rem; padding: 8px 0; }
  .topbar .container { gap: 8px; flex-wrap: nowrap; }
  .topbar-left { gap: 12px; flex-wrap: nowrap; }
  .topbar-left span:nth-child(n+2) { display: none !important; }
  .topbar-right a { font-weight: 600; }

  /* Header */
  .header-inner { height: 64px; gap: 12px; }
  .brand { font-size: .98rem; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; font-size: .82rem; }
  .brand-text small { display: none; }
  .nav-toggle { padding: 9px; }

  /* Hero */
  .hero-inner { padding: 56px 0 64px; }
  .hero p.lead { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 36px; }
  .btn { padding: 14px 22px; font-size: 1rem; width: 100%; justify-content: center; }
  .btn-link { width: auto; padding: 6px 0; }
  .hero::before { background-image: url("../images/hero-bg-industrial-mobile.jpg"); }

  /* Trust strip — single column */
  .trust-strip {
    grid-template-columns: 1fr !important;
    margin-top: -32px;
    border-radius: var(--radius-md);
  }
  .trust-strip > div {
    padding: 16px 18px;
    gap: 14px;
    border-right: none !important;
    border-bottom: 1px solid var(--c-border) !important;
  }
  .trust-strip > div:last-child { border-bottom: none !important; }
  .trust-strip strong { font-size: .94rem; }
  .trust-strip span   { font-size: .82rem; }
  .trust-strip .ic { width: 38px; height: 38px; }
  .trust-strip .ic svg { width: 20px; height: 20px; }

  /* Grids → 1 column */
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse .col-text  { order: 2; }
  .two-col.reverse .col-media { order: 1; }
  .col-media { aspect-ratio: 16/11; }

  .card-grid--2,
  .card-grid--3,
  .card-grid--4 { grid-template-columns: 1fr; gap: 20px; }
  .industry-grid { grid-template-columns: 1fr; gap: 18px; }
  .cap-grid     { grid-template-columns: 1fr; gap: 16px; }
  .why-grid     { grid-template-columns: 1fr; gap: 16px; }
  .stats        { grid-template-columns: 1fr 1fr; gap: 22px; }
  .steps        { grid-template-columns: 1fr; gap: 22px; }
  .feature-list { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .footer-grid  { grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; }

  /* Industries strip — 2 cols, no orphan border */
  .industries-strip { grid-template-columns: repeat(2, 1fr); }
  .industries-strip > a {
    padding: 22px 12px;
    gap: 10px;
    border-right: none !important;
    border-bottom: none !important;
  }
  .industries-strip > a:nth-child(odd) { border-right: 1px solid var(--c-border) !important; }
  .industries-strip > a:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--c-border) !important; }
  .industries-strip .ic { width: 46px; height: 46px; }
  .industries-strip .ic svg { width: 22px; height: 22px; }
  .industries-strip strong { font-size: .88rem; line-height: 1.25; }

  /* Product cards */
  .product-card .body { padding: 20px 20px 22px; }
  .product-card h3 { font-size: 1.05rem; }
  .product-card p { font-size: .9rem; }
  .product-card .icon-row { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 12px; }
  .product-card .icon-row .meta { margin-right: 0; }

  .cap-tile, .why-card { padding: 24px 22px; }

  .industry-card { min-height: 240px; padding: 22px 20px; }
  .industry-card h3 { font-size: 1.05rem; }
  .industry-card p { font-size: .88rem; }

  .step .num { width: 50px; height: 50px; font-size: 1rem; margin-bottom: 12px; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: .88rem; }

  .stat .num { font-size: 2rem; }
  .stat .label { font-size: .76rem; letter-spacing: .1em; margin-top: 6px; }

  .cta-banner { padding: 32px 22px; gap: 18px; border-radius: var(--radius-md); flex-direction: column; align-items: flex-start; }
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-banner p { font-size: .94rem; }
  .cta-banner .actions { width: 100%; flex-direction: column; }

  .support-band { padding: 22px 20px; flex-direction: column; align-items: flex-start; text-align: left; gap: 16px; }
  .support-band .actions { width: 100%; flex-direction: column; }
  .support-band .ic { width: 50px; height: 50px; }
  .support-band .ic svg { width: 24px; height: 24px; }

  .page-hero { padding: 50px 0 50px; }
  .page-hero p { font-size: 1rem; }

  .footer { padding-top: 50px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 18px 0; gap: 8px; }
  .footer-bottom .links { width: 100%; }
  .footer-bottom .links a { margin-left: 0; margin-right: 16px; display: inline-block; }

  .form { padding: 22px 18px; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .form-foot .btn { order: -1; }
  .contact-card { padding: 26px 22px; }
}

/* ============================================================
   26. Mobile polish — side padding, button sizing, breathing room
   Targeted overrides for mobile only. Desktop untouched.
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
    --section-py: 60px;
  }

  /* Inner container padding for sections that nest .container */
  .container { padding-left: var(--container-pad); padding-right: var(--container-pad); }

  /* Hero: extra breathing room + readable line length */
  .hero-inner { padding: 64px 0 72px; max-width: 100%; }
  .hero h1 { line-height: 1.15; letter-spacing: -0.01em; max-width: 22ch; }
  .hero p.lead { max-width: 34ch; line-height: 1.6; margin-bottom: 32px; }

  /* Page-hero (interior pages) */
  .page-hero { padding: 56px 0 56px; }
  .page-hero h1 { max-width: 22ch; line-height: 1.15; }
  .page-hero p { max-width: 38ch; }

  /* Section-head text widths */
  .section-head { padding-inline: 4px; }
  .section-head h2 { max-width: 22ch; margin-inline: auto; }
  .section-head p { max-width: 40ch; margin-inline: auto; }
}

@media (max-width: 599px) {
  /* Buttons: balanced, not heavy */
  .btn {
    width: auto;
    min-width: 0;
    max-width: 320px;
    width: 100%;
    height: 48px;
    padding: 0 22px;
    font-size: .98rem;
    margin-inline: 0;
    justify-content: center;
  }

  /* Button groups: stack centered, equal width */
  .hero-actions,
  .cta-banner .actions,
  .support-band .actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
  .hero-actions .btn,
  .cta-banner .actions .btn,
  .support-band .actions .btn { max-width: none; width: 100%; }


  /* Cards keep their internal padding; ensure they don't kiss the screen */
  .card-grid, .industry-grid, .cap-grid, .why-grid { padding-inline: 0; }
  .product-card,
  .cap-tile,
  .why-card,
  .industry-card,
  .step,
  .stat,
  .contact-card,
  .form,
  .trust-strip,
  .industries-strip,
  .cta-banner,
  .support-band { margin-inline: 0; }

  /* Trust strip internal text gets a touch more room */
  .trust-strip > div { padding: 18px 20px; }

  /* Industries strip taps have a comfortable touch target */
  .industries-strip > a { padding: 24px 14px; min-height: 110px; }

  /* Steps - keep aligned to left padding */
  .step { padding: 20px 18px 18px; }

  /* Stat blocks: balanced internal spacing */
  .stat { padding: 6px 8px; }

  /* Section vertical rhythm */
  .section { padding-top: 60px; padding-bottom: 60px; }
  section.section--soft + section.section--soft { padding-top: 0; }

  /* Footer breathing room */
  .footer-grid { padding-inline: 0; gap: 32px; }
  .footer-about p { max-width: 100%; }

  /* FAB: balanced sizing, taller tap area, no edge crowding */
  .fab {
    grid-template-columns: 1fr 1fr 1.4fr;
    box-shadow: 0 -10px 28px rgba(11,31,58,.12);
  }
  .fab a { padding: 12px 6px 14px; min-height: 58px; }
  .fab a svg { width: 20px; height: 20px; }
  /* Reserve enough room above fab so content never hides */
  body { padding-bottom: 76px; }

  /* CTA banner: balanced text/inset */
  .cta-banner { padding: 36px 22px; }
  .cta-banner .text { max-width: 100%; }
  .cta-banner h2 { max-width: 24ch; }
  .cta-banner p  { max-width: 38ch; }

  /* Support band */
  .support-band { padding: 28px 22px; }

  /* Forms breathe */
  .form { padding: 26px 20px; }
  .form-foot .btn { width: 100%; max-width: 100%; }

  /* btn-link should not stretch */
  .btn-link { width: auto; align-self: flex-start; }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 18px;
    --section-py: 52px;
  }
  .hero-inner { padding: 56px 0 60px; }
  .page-hero { padding: 48px 0 48px; }
  .section { padding-top: 52px; padding-bottom: 52px; }

  /* Slightly smaller hero h1 + paragraph */
  .hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.1rem); }
  .hero p.lead { font-size: .98rem; }

  /* Card paddings refined */
  .product-card .body { padding: 22px 20px 24px; }
  .cap-tile, .why-card { padding: 24px 20px; }
  .industry-card { padding: 22px 18px; min-height: 220px; }
  .form { padding: 22px 18px; }
  .contact-card { padding: 24px 20px; }

  /* CTA banner refined */
  .cta-banner { padding: 32px 20px; }
  .cta-banner h2 { font-size: 1.35rem; }

  /* Steps */
  .step .num { width: 48px; height: 48px; font-size: .98rem; }
}

@media (max-width: 360px) {
  :root { --container-pad: 16px; }
  .btn { height: 46px; padding: 0 18px; font-size: .94rem; }
  .industries-strip { grid-template-columns: 1fr; }
  .industries-strip > a:nth-child(odd) { border-right: none !important; }
}

/* ============================================================
   27. Hard mobile edge-safety pass
   - Use safe-area insets
   - Inset FAB from edges with rounded corners
   - Force container padding inheritance (no overrides)
   - Tested at 320 / 360 / 390 / 414 / 480 / 768
   ============================================================ */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  .container {
    padding-left:  max(20px, env(safe-area-inset-left, 0px))  !important;
    padding-right: max(20px, env(safe-area-inset-right, 0px)) !important;
  }
  /* Hero/page-hero must NOT zero out container padding */
  .hero-inner,
  .page-hero .container { padding-inline: max(20px, env(safe-area-inset-left, 0px)) !important; }

  /* Header/topbar inset from edges */
  .topbar .container,
  .header .container { padding-left: 18px !important; padding-right: 18px !important; }
}

@media (max-width: 599px) {
  .container {
    padding-left:  max(18px, env(safe-area-inset-left, 0px))  !important;
    padding-right: max(18px, env(safe-area-inset-right, 0px)) !important;
  }
  .hero-inner,
  .page-hero .container { padding-inline: max(18px, env(safe-area-inset-left, 0px)) !important; }

  /* FAB: inset with rounded corners */
  .fab {
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    border-radius: 14px;
    border-top: none;
    border: 1px solid var(--c-border);
    overflow: hidden;
  }

  /* Make sure body has enough bottom space for the floating bar */
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }

  /* Header inset slightly smaller on mobile */
  .topbar .container,
  .header .container { padding-left: 18px !important; padding-right: 18px !important; }
}

@media (max-width: 360px) {
  .container {
    padding-left:  max(16px, env(safe-area-inset-left, 0px))  !important;
    padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
  }
  .hero-inner,
  .page-hero .container { padding-inline: max(16px, env(safe-area-inset-left, 0px)) !important; }
  .fab { left: 10px; right: 10px; border-radius: 12px; }
}

/* ============================================================
   28. Floating action bar — final polish
   Mobile only. Compact, premium, properly aligned.
   ============================================================ */
@media (max-width: 768px) {
  .fab {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.2fr !important;
    align-items: stretch !important;
    gap: 0 !important;
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;

    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(11,31,58,.16), 0 2px 6px rgba(11,31,58,.06);
    overflow: hidden;
    padding: 0 !important;        /* no inner padding adds height */
    margin: 0 !important;
    min-height: 56px;
    z-index: 90;
    transform: translateY(0);
    transition: transform .25s var(--ease);
  }
  .fab.fab--hide { transform: translateY(calc(100% + 20px)) !important; }

  .fab a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 6px !important;
    margin: 0 !important;
    min-height: 56px;
    line-height: 1;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c-navy-900);
    border-right: 1px solid var(--c-border);
    border-radius: 0;
  }
  .fab a:last-child { border-right: none; }
  .fab a svg {
    width: 18px;
    height: 18px;
    margin: 0 !important;
    color: var(--c-navy-900);
    flex-shrink: 0;
  }
  .fab a.fab-cta {
    background: var(--c-orange-500);
    color: #fff;
  }
  .fab a.fab-cta svg { color: #fff; }
  .fab a.fab-cta:hover { background: var(--c-orange-600); }

  /* Reset paragraph/span spacing inside fab */
  .fab p, .fab span { margin: 0; padding: 0; line-height: 1; }

  /* Body bottom padding — just enough for fab + small gap */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
}

@media (max-width: 360px) {
  .fab {
    left: 10px !important;
    right: 10px !important;
    border-radius: 14px;
  }
  .fab a { font-size: .68rem; padding: 7px 4px !important; }
  .fab a svg { width: 16px; height: 16px; }
}

/* ============================================================
   29. Certifications page
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.cert-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
}
.cert-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--c-orange-500);
}

.cert-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B2A52 0%, #1B3A66 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FF8542;
}
.cert-icon svg {
  width: 30px !important;
  height: 30px !important;
  max-width: none !important;
  stroke: #FF8542;
  display: block;
}

.cert-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-orange-500);
  background: rgba(255,107,26,.09);
  border-radius: 100px;
  padding: 3px 12px;
}

.cert-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
  line-height: 1.35;
}

.cert-view {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-navy-700);
  transition: color .2s var(--ease);
  text-decoration: none;
}
.cert-view:hover { color: var(--c-orange-500); }
.cert-view svg {
  width: 14px !important;
  height: 14px !important;
  max-width: none !important;
  flex-shrink: 0;
}

.cert-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}
.cert-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--c-surface-soft);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--c-text);
}
.cert-tags span svg {
  width: 15px !important;
  height: 15px !important;
  max-width: none !important;
  stroke: var(--c-orange-500);
  flex-shrink: 0;
  display: block;
}

@media (max-width: 860px) {
  .cert-grid { grid-template-columns: 