@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Montserrat:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap");
/* ============================================================
   RDHNav Design System Tokens — mirroring tailwind.config.cjs
   + RDH brand overrides
   ============================================================ */
:root {
  /* Brand overrides on top of RDHNav primary */
  --primary: #0075c9;
  --primary-deep: #034e84;
  --primary-mild: #4996ff;
  --primary-subtle: rgba(0, 117, 201, 0.1);

  --success: #10b981;
  --success-subtle: rgba(5, 235, 118, 0.14);
  --error: #ff6a55;
  --error-subtle: rgba(255, 106, 85, 0.1);
  --warning: #f59e0b;

  /* RDH-specific */
  --rdh-orange: #f78d28;
  --rdh-orange-deep: #d8720f;
  --rdh-navy: #034e84;
  --rdh-dblue: #0c4968;
  --rdh-iconbg: #edf5fa;
  --rdh-yellow: #ffc40c;

  /* Semantic surface tokens */
  --neutral: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --page: #f5f5f5;
  --text: #53575b;
  --text-strong: #0c4968;
  --text-muted: #a3a3a3;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --input-bg: #f5f5f5;
  --input-border: #e5e5e5;

  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-pop: 0 24px 48px -16px rgba(0, 0, 0, 0.22);

  /* Typography */
  --ff-heading: "Sora", ui-sans-serif, system-ui, sans-serif;
  --ff-body: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --ff-cta: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --ff-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ---- Reset + base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  background: var(--neutral);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--ff-heading);
  color: var(--text-strong);
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   RDHNav Component Classes — transcribed from design system
   ============================================================ */

/* ---- Button (.button in _button.css) ---- */
.c-btn {
  font-weight: 700;
  font-family: var(--ff-cta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 0.1s,
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.c-btn:active {
  transform: scale(0.98);
}

/* Sizes */
.c-btn--lg {
  height: 56px;
  padding: 0 36px;
  border-radius: 9999px;
  font-size: 16px;
}
.c-btn--md {
  height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  font-size: 15px;
}
.c-btn--sm {
  height: 40px;
  padding: 0 20px;
  border-radius: 9999px;
  font-size: 14px;
}
.c-btn--block {
  width: 100%;
}

/* Variants */
.c-btn--solid {
  background: var(--rdh-orange);
  color: #fff;
  border-color: var(--rdh-orange);
}
.c-btn--solid:hover {
  background: var(--rdh-orange-deep);
  border-color: var(--rdh-orange-deep);
}

.c-btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.c-btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
}

.c-btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.c-btn--primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
}

.c-btn--default {
  background: var(--surface);
  border-color: var(--border-strong);
  color: #525252;
}
.c-btn--default:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

/* ---- Card (.card in _card.css) ---- */
.c-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.c-card-body {
  padding: 28px 24px;
}
.c-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  color: var(--text-strong);
}
.c-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---- Input (.input in _input.css) ---- */
.c-input {
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  border-radius: 10px;
  width: 100%;
  padding: 10px 14px;
  color: var(--text-strong);
  font-weight: 600;
  font-family: var(--ff-body);
  font-size: 14px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s,
    background 0.15s;
  appearance: none;
}
.c-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}
.c-input:focus {
  outline: none;
  background: transparent;
  box-shadow: 0 0 0 2px var(--primary);
  border-color: var(--primary);
}
textarea.c-input {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}
select.c-input {
  cursor: pointer;
}

/* ---- Form (.form-item / .form-label in _form.css) ---- */
.c-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.c-label {
  display: flex;
  align-items: center;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-strong);
}

/* ---- Tag (.tag in _tag.css) ---- */
.c-tag {
  border-radius: 20px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.c-tag--primary {
  background: var(--primary-subtle);
  color: var(--primary);
}
.c-tag--success {
  background: var(--success-subtle);
  color: var(--success);
}

/* ---- Alert (.alert in _alert.css) ---- */
.c-alert {
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 14px;
}
.c-alert--success {
  background: var(--success-subtle);
  color: #059669;
}

/* ---- Spinner ---- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.c-spin {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-arrow {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.nav-logo-text {
  font-family: var(--ff-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--rdh-dblue);
}
.nav-logo-text span {
  color: var(--primary);
}
.nav-phone {
  font-family: var(--ff-cta);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.nav-phone a {
  color: var(--primary);
  font-weight: 700;
}

/* ---- Eyebrow label ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---- Hero ---- */
.hero {
  background: var(--primary);
  padding: 100px 40px 96px;
  text-align: center;
}
.hero .eyebrow {
  color: var(--rdh-yellow);
}
.hero h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  max-width: 1000px;
  margin: 0 auto 24px;
}
.hero-body {
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- About ---- */
.about {
  background: var(--surface);
  padding: 88px 40px;
  text-align: center;
}
.about .eyebrow {
  color: var(--primary);
}
.about h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--rdh-dblue);
  max-width: 890px;
  margin: 0 auto 28px;
  line-height: 1.2;
}
.about-text {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 20px;
}
.about-text:last-child {
  margin-bottom: 0;
}

