/* ============================================================
   SmartBooks BC - Site Stylesheet
   Palette: brand blue #2274B8 · brand green #4CB748 · navy #0E2A47
   Type: Lexend (headings) · Source Sans 3 (body)
   ============================================================ */

:root {
  --navy: #0e2a47;
  --navy-800: #14395f;
  --navy-700: #1b4a7a;
  --blue: #2274b8;
  --blue-dark: #1b5e96;
  --blue-soft: #e8f1f9;
  --green: #4cb748;
  --green-dark: #35953a;
  --green-soft: #ecf7ec;
  --ink: #1e2a38;
  --slate: #52657a;
  --slate-light: #8296ab;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --border: #dfe8f0;
  --shadow-sm: 0 1px 3px rgba(14, 42, 71, 0.08);
  --shadow-md: 0 6px 24px rgba(14, 42, 71, 0.1);
  --shadow-lg: 0 16px 48px rgba(14, 42, 71, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --font-head: "Lexend", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}
.btn svg { flex: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0ef;
  font-size: 0.9rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--green); }
.topbar-group { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar .addr { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { flex: none; opacity: 0.85; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.logo img { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a.nav-link:hover { color: var(--blue); background: var(--blue-soft); }
.main-nav li.active > a.nav-link { color: var(--blue); }
.main-nav li.active > a.nav-link::after {
  content: "";
  display: block;
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--blue-soft); color: var(--blue-dark); }

.header-cta { margin-left: 10px; }
.header-cta .btn { padding: 11px 22px; min-height: 44px; font-size: 0.92rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--blue-soft); }
.nav-toggle .bars { position: relative; width: 24px; height: 2px; background: var(--navy); display: block; transition: background 0.2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
body.nav-open .nav-toggle .bars { background: transparent; }
body.nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 28, 48, 0.93) 0%, rgba(14, 42, 71, 0.82) 45%, rgba(20, 60, 100, 0.55) 100%);
}
.hero-inner {
  position: relative;
  padding: 110px 0 96px;
  max-width: 720px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fd89d;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--green); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 .accent { color: #7fd07c; }
.hero p.lead {
  font-size: 1.2rem;
  color: #d9e6f2;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #eaf2f9;
}
.chip svg { color: #7fd07c; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head .eyebrow { color: var(--green-dark); }
.section-head .eyebrow::before { background: var(--green); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-head p { color: var(--slate); font-size: 1.1rem; margin: 0; }

/* Service cards */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .card-img { height: 170px; overflow: hidden; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .card-img img { transform: scale(1.05); }
.service-card .card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--slate); font-size: 0.98rem; flex: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--blue);
  margin-top: 6px;
}
.card-link svg { transition: transform 0.2s ease; }
.service-card:hover .card-link svg, .card-link:hover svg { transform: translateX(4px); }

/* Quick services grid */
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mini-service {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.mini-service:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mini-service .icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-service:nth-child(3n+2) .icon { background: var(--green-soft); color: var(--green-dark); }
.mini-service h3 { font-size: 1.02rem; margin-bottom: 4px; }
.mini-service p { color: var(--slate); font-size: 0.93rem; margin: 0; }

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }
.split-img.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 6px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  pointer-events: none;
}
.split-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.split-text p { color: var(--slate); }
.split-text .btn { margin-top: 12px; }

.checklist { list-style: none; margin: 20px 0 8px; padding: 0; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 7px 0;
  color: var(--ink);
}
.checklist svg { flex: none; color: var(--green); margin-top: 4px; }

