/* =========================================================
   OneSolution® inner-page design system ("ds-")
   Loaded only by the redesigned inner pages ($page_css = ['design-system', '<page>']).
   Every rule targets a ds- class, so nothing here can change the home page, the legal pages,
   or sections a page keeps from the old design (e.g. the Dental Implants treatment timeline).
   Shared blocks that use these styles: includes/blocks.php.
   ========================================================= */

:root {
  /* colour */
  --ds-brand: #00b9f2;          /* OneSolution blue */
  --ds-brand-600: #0096d1;
  --ds-brand-50: #e8f8fe;
  --ds-navy: #0a2540;           /* headings, dark sections */
  --ds-navy-2: #12355b;
  --ds-green: #3fb06b;          /* success / secondary accent */
  --ds-green-50: #ebf8f0;
  --ds-ink: #0b1b2e;
  --ds-text: #3b4a5c;
  --ds-muted: #6b7b8f;
  --ds-line: #e2eaf2;
  --ds-surface: #f5f9fc;
  --ds-white: #fff;
  --ds-gradient: linear-gradient(135deg, #00b9f2 0%, #0a7fd1 55%, #0a2540 100%);

  /* type */
  --ds-font-head: 'Montserrat', sans-serif;
  --ds-font-body: 'Poppins', sans-serif;
  --ds-fs-display: clamp(34px, calc(3.4vw + 12px), 64px);
  --ds-fs-h2: clamp(28px, calc(2vw + 14px), 46px);
  --ds-fs-h3: clamp(19px, calc(0.5vw + 14px), 22px);
  --ds-fs-lead: clamp(17px, calc(0.3vw + 15px), 20px);
  --ds-fs-body: 16.5px;
  --ds-fs-small: 13.5px;

  /* space & shape */
  --ds-container: 1200px;
  --ds-gutter: clamp(16px, 4vw, 32px);
  --ds-section: clamp(64px, 8vw, 120px);
  --ds-gap: clamp(20px, 3vw, 32px);
  --ds-radius: 24px;
  --ds-radius-sm: 16px;
  --ds-radius-pill: 999px;
  --ds-shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.04), 0 4px 14px rgba(10, 37, 64, 0.05);
  --ds-shadow: 0 2px 6px rgba(10, 37, 64, 0.04), 0 18px 40px rgba(10, 37, 64, 0.08);
  --ds-shadow-lg: 0 30px 70px rgba(10, 37, 64, 0.16);
  --ds-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base type: set on ds- sections only (never on <body>), so kept old sections inherit nothing new ---------- */
.ds-section, .ds-hero { color: var(--ds-text); font-family: var(--ds-font-body); font-size: var(--ds-fs-body); line-height: 1.7; }
.ds-section img, .ds-hero img { max-width: 100%; height: auto; }

/* ---------- Layout ---------- */
.ds-container { width: min(var(--ds-container), calc(100% - 2 * var(--ds-gutter))); margin-inline: auto; }
.ds-container--wide { --ds-container: 1360px; }
.ds-container--narrow { --ds-container: 860px; }

.ds-section { position: relative; padding-block: var(--ds-section); }
.ds-section--tight { padding-block: calc(var(--ds-section) * 0.6); }
.ds-section--flush-top { padding-top: 0; }
.ds-section--tint { background: var(--ds-surface); }
.ds-section--brand { background: var(--ds-gradient); color: rgba(255, 255, 255, 0.88); }
.ds-section--dark { background: var(--ds-navy); color: rgba(255, 255, 255, 0.8); }
/* Rounded "floating" section inside the page gutter */
.ds-section--panel {
  width: min(calc(var(--ds-container) + 160px), calc(100% - 2 * var(--ds-gutter)));
  margin-inline: auto;
  border-radius: calc(var(--ds-radius) + 8px);
  overflow: hidden;
}
.ds-section + .ds-section--panel, .ds-section--panel + .ds-section--panel { margin-top: var(--ds-gap); }

.ds-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.ds-split--wide-media { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.ds-split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.ds-split--top { align-items: start; }
.ds-split--reverse > :first-child { order: 2; }

.ds-grid { display: grid; gap: var(--ds-gap); }
.ds-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ds-grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

.ds-stack > * + * { margin-top: 18px; }
.ds-center { text-align: center; }
.ds-mt { margin-top: clamp(32px, 4vw, 56px); }
.ds-figure { margin: 0; }
/* media column that stays in view beside a long text column (desktop only) */
.ds-sticky { position: sticky; top: 140px; }

/* ---------- Heading group ---------- */
.ds-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.ds-head--center { margin-inline: auto; text-align: center; }
.ds-head--flush { margin-bottom: 0; }
.ds-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-family: var(--ds-font-head); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ds-brand-600);
}
.ds-eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.ds-head--center .ds-eyebrow::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

