/* ---------- Tokens ---------- */
:root {
  --blue: #3d6a97;
  --blue-deep: #2b4d6f;
  --blue-light: #eaf2fa;
  --blue-pale: #dbe8f5;
  --ink: #262b33;
  --ink-soft: #58626d;
  --paper: #ffffff;
  --paper-alt: #f3f5f7;
  --line: #e1e5ea;
  --white: #ffffff;

  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
  --radius: 10px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); font-weight: 300; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-deep);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-pale);
}
.btn-outline:hover { border-color: var(--blue); background: var(--blue-light); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  position: relative;
}
.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.wordmark__logo { height: 96px; width: auto; display: block; }

.site-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:hover { color: var(--blue-deep); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.6em 1.3em;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-deep); }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(38,43,51,0.12);
  padding: 10px;
  min-width: 260px;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: flex; }
.dropdown li { list-style: none; }
.dropdown a {
  color: var(--ink);
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.dropdown a:hover { background: var(--blue-light); color: var(--blue-deep); }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ""; position: absolute; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

/* ---------- Hero ---------- */
.hero {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.75) 40%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.55) 100%),
    url('/images/hero-bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: var(--ink);
  padding: 96px 0 120px;
}
.hero .wrap { max-width: 820px; }
.hero h1 { color: var(--ink); }
.hero__subhead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
}
.hero__actions { margin-top: 2em; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--paper-alt); }
.section-lead {
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.8em;
  display: block;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 2.5em;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  /* center a lone trailing card left over from an odd count */
  .card-grid .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin: 0 auto;
  }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(38,43,51,0.08);
  border-color: var(--blue-pale);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--ink-soft); margin-bottom: 0; flex-grow: 1; }
.card .card-link {
  margin-top: 1.2em;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--blue-light);
  color: var(--ink);
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: var(--ink); margin-bottom: 0.4em; }
.cta-band p { color: var(--ink-soft); margin-bottom: 1.6em; }

/* ---------- Prose pages (about/services detail) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose p { color: var(--ink-soft); }

/* ---------- Form ---------- */
.form {
  max-width: 640px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.92rem; }
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.contact-phone-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.contact-phone-link:hover { color: var(--blue-deep); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-alt); color: var(--ink-soft); margin-top: 60px; border-top: 1px solid var(--line); }
.site-footer__inner {
  padding: 48px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__brand { max-width: 340px; }
.site-footer__logo { height: 34px; width: auto; display: block; }
.site-footer__phone {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-footer__phone:hover { color: var(--blue-deep); }
.site-footer__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer__nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.site-footer__nav a:hover { color: var(--blue-deep); }
.site-footer__social { display: flex; align-items: center; }
.site-footer__social a { color: var(--ink-soft); display: flex; }
.site-footer__social a:hover { color: var(--blue-deep); }
.site-footer__legal {
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px 24px;
    gap: 4px;
  }
  .site-nav a { padding: 10px 0; display: block; width: 100%; }
  .nav-toggle:checked ~ .site-nav { max-height: 480px; }
  .dropdown {
    position: static;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 0 12px;
    display: flex;
    margin-top: 0;
  }
  .dropdown a { color: var(--ink-soft); padding: 8px 0; }
  .dropdown a:hover { background: transparent; color: var(--blue-deep); }
  .form-two-col { grid-template-columns: 1fr; }
}