/* Feature band (navy) */
.band {
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 72px 0;
}
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.band h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 10px; }
.band p { color: #c9dae9; max-width: 620px; margin: 0; font-size: 1.1rem; }

/* Value props */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prop {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.prop:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.prop .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.prop:nth-child(2) .icon { background: var(--green-soft); color: var(--green-dark); }
.prop h3 { font-size: 1.15rem; }
.prop p { color: var(--slate); font-size: 0.98rem; margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(110deg, #091c30 0%, var(--navy) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: 72px 0 64px;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 183, 72, 0.18) 0%, transparent 68%);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #9db4c8;
  flex-wrap: wrap;
}
.breadcrumb a { color: #cfe0ef; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb li:not(:first-child)::before { content: "/"; margin-right: 10px; color: #56718c; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 10px; }
.page-hero .sub { color: #c9dae9; font-size: 1.15rem; max-width: 640px; margin: 0; }

/* ---------- Content blocks ---------- */
.content-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
.content-split .text h2 { font-size: 1.6rem; }
.content-split .text p { color: var(--ink); }
.sticky-img { position: sticky; top: 110px; }

.numbered { counter-reset: item; list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 16px; }
.numbered li {
  counter-increment: item;
  display: flex;
  gap: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.numbered li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--green);
  line-height: 1.2;
}
.numbered h3 { font-size: 1.08rem; margin-bottom: 4px; }
.numbered p { margin: 0; color: var(--slate); font-size: 0.98rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-soft);
  color: var(--navy);
  border: 1px solid #cfe2f2;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
}
.tag svg { color: var(--blue); }

/* Mission list */
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mission-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.mission-item .icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mission-item:nth-child(even) .icon { background: var(--blue-soft); color: var(--blue); }
.mission-item p { margin: 0; color: var(--ink); font-weight: 500; }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.team-grid:has(> .team-card:only-child) { grid-template-columns: minmax(0, 460px); justify-content: center; }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-photo { height: 420px; overflow: hidden; background: var(--bg-soft); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-body { padding: 30px 32px 34px; }
.team-body h2 { font-size: 1.45rem; margin-bottom: 4px; }
.team-role { color: var(--green-dark); font-family: var(--font-head); font-weight: 500; margin-bottom: 14px; }
.cred-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cred {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--blue-soft);
  padding: 6px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cred svg { color: var(--blue); }
.team-body p.bio { color: var(--slate); margin: 0; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: #c3d8ea; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 24px;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--navy);
}
.faq-q:hover { color: var(--blue); }
.faq-q .indicator {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item.open .indicator { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a-inner { padding: 0 24px 24px; color: var(--slate); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* Useful links */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.link-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  color: var(--ink);
}
.link-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue); color: var(--ink); }
.link-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-card .logo-box {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.link-card .logo-box img {
  max-height: 48px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}
.link-card h3 { font-size: 1.1rem; margin: 4px 0 0; display: flex; align-items: center; gap: 8px; }
.link-card h3 svg { color: var(--slate-light); }
.link-card p { color: var(--slate); font-size: 0.95rem; margin: 0; }
.link-card .domain { font-size: 0.85rem; color: var(--blue); font-weight: 600; margin-top: auto; padding-top: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.info-card {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 38px 34px;
}
.info-card h2 { color: #fff; font-size: 1.4rem; }
.info-card p.note { color: #c9dae9; margin-bottom: 28px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.info-item:first-of-type { border-top: none; }
.info-item .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-item h3 { color: #9db4c8; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 3px; }
.info-item a, .info-item span { color: #fff; font-size: 1.05rem; font-weight: 500; }
.info-item a:hover { color: var(--green); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 40px; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow-md);
}
.form-card h2 { font-size: 1.4rem; }
.form-card > p { color: var(--slate); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; color: var(--navy); }
.form-field .req { color: #c0392b; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
  min-height: 48px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(34, 116, 184, 0.15);
}
.form-note { font-size: 0.92rem; color: var(--slate); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: var(--green-dark); }
.form-status.error { display: block; color: #b91c1c; }

/* CTA band with form */
.cta-band {
  background: linear-gradient(115deg, var(--blue-dark) 0%, var(--blue) 60%, #3a8ccc 100%);
  padding: 84px 0;
  color: #fff;
}
.cta-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { color: #dcebf7; font-size: 1.1rem; }
.cta-band .form-card h2 { color: var(--navy); }
.cta-band .form-card > p { color: var(--slate); font-size: 1rem; }
.cta-band .form-card .form-note { color: var(--slate); }
.cta-contact-quick { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.cta-contact-quick a { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 1.05rem; }
.cta-contact-quick a:hover { color: #bfe9bd; }
.cta-contact-quick svg { color: #9fd89d; }

/* ---------- Footer ---------- */
.site-footer { background: #091c30; color: #a8bccd; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 68px 0 48px;
}
.footer-brand img { height: 40px; width: auto; background: #fff; padding: 8px 12px; border-radius: 8px; }
.footer-brand p { margin: 18px 0 0; font-size: 0.96rem; line-height: 1.7; }
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a { color: #a8bccd; font-size: 0.98rem; display: inline-flex; gap: 8px; align-items: center; }
.footer-links a:hover { color: var(--green); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.footer-contact svg { flex: none; color: var(--green); margin-top: 3px; }
.footer-contact a { color: #a8bccd; }
.footer-contact a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-bottom a { color: #cfe0ef; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .props { grid-template-columns: 1fr 1fr; }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .content-split, .cta-band-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .sticky-img { position: static; max-width: 560px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .team-photo { height: 380px; }
}

@media (max-width: 860px) {
  .topbar .addr { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.3s ease;
    z-index: 1100;
    padding: 90px 26px 40px;
    overflow-y: auto;
    display: block;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a.nav-link { display: flex; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 6px 16px;
    display: none;
    min-width: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 28, 48, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    /* must stay BELOW .site-header (z-index 1000): the drawer lives inside
       the header's stacking context, so a higher value would cover it and
       swallow all menu taps */
    z-index: 900;
  }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
  .nav-toggle { position: relative; z-index: 1200; }
  .mission-grid, .team-grid { grid-template-columns: 1fr; }
  .team-photo { height: 340px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-inner { padding: 84px 0 72px; }
  .cards-4, .grid-services, .props, .links-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .topbar-inner { justify-content: center; }
  .topbar-group:last-child { display: none; }
  .band-inner { flex-direction: column; align-items: flex-start; }
}
