*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.2rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
  font-size: .94rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--brand);
}

.button-primary:hover { background: var(--brand-dark); }

.button-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);
  background: transparent;
}

.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: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(23,34,49,.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.primary-nav a,
.mobile-nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
}

.primary-nav a {
  position: relative;
  padding: .5rem 0;
}

.primary-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .1rem;
  height: 2px;
  background: var(--brand);
}

.header-cta,
.mobile-nav-cta {
  color: #fff !important;
  background: var(--brand);
  text-decoration: none;
  font-weight: 700;
  border-radius: 7px;
}

.header-cta {
  padding: .72rem 1.1rem;
  font-size: .88rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: .5rem;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg { width: 25px; height: 25px; }

.mobile-nav {
  display: none;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-nav.is-open {
  display: grid;
  gap: .75rem;
}

.mobile-nav a {
  padding: .5rem;
}

.mobile-nav-cta {
  text-align: center;
  padding: .8rem 1rem;
}

.site-footer {
  color: #dce7f0;
  background: var(--navy-deep);
  padding: 4.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr .9fr 1.15fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 330px;
  margin: 0 0 1rem;
  color: #b8c7d5;
  font-size: .88rem;
}

.footer-brand .footer-lead {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.footer-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.footer-links {
  display: grid;
  gap: .5rem;
}

.footer-links a {
  color: #c6d3df;
  text-decoration: none;
  font-size: .88rem;
}

.footer-links a:hover,
.footer-contact a:hover { color: #fff; }

.footer-contact {
  display: grid;
  gap: .75rem;
}

.footer-contact a,
.footer-contact > span {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: #c6d3df;
  text-decoration: none;
  font-size: .88rem;
}

.footer-contact svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--brand);
}

.social-links {
  display: flex;
  gap: .6rem;
  margin-top: 1.2rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}

.social-links svg { width: 18px; height: 18px; }

.footer-bottom {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.13);
  color: #9fb0bf;
  font-size: .75rem;
}

.footer-bottom > :nth-child(2) { text-align: center; }

.footer-bottom nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #c6d3df;
  text-decoration: none;
}

@media (max-width: 980px) {
  .primary-nav { gap: 1rem; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr; padding: 1rem 0; }
  .footer-bottom > :nth-child(2) { text-align: left; }
  .footer-bottom nav { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: .25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