.ds-display, .ds-title, .ds-h3 {
  margin: 0;
  font-family: var(--ds-font-head); font-weight: 700;
  color: var(--ds-navy); letter-spacing: -0.02em; text-wrap: balance;
}
.ds-display { font-size: var(--ds-fs-display); line-height: 1.08; font-weight: 800; }
.ds-title { font-size: var(--ds-fs-h2); line-height: 1.14; }
.ds-title--sm { font-size: clamp(26px, calc(1.3vw + 15px), 38px); } /* long, sentence-style section titles */
.ds-h3 { font-size: var(--ds-fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
.ds-accent { color: var(--ds-brand); }
.ds-lead { margin: 18px 0 0; font-size: var(--ds-fs-lead); line-height: 1.65; color: var(--ds-text); }
.ds-text { margin: 0; }
.ds-text + .ds-text { margin-top: 14px; }
.ds-small { font-size: var(--ds-fs-small); line-height: 1.65; color: var(--ds-muted); }
.ds-note { max-width: 980px; margin: clamp(28px, 3vw, 40px) auto 0; font-size: var(--ds-fs-small); line-height: 1.7; text-align: center; color: var(--ds-muted); }

/* text on brand / dark sections */
.ds-section--brand .ds-title, .ds-section--brand .ds-display, .ds-section--brand .ds-h3,
.ds-section--dark .ds-title, .ds-section--dark .ds-display, .ds-section--dark .ds-h3 { color: #fff; }
.ds-section--brand .ds-eyebrow, .ds-section--dark .ds-eyebrow { color: #bdeeff; }
.ds-section--brand .ds-lead, .ds-section--dark .ds-lead { color: rgba(255, 255, 255, 0.85); }
.ds-section--brand .ds-note, .ds-section--dark .ds-note,
.ds-section--brand .ds-small, .ds-section--dark .ds-small { color: rgba(255, 255, 255, 0.72); }
.ds-section--brand .ds-accent { color: #bdeeff; }
/* White cards inside brand/dark sections go back to the normal (dark-on-white) text colours */
.ds-section--brand :is(.ds-card:not(.ds-card--glass), .ds-price, .ds-form-card, .ds-faq),
.ds-section--dark :is(.ds-card:not(.ds-card--glass), .ds-price, .ds-form-card, .ds-faq) { color: var(--ds-text); }
.ds-section--brand :is(.ds-card:not(.ds-card--glass), .ds-price) :is(.ds-title, .ds-h3),
.ds-section--dark :is(.ds-card:not(.ds-card--glass), .ds-price) :is(.ds-title, .ds-h3) { color: var(--ds-navy); }
.ds-section--brand :is(.ds-card:not(.ds-card--glass), .ds-price) :is(.ds-small, .ds-note),
.ds-section--dark :is(.ds-card:not(.ds-card--glass), .ds-price) :is(.ds-small, .ds-note) { color: var(--ds-muted); }
.ds-section--brand :is(.ds-card:not(.ds-card--glass), .ds-price) .ds-accent,
.ds-section--dark :is(.ds-card:not(.ds-card--glass), .ds-price) .ds-accent { color: var(--ds-brand); }
.ds-section--brand :is(.ds-card:not(.ds-card--glass), .ds-price) .ds-link,
.ds-section--dark :is(.ds-card:not(.ds-card--glass), .ds-price) .ds-link { color: var(--ds-brand-600); }

/* ---------- Buttons ---------- */
.ds-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ds-head--center .ds-actions, .ds-actions--center { justify-content: center; }
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: var(--ds-radius-pill);
  font-family: var(--ds-font-body); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ds-ease), box-shadow .2s;
}
.ds-btn:hover { transform: translateY(-2px); }
.ds-btn:focus-visible { outline: 3px solid var(--ds-navy); outline-offset: 3px; }
.ds-btn--primary { background: var(--ds-brand); color: #fff; box-shadow: 0 10px 24px rgba(0, 185, 242, 0.32); }
.ds-btn--primary:hover { background: var(--ds-brand-600); }
.ds-btn--dark { background: var(--ds-navy); color: #fff; }
.ds-btn--dark:hover { background: var(--ds-navy-2); }
.ds-btn--ghost { border-color: var(--ds-line); background: #fff; color: var(--ds-navy); }
.ds-btn--ghost:hover { border-color: var(--ds-brand); color: var(--ds-brand-600); }
.ds-btn--light { background: #fff; color: var(--ds-navy); }
.ds-btn--light:hover { background: var(--ds-brand-50); }
.ds-btn--outline-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.ds-btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.ds-btn--sm { min-height: 42px; padding: 8px 18px; font-size: 14.5px; }
.ds-btn--block { width: 100%; }
.ds-btn svg { width: 18px; height: 18px; flex: none; }

.ds-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ds-brand-600); text-decoration: none;
}
.ds-link::after { content: '\2192'; transition: transform .2s var(--ds-ease); }   /* → (escaped: works whatever the file's encoding) */
.ds-link:hover::after { transform: translateX(4px); }
.ds-section--brand .ds-link, .ds-section--dark .ds-link { color: #fff; }

/* ---------- Pills, badges, icons ---------- */
.ds-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--ds-radius-pill);
  background: var(--ds-brand-50); color: var(--ds-brand-600);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.ds-pill--green { background: var(--ds-green-50); color: #23824b; }
.ds-icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--ds-brand-50); color: var(--ds-brand-600);
}
.ds-icon img { width: 28px; height: 28px; object-fit: contain; }
.ds-icon svg { width: 26px; height: 26px; }
/* Large solid badge for white icon artwork (e.g. Second Chances "Why choose" cards) */
.ds-icon--solid {
  width: 76px; height: 76px; border-radius: 22px;
  background: var(--ds-gradient); box-shadow: 0 12px 26px rgba(0, 150, 209, 0.28);
}
.ds-icon--solid img { width: 48px; height: 48px; }
.ds-num {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ds-brand); color: #fff;
  font-family: var(--ds-font-head); font-weight: 700; font-size: 17px;
}

/* ---------- Cards ---------- */
.ds-card {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--ds-line); border-radius: var(--ds-radius);
  background: #fff; box-shadow: var(--ds-shadow-sm);
  transition: transform .3s var(--ds-ease), box-shadow .3s var(--ds-ease), border-color .3s;
}
.ds-card--hover:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow); border-color: transparent; }
.ds-card--flat { box-shadow: none; background: var(--ds-surface); border-color: transparent; }
.ds-card--glass { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; box-shadow: none; backdrop-filter: blur(6px); }
.ds-card--glass .ds-h3 { color: #fff; }
.ds-card > .ds-icon, .ds-card > .ds-num { margin-bottom: 18px; }
.ds-card .ds-h3 + .ds-text, .ds-card .ds-h3 + .ds-list { margin-top: 10px; }
.ds-card--feature { display: flex; gap: 18px; align-items: flex-start; }
.ds-card--feature > .ds-icon { margin: 0; }

/* ---------- Media ---------- */
.ds-media { position: relative; margin: 0; border-radius: var(--ds-radius); overflow: hidden; background: #0d1a2a; box-shadow: var(--ds-shadow); }
.ds-media > img, .ds-media > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-media--contain { background: transparent; box-shadow: none; }
.ds-media--contain > img { object-fit: contain; }
.ds-media--16x9 { aspect-ratio: 16 / 9; }
.ds-media--4x3 { aspect-ratio: 4 / 3; }
.ds-media--square { aspect-ratio: 1; }
.ds-media--portrait { aspect-ratio: 4 / 5; }
.ds-media--3x4 { aspect-ratio: 3 / 4; }
/* show the whole image at its own proportions (no crop) */
.ds-media--natural > img { height: auto; object-fit: contain; }
.ds-media figcaption, .ds-caption { margin-top: 14px; font-size: var(--ds-fs-small); font-weight: 500; color: var(--ds-muted); text-align: center; }
/* floating badge / sticker over media */
.ds-media-wrap { position: relative; }
.ds-sticker {
  position: absolute; z-index: 2; left: -28px; bottom: -28px;
  width: clamp(110px, 12vw, 170px); height: auto;
  filter: drop-shadow(0 14px 28px rgba(10, 37, 64, 0.25));
}
/* video thumbnail with play button (opens the site's video pop-up via [data-video]);
   holds a poster <img> or a muted looping <video> */
.ds-video { position: relative; display: block; border-radius: var(--ds-radius); overflow: hidden; background: #0d1a2a; box-shadow: var(--ds-shadow); }
.ds-video > img, .ds-video > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-video > img { transition: transform .6s var(--ds-ease); }
.ds-video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 37, 64, 0) 40%, rgba(10, 37, 64, 0.55)); pointer-events: none; }
.ds-video:hover > img { transform: scale(1.04); }
.ds-play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  display: grid; place-items: center;
  width: clamp(64px, 7vw, 84px); height: clamp(64px, 7vw, 84px); border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95); color: var(--ds-brand-600);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.25), var(--ds-shadow-lg);
  transition: transform .25s var(--ds-ease);
}
.ds-play::before { content: ''; margin-left: 5px; border-left: 20px solid currentColor; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.ds-play:hover, .ds-video:hover .ds-play { transform: translate(-50%, -50%) scale(1.08); }
.ds-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.ds-video-label { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 18px; margin: 0; color: #fff; font-family: var(--ds-font-head); font-weight: 700; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.3; }
/* video card: .ds-video thumbnail with its title underneath (grids and carousels) */
.ds-video-card { display: flex; flex-direction: column; min-width: 0; }
.ds-video-card-title { margin: 16px 0 0; font-family: var(--ds-font-head); font-weight: 600; font-size: 16.5px; line-height: 1.4; color: var(--ds-navy); text-wrap: pretty; }
.ds-video-card-title a { color: inherit; text-decoration: none; }
.ds-video-card-title a:hover { color: var(--ds-brand-600); }
/* small cards (3-up grids, tall clips): smaller play button and title */
.ds-video-card--sm .ds-play { width: 60px; height: 60px; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25), var(--ds-shadow-lg); }
.ds-video-card--sm .ds-play::before { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; }
.ds-video-card--sm .ds-video-card-title { margin: 14px 4px 0; font-size: 15.5px; line-height: 1.45; }

/* ---------- Person card (team carousels): photo, name, role, optional button ---------- */
.ds-person { display: flex; flex-direction: column; align-items: center; padding: 18px 18px 24px; text-align: center; }
.ds-person-photo { width: 100%; margin-bottom: 18px; border-radius: var(--ds-radius-sm); box-shadow: none; background: var(--ds-surface); }
.ds-person-role { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ds-muted); }
.ds-person > .ds-btn { margin-top: auto; }
.ds-person-role + .ds-btn { margin-top: 16px; }

