:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6f83;
  --line: #dce4ee;
  --paper: #f5f7fb;
  --white: #ffffff;
  --navy: #12345f;
  --cyan: #12a8ca;
  --green: #2fa66f;
  --yellow: #f4c84d;
  --deep: #111827;
  --band-bg: #12345f;
  --footer-bg: #111827;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --header-bg: rgba(12, 20, 34, 0.88);
  --header-text: #f4f8ff;
  --footer-text: #dce7f5;
  --hero-overlay-strong: rgba(10, 17, 29, 0.9);
  --hero-overlay-mid: rgba(10, 17, 29, 0.56);
  --hero-overlay-soft: rgba(10, 17, 29, 0.22);
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 12px 32px rgba(17, 24, 39, 0.09);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 180ms ease;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf4ff;
  --muted: #a8b6c8;
  --line: rgba(161, 177, 198, 0.22);
  --paper: #0b111c;
  --white: #121b2a;
  --navy: #8bc4ff;
  --cyan: #4dd4ee;
  --green: #6ce0a5;
  --yellow: #f5d36b;
  --deep: #050914;
  --band-bg: #0e263f;
  --footer-bg: #070c14;
  --surface: #111a28;
  --surface-raised: #162234;
  --header-bg: rgba(7, 12, 20, 0.86);
  --header-text: #f7fbff;
  --footer-text: #cfdceb;
  --hero-overlay-strong: rgba(3, 7, 13, 0.9);
  --hero-overlay-mid: rgba(3, 7, 13, 0.64);
  --hero-overlay-soft: rgba(3, 7, 13, 0.34);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #edf4ff;
    --muted: #a8b6c8;
    --line: rgba(161, 177, 198, 0.22);
    --paper: #0b111c;
    --white: #121b2a;
    --navy: #8bc4ff;
    --cyan: #4dd4ee;
    --green: #6ce0a5;
    --yellow: #f5d36b;
    --deep: #050914;
    --band-bg: #0e263f;
    --footer-bg: #070c14;
    --surface: #111a28;
    --surface-raised: #162234;
    --header-bg: rgba(7, 12, 20, 0.86);
    --header-text: #f7fbff;
    --footer-text: #cfdceb;
    --hero-overlay-strong: rgba(3, 7, 13, 0.9);
    --hero-overlay-mid: rgba(3, 7, 13, 0.64);
    --hero-overlay-soft: rgba(3, 7, 13, 0.34);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

img,
iframe {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 15px clamp(18px, 4vw, 56px);
  color: var(--header-text);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 240px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: #0f2748;
  color: #ffffff;
  font-size: 1.32rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 39, 72, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: color-mix(in srgb, var(--header-text) 72%, transparent);
  font-size: 0.76rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
  font-size: 0.94rem;
}

.nav a {
  color: color-mix(in srgb, var(--header-text) 90%, transparent);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--yellow);
}

.nav-support {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: #111827 !important;
  background: var(--yellow);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(243, 198, 77, 0.22);
}

.nav-support:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(243, 198, 77, 0.28);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.theme-toggle-icon::before {
  content: "☾";
  font-size: 1.05rem;
  line-height: 1;
}

:root[data-theme="dark"] .theme-toggle-icon::before {
  content: "☀";
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle-icon::before {
    content: "☀";
  }
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--hero-overlay-strong), var(--hero-overlay-mid) 52%, var(--hero-overlay-soft)),
    linear-gradient(0deg, var(--hero-overlay-strong), transparent 45%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(58px, 8vw, 88px);
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #e4edf8;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.button.primary {
  color: #111827;
  background: var(--yellow);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.10);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.16);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 108px) 0;
}

.intro,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro h2,
.split h2,
.section-heading h2,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro > p,
.split > p {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.services {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--cyan) 44%, var(--line));
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.service-icon {
  color: var(--green);
  font-weight: 900;
}

.service-card h3 {
  margin: 44px 0 10px;
  font-size: 1.25rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.service-card a:hover {
  color: var(--cyan);
}

.split {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1120px) / 2));
  background: var(--band-bg);
  color: #ffffff;
}

.split .section-kicker {
  color: var(--yellow);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef5ff;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}

.pill-list span:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
}

.contact {
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.contact-panel,
.map-panel {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel {
  padding: 30px;
}

dl {
  margin: 0;
}

dl div + div {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

dd a {
  color: var(--navy);
  font-weight: 800;
}

dd a:hover {
  color: var(--cyan);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.legal-page {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 62px 0 90px;
}

.legal-hero {
  margin-bottom: 34px;
}

.legal-content {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: 1.45rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
}

.legal-content p,
.legal-content li {
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 4vw, 56px);
  color: var(--footer-text);
  background: var(--footer-bg);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .intro,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .theme-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .hero {
    min-height: 560px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.96rem;
  }

  .nav {
    gap: 10px 16px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .button {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .map-panel,
  .map-panel iframe {
    min-height: 420px;
  }
}
