:root {
  --navy: #14324a;
  --navy-2: #224a63;
  --teal: #0c6b68;
  --teal-dark: #075451;
  --sun: #f4b942;
  --sun-soft: #fff0bf;
  --coral: #dc765d;
  --cream: #fff9ed;
  --paper: #fffdf8;
  --mint: #e7f4f1;
  --line: #dbe5e7;
  --text: #1d3544;
  --muted: #5a6f7b;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(20, 50, 74, 0.10);
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 36px), 780px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--navy); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 248, .94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(219, 229, 231, .85); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.brand img { width: 37px; height: 37px; }
.brand span { line-height: 1.05; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: .96rem; font-weight: 650; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--navy); padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--teal); box-shadow: 0 8px 18px rgba(12, 107, 104, .2); }
.button-primary:hover { color: var(--white); background: var(--teal-dark); }
.button-secondary { color: var(--navy); border-color: var(--navy); background: transparent; }
.button-secondary:hover { color: var(--navy); background: var(--sun-soft); }
.button-small { min-height: 38px; padding: 8px 14px; font-size: .9rem; }

.hero { overflow: hidden; position: relative; padding: 90px 0 78px; background: radial-gradient(circle at 82% 12%, rgba(244,185,66,.35), transparent 27%), radial-gradient(circle at 100% 90%, rgba(12,107,104,.16), transparent 32%), linear-gradient(135deg, var(--cream), #fffdf8 58%, #f4fbf9); }
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; border: 2px solid rgba(244,185,66,.35); border-radius: 50%; right: -130px; bottom: -180px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 17px; color: var(--teal-dark); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 999px; background: var(--sun); }
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.65rem, 6vw, 5.25rem); max-width: 850px; }
h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { margin: 0 0 10px; font-size: 1.25rem; }
.lead { max-width: 700px; margin: 24px 0 30px; color: var(--navy-2); font-size: clamp(1.08rem, 2vw, 1.27rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel { position: relative; padding: 28px; background: rgba(255,255,255,.88); border: 1px solid rgba(219,229,231,.9); border-radius: 28px; box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; background: var(--sun-soft); border-radius: 28px; }
.hero-panel h2 { font-size: 1.35rem; margin-bottom: 8px; }
.quick-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.quick-list li { display: flex; gap: 11px; align-items: flex-start; }
.quick-list svg { flex: 0 0 20px; width: 20px; margin-top: 3px; color: var(--teal); }

.trust-strip { border-block: 1px solid var(--line); background: white; }
.trust-grid { min-height: 78px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.trust-item { padding: 15px 26px; text-align: center; color: var(--muted); font-size: .92rem; font-weight: 650; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }

.section { padding: 82px 0; }
.section-soft { background: var(--cream); }
.section-mint { background: var(--mint); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-head p { margin: 0; max-width: 640px; color: var(--muted); }
.section-head.center { display: block; text-align: center; }
.section-head.center p { margin-inline: auto; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { position: relative; min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-decoration: none; box-shadow: 0 7px 24px rgba(20, 50, 74, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.category-card:hover { transform: translateY(-3px); border-color: rgba(12,107,104,.45); box-shadow: var(--shadow); }
.category-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--sun-soft); color: var(--navy); margin-bottom: 28px; }
.category-icon svg { width: 24px; height: 24px; }
.category-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.category-arrow { position: absolute; right: 22px; top: 24px; color: var(--teal); font-size: 1.4rem; }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource-card { display: flex; flex-direction: column; min-height: 100%; padding: 25px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 22px rgba(20, 50, 74, .055); }
.resource-card .meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; color: var(--teal-dark); background: var(--mint); font-size: .76rem; font-weight: 750; }
.badge-warm { color: #73420c; background: var(--sun-soft); }
.resource-card p { color: var(--muted); }
.resource-details { display: grid; gap: 7px; padding: 15px 0; margin-top: auto; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.resource-details strong { color: var(--text); }
.resource-card .button { align-self: flex-start; margin-top: 18px; }

.search-panel { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 12px; padding: 20px; margin-bottom: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(20,50,74,.06); }
.field label { display: block; margin-bottom: 6px; color: var(--navy); font-size: .86rem; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #b8c8ce; border-radius: 11px; background: white; color: var(--text); padding: 11px 12px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(244,185,66,.35); border-color: var(--teal); }
textarea { min-height: 130px; resize: vertical; }
.results-count { margin: 0 0 18px; color: var(--muted); }
.empty-state { display: none; padding: 36px; text-align: center; border: 1px dashed #9fb3bb; border-radius: var(--radius); color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: steps; }
.step { position: relative; padding: 30px 25px 25px; border-top: 4px solid var(--sun); background: white; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 26px rgba(20,50,74,.06); }
.step::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 24px; color: var(--teal); font-size: .8rem; font-weight: 900; letter-spacing: .1em; }
.step p { color: var(--muted); margin-bottom: 0; }

.callout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 42px; border-radius: 30px; background: var(--navy); color: white; overflow: hidden; position: relative; }
.callout::after { content: ""; width: 250px; height: 250px; border-radius: 50%; background: rgba(244,185,66,.18); position: absolute; right: -80px; bottom: -120px; }
.callout h2, .callout h3 { color: white; }
.callout p { color: #d9e6ec; }
.callout .button-secondary { color: white; border-color: white; }
.callout .button-secondary:hover { color: var(--navy); background: white; }

.page-hero { padding: 72px 0 54px; background: linear-gradient(135deg, var(--cream), #f1f9f7); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.45rem, 5vw, 4.3rem); max-width: 950px; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--muted); }

.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.guide-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.guide-card .date { color: var(--muted); font-size: .85rem; }
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 2.2em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: #334f5e; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .45em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.notice { padding: 18px 20px; margin: 30px 0; border-left: 5px solid var(--sun); background: var(--cream); border-radius: 0 12px 12px 0; }

.form-card { padding: 32px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { color: var(--muted); font-size: .88rem; }
.hidden { display: none !important; }

.site-footer { padding: 56px 0 24px; background: #102a3e; color: #d6e3e9; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 48px; }
.site-footer h2, .site-footer h3 { color: white; font-size: 1.05rem; }
.site-footer a { color: #d6e3e9; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .82rem; color: #a9bdc7; }

@media (max-width: 960px) {
  .hero-grid, .callout { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { display: none; position: absolute; left: 14px; right: 14px; top: 68px; padding: 18px; flex-direction: column; align-items: stretch; gap: 4px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px; }
  .site-nav .button { margin-top: 6px; }
  .hero { padding: 58px 0; }
  .hero-grid { gap: 38px; }
  .trust-grid { grid-template-columns: 1fr; padding: 12px 0; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .section-head .button { margin-top: 18px; }
  .category-grid, .resource-grid, .guide-grid, .steps, .footer-grid, .form-grid, .search-panel { grid-template-columns: 1fr; }
  .search-panel .field:first-child, .form-grid .full { grid-column: auto; }
  .callout { padding: 30px 24px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
}
