:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #102033;
  --muted: #5f6f83;
  --line: #dfe6ee;
  --primary: #0b3a6e;
  --primary-2: #115fa3;
  --accent: #68d2ff;
  --shadow: 0 20px 60px rgba(16, 32, 51, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--text);
  color: white;
  padding: .75rem 1rem;
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus { left: 1rem; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 92px 0; }
.muted { background: #eef4fa; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(246, 248, 251, .88);
  border-bottom: 1px solid rgba(223, 230, 238, .8);
}
.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(11, 58, 110, .25);
}
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand small { color: var(--muted); font-size: .78rem; margin-top: .1rem; }
.nav-menu { display: flex; align-items: center; gap: .4rem; }
.nav-menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  padding: .65rem .9rem;
  border-radius: 999px;
}
.nav-menu a:hover { color: var(--primary); background: rgba(17, 95, 163, .08); }
.nav-menu .nav-cta { background: var(--text); color: #fff; }
.nav-toggle { display: none; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 22%, rgba(104, 210, 255, .35), transparent 28%),
    radial-gradient(circle at 10% 15%, rgba(17, 95, 163, .18), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #e9f3fd 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 90px solid rgba(11, 58, 110, .06);
}
.hero-grid, .two-col, .contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero h1, h2 { letter-spacing: -.045em; line-height: 1.05; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.7rem); max-width: 770px; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { margin: 0 0 .45rem; font-size: 1.1rem; }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 640px; }
.eyebrow {
  margin-bottom: 1rem;
  color: var(--primary-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.button {
  appearance: none;
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 14px 34px rgba(11,58,110,.22); }
.secondary { background: #fff; border: 1px solid var(--line); color: var(--primary); }
.status-card, .card, .panel, .doc-card, .contact-form {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(223,230,238,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.status-card { padding: 2rem; }
.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #35c97a;
  box-shadow: 0 0 0 8px rgba(53,201,122,.14);
  margin-bottom: 1rem;
}
dl { margin: 1.2rem 0 0; }
dt { color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
dd { margin: .15rem 0 1rem; font-weight: 800; }
.cards { display: grid; gap: 22px; }
.three { grid-template-columns: repeat(3, 1fr); }
.card { padding: 1.5rem; box-shadow: none; }
.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  margin-bottom: 1rem;
}
.feature-list { display: grid; gap: 18px; }
.feature-list article {
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 4px solid var(--accent);
}
.reverse { grid-template-columns: .9fr 1.1fr; }
.panel { padding: 2rem; }
.narrow { max-width: 860px; }
.accordion { margin-top: 2rem; display: grid; gap: .9rem; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
}
summary { cursor: pointer; font-weight: 800; }
details p { margin: .8rem 0 0; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.doc-card { padding: 1.5rem; box-shadow: none; }
.doc-card a {
  display: block;
  padding: .85rem 0;
  color: var(--primary-2);
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.doc-card a:hover { text-decoration: underline; }
.contact { background: #071d35; color: #fff; }
.contact p, .contact .eyebrow { color: rgba(255,255,255,.75); }
.contact h2 { color: #fff; }
.email-link { color: #fff; font-size: 1.35rem; font-weight: 800; }
.contact-form { padding: 1.5rem; background: #fff; color: var(--text); box-shadow: none; }
label { display: grid; gap: .35rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1rem;
  font: inherit;
}
input:focus, textarea:focus { outline: 3px solid rgba(104, 210, 255, .35); border-color: var(--primary-2); }
.footer { background: #051527; color: rgba(255,255,255,.8); padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer p { margin: 0; color: inherit; }
.footer a { color: #fff; font-weight: 700; }
@media (max-width: 820px) {
  .nav { min-height: 68px; }
  .nav-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: .6rem .9rem; font-weight: 800; }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: .7rem;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .9rem 1rem; }
  .hero { min-height: auto; padding-top: 44px; }
  .hero-grid, .two-col, .reverse, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .three, .doc-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Documents page */
.compact-hero { min-height: 460px; }
.page-hero { position: relative; overflow: hidden; display: flex; align-items: center; }
.page-hero-inner { position: relative; max-width: 960px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -.055em; line-height: 1.04; margin: 0 0 1rem; }
.featured-docs { grid-template-columns: repeat(3, 1fr); }
.featured-doc { display: flex; min-height: 280px; flex-direction: column; }
.doc-tag { align-self: flex-start; border-radius: 999px; padding: .35rem .7rem; background: rgba(17, 95, 163, .09); color: var(--primary-2); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.featured-doc p { flex: 1; }
.doc-link { border-top: 1px solid var(--line); margin-top: 1rem; }
.with-search { display: grid; grid-template-columns: 1fr minmax(280px, 390px); gap: 32px; align-items: end; max-width: none; }
.search-box { margin: 0; }
.search-box input { margin-top: .45rem; background: #fff; }
.archive-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.archive-nav { position: sticky; top: 96px; display: grid; gap: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: .8rem; box-shadow: 0 16px 44px rgba(16, 32, 51, .08); }
.archive-nav a { text-decoration: none; color: var(--muted); font-weight: 750; border-radius: 14px; padding: .75rem .85rem; }
.archive-nav a:hover { color: var(--primary); background: rgba(17, 95, 163, .08); }
.archive-content { display: grid; gap: 24px; }
.archive-section { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.3rem; box-shadow: 0 16px 44px rgba(16, 32, 51, .08); }
.archive-section h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.document-list { display: grid; gap: .65rem; }
.document-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: #f9fbfd; }
.document-row:hover { border-color: rgba(17,95,163,.35); background: #fff; box-shadow: 0 8px 22px rgba(16, 32, 51, .07); }
.document-row span { font-weight: 750; }
.document-row small { flex: 0 0 auto; border-radius: 999px; background: #eaf2fa; color: var(--primary); font-weight: 850; font-size: .72rem; padding: .25rem .55rem; letter-spacing: .04em; }
.archive-note { margin: 1rem 0 0; font-size: .95rem; }
.dark-panel { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.dark-panel h3 { color: #fff; }
.dark-panel p { color: rgba(255,255,255,.75); }
.no-results { padding: 1rem; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); background: #fff; }
@media (max-width: 820px) {
  .featured-docs, .with-search, .archive-layout { grid-template-columns: 1fr; }
  .archive-nav { position: static; }
}

/* Contact page */
.blue-link { color: var(--primary-2); }
.contact-checklist ul { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.contact-checklist li { margin: .45rem 0; }
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1rem;
  font: inherit;
  background: #fff;
}
select:focus { outline: 3px solid rgba(104, 210, 255, .35); border-color: var(--primary-2); }
.light-button { background: #fff; color: var(--primary); border: 1px solid rgba(255,255,255,.45); margin-top: .5rem; }

/* Improved documents page layout - compact and readable */
.documents-page .site-header { position: sticky; }
.documents-top {
  padding: 42px 0 48px;
  background:
    radial-gradient(circle at 90% 0%, rgba(104, 210, 255, .22), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eaf4fd 100%);
  border-bottom: 1px solid var(--line);
}
.documents-intro {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 390px);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}
.documents-intro h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -.055em;
  line-height: 1.03;
  margin: 0 0 .8rem;
}
.documents-intro .lead { margin-bottom: 0; }
.compact-search { margin: 0; }
.priority-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.priority-card {
  background: #fff;
  border: 1px solid rgba(223,230,238,.98);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: 0 16px 44px rgba(16, 32, 51, .08);
  display: flex;
  flex-direction: column;
  min-height: 250px;
}
.priority-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: .75rem;
}
.priority-card p { flex: 1; }
.priority-card .button { width: 100%; margin-top: .5rem; }
.documents-archive { padding-top: 56px; }
.archive-heading { margin-bottom: 1.4rem; }
.archive-cards { display: grid; gap: 20px; }
.archive-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 14px 40px rgba(16, 32, 51, .075);
}
.archive-card-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: .85rem;
  margin-bottom: 1rem;
}
.archive-card-head h3 { font-size: 1.35rem; margin: 0; }
.archive-card-head p { max-width: 520px; margin: 0; font-size: .95rem; }
.two-column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.documents-page .document-row {
  min-height: 58px;
  padding: .8rem .9rem;
  background: #fbfdff;
}
.documents-page .document-row span {
  line-height: 1.25;
}
.old-invoices {
  margin-top: 1rem;
  box-shadow: none;
  background: #f9fbfd;
}
@media (max-width: 900px) {
  .documents-intro, .priority-docs, .two-column-list { grid-template-columns: 1fr; }
  .documents-top { padding-top: 30px; }
  .priority-card { min-height: auto; }
  .archive-card-head { display: block; }
  .archive-card-head p { margin-top: .35rem; }
}


/* Document page cleanup: simpler links and one document per line */
.documents-page .priority-card {
  min-height: 170px;
}
.documents-page .priority-card h2 a {
  color: var(--primary);
  text-decoration: none;
}
.documents-page .priority-card h2 a:hover,
.documents-page .document-row:hover {
  text-decoration: underline;
}
.documents-page .priority-card p {
  flex: initial;
  margin-bottom: 0;
}
.documents-page .archive-document-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .4rem;
}
.documents-page .document-row {
  display: block;
  min-height: 0;
  padding: .45rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--primary-2);
  font-weight: 750;
  box-shadow: none;
}
.documents-page .document-row:hover {
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
}
.documents-page .document-row:last-child {
  border-bottom: 0;
}
.documents-page .document-row small {
  display: none;
}
.documents-page .archive-card {
  padding: 1.35rem 1.5rem;
}