/* ---------- Masonry: photos of mixed heights in balanced columns ---------- */
.ds-masonry { columns: 3; column-gap: var(--ds-gap); margin: 0; padding: 0; list-style: none; }
.ds-masonry > * { break-inside: avoid; margin: 0 0 var(--ds-gap); }

/* ---------- Lists ---------- */
.ds-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ds-list li { position: relative; padding-left: 34px; line-height: 1.6; }
.ds-list li::before {
  content: ''; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ds-brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230096d1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ds-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.ds-section--brand .ds-list li::before, .ds-section--dark .ds-list li::before {
  background-color: rgba(255, 255, 255, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
/* …but a white card inside those sections (price cards, plain cards) keeps the normal blue check */
:is(.ds-section--brand, .ds-section--dark) :is(.ds-price, .ds-card:not(.ds-card--glass)) .ds-list li::before {
  background-color: var(--ds-brand-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230096d1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.ds-list--dots li { padding-left: 22px; }
.ds-list--dots li::before { top: 11px; width: 8px; height: 8px; background: var(--ds-brand); }
/* "cons" list: red cross instead of the check (also on brand/dark sections) */
.ds-list.ds-list--cons li::before {
  background: #fdecec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0262d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* numbered steps */
.ds-steps { margin: 0; padding: 0; list-style: none; counter-reset: ds-step; display: grid; gap: var(--ds-gap); }
.ds-steps > li { counter-increment: ds-step; }
.ds-steps .ds-num::before { content: counter(ds-step); }

/* ---------- Hero ---------- */
.ds-hero { position: relative; padding: clamp(150px, 14vw, 200px) 0 clamp(56px, 7vw, 100px); background: linear-gradient(180deg, var(--ds-surface) 0%, #fff 100%); overflow: hidden; }
.ds-hero::before {
  content: ''; position: absolute; right: -10%; top: -20%;
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 185, 242, 0.16), rgba(0, 185, 242, 0));
  pointer-events: none;
}
.ds-hero .ds-container { position: relative; }
.ds-hero .ds-lead { max-width: 560px; }
.ds-hero--center { text-align: center; }
.ds-hero--center .ds-lead { margin-inline: auto; }
.ds-hero--center .ds-actions { justify-content: center; }
/* hero with a full-bleed background video/photo */
.ds-hero--cover { min-height: min(86vh, 820px); display: flex; align-items: flex-end; background: var(--ds-navy); color: #fff; }
.ds-hero--cover::before { display: none; }
.ds-hero-bg { position: absolute; inset: 0; }
.ds-hero-bg > img, .ds-hero-bg > video { width: 100%; height: 100%; object-fit: cover; }
.ds-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 37, 64, 0.25) 0%, rgba(10, 37, 64, 0.82) 100%); }
.ds-hero--cover .ds-display, .ds-hero--cover .ds-title { color: #fff; }
.ds-hero--cover .ds-eyebrow { color: #bdeeff; }
.ds-hero--cover .ds-lead { color: rgba(255, 255, 255, 0.88); }
.ds-hero-media { position: relative; }
.ds-hero-media .ds-media { aspect-ratio: 5 / 4; }
/* trust strip under hero text */
.ds-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--ds-muted); }
.ds-trust li { display: inline-flex; align-items: center; gap: 8px; }
.ds-trust li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-green); }
.ds-hero--cover .ds-trust { color: rgba(255, 255, 255, 0.82); }

/* ---------- CTA band ---------- */
.ds-cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: clamp(32px, 4.5vw, 60px);
  border-radius: calc(var(--ds-radius) + 8px);
  background: var(--ds-gradient); color: rgba(255, 255, 255, 0.88);
  box-shadow: var(--ds-shadow-lg);
}
.ds-cta::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.ds-cta .ds-title { color: #fff; }
.ds-cta .ds-lead { color: rgba(255, 255, 255, 0.85); margin-top: 10px; }
.ds-cta .ds-actions { margin-top: 0; position: relative; z-index: 1; }

/* ---------- FAQ (details/summary) ---------- */
.ds-faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.ds-faq details { border: 1px solid var(--ds-line); border-radius: var(--ds-radius-sm); background: #fff; transition: box-shadow .2s, border-color .2s; }
.ds-faq details[open] { border-color: transparent; box-shadow: var(--ds-shadow); }
.ds-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-family: var(--ds-font-head); font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--ds-navy);
}
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after {
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ds-brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230096d1' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ds-ease);
}
.ds-faq details[open] summary::after { transform: rotate(45deg); }
.ds-faq summary:focus-visible { outline: 3px solid var(--ds-brand); outline-offset: 2px; border-radius: var(--ds-radius-sm); }
.ds-faq-body { padding: 0 24px 22px; }
.ds-faq-body > * { margin: 0; }
.ds-faq-body > * + * { margin-top: 10px; }

/* ---------- Tables ---------- */
.ds-table-wrap { overflow-x: auto; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: #fff; box-shadow: var(--ds-shadow-sm); -webkit-overflow-scrolling: touch; }
.ds-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.ds-table th, .ds-table td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ds-line); }
.ds-table thead th { position: sticky; top: 0; background: var(--ds-surface); font-family: var(--ds-font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; color: var(--ds-navy); }
.ds-table tbody th { font-family: var(--ds-font-head); font-weight: 600; color: var(--ds-navy); }
.ds-table tbody tr:last-child > * { border-bottom: 0; }
.ds-table .is-us { background: var(--ds-brand-50); }
.ds-table thead .is-us { background: var(--ds-brand); color: #fff; }

/* ---------- Form card (GoHighLevel embeds) ---------- */
.ds-form-card {
  max-width: 880px; margin-inline: auto;
  padding: clamp(18px, 3vw, 40px);
  border-radius: calc(var(--ds-radius) + 8px);
  background: #fff; box-shadow: var(--ds-shadow-lg);
}
.ds-form-card iframe { display: block; width: 100%; min-height: 520px; border: 0; }

/* Candidate survey with picture (includes/blocks.php ds_block_survey) — same look as the cost page's survey */
.ds-survey { align-items: center; }
.ds-survey-aside { text-align: center; }
.ds-survey-model { display: block; margin-inline: auto; width: min(320px, 70%); filter: drop-shadow(0 24px 40px rgba(10, 37, 64, 0.35)); }
.ds-survey-aside .ds-h3 { margin-top: 18px; }
.ds-survey-arrow { width: 150px; margin: 14px auto 0; display: block; transform: rotate(-20deg); opacity: .9; }
.ds-survey-form { max-width: none; margin-inline: 0; }
@media (max-width: 991px) {
  .ds-survey-arrow { display: none; }
  .ds-survey-model { width: min(220px, 60%); }
}

/* ---------- Site lead forms (includes/ghl/forms.php — sent to GoHighLevel) ---------- */
.ds-site-form { text-align: left; color: var(--ds-text); }
.ds-site-form-title { margin: 0 0 6px; font-family: var(--ds-font-head); font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; line-height: 1.25; color: var(--ds-navy); text-align: center; }
.ds-site-form .ds-error { margin: 10px 0 0; text-align: center; }
.ds-site-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin: 22px 0 24px; }
.ds-site-form-group { grid-column: 1 / -1; margin: 14px 0 -4px; padding-top: 18px; border-top: 1px solid var(--ds-line); font-family: var(--ds-font-head); font-weight: 700; color: var(--ds-navy); }
.ds-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ds-field--half { grid-column: auto; }
.ds-field label { font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ds-ink); }
.ds-req { color: #c0262d; }
.ds-field input, .ds-field textarea {
  width: 100%; padding: 13px 16px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--ds-ink);
  background: var(--ds-surface); border: 1.5px solid var(--ds-line); border-radius: 12px;
  transition: border-color .2s var(--ds-ease), box-shadow .2s var(--ds-ease), background .2s var(--ds-ease);
}
.ds-field textarea { min-height: 120px; resize: vertical; }
.ds-field input::placeholder, .ds-field textarea::placeholder { color: #8a99ab; }
.ds-field input:hover, .ds-field textarea:hover { border-color: #c5d4e3; }
.ds-field input:focus, .ds-field textarea:focus { outline: none; background: #fff; border-color: var(--ds-brand); box-shadow: 0 0 0 4px rgba(0, 185, 242, 0.15); }
.ds-field.has-error input, .ds-field.has-error textarea { border-color: #c0262d; background: #fff6f6; }
.ds-field-error { font-size: 13px; font-weight: 600; color: #c0262d; }
.ds-site-form .ds-btn[disabled] { opacity: .7; cursor: wait; }
@media (max-width: 600px) {
  .ds-site-form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Pricing ---------- */
.ds-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-gap); max-width: 920px; margin-inline: auto; }
.ds-price {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--ds-radius); background: #fff; color: var(--ds-text);
  box-shadow: var(--ds-shadow-lg);
}
.ds-price--featured { outline: 3px solid var(--ds-brand); outline-offset: -3px; }
.ds-price-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ds-brand-600); }
.ds-price .ds-h3 { margin-top: 8px; }
.ds-price-amount { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 4px; font-family: var(--ds-font-head); color: var(--ds-navy); }
.ds-price-amount strong { font-size: clamp(44px, 4.4vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.ds-price-amount span { font-size: 16px; font-weight: 600; color: var(--ds-muted); }
.ds-price .ds-list { margin-top: 18px; }
.ds-price .ds-btn { margin-top: auto; }
.ds-price .ds-list + .ds-btn, .ds-price-amount + .ds-btn { margin-top: 26px; }

/* ---------- Promo pair (Out of town / No cost) ---------- */
.ds-promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-gap); }
.ds-promo {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(30px, 4vw, 52px);
  border-radius: calc(var(--ds-radius) + 8px); color: rgba(255, 255, 255, 0.9);
}
.ds-promo::after { content: ''; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); pointer-events: none; }
.ds-promo--blue { background: var(--ds-gradient); }
.ds-promo--green { background: linear-gradient(135deg, #4cc27a 0%, #2a9a5c 100%); }
.ds-promo .ds-title { color: #fff; font-size: clamp(26px, calc(1.4vw + 14px), 36px); }
.ds-promo-art { height: clamp(44px, 5vw, 64px); width: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15)); }
.ds-promo p { margin: 0; max-width: 520px; }
.ds-promo .ds-btn { margin-top: 10px; position: relative; z-index: 1; }

/* ---------- Trust: seals + offices ---------- */
.ds-seals { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 64px); }
.ds-seals img { height: clamp(96px, 10vw, 140px); width: auto; }
.ds-offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-gap); }
.ds-office { display: flex; flex-direction: column; gap: 8px; }
.ds-office .ds-icon { margin-bottom: 8px; }
.ds-office address { font-style: normal; line-height: 1.6; }
.ds-office a { margin-top: auto; font-weight: 600; color: var(--ds-brand-600); text-decoration: none; }
.ds-office a:hover { text-decoration: underline; }

