:root {
  --blue: #0b5ed7;
  --saffron: #ff9933;
  --green: #198754;
  --yellow: #ffc107;
  --red: #dc3545;
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe3ee;
  --white: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 32px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  display: block;
  line-height: 1.1;
}

.brand-flag {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .14);
  box-shadow: 0 8px 18px rgba(11, 94, 215, .18);
}

.brand-flag::before,
.brand-flag::after,
.brand-flag i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
}

.brand-flag::before { top: 0; background: #ff9933; }
.brand-flag i { top: 14px; background: #ffffff; }
.brand-flag::after { bottom: 0; background: #138808; }

.brand-flag b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 2px solid #0b3d91;
  border-radius: 50%;
  background: radial-gradient(circle, #0b3d91 0 2px, transparent 2px);
}

.brand-flag em {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 18px;
  transform: translate(-50%, -50%);
  background: #0b3d91;
  box-shadow: 0 0 0 0 #0b3d91;
}

.brand-flag em::before,
.brand-flag em::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0b3d91;
}

.brand-flag em::before { transform: rotate(60deg); }
.brand-flag em::after { transform: rotate(120deg); }
}

.brand small, .category-tile small { display: block; color: var(--muted); }
.main-nav { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.nav-link { padding: 9px 11px; border-radius: 6px; color: #334155; font-weight: 650; font-size: 14px; }
.nav-link:hover, .nav-link.active { background: #eaf2ff; color: var(--blue); }
.header-actions { display: flex; gap: 8px; }
.primary-btn, .ghost-btn, button {
  border: 0;
  border-radius: 6px;
  padding: 11px 16px;
  font-weight: 750;
  cursor: pointer;
}
.primary-btn, button { background: var(--blue); color: white; }
.ghost-btn { background: #eef4ff; color: var(--blue); }
.compact { padding: 9px 12px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 230px);
  padding: 64px 6vw 40px;
  background:
    linear-gradient(130deg, rgba(11,94,215,.94), rgba(15,23,42,.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Crect width='1600' height='900' fill='%23e8f2ff'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.45' stroke-width='3'%3E%3Cpath d='M120 190h210v140H120zM410 130h250v200H410zM760 185h170v145H760zM1030 120h300v210h-300zM250 460h300v160H250zM690 430h230v190H690zM1050 455h330v165h-330z'/%3E%3Cpath d='M330 260h80M660 230h100M930 260h100M550 540h140M920 525h130'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: white;
}

.hero h1, .page-hero h1 { margin: 0; font-size: clamp(44px, 7vw, 84px); line-height: .94; letter-spacing: 0; }
.tagline { font-size: 22px; max-width: 720px; }
.eyebrow { color: var(--saffron); text-transform: uppercase; font-weight: 850; letter-spacing: 0; }
.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 780px;
  margin: 26px 0 18px;
  padding: 8px;
  background: white;
  border-radius: 8px;
}
.search-panel input, .lead-form input, .lead-form textarea, .lead-form select, .calculator input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
}
.search-panel input { border: 0; outline: 0; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-actions a { padding: 10px 12px; border-radius: 6px; background: rgba(255,255,255,.14); color: white; font-weight: 700; }
.hero-panel {
  padding: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.3);
}
.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.metric-grid div { padding: 16px; border-radius: 6px; background: rgba(255,255,255,.16); }
.metric-grid strong { display: block; font-size: 28px; }
.metric-grid span { color: #dbeafe; }

.section-band, .split-section, .content-section, .calculator {
  padding: 48px 6vw;
}
.muted { background: white; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading h2, .split-section h2 { margin: 0; font-size: 34px; }
.section-heading a { color: var(--blue); font-weight: 800; }
.card-grid, .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.service-card, .category-tile, .detail-box {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.service-card h3 { margin: 14px 0 8px; }
.service-card p { color: var(--muted); min-height: 48px; }
.service-card a { color: var(--blue); font-weight: 800; }
.icon-pill, .category-tile span {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  background: #eaf2ff;
  color: var(--blue);
  font-weight: 850;
}
.category-tile { display: block; min-height: 150px; }
.category-tile strong { display: block; margin: 14px 0 8px; }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: start;
  background: #eef5ff;
}
.lead-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}
.lead-form h3 { margin: 0 0 4px; }
.lead-form textarea { min-height: 112px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 14px; }
.check input { width: auto; margin-top: 3px; }
.notice {
  padding: 14px;
  border-left: 4px solid var(--saffron);
  background: #fff7ed;
  border-radius: 6px;
}

.source-note {
  margin-top: -4px;
  color: var(--green);
  font-weight: 750;
}

.page-hero {
  padding: 58px 6vw;
  color: white;
  background: linear-gradient(135deg, #0b5ed7, #0f172a);
}
.page-hero p { max-width: 850px; font-size: 18px; color: #dbeafe; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
th { background: #f1f5f9; color: #334155; }

.calculator {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  background: white;
}
.calculator output { grid-column: 1 / -1; padding: 16px; background: #eaf2ff; border-radius: 6px; font-weight: 800; }

.site-footer {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 24px;
  padding: 42px 6vw 84px;
  color: #dbeafe;
  background: #0f172a;
}
.site-footer a { display: block; color: #dbeafe; margin: 8px 0; }
.site-footer h3, .site-footer h4 { color: white; }
.disclaimer { color: #fef3c7; }
.copyright { grid-column: 1 / -1; border-top: 1px solid #334155; padding-top: 18px; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .main-nav { display: none; }
  .hero, .split-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 46px; }
  .hero h1, .page-hero h1 { font-size: 48px; }
  .search-panel { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .calculator { grid-template-columns: 1fr; }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    border-top: 1px solid var(--line);
  }
  .mobile-nav a { padding: 12px 6px; text-align: center; font-weight: 800; color: var(--blue); }
}

@media (max-width: 560px) {
  .header-actions .ghost-btn { display: none; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .hero h1, .page-hero h1 { font-size: 40px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading h2, .split-section h2 { font-size: 28px; }
}
