:root {
  --blue: #1a5fb4;
  --blue-btn: #1a6fd8;
  --blue-dark: #0b2f5c;
  --teal: #0d9488;
  --text: #152033;
  --muted: #5a6678;
  --bg: #eef2f7;
  --card: #ffffff;
  --input: #f1f4f8;
  --border: #d3dae6;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(15, 45, 90, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 45, 90, 0.08);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 50% at 100% -10%, rgba(26, 111, 216, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 20%, rgba(13, 148, 136, 0.08), transparent 45%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 40%, #e8eef6 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-btn);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 45, 90, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(15, 45, 90, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}

.logo:hover {
  transform: translateY(-1px);
  color: var(--blue-dark);
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 52px;
  object-fit: contain;
  display: block;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.logo:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

@media (max-width: 640px) {
  .logo img {
    height: 42px;
  }
}

.nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav a {
  position: relative;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  padding: 0.2rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--blue-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.45rem;
  border-radius: 12px;
  border: 0;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 20px rgba(11, 47, 92, 0.25);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn:hover {
  background: var(--blue-btn);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 111, 216, 0.35);
  color: #fff;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #1a6fd8 0%, #1557b0 100%);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3.75rem 0 2.75rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  color: var(--blue-dark);
  font-weight: 700;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue-btn);
  background: linear-gradient(135deg, #1a6fd8, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
}

.hero-media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, #c9d8ea, #e8eef6);
  min-height: 380px;
  position: relative;
  transform: perspective(1000px) rotateY(-2deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.hero-media:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 45, 90, 0.18);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 47, 92, 0.12));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
  transition: transform 0.7s var(--ease);
}

.hero-media:hover img {
  transform: scale(1.04);
}

/* Get in touch — two column form */
.contact-section {
  padding: 3.5rem 0 4rem;
  background: #f7f8fa;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.15;
}

.contact-desc {
  margin: 0 0 2rem;
  color: #4a4a4a;
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 26rem;
}

.contact-detail {
  margin-bottom: 1.35rem;
}

.contact-detail strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
  font-size: 1rem;
}

.contact-detail a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
}

.contact-detail a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form .field-full {
  grid-column: 1 / -1;
}

.contact-form .field label {
  color: #555;
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-form .field label .req {
  color: #555;
}

.contact-form .field input,
.contact-form .field select {
  width: 100%;
  height: 48px;
  padding: 0 0.95rem;
  border: 1px solid #cfd4dc;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.98rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fff;
  padding-right: 2.4rem;
  color: #6b7280;
  cursor: pointer;
}

.contact-form .field select:valid {
  color: #1a1a1a;
}

.contact-form .field input::placeholder {
  color: #9aa3af;
}

.contact-form .field input:hover,
.contact-form .field select:hover {
  border-color: #aeb6c2;
}

.contact-form .field input:focus,
.contact-form .field select:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.35;
}

.terms input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #111;
  cursor: pointer;
}

.terms .req {
  color: #c0392b;
  margin-left: 2px;
}

.contact-form .tcpa {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #f8f9fb;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #333;
  max-height: 180px;
  overflow-y: auto;
}

.contact-form .tcpa p {
  margin: 0 0 0.65rem;
}

.contact-form .tcpa p:last-child {
  margin-bottom: 0;
}

.contact-form .tcpa a {
  color: #1a5fb4;
  text-decoration: underline;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}

.btn-submit:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn-submit:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: stretch;
  }

  .btn-submit {
    width: 100%;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.section-kicker {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--blue-dark);
  line-height: 1.2;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat {
  background: #fff;
  border-radius: 16px;
  padding: 1.7rem 1.4rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid rgba(15, 45, 90, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 2.6rem;
  font-family: var(--display);
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.55rem;
  background: linear-gradient(135deg, var(--blue-btn), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.steps,
.features,
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.step,
.feature,
.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.55rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 45, 90, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.step:hover,
.feature:hover,
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(26, 111, 216, 0.18);
}

.section-alt .step,
.section-alt .feature,
.section-alt .card {
  background: rgba(255, 255, 255, 0.92);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-btn), var(--teal));
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 6px 14px rgba(26, 111, 216, 0.28);
}


.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #d8efe8;
  color: #0f6b52;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.35s var(--ease), background 0.35s ease;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature:hover .feature-icon {
  transform: translateY(-3px) scale(1.05);
  background: #c6e8de;
}

.section-alt .feature {
  background: #eef1f4;
  box-shadow: 0 8px 22px rgba(15, 45, 90, 0.06);
}

.step h3,
.feature h3,
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: var(--text);
}

.step p,
.feature p,
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero {
  padding: 3.25rem 0 2.25rem;
  position: relative;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--blue-dark);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(26, 111, 216, 0.25), transparent 50%),
    linear-gradient(160deg, #0b2f5c 0%, #0a1f38 100%);
  color: #d7e2ef;
  padding: 3.25rem 0 1.6rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 0.75rem;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: #c5d3e4;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.1rem;
  font-size: 0.85rem;
  color: #9fb0c5;
}

/* Contact result */
.result {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.result-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  animation: riseIn 0.6s var(--ease) both;
}

.result-card h1 {
  margin-top: 0;
  color: var(--blue-dark);
}

.result-card dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.4rem 0.75rem;
}

.result-card dt {
  font-weight: 600;
  color: var(--muted);
}

.result-card dd {
  margin: 0;
}

/* ===== Animations ===== */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(11, 47, 92, 0.25); }
  50% { box-shadow: 0 8px 28px rgba(26, 111, 216, 0.4); }
}

.hero-copy > * {
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.4s; }

.hero-media {
  animation: fadeRight 0.9s var(--ease) 0.2s both;
}

.hero .btn {
  animation: softPulse 2.4s ease-in-out 1.2s infinite;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.35s; }

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

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

  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .stats,
  .steps,
  .features,
  .cards,
  .cards-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    transform: none;
    min-height: 280px;
  }

  .hero-media img {
    min-height: 280px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav.is-open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .assessment-card {
    padding: 1.4rem 1rem 1.25rem;
  }

  .assessment-card .btn {
    max-width: none;
  }
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.footer-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(1.15);
}

@media (max-width: 1100px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Thank-you popup */
.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.thanks-modal[hidden] {
  display: none !important;
}

.thanks-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, 0.55);
  backdrop-filter: blur(3px);
}

.thanks-modal__card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 45, 90, 0.25);
  animation: riseIn 0.35s var(--ease) both;
}

.thanks-modal__card h2 {
  margin: 0 0 0.6rem;
  color: var(--blue-dark);
  font-size: 1.6rem;
}

.thanks-modal__card p {
  margin: 0 0 1.35rem;
  color: var(--muted);
  line-height: 1.5;
}

.thanks-modal__card .btn-submit {
  min-width: 120px;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}


.terms-tcpa {
  align-items: flex-start;
}

.tcpa-label-text {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #333;
  font-weight: 400;
}

.tcpa-label-text strong {
  font-weight: 700;
}