/* ---------- Checkbox options (candidate check) ---------- */
.ds-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.ds-option { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--ds-line); border-radius: var(--ds-radius-sm); background: #fff; cursor: pointer; font-weight: 500; line-height: 1.4; color: var(--ds-navy); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.ds-option:hover { border-color: var(--ds-brand); }
.ds-option input { position: absolute; opacity: 0; pointer-events: none; }
.ds-option-box { flex: none; position: relative; width: 24px; height: 24px; border: 2px solid #c5d3e0; border-radius: 7px; background: #fff; transition: background-color .2s, border-color .2s; }
.ds-option input:checked + .ds-option-box { border-color: var(--ds-brand); background: var(--ds-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.ds-option:has(input:checked) { border-color: var(--ds-brand); background: var(--ds-brand-50); }
.ds-option input:focus-visible + .ds-option-box { outline: 3px solid var(--ds-navy); outline-offset: 2px; }
.ds-error { margin: 14px 0 0; font-weight: 600; color: #c0262d; }

/* ---------- Carousel (horizontal scroll-snap track) ----------
   Markup: .ds-carousel[data-ds-carousel] > .ds-carousel-head (heading + .ds-track-nav[hidden] with
   .ds-arrow[data-dir="-1"/"1"]) + .ds-track. js/pages/ds-carousel.js shows the arrows when the track
   scrolls; when every card fits it marks the box .is-static (no arrows, cards centred). */
.ds-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--ds-gap)) / 4); gap: var(--ds-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0; padding: 6px 2px 18px; list-style: none; }
.ds-track::-webkit-scrollbar { display: none; }
.ds-track > * { scroll-snap-align: start; }
.ds-track:focus-visible { outline: 3px solid var(--ds-brand); outline-offset: 4px; border-radius: var(--ds-radius); }
.ds-carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); }
.ds-carousel-head--sm { align-items: center; gap: 16px; margin-bottom: 18px; } /* small (h3) heading */
.ds-carousel.is-static .ds-track-nav { display: none; }
.ds-carousel.is-static .ds-track { justify-content: center; }
.ds-track-nav { display: flex; gap: 10px; }
.ds-arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--ds-line); border-radius: 50%; background: #fff; color: var(--ds-navy); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.ds-arrow:hover { border-color: var(--ds-brand); color: var(--ds-brand-600); }
.ds-arrow:disabled { opacity: .4; cursor: default; }
/* the carousel script hides arrows when a row fits — the hidden attribute must win over the display rules above */
.ds-track-nav[hidden], .ds-arrow[hidden] { display: none; }
.ds-arrow svg { width: 20px; height: 20px; }

