/* Advanced - shared styles for every page.
   Brand blue is taken from the original logo. */

:root {
  --blue: #006498;
  --blue-dark: #003f60;
  --blue-deep: #0a2233;
  --blue-light: #3d9ad6;
  --blue-wash: #eef5fa;
  --ink: #16212b;
  --body: #3d4b57;
  --muted: #6b7a87;
  --line: #dbe5ec;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue-deep);
  color: #c9d8e3;
  font-size: 0.86rem;
}
.topbar .wrap {
  display: flex; justify-content: flex-end; gap: 28px;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #e6eef4; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand img { width: 44px; height: auto; }
.brand-name {
  font-weight: 900; font-size: 1.6rem; letter-spacing: 0.02em;
  color: var(--blue); text-transform: uppercase; line-height: 1;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { background: var(--blue-wash); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 10px; cursor: pointer; color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 650;
  padding: 13px 24px; border-radius: 8px; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--white); }
.nav a.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  color: #d5e3ed;
}
.hero-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .55; pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: var(--white); max-width: 20ch; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #8fc6ea; margin-bottom: 18px;
}
.hero .lead { font-size: 1.32rem; color: #9fd0f0; font-weight: 600; margin-bottom: 1.1em; }
.hero p.intro { max-width: 60ch; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.or-call { color: #c9dbe7; font-size: 1.02rem; }
.or-call a { color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.4); }
.or-call a:hover { border-bottom-color: var(--white); }

/* ---------- Audience strip ---------- */
.audience { background: var(--blue-wash); border-bottom: 1px solid var(--line); }
.audience .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 34px; padding-top: 22px; padding-bottom: 22px;
  font-weight: 650; color: var(--blue-dark); font-size: 0.95rem;
}
.audience span.label { color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: #f7fafc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Service cards */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px;
}
.service {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 600;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.service:hover { border-color: var(--blue-light); box-shadow: 0 6px 18px rgba(0,63,96,.08); transform: translateY(-1px); color: var(--blue); }
.service svg { flex: none; width: 22px; height: 22px; color: var(--blue); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-decoration: none; color: var(--body);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--blue-light); box-shadow: 0 8px 22px rgba(0,63,96,.09); transform: translateY(-2px); color: var(--body); }
.card svg { width: 28px; height: 28px; color: var(--blue); margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; }
.card:hover h3 { color: var(--blue); }
.card p { margin: 0; font-size: 0.97rem; }
.also { margin: 26px 0 0; color: var(--muted); }
.more-link { margin-top: 20px; font-weight: 600; }
.more-link a { text-decoration: none; }
.after-grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; margin-top: 36px;
}
.after-grid p { max-width: 62ch; margin: 0; }

/* Check list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 19px; height: 19px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23006498'/%3E%3Cpath d='M5.8 10.4l2.8 2.8 5.6-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.callout {
  margin-top: 28px; padding: 20px 24px; border-left: 4px solid var(--blue);
  background: var(--blue-wash); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink); font-weight: 550;
}

.since {
  font-size: clamp(4rem, 10vw, 7rem); font-weight: 900; line-height: 1;
  color: var(--blue); letter-spacing: -0.04em; margin-bottom: 8px;
}
.since-label { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin-bottom: 24px; }

/* ---------- Inner page header ---------- */
.page-head {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 60%, var(--blue) 100%);
  color: #d5e3ed;
}
.page-head .wrap { padding-top: 72px; padding-bottom: 72px; }
.page-head h1 { color: var(--white); }
.page-head .intro { max-width: 62ch; font-size: 1.12rem; margin: 0; }

