:root {
  --navy: #1f3a5f;
  --navy-dark: #15293f;
  --accent: #2f7ea8;
  --bg: #f6f8fb;
  --text: #243240;
  --muted: #5d6b7a;
  --line: #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  width: 100%;
  overflow-x: clip;          /* kills horizontal scroll without breaking the sticky header */
  overflow-wrap: break-word; /* long words/emails wrap instead of overflowing */
}

a { overflow-wrap: anywhere; }
img, svg, video { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 24px); }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; min-height: 68px; flex-wrap: wrap; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 18px; letter-spacing: .2px; flex-shrink: 0; }
.brand .logo { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--navy), var(--accent)); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:15px; flex-shrink: 0; }
.nav a.link { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav a.link:hover { color: var(--navy); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: clamp(56px, 9vw, 96px) 0 clamp(64px, 10vw, 104px);
}
.hero h1 { font-size: clamp(28px, 5.2vw, 42px); line-height: 1.15; max-width: 760px; font-weight: 800; }
.hero p.sub { margin-top: 20px; font-size: clamp(16px, 2.4vw, 19px); color: #cdd9e6; max-width: 620px; }
.hero .cta { margin-top: 34px; display: inline-block; }
.btn {
  display: inline-block; background: #fff; color: var(--navy);
  padding: 14px 28px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn.secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); margin-left: 12px; }

/* Sections */
section.block { padding: clamp(48px, 8vw, 80px) 0; }
h2.title { font-size: clamp(24px, 4vw, 30px); }
section.block.alt { background: var(--bg); }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; font-size: 13px; }
h2.title { font-size: 30px; color: var(--navy); margin-top: 8px; font-weight: 800; }
.lead { color: var(--muted); margin-top: 14px; max-width: 720px; font-size: 17px; }

.grid { display: grid; gap: 24px; margin-top: 44px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
section.alt .card { background: #fff; }
.card h3 { color: var(--navy); font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .num { width: 38px; height: 38px; border-radius: 9px; background: var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; margin-bottom: 16px; }

/* Contact */
.contact-box { display:flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 28px; }
.contact-box .item { font-size: 16px; }
.contact-box .item span { display:block; color: var(--accent); font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:1px; margin-bottom:2px;}
.contact-box a { color: var(--navy); text-decoration: none; font-weight:600;}

/* Footer */
footer { background: var(--navy-dark); color: #9fb0c2; padding: 56px 0 0; font-size: 14px; }
footer a { color: #cdd9e6; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 18px; margin-bottom: 14px; }
.footer-brand .logo { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #5aa9d0); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:15px; }
.footer-col p { color: #9fb0c2; font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8295a8; }
.footer-disclaimer { max-width: 720px; color: #7f93a8; font-size: 12.5px; line-height: 1.6; padding-bottom: 24px; }

/* Legal pages */
.legal { padding: 60px 0 80px; max-width: 820px; }
.legal h1 { color: var(--navy); font-size: 32px; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.legal h2 { color: var(--navy); font-size: 21px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }
.back { display:inline-block; margin-bottom: 24px; color: var(--accent); text-decoration:none; font-weight:600;}

/* Tablet / small laptop: 3-up becomes 2-up */
@media (max-width: 920px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Phone / small tablet: everything stacks */
@media (max-width: 680px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .nav { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 20px; }
  .nav-links { width: 100%; justify-content: flex-start; gap: 10px 18px; }
  .cta { display: flex; flex-direction: column; align-items: stretch; }
  .btn, .btn.secondary { width: 100%; text-align: center; }
  .btn.secondary { margin-left: 0; margin-top: 12px; }
  .contact-box { flex-direction: column; gap: 18px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .nav-links { gap: 10px 14px; }
  .nav a.link { font-size: 14px; }
  .brand { font-size: 16px; }
  .card { padding: 22px; }
}