/* ---------- Quote ---------- */
.ds-quote { position: relative; margin: 0; padding: 26px 28px 26px 30px; border-left: 4px solid var(--ds-brand); border-radius: 0 var(--ds-radius-sm) var(--ds-radius-sm) 0; background: var(--ds-brand-50); color: var(--ds-navy); font-family: var(--ds-font-head); font-weight: 600; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.5; }
.ds-quote cite { display: block; margin-top: 12px; font-family: var(--ds-font-body); font-style: normal; font-weight: 500; font-size: 14px; color: var(--ds-muted); }

/* ---------- Dialog (bios, photo viewer) ---------- */
.ds-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--ds-radius); box-shadow: var(--ds-shadow-lg); }
.ds-dialog::backdrop { background: rgba(10, 27, 46, 0.7); backdrop-filter: blur(3px); }
.ds-dialog-body { padding: clamp(24px, 4vw, 44px); }
.ds-dialog-close { position: sticky; top: 0; float: right; margin: 12px 12px 0 0; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--ds-surface); color: var(--ds-navy); font-size: 24px; line-height: 1; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ds-grid--4, .ds-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-track { grid-auto-columns: calc((100% - 2 * var(--ds-gap)) / 3); }
}
@media (max-width: 991px) {
  .ds-split, .ds-split--wide-media, .ds-split--wide-text { grid-template-columns: minmax(0, 1fr); }
  .ds-split--reverse > :first-child { order: 0; }
  .ds-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-cta { grid-template-columns: minmax(0, 1fr); }
  .ds-hero--cover { min-height: 0; padding-top: 180px; }
  .ds-track { grid-auto-columns: calc((100% - var(--ds-gap)) / 2); }
  .ds-sticker { left: -10px; bottom: -18px; }
  .ds-sticky { position: static; }
  .ds-masonry { columns: 2; }
}
@media (max-width: 767px) {
  .ds-grid--2, .ds-grid--3, .ds-grid--4, .ds-price-grid, .ds-promo-grid, .ds-options, .ds-list--2col, .ds-offices { grid-template-columns: minmax(0, 1fr); }
  .ds-section--panel { width: calc(100% - 2 * var(--ds-gutter)); border-radius: var(--ds-radius); }
  .ds-hero { padding-top: 140px; }
  .ds-actions .ds-btn { flex: 1 1 100%; }
  .ds-track { grid-auto-columns: min(86%, 320px); }
  .ds-table { font-size: 14px; }
  .ds-table th, .ds-table td { padding: 14px; }
  .ds-faq summary { padding: 18px; font-size: 16px; }
  .ds-faq-body { padding: 0 18px 18px; }
  .ds-sticker { left: 50%; bottom: -36px; transform: translateX(-50%); }
  .ds-media-wrap:has(.ds-sticker) { margin-bottom: 44px; }
  .ds-carousel-head:not(.ds-carousel-head--sm) { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 599px) {
  .ds-masonry { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-btn:hover, .ds-card--hover:hover { transform: none; }
  .ds-video:hover > img { transform: none; }
}
