/* ==========================================================================
   SGSS — Strategic Guards & Security Solutions
   Shared stylesheet — modern light UI theme
   ========================================================================== */

:root {
  --bg:            #ffffff;
  --bg-alt:        #f6f8fb;
  --surface:       #ffffff;
  --surface-2:     #f1f5f9;
  --border:        #e2e8f0;
  --border-soft:   #edf2f7;
  --text:          #101828;
  --text-dim:      #475467;
  --text-faint:    #8a94a6;
  --accent:        #1c64f2;
  --accent-dark:   #1449b8;
  --accent-soft:   rgba(28, 100, 242, 0.08);
  --accent-soft-2: rgba(28, 100, 242, 0.14);
  --danger:        #dc2626;
  --danger-soft:   rgba(220, 38, 38, 0.08);
  --success:       #15803d;
  --success-soft:  rgba(21, 128, 61, 0.08);
  --radius:        10px;
  --radius-lg:     18px;
  --maxw:          1240px;
  --nav-h:         76px;
  --shadow-sm:     0 1px 2px rgba(16,24,40,0.06);
  --shadow-md:     0 6px 20px rgba(16,24,40,0.07), 0 2px 6px rgba(16,24,40,0.05);
  --shadow-lg:     0 24px 48px rgba(16,24,40,0.10), 0 8px 20px rgba(16,24,40,0.06);
  --shadow-accent: 0 10px 26px rgba(28,100,242,0.28);
  --font-head:     'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(28,100,242,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,100,242,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--text);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
}

.section {
  position: relative;
  padding: 96px 0;
  z-index: 1;
}
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 17px; max-width: 620px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 14px 30px rgba(28,100,242,0.34); transform: translateY(-1px); }
.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.96); border-bottom-color: var(--border-soft); box-shadow: 0 1px 0 rgba(16,24,40,0.03), 0 8px 24px rgba(16,24,40,0.05); }
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-text strong { font-family: var(--font-head); font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.brand .brand-text span { font-family: var(--font-head); font-size: 10.5px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 100px;
  overflow: hidden;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  top: -25%; right: -12%;
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(28,100,242,0.14) 0%, transparent 68%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  top: 10%; left: -14%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(21,128,61,0.08) 0%, transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  margin-bottom: 22px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.lead { color: var(--text-dim); font-size: 18px; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-head); font-size: 30px; color: var(--text); }
.hero-stats .stat span { font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; }

.hero-media { position: relative; }
.hero-media .frame {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-media img { width: 100%; height: 420px; object-fit: cover; border-radius: calc(var(--radius-lg) - 6px); }
.hero-media .badge-float {
  position: absolute;
  bottom: -24px; left: -24px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.hero-media .badge-float img { height: 44px; width: 44px; object-fit: contain; }
.hero-media .badge-float div strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--text); }
.hero-media .badge-float div span { font-size: 11.5px; color: var(--text-faint); }
.corner-tag {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--font-head);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--accent);
  padding: 7px 14px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 64px;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  background: var(--bg-alt);
}
.page-header::after {
  content: "";
  position: absolute;
  top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(28,100,242,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
.page-header p { color: var(--text-dim); font-size: 17px; max-width: 620px; }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid > *, .split-a > *, .split-b > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: rgba(28,100,242,0.28); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-box {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
  border-radius: var(--radius);
}
.card .icon-box svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14.5px; }
.card .num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-head);
  font-size: 13px; color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* ---------- Service list (compact) ---------- */
.service-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}
.service-row:first-child { padding-top: 0; }
.service-row .icon-box {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
}
.service-row .icon-box svg { width: 22px; height: 22px; }
.service-row h3 { font-size: 17px; margin-bottom: 6px; }
.service-row p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Logo strip ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.logo-strip .logo-cell {
  flex: 1 1 16.6%;
  min-width: 140px;
  padding: 26px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease;
}
.logo-strip .logo-cell:hover { color: var(--accent); background: var(--accent-soft); }

