/* =========================
   Brand Tokens
   ========================= */
:root {
  --navy: #0a1f44;
  --teal: #00b3b8;
  --blue: #0a62fe;
  --charcoal: #2d2d2d;
  --paper: #f1f2f2;
  --white: #fff;

  --radius: 14px;
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.12);
  --container: 1200px;
  --headerH: 76px;
}

/* =========================
   Base / Reset
   ========================= */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Fira Sans", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.5;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Headings */
h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  color: var(--navy);
}
h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
}
h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 40px);
}
h3 {
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 24px);
}
.lead {
  font-size: clamp(16px, 2vw, 20px);
  color: #1f2937;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 3px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  color: var(--navy);
  background: var(--white);
}
.btn-block {
  width: 100%;
}

/* =========================
   Header / Nav
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: var(--headerH);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--headerH);
}
.brand img {
  height: 52px;
}

.nav .hamb {
  display: none;
}
.navdrawer {
  display: flex;
  align-items: center;
  gap: 22px;
}
.navlink {
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}
.navlink:hover {
  color: var(--teal);
}
.navlink.active {
  border-color: var(--teal);
}
.nav-cta {
  padding: 10px 14px;
  border: 3px solid var(--teal);
  color: var(--navy);
  border-radius: 10px;
}
.nav-cta:hover {
  background: var(--teal);
  color: var(--white);
}

.nav-close {
  display: none;
}

/* Mobile drawer */
@media (max-width: 860px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav .hamb {
    display: inline-flex;
    align-items: center;
    font-size: 28px;
    background: none;
    border: 0;
    color: var(--navy);
    cursor: pointer;
  }
  .navdrawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 420px);
    padding: 22px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    opacity: 0; /* start transparent */
    transition: transform 0.3s ease, opacity 0.3s ease; /* animate both */
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    z-index: 1500;
    isolation: isolate;
  }
  .navdrawer.open {
    transform: translateX(0);
    opacity: 1; /* fade in */
  }
  .nav-close {
    display: inline-flex;
    align-self: flex-end;
    font-size: 30px;
    line-height: 1;
    background: none;
    border: 0;
    color: var(--navy);
    cursor: pointer;
    margin-bottom: 8px;
  }
}

@media (max-width: 860px) {
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease; /* match drawer timing */
    z-index: 1400;
  }
  .nav-scrim.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1200px 600px at 10% 10%,
      rgba(255, 255, 255, 0.28),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 100% 0%,
      rgba(10, 98, 254, 0.22),
      transparent 65%
    ),
    linear-gradient(135deg, var(--navy), #081637 55%);
  color: var(--white);
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 1.5fr 0.5fr;
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  color: var(--white);
}
.hero-copy .accent {
  color: var(--teal);
}
.hero-copy .lead {
  color: #e7eeff;
  margin: 12px 0 18px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}
.trust-points {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}
.trust-points li {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.hero-card {
  background: linear-gradient(
    145deg,
    rgba(241, 242, 242, 0.16),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  padding: 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero-card h3 {
  color: #e7eeff;
  margin-bottom: 12px;
}

/* =========================
   Sections
   ========================= */
.section {
  padding: clamp(48px, 8vw, 88px) 0;
  background: var(--paper);
}
.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 24px;
}
.section-sub {
  color: #4b5563;
}

.section-about {
  background: var(--paper);
}
.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1020px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--teal);
}

.section-services {
  background: linear-gradient(180deg, #fff, #f7f9ff 60%, #fff);
}
.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1020px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: #ffffff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef2ff;
}
.card h3 {
  color: var(--navy);
}
.bullet {
  margin: 10px 0 0 0;
  padding-left: 18px;
}
.bullet li {
  margin: 4px 0;
}

.section-approach {
  background: var(--white);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.steps li {
  background: var(--paper);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.steps li:hover {
  background: var(--navy);
  color: var(--white);
}

.steps li:hover h4,
.steps li:hover p,
.steps li:hover .step-icon svg {
  color: var(--white);
  stroke: var(--white);
}

.step-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.step-icon svg {
  width: 100%;
  height: 100%;
  color: var(--navy);
  stroke: var(--navy);
  transition: stroke 0.3s ease, color 0.3s ease;
}

.steps h4 {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.3s ease;
}

.steps p {
  margin: 0;
  font-size: 16px;
  color: var(--charcoal);
  transition: color 0.3s ease;
}

@media (max-width: 1020px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.section-results {
  background: linear-gradient(180deg, var(--paper), #eaf1ff);
}
.results-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}
.result {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  border-left: 6px solid var(--blue);
  box-shadow: var(--shadow-sm);
}
.testimonials {
  margin-top: 45px;
  display: grid;
  gap: 12px;
}
blockquote {
  margin: 0;
  padding: 16px 18px;
  background: #0b1d58;
  color: #e7eeff;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: #b9cdfd;
}

.section-contact {
  background: #ffffff;
}
.contact-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-grid .section-head h2,
.contact-grid .section-head p {
  text-align: left !important;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.checklist li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
}

/* Form */
.contact-form {
  background: var(--paper);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
}
.field {
  margin-bottom: 12px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
input,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
}
input:focus,
textarea:focus {
  outline: 3px solid rgba(10, 98, 254, 0.25);
  border-color: var(--blue);
}
.form-note {
  color: #009717;
  margin-top: 10px;
  min-height: 20px;
  font-weight: 800;
}

.privacy-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #666; /* or var(--muted) if you have one */
  text-align: center;
}

.cf-turnstile {
  text-align: center;
  margin-bottom: 12px;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: var(--navy);
  color: #cdd7ee;
  padding: 22px 0;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-row img {
  height: 46px;
}
@media (max-width: 720px) {
  .foot-row {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================
   Utilities
   ========================= */
section[id] {
  scroll-margin-top: calc(var(--headerH) + 14px);
}

/* ===== Glossary banner ===== */
.glossary-banner {
  position: sticky;
  top: var(--headerH);
  z-index: 999;
  background: var(--paper);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.glossary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--charcoal);
}
.btn-xs {
  padding: 8px 12px;
  font-size: 14px;
  border-width: 2px;
  cursor: pointer;
}

/* Term styling + tooltip */
.term {
  position: relative;
  color: inherit;
  border-bottom: 2px dotted var(--teal);
  cursor: help;
  padding-bottom: 0;
}
.term:focus {
  outline: 3px solid rgba(10, 98, 254, 0.25);
  border-radius: 4px;
}

/* Popover bubble */
.term-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  max-width: 320px;
  background: #fff;
  color: var(--charcoal);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  z-index: 20;
}
.term-pop h5 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--navy);
}
.term-pop p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* ===== Glossary modal ===== */
.glossary-modal[aria-hidden="true"] {
  display: none;
}
.glossary-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.glossary-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.glossary-panel {
  position: relative;
  width: min(780px, 92vw);
  max-height: 86vh;
  margin: 7vh auto 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  outline: none;
}
.glossary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2ff;
}
.glossary-head h3 {
  margin: 0;
  color: var(--navy);
}
.glossary-close {
  background: none;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: var(--navy);
}
.glossary-search {
  padding: 12px 18px;
  border-bottom: 1px solid #f0f3ff;
}
.glossary-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
}
.glossary-list {
  overflow: auto;
  padding: 12px 18px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .glossary-list {
    grid-template-columns: 1fr;
  }
}

.glossary-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.glossary-item h5 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 14px;
}
.glossary-item p {
  margin: 0;
  font-size: 14px;
  color: var(--charcoal);
}
