:root {
  --color-navy: #0b1f3a;
  --color-navy-2: #12375f;
  --color-text: #172033;
  --color-muted: #5b6678;
  --color-light: #f5f7fa;
  --color-line: #d9e1ec;
  --color-white: #ffffff;
  --color-teal: #1d8a99;
  --color-amber: #c7922b;
  --shadow: 0 20px 50px rgba(11, 31, 58, 0.12);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  border-radius: var(--radius);
}

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

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 10px max(20px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 225, 236, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: var(--color-navy);
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand span {
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 10px 12px;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--color-navy);
}

.header-contact {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: var(--radius);
  font-weight: 750;
}

.header-contact:hover,
.header-contact:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-navy-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--color-navy);
  stroke-linecap: round;
  stroke-width: 2;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background:
    radial-gradient(circle at 82% 24%, rgba(29, 138, 153, 0.28), transparent 34%),
    linear-gradient(135deg, #07182e 0%, #0b1f3a 58%, #12375f 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-mark {
  position: absolute;
  right: max(-160px, calc((100vw - var(--container)) / 2 - 220px));
  bottom: -180px;
  width: min(760px, 72vw);
  opacity: 0.12;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 92px 0 68px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #9be1e8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 7vw, 4.9rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--color-navy);
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 10px;
  color: var(--color-navy);
  font-size: 1.18rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

p,
li {
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 54px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
}

.button-primary {
  color: var(--color-white);
  background: var(--color-teal);
}

.button-secondary {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.36);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 850px;
  margin: 0;
}

.trust-strip div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.trust-strip strong {
  display: block;
  font-weight: 850;
  color: var(--color-white);
}

.trust-strip span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 88px 0;
}

.section-light {
  background: var(--color-light);
}

.section-accent {
  color: var(--color-white);
  background: var(--color-navy);
}

.section-accent h2,
.section-accent h3 {
  color: var(--color-white);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading p:last-child {
  color: var(--color-muted);
}

.section-accent .section-heading p:last-child,
.section-accent .eyebrow {
  color: #9be1e8;
}

.align-left {
  margin-left: 0;
  text-align: left;
}

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

.service-card,
.reason-grid article,
.contact-form,
.about-panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid rgba(217, 225, 236, 0.9);
}

.icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  background: #e8f6f8;
  border-radius: var(--radius);
}

.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.service-card ul {
  padding-left: 19px;
  margin: auto 0 0;
  color: var(--color-text);
}

.service-card li + li {
  margin-top: 6px;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.about-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.about-panel div {
  padding: 28px;
  background: var(--color-white);
}

.panel-number {
  display: block;
  margin-bottom: 5px;
  color: var(--color-navy);
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
}

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

.reason-grid article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.reason-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  background: var(--color-white);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-list a,
.contact-list address,
.hours {
  display: block;
  margin: 0;
  padding: 18px;
  background: var(--color-light);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-style: normal;
}

.contact-list span {
  display: block;
  margin-bottom: 3px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.contact-list strong {
  color: var(--color-navy);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: var(--color-light);
  border: 1px solid var(--color-line);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.checkbox-row a {
  color: var(--color-navy);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

label {
  color: var(--color-navy);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid #cdd7e4;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(29, 138, 153, 0.35);
  outline-offset: 2px;
}

.form-note,
.muted {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.form-note-success {
  color: #1d6f42;
}

.form-note-error {
  color: #a83232;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.site-footer {
  color: var(--color-white);
  background: #07182e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 32px;
  padding: 44px 0;
}

.site-footer h2 {
  margin-bottom: 10px;
  color: var(--color-white);
  font-size: 1rem;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer img {
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
}

.legal-page {
  background: var(--color-light);
}

.legal-content {
  max-width: 860px;
  padding: 72px 0 88px;
}

.legal-content h1 {
  color: var(--color-navy);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.32rem;
}

.legal-note {
  padding: 16px 18px;
  color: #6a4a00;
  background: #fff7df;
  border: 1px solid #f0d58c;
  border-radius: var(--radius);
}

.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 70;
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: var(--color-navy);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateX(84px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    visibility 220ms ease,
    background 160ms ease;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-navy-2);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .header-contact {
    display: none;
  }

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

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    display: flex;
  }
}

@media (max-width: 680px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header {
    min-height: 68px;
    padding: 8px 14px;
  }

  .brand span {
    max-width: 190px;
    white-space: normal;
    line-height: 1.15;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .hero-content {
    width: 330px;
    max-width: calc(100vw - 28px);
    margin-left: 14px;
    margin-right: 14px;
    padding: 70px 0 52px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.95rem, 8vw, 2.35rem);
    hyphens: auto;
  }

  .hero-mark {
    width: 520px;
    right: -245px;
    bottom: -120px;
    opacity: 0.11;
  }

  .hero-actions,
  .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-actions,
  .trust-strip {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    max-width: 100%;
    text-align: left;
  }

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

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

  .service-card,
  .reason-grid article,
  .contact-form,
  .about-panel,
  .about-panel div {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-to-top {
    transition: none;
  }
}
