/* ============ BASE TYPOGRAPHY ============ */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink-700);
  background: var(--white);
  line-height: var(--leading-normal);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
.display { font-size: var(--fs-display); font-weight: 700; line-height: 1.2; color: var(--ink-900); }
.lead { font-size: var(--fs-lead); line-height: var(--leading-normal); color: var(--ink-700); max-width: 60ch; }
.overline {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.overline::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand);
  display: inline-block;
}
.caption { font-size: var(--fs-caption); color: var(--ink-500); }

/* ============ LAYOUT ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--space-section); }
.section--soft { background: var(--bg); }
.section--brand-pale { background: var(--brand-pale); }
.section--ink {
  background: linear-gradient(135deg, var(--ink-900) 0%, #0a1830 100%);
  color: var(--bg-soft);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--ink .lead { color: var(--bg-soft); }
.section--ink .overline { color: #6BA8E5; }
.section--ink .overline::before { background: #6BA8E5; }

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.divider { height: 1px; background: var(--border); border: 0; margin-block: var(--space-7); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: var(--fs-body);
  font-weight: 500;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: var(--white);
  border-radius: var(--radius-sm);
  transition: background var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft), border-color var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { background: var(--brand-pale); border-color: var(--brand-deep); color: var(--brand-deep); }
.btn--primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); box-shadow: 0 4px 12px rgba(29, 95, 166, .25); }
.btn--ghost { border-color: var(--border-strong); color: var(--ink-700); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-pale); }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--full { width: 100%; }
.btn .arrow { transition: transform var(--dur-base) var(--ease-soft); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ HEADER / NAV ============ */
.topbar {
  background: var(--ink-900);
  color: var(--bg-soft);
  font-size: var(--fs-caption);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px;
}
.topbar__left { display: flex; gap: var(--space-5); align-items: center; }
.topbar__left span { color: var(--ink-300); }
.topbar__right { display: flex; gap: var(--space-5); align-items: center; }
.topbar__right a { color: var(--bg-soft); display: inline-flex; align-items: center; gap: 6px; }
.topbar__right a:hover { color: #6BA8E5; }
@media (max-width: 767px) { .topbar { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: var(--space-7);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 40px; height: 40px;
  background: var(--brand);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__cn { font-size: 1.0625rem; font-weight: 600; color: var(--ink-900); letter-spacing: 0.05em; }
.brand__sub { font-size: var(--fs-overline); color: var(--ink-500); letter-spacing: var(--tracking-overline); text-transform: uppercase; margin-top: 2px; }

.nav-list { display: flex; gap: var(--space-7); align-items: center; }
.nav-list a {
  font-size: var(--fs-body);
  color: var(--ink-700);
  position: relative;
  padding-block: 10px;
  font-weight: 500;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: center;
  transition: transform var(--dur-base) var(--ease-soft);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--brand); }

.nav-cta { display: flex; align-items: center; gap: var(--space-4); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-weight: 600; font-size: 1rem;
}
.nav-phone-icon { width: 16px; height: 16px; flex-shrink: 0; }

.nav-toggle { display: none; }
.nav-drawer { display: none; }
@media (max-width: 1023px) {
  .site-header__inner { padding-block: 14px; }
  .nav-list, .nav-cta { display: none; }
  .nav-drawer { display: block; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 28px; height: 22px; justify-content: center;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink-900); transition: transform var(--dur-base), opacity var(--dur-base); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-drawer {
    position: fixed; inset: 64px 0 0; background: var(--white); padding: var(--space-7) var(--gutter);
    border-top: var(--hairline); transform: translateX(100%); transition: transform var(--dur-base) var(--ease-soft);
    overflow-y: auto;
  }
  .nav-drawer[data-open="true"] { transform: translateX(0); }
  .nav-drawer ul { display: flex; flex-direction: column; gap: var(--space-3); }
  .nav-drawer ul a { font-size: 1.125rem; font-weight: 500; padding-block: 10px; border-bottom: var(--hairline); display: block; }
  .nav-drawer .nav-phone { display: flex; margin-top: var(--space-7); font-size: 1.5rem; }
  .nav-drawer .nav-cta-row { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
  .nav-drawer .btn { width: 100%; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding-block: var(--space-9) var(--space-6);
  font-size: var(--fs-caption);
}
.site-footer h4 {
  font-size: var(--fs-overline);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: #6BA8E5;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter-lg); }
@media (max-width: 1023px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer .brand__cn { color: var(--white); }
.site-footer .brand__sub { color: var(--ink-300); }
.site-footer ul { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer a { color: var(--ink-300); }
.site-footer a:hover { color: var(--white); }
.site-footer__about { color: var(--ink-300); max-width: 36ch; line-height: var(--leading-normal); margin-top: var(--space-4); }
.site-footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4);
  font-size: var(--fs-caption); color: var(--ink-300);
}
.site-footer__compliance {
  margin-top: var(--space-4);
  font-size: var(--fs-overline);
  color: var(--ink-300);
  letter-spacing: 0.05em;
  display: flex; flex-wrap: wrap; gap: var(--space-5);
}

/* ============ COMMON COMPONENTS ============ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  font-size: var(--fs-overline);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.badge--brand { background: var(--brand-pale); color: var(--brand); border: 1px solid var(--brand-soft); }
.badge--accent { background: rgba(14, 131, 119, .08); color: var(--accent); border: 1px solid rgba(14, 131, 119, .2); }

.tile {
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-7);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.tile:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.tile__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--brand-pale);
  color: var(--brand);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.tile h3 { margin-bottom: var(--space-3); }
.tile p { color: var(--ink-700); }

.media-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: var(--hairline);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-soft); }
.media-frame:hover img { transform: scale(1.03); }

/* ============ SECTION HEADER ============ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--gutter-lg);
  align-items: end;
  margin-bottom: var(--space-8);
}
.section-head__lead { max-width: 60ch; color: var(--ink-700); font-size: var(--fs-lead); line-height: var(--leading-normal); }
.section-head h2 { margin-top: var(--space-4); }
@media (max-width: 767px) {
  .section-head { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft); }
.reveal[data-visible="true"] { opacity: 1; transform: translateY(0); }

/* ============ ACCESSIBILITY ============ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -40px; left: 8px; padding: 8px 14px; background: var(--ink-900); color: var(--white); z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }

/* ============ ICON ============ */
.icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 32px; height: 32px; }
