/* ==========================================================================
   DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root {
  /* Clinical Teal Palette */
  --clinical-ink: #102323;   /* Deep charcoal-green (primary text, dark accents) */
  --kinerio-teal: #1F7A78;   /* Rich deep teal (primary buttons, primary accents) */
  --care-mist: #DDEFEA;      /* Soft, light teal-mist (secondary backgrounds, accents) */
  --porcelain: #F8FAF7;      /* Clean off-white background (page background) */
  --signal-lime: #B8C94A;    /* Vibrant lime green (highlights and subtle indicators) */

  /* Semantic UI Colors */
  --text-primary: var(--clinical-ink);
  --text-muted: rgba(16, 35, 35, 0.72);
  --bg-page: var(--porcelain);
  --bg-card: #ffffff;
  --accent: var(--kinerio-teal);
  
  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Page wrapper to center the card, matching the original screenshot framing */
.page-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 24px;
}

/* ==========================================================================
   SECTION SCAFFOLD
   ========================================================================== */
.section {
  padding: 104px 24px;
  scroll-margin-top: 88px;
}

.section-tinted {
  background-color: var(--care-mist);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 820px;
}

.section-head {
  max-width: 660px;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-lede {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 18px;
}

/* ==========================================================================
   STICKY NAV
   ========================================================================== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 35, 35, 0.07);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.32s ease,
              visibility 0.32s;
}

.sticky-nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.sticky-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.sticky-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sticky-logo .kinerio-logo-svg {
  height: 26px;
}

.sticky-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-nav {
    transition: none;
  }
}

/* ==========================================================================
   HERO CARD CONTAINER
   ========================================================================== */
.hero-card {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 1200px;
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 20px 48px rgba(16, 35, 35, 0.04), 
              0 1px 4px rgba(16, 35, 35, 0.02);
  display: flex;
  flex-direction: column;
  gap: 56px;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.header-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.nav-left {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 700;
  border-color: var(--accent);
}

/* Center slot for logo: holds the inlined SVG logo */
.nav-center-logo-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 160px;
}

.kinerio-logo-svg {
  height: 36px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-nav {
  background-color: var(--accent);
  color: #ffffff;
  padding: 10px 24px;
  font-size: 14px;
}

.btn-nav:hover {
  background-color: var(--clinical-ink);
  transform: translateY(-1px);
}

.btn-hero {
  background-color: var(--accent);
  color: #ffffff;
  padding: 16px 40px;
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(31, 122, 120, 0.15);
}

.btn-hero:hover {
  background-color: var(--clinical-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 35, 35, 0.18);
}

/* Secondary hero CTA: partner provider entry point */
.btn-hero-secondary {
  background-color: var(--bg-card);
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px rgba(31, 122, 120, 0.3);
}

.btn-hero-secondary:hover {
  background-color: var(--care-mist);
  color: var(--clinical-ink);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.btn:focus-visible,
.nav-link:focus-visible,
.text-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   HERO BODY SECTION
   ========================================================================== */
.hero-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-content-col {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Primary Hero Typography */
.hero-headline {
  /* Fluid so each headline sentence holds its own line at every width */
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.12;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.hero-subheadlines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.subheadline-row {
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-primary);
}

.subheadline-row.text-muted {
  color: var(--text-muted);
}

.font-medium {
  font-weight: 500;
}

.highlight-text {
  color: var(--accent);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

/* Grow to share the row evenly; if both labels cannot fit, each wraps to its
   own full-width row rather than breaking the label across two lines. */
.hero-cta-group .btn-hero {
  flex: 1 1 auto;
  white-space: nowrap;
}

.final-cta-buttons .btn-hero {
  flex: 0 1 auto;
}

.hero-cta-note {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 460px;
}

/* Shown only when a Calendly link is still unconfigured */
.booking-notice {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--clinical-ink);
  background-color: var(--care-mist);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin: -32px 0 40px;
  max-width: 460px;
}

/* Sub-features styles */
.hero-subfeatures {
  display: flex;
  gap: 32px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 108px;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background-color: var(--care-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.feature-item:hover .feature-icon-wrapper {
  transform: translateY(-2px);
  background-color: rgba(221, 239, 234, 0.8);
}

.feature-svg {
  width: 28px;
  height: 28px;
}

.feature-label {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   RIGHT HERO IMAGE COLUMN (Placeholder)
   ========================================================================== */
.hero-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(16, 35, 35, 0.08);
  background-color: var(--care-mist);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(16, 35, 35, 0.12);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   TRUST BAR FOOTER
   ========================================================================== */
.trust-bar {
  width: 100%;
  background-color: var(--care-mist);
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.trust-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.trust-svg {
  width: 18px;
  height: 18px;
}

.trust-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

/* ==========================================================================
   TRUST BADGES
   ========================================================================== */
.badges-section {
  padding-top: 0;
  padding-bottom: 96px;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.badge-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(16, 35, 35, 0.07);
  border-radius: 22px;
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.badge-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 122, 120, 0.28);
  box-shadow: 0 16px 34px rgba(16, 35, 35, 0.07);
}

.badge-medallion {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--care-mist);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.badge-medallion svg {
  width: 26px;
  height: 26px;
}

.badge-title {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.badge-copy {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.step-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.step-number {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  background-color: var(--care-mist);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-copy {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-muted);
}

.steps-media {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(16, 35, 35, 0.1);
}

.steps-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   WHAT WE ASSESS
   ========================================================================== */
.assess-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.assess-card {
  background-color: var(--bg-card);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.assess-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(16, 35, 35, 0.12);
}

.assess-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--care-mist);
}

.assess-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.assess-card:hover .assess-image {
  transform: scale(1.03);
}

.assess-body {
  padding: 26px 28px 30px;
}

.assess-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.assess-copy {
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-muted);
}

.assess-footnote {
  margin-top: 34px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 720px;
}

/* ==========================================================================
   FAQS
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid rgba(16, 35, 35, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(31, 122, 120, 0.3);
  box-shadow: 0 12px 28px rgba(16, 35, 35, 0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--accent);
}

/* Plus sign that rotates into a minus when the item opens */
.faq-marker {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.faq-marker::before,
.faq-marker::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-marker::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.faq-marker::after {
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
}

.faq-item[open] .faq-marker::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 26px 24px;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 68ch;
}

.link-button {
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  border-bottom: 2px solid rgba(31, 122, 120, 0.3);
  transition: border-color 0.2s ease;
}

.link-button:hover {
  border-color: var(--accent);
}

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */
.final-cta-section {
  padding-bottom: 104px;
}

.final-cta-card {
  background-color: var(--clinical-ink);
  border-radius: 32px;
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Soft teal wash so the dark panel does not read as flat */
.final-cta-card::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 122, 120, 0.42), transparent 68%);
  pointer-events: none;
}

.final-cta-title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--porcelain);
  max-width: 620px;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}

.final-cta-copy {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  color: rgba(248, 250, 247, 0.72);
  max-width: 520px;
  margin: 0 auto 38px;
  position: relative;
  z-index: 1;
}

.final-cta-buttons {
  justify-content: center;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.btn-on-dark {
  background-color: var(--porcelain);
  color: var(--clinical-ink);
  box-shadow: none;
}

.btn-on-dark:hover {
  background-color: #ffffff;
  color: var(--clinical-ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.btn-ghost-on-dark {
  background-color: transparent;
  color: var(--porcelain);
  box-shadow: inset 0 0 0 1.5px rgba(248, 250, 247, 0.34);
}

.btn-ghost-on-dark:hover {
  background-color: rgba(248, 250, 247, 0.1);
  color: var(--porcelain);
  box-shadow: inset 0 0 0 1.5px rgba(248, 250, 247, 0.65);
}

.booking-notice-on-dark {
  background-color: rgba(248, 250, 247, 0.1);
  border-left-color: var(--signal-lime);
  color: var(--porcelain);
  margin: 28px auto 0;
  position: relative;
  z-index: 1;
  text-align: left;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  padding: 0 24px 56px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(16, 35, 35, 0.09);
  margin-bottom: 24px;
}

.footer-logo {
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   COMPLIANCE NOTE
   ========================================================================== */
.compliance-note {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 900px;
}

/* ==========================================================================
   PARTNER PROVIDER REFERRAL DIALOG
   ========================================================================== */
.partner-dialog {
  border: none;
  padding: 0;
  /* The global reset clears the UA margin:auto that centres a modal dialog */
  margin: auto;
  border-radius: 28px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  width: min(480px, calc(100vw - 32px));
  box-shadow: 0 30px 70px rgba(16, 35, 35, 0.22);
}

.partner-dialog::backdrop {
  background-color: rgba(16, 35, 35, 0.45);
  backdrop-filter: blur(3px);
}

.partner-dialog-inner {
  display: flex;
  flex-direction: column;
  padding: 40px;
  position: relative;
}

.dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dialog-close:hover {
  background-color: var(--care-mist);
  color: var(--text-primary);
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

.dialog-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.dialog-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.dialog-body {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.text-input {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 14px 16px;
  border: 1.5px solid rgba(16, 35, 35, 0.14);
  border-radius: 14px;
  background-color: var(--porcelain);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  width: 100%;
}

.text-input::placeholder {
  color: rgba(16, 35, 35, 0.38);
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-card);
}

.text-input.has-error {
  border-color: #B4433A;
  background-color: rgba(180, 67, 58, 0.04);
}

.field-error {
  font-size: 13px;
  font-weight: 600;
  color: #B4433A;
  margin-top: 8px;
}

.btn-dialog-submit {
  background-color: var(--accent);
  color: #ffffff;
  padding: 15px 32px;
  font-size: 16px;
  margin-top: 24px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(31, 122, 120, 0.15);
}

.btn-dialog-submit:hover {
  background-color: var(--clinical-ink);
  box-shadow: 0 12px 24px rgba(16, 35, 35, 0.18);
}

.dialog-footnote {
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Narrow desktops: the hero column gets tight before the layout stacks */
@media (max-width: 1240px) {
  .btn-hero {
    padding: 15px 28px;
    font-size: 16px;
  }
}

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
  .hero-card {
    padding: 36px;
    gap: 48px;
  }
  
  .hero-body {
    gap: 40px;
  }
  
  .section {
    padding: 80px 24px;
  }

  .section-title {
    font-size: 34px;
  }

  .badge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps-media {
    order: -1;
  }

  .final-cta-card {
    padding: 56px 32px;
  }

  .final-cta-title {
    font-size: 32px;
  }

  .trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    padding: 24px;
  }
  
  .trust-item {
    justify-content: flex-start;
  }
  
  /* Place the 5th trust item in center if grid is odd */
  .trust-item:last-child {
    grid-column: span 2;
    justify-content: center;
  }
}

/* Small Tablets & Large Phones */
@media (max-width: 768px) {
  .header-nav {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    text-align: center;
  }
  
  /* Header collapses to the logo alone. The hero CTA sits immediately below,
     so the duplicate Book Assessment button is dropped here; the sticky nav
     carries it once the hero scrolls away. */
  .nav-left,
  .nav-right {
    display: none;
  }

  .nav-center-logo-slot {
    display: flex;
  }

  .hero-card {
    gap: 32px;
  }

  /* Lead with the product image so it lands above the fold */
  .hero-image-col {
    order: -1;
  }

  .hero-image-container {
    max-width: 260px;
  }

  .hero-body {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  /* Tightened so the primary CTA sits as high as possible under the image */
  .hero-headline {
    margin-bottom: 18px;
  }

  .hero-subheadlines {
    gap: 8px;
    margin-bottom: 24px;
  }
  
  .hero-content-col {
    align-items: center;
  }
  
  .hero-cta-group {
    justify-content: center;
  }

  .hero-cta-note,
  .booking-notice {
    text-align: center;
  }

  .booking-notice {
    border-left: none;
    border-radius: 10px;
  }

  .hero-subfeatures {
    justify-content: center;
    width: 100%;
  }
  
  .assess-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .sticky-nav-links {
    display: none;
  }

  .sticky-nav-links + .btn-nav,
  .sticky-nav .btn-nav {
    margin-left: auto;
  }

  .section-head {
    margin-bottom: 44px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 16px 12px;
  }
  
  .hero-card {
    padding: 24px 16px;
    border-radius: 24px;
    gap: 36px;
  }
  
  .nav-left {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-link {
    font-size: 14px;
  }
  
  .hero-subheadlines {
    font-size: 16px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero {
    width: 100%;
    padding: 15px 24px;
  }

  .partner-dialog-inner {
    padding: 32px 24px;
  }

  .dialog-title {
    font-size: 22px;
  }
  
  .hero-subfeatures {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 16px;
  }
  
  .feature-item {
    width: 45%; /* Two column layout on very small screens */
  }
  
  .section {
    padding: 64px 16px;
  }

  .section-title {
    font-size: 27px;
  }

  .badge-grid {
    grid-template-columns: 1fr;
  }

  .badges-section {
    padding-bottom: 64px;
  }

  .final-cta-card {
    padding: 44px 22px;
    border-radius: 24px;
  }

  .final-cta-title {
    font-size: 26px;
  }

  .faq-question {
    font-size: 15.5px;
    padding: 18px 20px;
  }

  .faq-answer {
    padding: 0 20px 20px;
  }

  .site-footer {
    padding: 0 16px 44px;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
  
  .trust-item:last-child {
    grid-column: span 1;
    justify-content: flex-start;
  }
}