/* ---------- Table ---------- */
.table-wrap { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th {
  text-align: left;
  background: var(--surface-2);
  color: var(--text-faint);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
tbody td { padding: 12px 18px; border-bottom: 1px solid var(--border-soft); color: var(--text-dim); }
tbody tr:hover td { background: var(--bg-alt); color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
td.num-col { color: var(--text-faint); width: 56px; }
td.loc-col { color: var(--accent); white-space: nowrap; font-weight: 600; }

/* ---------- Stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-band .stat-cell {
  padding: 34px 26px;
  border-right: 1px solid var(--border-soft);
  text-align: center;
}
.stat-band .stat-cell:last-child { border-right: none; }
.stat-band strong { display: block; font-family: var(--font-head); font-size: 36px; color: var(--accent); margin-bottom: 6px; }
.stat-band span { font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Timeline / value list ---------- */
.value-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--border-soft); }
.value-item:first-child { padding-top: 0; }
.value-item .value-mark {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.value-item h3 { font-size: 17px; margin-bottom: 6px; }
.value-item p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Profile card ---------- */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.profile-card .role {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 6px 14px;
  margin-bottom: 16px;
}
.profile-card h3 { font-size: 21px; margin-bottom: 12px; }
.profile-card p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Badge grid (certifications) ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.badge-tile {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.badge-tile .glyph {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.badge-tile h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.badge-tile span { font-size: 12px; color: var(--text-faint); }

.license-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.license-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.license-item .name { font-family: var(--font-head); font-size: 15px; color: var(--text); }
.license-item .status {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--success);
  border-radius: 999px;
  background: var(--success-soft);
  padding: 4px 10px;
  white-space: nowrap;
}
.license-item .valid { font-size: 12.5px; color: var(--text-faint); }

/* ---------- Office cards ---------- */
.office-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.office-card .tag {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.office-card h3 { font-size: 20px; margin-bottom: 16px; }
.office-card .detail-row { display: flex; gap: 12px; padding: 8px 0; font-size: 14.5px; color: var(--text-dim); border-top: 1px solid var(--border-soft); }
.office-card .detail-row:first-of-type { border-top: none; }
.office-card .detail-row strong { color: var(--text-faint); min-width: 66px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Contact form ---------- */
.form-panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field select, .field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 14.5px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--text-faint); margin-top: 14px; }

/* Honeypot anti-spam field: pulled off-screen rather than display:none, since
   some bots skip fields hidden that way. Real users and screen readers never
   encounter it (aria-hidden + not in the tab order). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #12326b, #1c64f2);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.16), transparent 55%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; position: relative; color: #fff; }
.cta-band p { color: rgba(255,255,255,0.78); position: relative; max-width: 460px; }
.cta-band .cta-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.cta-band .btn-primary:hover { background: #f2f6ff; }
.cta-band .btn-outline { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.32); box-shadow: none; }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.16); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border-soft); padding: 72px 0 0; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--text-faint); font-size: 14px; max-width: 320px; margin-bottom: 20px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-dim); font-size: 14.5px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: var(--text-dim); font-size: 14.5px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Fade-in animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ---------- Split layouts (two-column sections that must collapse) ---------- */
.split-a { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.split-b { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }

/* ---------- Responsive ---------- */

/* Tablet & below: collapse the nav into the hamburger menu first, since the
   full link row + call button + CTA button doesn't fit comfortably until
   there's real desktop width. */
@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }

  .nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    padding: 12px 28px 24px;
    z-index: 99;
  }
  .nav-mobile.open { display: block; }
  .nav-mobile a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border-soft); font-weight: 600; color: var(--text-dim); }
  .nav-mobile .btn { margin-top: 16px; }
  .nav-mobile .nav-mobile-actions { display: flex; flex-direction: column; gap: 10px; }
}
@media (min-width: 1081px) { .nav-mobile { display: none !important; } }

/* Tablet: collapse wide multi-column grids to a comfortable 2-up layout */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band .stat-cell:nth-child(2) { border-right: none; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .license-list { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .logo-strip .logo-cell { flex: 1 1 33.3%; }
}

/* Small tablet / large phone: two-column split sections stack */
@media (max-width: 900px) {
  .split-a, .split-b { grid-template-columns: 1fr; gap: 32px; }
}

/* Mobile: single-column everything, tighter spacing */
@media (max-width: 760px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; }
  .stat-band .stat-cell { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .stat-band .stat-cell:last-child { border-bottom: none; }
  .badge-grid { grid-template-columns: 1fr; }
  .license-list { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .logo-strip .logo-cell { flex: 1 1 50%; padding: 20px 12px; font-size: 13.5px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 44px 0; }
  .hero { padding: calc(var(--nav-h) + 56px) 0 64px; }
  .page-header { padding: calc(var(--nav-h) + 40px) 0 44px; }
  .hero-media img { height: 280px; }
  .hero-media .badge-float { left: 12px; bottom: -20px; padding: 12px 14px; }
  .form-panel { padding: 22px; }
  .office-card, .profile-card, .cta-band { padding: 26px 22px; }
  #clientTable table { min-width: 480px; }
  .table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .logo-strip .logo-cell { flex: 1 1 50%; }
  .hero-stats { gap: 22px; }
  .btn { padding: 13px 22px; font-size: 13.5px; }
  .nav-inner { padding: 0 18px; }
  .container { padding: 0 18px; }
}
