:root {
  --blue-950: #052548;
  --blue-900: #063766;
  --blue-800: #064b8c;
  --blue-700: #0756a3;
  --blue-600: #0874c9;
  --cyan: #18b9e8;
  --ink: #12263a;
  --muted: #617386;
  --line: #dce6ef;
  --surface: #ffffff;
  --surface-soft: #f3f7fb;
  --shadow: 0 22px 70px rgba(10, 42, 73, .13);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; color: white; background: var(--blue-950); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: .25s ease; }
.site-header.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-color: rgba(7,86,163,.1); box-shadow: 0 8px 30px rgba(7,42,77,.07); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 305px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .95rem; font-weight: 650; color: #213b54; }
.main-nav a:not(.nav-cta) { position: relative; padding: 14px 0; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 8px; height: 2px; background: var(--blue-600); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.nav-cta { padding: 12px 20px; color: white; background: var(--blue-700); border-radius: 999px; box-shadow: 0 10px 24px rgba(7,86,163,.24); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--surface-soft); border-radius: 13px; padding: 12px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--blue-950); border-radius: 2px; transition: .25s; }

.hero { position: relative; overflow: hidden; min-height: 760px; padding: 160px 0 90px; background: linear-gradient(135deg, #f7fbff 0%, #edf7ff 55%, #e4f3fc 100%); }
.hero-backdrop { position: absolute; width: 760px; height: 760px; right: -260px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(24,185,232,.25), rgba(7,86,163,.02) 65%, transparent 66%); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; left: -190px; bottom: -220px; border: 80px solid rgba(7,86,163,.045); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 60px; }
.eyebrow { margin: 0 0 14px; color: var(--blue-700); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(3.2rem, 6.6vw, 6.3rem); line-height: .98; letter-spacing: -.065em; color: var(--blue-950); }
.hero h1 span { display: block; color: var(--blue-600); }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: #45647e; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 0; border-radius: 999px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); box-shadow: 0 14px 32px rgba(7,86,163,.25); }
.button-ghost { color: var(--blue-800); background: rgba(255,255,255,.78); border: 1px solid rgba(7,86,163,.15); }
.button-light { color: var(--blue-950); background: white; }
.hero-facts { display: flex; gap: 34px; margin-top: 48px; }
.hero-facts div { display: grid; }
.hero-facts strong { color: var(--blue-800); font-size: 1.8rem; line-height: 1; }
.hero-facts span { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.hero-visual { position: relative; }
.hero-image-card { position: relative; display: grid; place-items: end center; min-height: 530px; padding: 40px 28px 0; background: linear-gradient(160deg, var(--blue-900), var(--blue-700)); border-radius: 42px; box-shadow: var(--shadow); overflow: hidden; }
.hero-image-card::before { content: ""; position: absolute; width: 360px; height: 360px; top: -130px; right: -120px; border: 60px solid rgba(255,255,255,.07); border-radius: 50%; }
.hero-image-card img { position: relative; z-index: 1; width: 100%; max-height: 460px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 24px 25px rgba(1,24,50,.35)); }
.floating-card { position: absolute; z-index: 3; left: -36px; bottom: 34px; display: flex; align-items: center; gap: 12px; width: min(330px, 85%); padding: 18px 20px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.8); border-radius: 18px; box-shadow: 0 16px 40px rgba(3,35,65,.22); }
.floating-card div { display: grid; }
.floating-card small { color: var(--muted); }
.pulse { width: 11px; height: 11px; flex: 0 0 auto; background: #2ebf6b; border-radius: 50%; box-shadow: 0 0 0 7px rgba(46,191,107,.13); }

.about { background: white; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.section-heading h2 { margin: 0; max-width: 780px; color: var(--blue-950); font-size: clamp(2.15rem, 4vw, 3.8rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 700px; margin: 20px 0 0; color: var(--muted); font-size: 1.06rem; }
.section-heading.centered { display: grid; place-items: center; text-align: center; }
.about-copy { border-left: 1px solid var(--line); padding-left: 52px; }
.about-copy p { margin: 0 0 18px; color: #526a80; font-size: 1.08rem; }
.about-copy p:first-child { color: var(--ink); font-size: 1.25rem; }

.services { background: var(--surface-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 58px; }
.service-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; background: white; border: 1px solid rgba(7,86,163,.08); border-radius: var(--radius-lg); box-shadow: 0 12px 44px rgba(5,45,83,.07); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(5,45,83,.14); }
.service-media { height: 245px; overflow: hidden; background: #dbeaf7; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-media-payroll img { object-position: 72% center; filter: hue-rotate(8deg) saturate(.8); }
.service-card:hover .service-media img { transform: scale(1.045); }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 30px; }
.service-number { color: var(--cyan); font-size: .77rem; font-weight: 850; letter-spacing: .15em; }
.service-body h3 { margin: 8px 0 14px; color: var(--blue-950); font-size: 1.65rem; letter-spacing: -.025em; }
.service-body p { margin: 0; color: var(--muted); }
.text-button { align-self: flex-start; margin-top: auto; padding: 24px 0 0; color: var(--blue-700); background: none; border: 0; font-weight: 750; }
.text-button span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.text-button:hover span { transform: translateX(5px); }

.territory { background: var(--blue-950); color: white; position: relative; overflow: hidden; }
.territory::after { content: ""; position: absolute; right: -120px; bottom: -210px; width: 480px; height: 480px; border: 90px solid rgba(24,185,232,.06); border-radius: 50%; }
.territory-header { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.territory .section-heading h2 { color: white; }
.territory-header > p { margin: 0 0 7px; color: #a9bfd4; font-size: 1.08rem; }
.office-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 55px; }
.office-card { grid-column: span 2; padding: 26px; color: var(--ink); background: white; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; }
.office-card:nth-child(4) { grid-column: 2 / span 2; }
.office-card:nth-child(5) { grid-column: 4 / span 2; }
.office-top { display: grid; gap: 4px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.office-top span { color: var(--blue-800); font-size: 1.45rem; font-weight: 850; }
.office-top strong { color: var(--muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.office-card address { margin: 19px 0 12px; color: #50677c; font-style: normal; }
.phone { display: inline-block; color: var(--blue-700); font-size: 1.18rem; font-weight: 800; }
details { margin-top: 16px; }
summary { color: var(--blue-800); font-weight: 750; cursor: pointer; }
.office-people { padding: 14px 0 0; color: #50677c; font-size: .89rem; }
.office-people p { margin: 0 0 14px; }
.office-people a { color: var(--blue-700); overflow-wrap: anywhere; }

.contact { background: linear-gradient(135deg, var(--blue-700), #0869b5); }
.contact-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.contact-copy { color: white; }
.eyebrow-light { color: #b9e9fb; }
.contact-copy h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.045em; }
.contact-copy > p:not(.eyebrow) { color: #d8e9f7; font-size: 1.07rem; }
.contact-direct { display: grid; gap: 12px; margin-top: 35px; }
.contact-direct a { display: flex; align-items: center; gap: 14px; }
.contact-direct a > span { display: grid; place-items: center; width: 42px; height: 42px; background: rgba(255,255,255,.14); border-radius: 50%; }
.contact-direct div { display: grid; }
.contact-direct small { color: #b9d5e9; }
.contact-form { display: grid; gap: 16px; padding: 34px; background: white; border-radius: 28px; box-shadow: 0 24px 70px rgba(0,26,53,.25); }
.contact-form label:not(.check) { display: grid; gap: 7px; color: #405b73; font-size: .86rem; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, textarea, select { width: 100%; color: var(--ink); background: #f5f8fb; border: 1px solid #dce6ee; border-radius: 12px; outline: none; padding: 13px 14px; transition: .2s; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(8,116,201,.1); }
.check { display: flex; gap: 10px; color: #53697b; font-size: .82rem; line-height: 1.45; }
.check input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; }
.check a { color: var(--blue-700); text-decoration: underline; }
.form-status { min-height: 1.4em; margin: -4px 0 0; color: #be3030; font-size: .84rem; }
.contact-form .button-light { color: white; background: var(--blue-700); }

.site-footer { padding: 72px 0 24px; background: #061c31; color: #aebfd0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 55px; }
.footer-brand img { width: 280px; padding: 12px; background: white; border-radius: 12px; }
.footer-brand p { max-width: 390px; }
.footer-grid h3 { margin: 0 0 18px; color: white; font-size: .95rem; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 55px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; }
.footer-bottom p { margin: 0; }

.service-dialog { width: min(680px, calc(100% - 32px)); max-height: min(760px, calc(100vh - 50px)); padding: 38px; color: var(--ink); border: 0; border-radius: 24px; box-shadow: 0 30px 100px rgba(0,20,42,.4); }
.service-dialog::backdrop { background: rgba(4,25,47,.72); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 16px; top: 12px; width: 42px; height: 42px; border: 0; color: var(--blue-950); background: var(--surface-soft); border-radius: 50%; font-size: 1.7rem; }
.dialog-kicker { color: var(--blue-600); font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.service-dialog h2 { margin: 6px 0 20px; color: var(--blue-950); font-size: 2rem; }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; color: #50677c; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; color: white; background: var(--blue-600); border-radius: 50%; font-size: .72rem; font-weight: 900; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Privacy page */
.page-hero { padding: 160px 0 75px; background: linear-gradient(135deg, #eff8ff, #f9fcff); }
.page-hero h1 { margin: 0; color: var(--blue-950); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.page-hero p { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 1.1rem; }
.policy { padding: 80px 0 110px; }
.policy-layout { display: grid; grid-template-columns: 270px 1fr; gap: 70px; align-items: start; }
.policy-nav { position: sticky; top: 120px; display: grid; gap: 8px; padding: 18px; background: var(--surface-soft); border-radius: 18px; }
.policy-nav a { padding: 8px 10px; color: #50677c; border-radius: 8px; font-size: .88rem; }
.policy-nav a:hover { color: var(--blue-700); background: white; }
.policy-content { max-width: 820px; }
.policy-content section { scroll-margin-top: 120px; padding-bottom: 32px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.policy-content h2 { color: var(--blue-950); font-size: 1.6rem; }
.policy-content p, .policy-content li { color: #526a80; }
.policy-content a { color: var(--blue-700); text-decoration: underline; }

@media (max-width: 1020px) {
  .header-inner { min-height: 76px; }
  .brand img { width: 250px; }
  .menu-toggle { display: block; z-index: 2; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); padding: 110px 30px 40px; flex-direction: column; align-items: stretch; gap: 4px; background: white; box-shadow: -20px 0 60px rgba(5,37,72,.18); transform: translateX(105%); transition: transform .3s ease; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 13px 8px !important; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(690px, 100%); margin-inline: auto; }
  .hero-image-card { min-height: 480px; }
  .about-grid, .contact-shell, .territory-header { grid-template-columns: 1fr; gap: 40px; }
  .about-copy { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0 0; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); }
  .office-grid { grid-template-columns: 1fr 1fr; }
  .office-card, .office-card:nth-child(4), .office-card:nth-child(5) { grid-column: auto; }
  .office-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-nav { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .brand img { width: 215px; }
  .hero { min-height: auto; padding: 130px 0 70px; }
  .hero-grid { gap: 42px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-facts { gap: 18px; justify-content: space-between; }
  .hero-facts strong { font-size: 1.45rem; }
  .hero-facts span { font-size: .72rem; }
  .hero-image-card { min-height: 370px; padding-inline: 10px; border-radius: 28px; }
  .floating-card { left: 14px; bottom: 16px; padding: 14px; }
  .service-grid, .office-grid, .field-row { grid-template-columns: 1fr; }
  .service-card:last-child, .office-card:last-child { grid-column: auto; max-width: none; }
  .service-media { height: 220px; }
  .territory-header { gap: 20px; }
  .contact-shell { gap: 45px; }
  .contact-form { padding: 23px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .service-dialog { padding: 32px 23px; }
  .policy-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
