:root {
  --primary: #373947;
  --navy: #1f2d47;
  --text: #4a4d57;
  --muted: #7a7a7a;
  --line: #e3e5ea;
  --bg-soft: #f5f6f8;
  --white: #fff;
  --radius: 6px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }

h1, h2, h3, h4 { color: var(--primary); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo img { width: 210px; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 8px; font-size: 1.6rem; line-height: 1; color: var(--primary); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--primary); font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

.has-sub { position: relative; }
.has-sub > span { color: var(--primary); font-weight: 500; cursor: default; }
.has-sub > span::after { content: " ▾"; font-size: .8em; }
.has-sub ul { display: none; position: absolute; top: 100%; left: -16px; min-width: 160px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.has-sub ul a { display: block; padding: 8px 16px; }
.has-sub:hover ul, .has-sub:focus-within ul { display: flex; }

.btn { display: inline-block; background: var(--navy); color: var(--white) !important; text-decoration: none !important; padding: 12px 26px; border-radius: var(--radius); font-weight: 600; border: 0; font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--primary); }
.btn-light { background: var(--white); color: var(--navy) !important; }
.btn-light:hover { background: var(--bg-soft); }

@media (max-width: 820px) {
  .nav-toggle-label { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .has-sub ul { display: flex; position: static; border: 0; box-shadow: none; padding: 6px 0 0 14px; }
  .has-sub ul a { padding: 4px 0; }
}

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--primary); color: #ccc; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--muted); }

.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero-tag { font-size: 1.3rem; color: var(--muted); margin-bottom: 1.6em; }
.hero-img img { max-width: 420px; margin: 0 auto; border-radius: 12px; box-shadow: 0 16px 48px rgba(31,45,71,.15); }

.features { display: grid; gap: 24px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature img { width: 64px; flex: 0 0 64px; border-radius: var(--radius); }
.feature h3 { margin-bottom: .2em; }
.feature p { margin: 0; }

.grid-3, .grid-4 { display: grid; gap: 24px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.card p { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { max-width: 380px; margin: 0 auto; }

@media (max-width: 820px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (min-width: 821px) and (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Prose (legal / about) */
.page-head { background: var(--bg-soft); padding: 52px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose { overflow-wrap: anywhere; }

/* Contact form */
.form { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; font: inherit; color: inherit; border: 1px solid #c9ccd4; border-radius: var(--radius); background: var(--white); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field textarea { min-height: 180px; resize: vertical; }
.req { color: #b3261e; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; }
.alert-ok { background: #e7f5ec; color: #1d5c33; border: 1px solid #b7dfc4; }
.alert-err { background: #fdecea; color: #8a1c14; border: 1px solid #f3c1bb; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.captcha { margin: 8px 0 22px; }

/* Footer */
.site-footer { background: var(--primary); color: #ccc; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 820px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* Utilities */
.cta-actions { margin-top: 1.4em; }
.page-sub { margin: .6em 0 0; }
.display { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.prose h2.first { margin-top: 0; }

.section-dark + .section-dark { border-top: 1px solid rgba(255,255,255,.12); }