/* ---------- On-this-page links ---------- */
.jump { background: var(--blue-wash); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
.jump a {
  font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--blue-dark);
  padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
}
.jump a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Service sections (Solutions page) ---------- */
.svc { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc:last-child { border-bottom: 0; }
.svc-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.svc-row h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.svc-row p:last-child { margin-bottom: 0; }
.svc-side h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
[id] { scroll-margin-top: 90px; }

.page-head .lead { font-size: 1.25rem; color: #9fd0f0; font-weight: 600; margin-bottom: .8em; }
.diagram { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.diagram svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.diagram figcaption { margin-top: 10px; font-size: .92rem; color: var(--muted); text-align: center; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card-static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card-static:hover h3 { color: var(--ink); }

/* ---------- Partners page ---------- */
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.section-head-row h2 { margin: 0; }
/* Review-only badge. Remove before launch. */
.review-badge {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 10px 16px; border: 2px dashed #d39b00; border-radius: 8px;
  background: #fff8e1; color: #6b4e00; font-weight: 600; font-size: .92rem; text-decoration: none;
}
.review-badge:hover { background: #ffefb8; color: #4d3800; }
.review-badge-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.carrier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.carrier {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 140px; padding: 24px; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.carrier img { height: 44px; width: auto; max-width: 80%; object-fit: contain; }
.carrier-name { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.carrier img + .carrier-name { font-size: .85rem; font-weight: 600; color: var(--muted); }
.carrier-more { background: var(--blue-wash); border-style: dashed; color: var(--blue-dark); font-weight: 600; }

.btn-white { background: var(--white); color: var(--blue-dark); }
.btn-white:hover { background: #e6eef4; color: var(--blue-dark); }

/* ---------- Contact page ---------- */
.contact-card {
  display: block; text-decoration: none; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  transition: border-color .15s, box-shadow .15s;
}
.contact-card:hover { border-color: var(--blue-light); box-shadow: 0 8px 22px rgba(0,63,96,.09); }
.contact-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--blue); margin: 2px 0 4px; word-break: break-word; }
.contact-hint { display: block; font-size: .92rem; color: var(--body); }
.closing { margin-top: 24px; color: var(--muted); }
.contact-card-static:hover { border-color: var(--line); box-shadow: none; }
.email-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.email-action { display: flex; flex-direction: column; gap: 6px; }
.btn-sm { padding: 10px 16px; font-size: .92rem; text-align: center; cursor: pointer; font-family: inherit; background-color: transparent; }
.btn-primary.btn-sm { background: var(--blue); }
.btn-primary.btn-sm:hover { background: var(--blue-dark); }
.action-note { font-size: .78rem; line-height: 1.4; color: var(--muted); }
.panel { background: #f7fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel h2 { font-size: 1.45rem; margin-bottom: 20px; }
.panel-sub { margin-top: 32px; }
.checks-one { grid-template-columns: 1fr; }
.opt { color: var(--muted); font-weight: 400; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .9rem; }
.tags a, .tags li:not(:has(a)) {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.tags a:hover { border-color: var(--blue); color: var(--blue); }
.tags-lg li { font-size: 1rem; }
.tags-lg a { padding: 9px 16px; font-weight: 600; }
.section .split .btn { margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #d5e3ed; text-align: center;
}
.cta-band .wrap { padding-top: 80px; padding-bottom: 80px; max-width: 820px; }
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-phone { margin-top: 22px; font-size: 1.05rem; }
.cta-phone a { color: var(--white); font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #a9bccb; font-size: 0.95rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand-name { color: var(--white); font-size: 1.35rem; }
.site-footer .tagline { margin-top: 10px; }
.site-footer h3 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dce7ef; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.legal {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 0.85rem; color: #7f95a6;
}

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 20px; }
  .svc-row > div:empty { display: none; }
  .carrier-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar .wrap { justify-content: center; gap: 16px; flex-wrap: wrap; }
  .topbar .hide-sm { display: none; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .section { padding: 64px 0; }
  .checks { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 20px; }
  .two-cards { grid-template-columns: 1fr; gap: 12px; }
  .carrier { min-height: 100px; padding: 16px; }
  .page-head .wrap { padding-top: 52px; padding-bottom: 52px; }
  .panel { padding: 22px; }
  .email-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.35rem; }
}
