:root {
  --navy: #0f2438;
  --navy-deep: #0a1a29;
  --teal: #1f7a70;
  --teal-light: #e7f3f1;
  --amber: #c17f3e;
  --ink: #1a1f24;
  --slate: #55606b;
  --line: #e2e6e9;
  --paper: #f7f8f9;
  --white: #ffffff;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-700-latin.woff2') format('woff2');
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--navy-deep);
}

a { color: var(--teal); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1000;
}
.site-nav .nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  text-decoration: none;
}
.wordmark-accent { color: var(--teal); }
.wordmark-icon { display: block; border-radius: 8px; flex: none; }
.footer-brand .wordmark { color: var(--white); }
.footer-brand .wordmark-accent { color: #6fd1c4; }
@media screen and (min-width: 992px) {
  .site-nav nav.w-nav-menu {
    display: flex;
    gap: 8px;
    float: none;
  }
}
.site-nav .navigation-item {
  color: var(--slate);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 14px;
  text-decoration: none;
  border-radius: 6px;
}
.site-nav .navigation-item:hover { color: var(--navy-deep); background: var(--paper); }
.site-nav .nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  border-radius: 6px;
}
.site-nav .nav-cta:hover { background: var(--navy); }

.w-nav-button { color: var(--navy-deep); }
[data-nav-menu-open] {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 8px 24px 16px;
}
[data-nav-menu-open] .navigation-item { display: block; padding: 12px 4px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 88px 0 96px;
}
.hero h1 {
  color: var(--white);
  font-size: 42px;
  max-width: 820px;
}
.hero .hero-body {
  color: #cfd9e0;
  font-size: 19px;
  max-width: 680px;
  margin-bottom: 12px;
}
.hero .hero-tagline {
  color: var(--amber);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}
.button {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}
.button:hover { background: #185f57; }
.button.button-light { background: var(--white); color: var(--navy-deep); }
.button.button-light:hover { background: #eef1f3; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-heading h2 { font-size: 30px; }
.section-heading p { color: var(--slate); font-size: 17px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}
.pillar .pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pillar h3 { font-size: 19px; margin-bottom: 10px; }
.pillar p { color: var(--slate); font-size: 15px; margin: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  border-top: 3px solid var(--teal);
}
.service-card.accent-amber { border-top-color: var(--amber); }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--slate); font-size: 15px; margin: 0; }

/* ---------- About ---------- */
.about-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.about-block p { color: var(--slate); font-size: 16px; }
.credentials {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.credentials h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate); margin-bottom: 14px; }
.credentials ul { margin: 0; padding-left: 18px; color: var(--ink); }
.credentials li { margin-bottom: 8px; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-section { background: var(--navy-deep); color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-intro h2 { color: var(--white); font-size: 30px; }
.contact-intro p { color: #cfd9e0; font-size: 16px; }
.contact-form-wrap {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
}
.field-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.text-field {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--white);
}
.text-field:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
textarea.text-field { min-height: 120px; resize: vertical; }
.contact-hp { position: absolute; left: -9999px; }
.contact-submit { width: 100%; }
.status-message { margin-top: 14px; padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.cc-success-message { background: #e6f4ea; color: #1e6b3a; }
.cc-error-message { background: #fbe7e7; color: #a5322f; }

/* ---------- Footer ---------- */
.footer-wrap { background: var(--navy-deep); color: #9fb0bd; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand .wordmark { color: var(--white); }
.footer-tagline { color: #9fb0bd; font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-item { color: #cfd9e0; text-decoration: none; font-size: 14px; }
.footer-item:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  text-align: center;
  font-size: 13px;
  color: #7f92a1;
}

@media screen and (max-width: 900px) {
  .pillars, .services-grid { grid-template-columns: 1fr 1fr; }
  .about-block, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { align-items: flex-start; }
}
@media screen and (max-width: 600px) {
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 32px; }
  .pillars, .services-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 96px; }
.legal h1 { font-size: 34px; }
.legal-updated { color: var(--slate); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 21px; margin-top: 36px; }
.legal h3 { font-size: 17px; margin-top: 24px; }
.legal p, .legal li { color: var(--slate); font-size: 15.5px; }
.legal a { color: var(--teal); }

/* ---------- Utility pages (401/404) ---------- */
.utility-page-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
}
.utility-page-wrap h1 { font-size: 30px; }
.utility-page-wrap p { color: var(--slate); margin-bottom: 24px; }