/* ---- Section heading ---- */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--rdh-dblue);
  margin: 0 0 10px;
}
.section-head p {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

/* ---- Steps section ---- */
.steps-section {
  background: var(--surface-2);
  padding: 88px 40px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}
.step-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 24px;
  text-align: center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  cursor: default;
}
.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 117, 201, 0.18);
}
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rdh-iconbg);
  color: var(--primary);
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step-eyebrow {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.step-title {
  font-family: var(--ff-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--rdh-dblue);
  margin-bottom: 10px;
  line-height: 1.3;
}
.step-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
}

/* ---- CTA cards section ---- */
.cta-section {
  background: var(--surface);
  padding: 88px 40px;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
}
.cta-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rdh-iconbg);
  color: var(--primary);
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.cta-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.cta-card h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  color: var(--rdh-dblue);
  margin-bottom: 14px;
  line-height: 1.2;
}
.cta-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 32px;
  max-width: 480px;
}

/* ---- Footer ---- */
.footer {
  background: var(--rdh-navy);
  padding: 52px 40px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-mark {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.footer-name {
  font-family: var(--ff-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

/* ============================================================
   MODAL — matches Main Website reference (node 613:981)
   Soft #f0f3f5 backdrop · white card 32px radius · no color bar
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 30, 60, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: 32px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.13);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Clean header — no colored bar */
.modal-head {
  padding: 32px 32px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-head h2 {
  font-family: var(--ff-body);
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}
.modal-head p {
  font-size: 14px;
  color: var(--text);
  font-family: var(--ff-body);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.modal-close:hover {
  color: #000;
}

.modal-body {
  padding: 24px 32px 32px;
}
.modal-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.modal-body .c-field {
  margin-bottom: 16px;
}
.modal-body .c-field:last-of-type {
  margin-bottom: 24px;
}

/* ---- Confirmation screen — matches 613:981 reference ---- */
.confirmation-screen {
  display: none;
  padding: 28px 32px 40px;
  text-align: center;
  position: relative;
}
.confirmation-screen.active {
  display: block;
}

/* Badge icon: outlined star-check on #e3fddd — from reference */
.confirm-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e3fddd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.confirm-badge svg {
  width: 44px;
  height: 44px;
}

.confirmation-screen h2 {
  font-family: var(--ff-body);
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin-bottom: 14px;
  line-height: 1.3;
}
.confirmation-screen .sub {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 28px;
  font-family: var(--ff-body);
  font-weight: 400;
}
.confirm-list {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 18px 22px;
  text-align: left;
  margin: 0 0 26px;
}
.confirm-list-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--rdh-dblue);
  margin-bottom: 12px;
  font-family: var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.confirm-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.confirm-list li {
  font-size: 14px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
  font-family: var(--ff-body);
}
.confirm-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3a9c3a;
  font-weight: 700;
}
.confirm-contact {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 28px;
  font-family: var(--ff-body);
}
.confirm-contact a {
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE — mobile-first breakpoint at 768px
   ============================================================ */
@media (max-width: 768px) {
  .site-nav {
    padding: 0 20px;
    height: 64px;
  }
  .nav-phone {
    display: none;
  }

  .hero {
    padding: 48px 20px 44px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-body {
    font-size: 14px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .c-btn {
    justify-content: center;
  }

  .about {
    padding: 48px 20px;
  }
  .about h2 {
    font-size: 22px;
  }
  .about-text {
    font-size: 14px;
  }

  .steps-section {
    padding: 48px 20px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section-head {
    margin-bottom: 28px;
  }
  .section-head h2 {
    font-size: 22px;
  }

  /* CTAs under steps — stack + stretch on mobile */
  .steps-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .steps-ctas .c-btn {
    justify-content: center;
    width: 100%;
  }

  .cta-section {
    padding: 48px 20px;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cta-card {
    padding: 28px 20px;
  }
  .cta-card h3 {
    font-size: 20px;
  }

  .footer {
    padding: 40px 20px;
  }

  /* Modal — full-width on small screens */
  .modal {
    margin: 16px;
    border-radius: 20px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }
  .modal-header {
    padding: 20px 20px 14px;
  }
  .modal-body {
    padding: 16px 20px 24px;
  }
  .modal-body .form-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
