/* slaviklund.com shared styles. One file for the whole site.
   Brand values were measured from the LynkSpot site on 2026-09-25. */
:root {
  --orange: #ff5200;
  --orange-dark: #e04800;
  --teal: #20363b;          /* LynkSpot "secondary1": dark sections, buttons */
  --teal-deep: #18282c;     /* footer */
  --olive: #4d5d43;         /* LynkSpot "secondary2" */
  --paper: #faf9f9;         /* off-white sections */
  --ink: #3e3e3e;           /* body text */
  --ink-strong: #222222;
  --line: #e1e1e1;
  --white: #ffffff;
  --radius: 16px;
  --heading-font: "Poppins", Arial, sans-serif;
  --body-font: "Poppins", Arial, sans-serif;
  --form-font: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; object-fit: contain; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { font-family: var(--heading-font); line-height: 1.1; margin: 0 0 .5em; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
.section--tight { padding: 48px 0; }
.bg-paper { background: var(--paper); }
.bg-teal { background: var(--teal); color: var(--white); }
.bg-olive { background: var(--olive); color: var(--white); }
.bg-cover { background-size: cover; background-position: center; }
.shade { position: relative; isolation: isolate; }
.shade::before { content: ""; position: absolute; inset: 0; background: rgba(15, 30, 33, var(--shade, .55)); z-index: -1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
/* Uneven two-column splits (use these, never inline grid-template-columns: inline styles break the phone layout) */
.grid-2.cols-30-70 { grid-template-columns: 30fr 70fr; }
.grid-2.cols-40-60 { grid-template-columns: 40fr 60fr; }
.grid-2.cols-60-40 { grid-template-columns: 60fr 40fr; }
.grid-2.cols-70-30 { grid-template-columns: 70fr 30fr; }
.grid-2.top { align-items: start; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.round { border-radius: var(--radius); overflow: hidden; }

/* ---------- Type ---------- */
.kicker { color: var(--orange); font-style: italic; font-size: 15px; margin: 0 0 12px; }
.kicker--plain { font-style: normal; }
.h-hero { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.5px; }
.h-xl { font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; }
.h-lg { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; }
.h-md { font-size: 24px; font-weight: 600; }
.lede { font-size: 20px; }
.text-orange { color: var(--orange); }
.text-teal { color: var(--teal); }
.text-white { color: var(--white); }
.link-orange { color: var(--orange); text-decoration: none; }
.link-orange:hover { text-decoration: underline; }
.prose { font-size: 18px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; margin-top: 1.6em; }
.prose h3 { font-size: 22px; font-weight: 600; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--orange); }
.prose img { border-radius: 12px; margin: 1.5em auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid rgba(127,127,127,.35); padding: 10px 12px; text-align: left; vertical-align: top; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: var(--white);
  font-family: var(--heading-font); font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 19px 40px; border: 0; border-radius: 60px;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn--lg { font-size: 20px; padding: 24px 28px; }
.btn--sm { font-size: 13px; padding: 12px 24px; }
.btn--teal { background: var(--teal); }
.btn--teal:hover { background: #2b4a51; }
.btn--ghost { background: transparent; border: 2px solid currentColor; }
.btn--block { display: flex; width: 100%; border-radius: 0; height: 61px; padding: 0 20px; background: var(--teal); font-weight: 500; font-size: 14px; }
.btn--block:hover { background: #2b4a51; transform: none; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 36px; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; color: var(--orange); font-weight: 600; text-decoration: none; text-transform: uppercase; font-size: 15px; }
.arrow-link::before { content: "›"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 16px; line-height: 1; }

/* ---------- Header (sits on top of the first section) ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: 14px 52px 0; color: var(--white);
}
.header-dark .site-header { color: var(--teal); }
.header-dark .site-logo img { filter: brightness(0) saturate(100%) invert(17%) sepia(13%) saturate(1352%) hue-rotate(145deg) brightness(92%) contrast(89%); }
.site-nav { display: flex; gap: 20px; padding-top: 38px; font-size: 17px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.nav-item { position: relative; }
.nav-item .menu, .footer-links .menu {
  display: none; position: absolute; left: 0; top: 100%; z-index: 30;
  background: var(--white); color: var(--ink-strong); list-style: none; margin: 0; padding: 8px 0; min-width: 250px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18); border-radius: 8px; font-size: 15px; text-align: left;
}
.nav-item .menu a, .footer-links .menu a { display: block; padding: 8px 18px; }
.has-menu:hover .menu, .has-menu:focus-within .menu { display: block; }
.site-logo img { width: 216px; }
.has-header-space { padding-top: 150px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background-size: cover; background-position: center; }
.hero .wrap { display: grid; grid-template-columns: 54fr 46fr; align-items: end; min-height: 660px; padding-top: 150px; }
.hero__copy { padding-bottom: 80px; }
.hero__img { align-self: end; }
.hero__img img { width: auto; max-width: 100%; max-height: 520px; margin: 0 auto; }

/* ---------- Image link cards on a dark panel ---------- */
.card-panel { background: var(--teal); border-radius: var(--radius); padding: 34px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; color: var(--white); }
.card-link { text-decoration: none; display: block; overflow: hidden; }
.card-link img { width: 100%; aspect-ratio: 13 / 6; object-fit: cover; transition: transform .25s; }
.card-link:hover img { transform: scale(1.03); }
.card-link span { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 20px; }
.card-link span::after { content: "›"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--teal); font-weight: 700; font-size: 17px; line-height: 1; }

/* ---------- Check list ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { display: flex; gap: 14px; align-items: center; font-size: 17px; margin-bottom: 20px; }
.checks li::before { content: ""; width: 20px; height: 20px; flex: none; border: 2px solid var(--orange); border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23ff5200' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- Social circles ---------- */
.social-row { display: flex; gap: 8px; }
.social-row a { width: 44px; height: 44px; border-radius: 50%; background: var(--olive); display: grid; place-items: center; }
.social-row svg { width: 15px; height: 15px; fill: #fff; }

/* ---------- FAQ accordion (native details/summary: works without JavaScript) ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.14); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; font-family: Helvetica, Arial, sans-serif; font-size: 16px; color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.faq details[open] summary::before { content: "\2212"; }
.faq .faq__a { padding: 0 20px 20px 60px; color: rgba(255,255,255,.9); font-family: Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; }
.faq .faq__a p:last-child { margin-bottom: 0; }
.faq--light details { border-color: var(--line); background: var(--white); }
.faq--light summary, .faq--light .faq__a { color: var(--ink-strong); }
.faq--light summary::before { border-color: var(--teal); }

/* ---------- Forms ---------- */
.lead-form { width: 100%; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.req { color: #e0402b; }
.lead-form input:not([type=checkbox]):not([type=radio]), .lead-form select, .lead-form textarea {
  display: block; width: 100%; font: 15px/1.4 var(--form-font); color: var(--ink-strong);
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; height: 58px;
}
.lead-form textarea { height: auto; min-height: 120px; padding: 14px 18px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { margin: 14px 0 0; font-size: 15px; min-height: 1.5em; }
.form-msg.ok { color: #1c8a4a; }
.bg-teal .form-msg.ok, .shade .form-msg.ok, .page-dark .form-msg.ok { color: #9ef0b8; }
.form-msg.err { color: #e0402b; }
.form--flat input:not([type=checkbox]):not([type=radio]), .form--flat select { border-radius: 0; height: 55px; }
.form--flat label { font-family: var(--form-font); font-weight: 400; font-size: 15px; color: var(--ink-strong); }
.form--dark input:not([type=checkbox]):not([type=radio]), .form--dark textarea {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.7); border-radius: 0; color: #fff; height: 53px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;
}
.form--dark input::placeholder, .form--dark textarea::placeholder { color: rgba(255,255,255,.55); }
.form--dark .btn { border-radius: 0; background: rgba(255,255,255,.08); font-family: Helvetica, Arial, sans-serif; font-weight: 400; font-size: 15px; padding: 14px 28px; }

/* ---------- Quiz (multi-step question cards). Redesigned 10/3: icon above words, words always fit. ---------- */
.quiz { color: var(--white); }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: quizIn .25s ease; }
@keyframes quizIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quiz__q { font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.2; text-align: center; margin: 0 0 24px; }
.quiz__field { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.quiz__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.quiz__options--2 { grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; }
.quiz__options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quiz__options--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quiz__opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; padding: 14px 10px; min-width: 0;
  background: var(--white); color: var(--ink-strong); border: 2px solid #d5dbdb; border-radius: 12px;
  font: 600 17px/1.2 var(--heading-font); text-align: center; overflow-wrap: break-word; hyphens: manual; cursor: pointer;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.quiz__opt:hover, .quiz__opt:focus-visible { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); outline: none; }
.quiz__opt.is-picked { border-color: var(--orange); background: #fff6f1; }
.quiz__opt img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.quiz__opt small { display: block; font-size: 13px; font-weight: 400; color: #777; margin-top: -4px; }
.quiz__options--3 .quiz__opt { min-height: 150px; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; min-height: 24px; }
.quiz__back { background: none; border: 0; color: inherit; font: 500 15px var(--heading-font); cursor: pointer; opacity: .85; padding: 0; }
.quiz__count { font-size: 13px; opacity: .7; }
.quiz__progress { height: 5px; background: rgba(255,255,255,.18); border-radius: 5px; margin-bottom: 26px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 5px; transition: width .3s; }
.quiz .field label { color: inherit; }
.quiz__submit { width: 100%; margin-top: 8px; }
.quiz__fine { font-size: 12.5px; opacity: .75; text-align: center; margin: 12px 0 0; }
.quiz--light { color: var(--ink-strong); }
.quiz--light .quiz__progress { background: #e6eaea; }
/* Results screen shown after submitting */
.quiz__result { text-align: center; animation: quizIn .3s ease; }
.quiz__result-kicker { color: var(--orange); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; margin-bottom: 8px; }
.quiz__summary { list-style: none; padding: 0; margin: 0 auto 22px; max-width: 520px; text-align: left; border-radius: 12px; overflow: hidden; border: 1px solid rgba(127,127,127,.25); }
.quiz__summary li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; font-size: 15px; border-top: 1px solid rgba(127,127,127,.18); }
.quiz__summary li:first-child { border-top: 0; }
.quiz__summary li span:first-child { opacity: .7; }
.quiz__summary li span:last-child { font-weight: 600; text-align: right; }
.quiz__result-next { max-width: 520px; margin: 0 auto 20px; font-size: 16px; }
.quiz__result-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.quiz__result-ctas .btn--ghost { color: inherit; }
.quiz.is-done .quiz__step, .quiz.is-done .quiz__nav, .quiz.is-done .quiz__progress { display: none !important; }
.quiz.is-done .form-msg { display: none; }
@media (max-width: 600px) {
  .quiz__options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .quiz__options--3 .quiz__opt { min-height: 118px; padding: 12px 6px; font-size: 15px; gap: 6px; }
  .quiz__options--3 .quiz__opt img { width: 48px; height: 48px; }
  .quiz__opt small { font-size: 12px; }
  .quiz__options--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz__options:not(.quiz__options--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

/* ---------- Video embeds ---------- */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt__play img { width: 100%; height: 100%; object-fit: cover; }
.yt__icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: #f00; border-radius: 12px; transition: transform .15s; }
.yt__icon::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt__play:hover .yt__icon { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Loan timeline (5 steps) ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.timeline h4 { color: var(--orange); font-size: 17px; font-weight: 700; margin: 10px 0 6px; }
.timeline p { font-size: 14px; line-height: 1.5; }
.timeline .icon { width: 42px; height: 42px; margin: 0 auto; color: var(--orange); }

/* ---------- Split landing layout: photo left, form right (refi) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 782px; }
.split__photo { background-position: 50% 50%; background-size: cover; position: relative; }
.split__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(27deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.62) 100%); }
.split__panel { display: flex; flex-direction: column; justify-content: center; padding: 118px 26px 88px; }
.split__panel h1 { font-weight: 600; font-size: 42px; line-height: 1.2; color: var(--ink); text-align: center; margin: 0 0 14px; }
.split__lede { font-size: 24px; line-height: 1.02; letter-spacing: -0.2px; color: var(--ink); text-align: center; max-width: 440px; margin: 0 auto 38px; }
.split__lede strong { font-weight: 600; }

/* ---------- Dark long-form pages (letters, Q&A guides) ---------- */
.page-dark { background: var(--teal); color: rgba(255,255,255,.92); }
.page-dark .prose a { color: var(--orange); }
.article { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article__meta { color: rgba(255,255,255,.65); font-size: 14px; }

/* ---------- Header call-to-action ---------- */
.site-cta { display: flex; justify-content: flex-end; padding-top: 30px; }
.site-cta .btn { box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* ---------- Footer (redesigned 10/3: organized columns + one legal line) ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.86); font-family: var(--heading-font); font-size: 15px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 44px; }
/* Both logos are trimmed to their artwork and share one height, so the tops and bottoms line up. */
.footer-brand__logos { display: inline-flex; align-items: center; gap: 18px; }
.footer-brand__logos img { height: 44px; width: auto; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin: 18px 0 18px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .15s; }
.footer-social a:hover { background: var(--orange); }
.footer-social svg { width: 16px; height: 16px; fill: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 10px; line-height: 1.45; }
.footer-col h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); font-weight: 600; margin: 4px 0 6px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); }
.footer-legal__row { display: flex; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 22px; }
.footer-legal__row img { width: 34px; flex: none; opacity: .9; }
.footer-legal__row p { margin: 0; font-family: var(--form-font); font-size: 12.5px; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ---------- Tablet (901 to 1100px): tighten, keep two columns ---------- */
@media (max-width: 1100px) {
  .site-header { padding: 12px 28px 0; }
  .site-logo img { width: 170px; }
  .grid-2 { gap: 36px; }
  .card-panel { gap: 28px; padding: 26px 24px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
}

/* ---------- Tablet and phone (900px and below): one column, but sizes stay in check ---------- */
@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .wrap { max-width: 720px; }
  .grid-2, .grid-2[class*="cols-"], .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 32px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .site-header { padding: 12px 16px 0; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
  .site-header .site-logo { order: -1; }
  .site-header .site-logo img { width: 104px; }
  .site-nav { padding-top: 0; justify-content: flex-end; font-size: 15px; gap: 14px; }
  .site-nav .menu { left: auto; right: 0; }
  .site-cta { padding-top: 0; }
  .has-header-space { padding-top: 110px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 110px; }
  .hero__copy { padding-bottom: 20px; }
  .hero__img img { max-height: 340px; }
  .btn-row { gap: 14px; }
  /* Media never balloons to full width on tablets */
  .video, .yt { max-width: 620px; margin-left: auto; margin-right: auto; }
  .card-panel { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px; }
  .card-link span { font-size: 15px; margin-top: 12px; gap: 8px; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__photo { min-height: 240px; }
  .split__panel { padding: 36px 16px 40px; }
  .split__panel h1 { font-size: 34px; }
  .split__lede { font-size: 19px; }
  .form-row { grid-template-columns: 1fr; }
  /* No photo towers over the screen once columns stack (page CSS can still override). */
  :where(main) img:not(.card-link img):not(.quiz__opt img):not(.yt img):not(.yt-thumb img):not([src*="logo" i]) {
    max-height: 460px; width: auto; max-width: 100%; margin-left: auto; margin-right: auto; object-fit: cover; object-position: center top;
  }
}

/* ---------- Phone (600px and below) ---------- */
@media (max-width: 600px) {
  .wrap, .wrap-narrow, .article { padding: 0 16px; }
  .timeline { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
  .card-panel { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .card-link { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 14px; }
  .card-link img { aspect-ratio: 4 / 3; border-radius: 6px; }
  .card-link span { margin-top: 0; font-size: 17px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
  .footer-legal__row { align-items: flex-start; }
}

/* ---------- Typed-answer quiz steps and clean form finishes (10/3) ---------- */
.quiz__opt.quiz__next { display: inline-flex; flex-direction: row; min-height: 0; width: auto; margin: 6px auto 0; padding: 16px 36px; border: 0; border-radius: 60px; background: var(--orange); color: #fff; font-weight: 700; box-shadow: none; }
.quiz__step:has(.quiz__next) { text-align: center; }
.quiz__step:has(.quiz__next) .field { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
.quiz__opt.quiz__next:hover { background: var(--orange-dark); transform: translateY(-1px); }
/* After any form is sent: hide the filled-in fields, show a tidy thank-you card */
.lead-form.is-sent > *:not(.form-msg):not([data-keep]) { display: none !important; }
.lead-form.is-sent .form-msg.ok { display: block; margin: 0; padding: 26px 24px 26px 66px; border-radius: 14px; background: #eef8f1; color: #1c5e37; font-size: 17px; line-height: 1.5; text-align: left; position: relative; }
.lead-form.is-sent .form-msg.ok::before { content: "\2713"; position: absolute; left: 22px; top: 22px; width: 30px; height: 30px; border-radius: 50%; background: #1c8a4a; color: #fff; display: grid; place-items: center; font-weight: 700; }
.bg-teal .lead-form.is-sent .form-msg.ok, .shade .lead-form.is-sent .form-msg.ok, .page-dark .lead-form.is-sent .form-msg.ok, .form--dark.is-sent .form-msg.ok { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Design pass round 2 (10/3): polish only. Primary buttons pop, FAQs match the site font,
   comfortable tap targets, tidier header and footer. Appended as one block so it is easy to review. ---------- */
.btn:where(:not(.btn--teal, .btn--ghost, .btn--block)) { box-shadow: 0 6px 18px rgba(255, 82, 0, .28); }
.btn:where(:not(.btn--teal, .btn--ghost, .btn--block)):hover { box-shadow: 0 10px 24px rgba(255, 82, 0, .34); }
.btn--ghost, .form--dark .btn { box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: currentColor; }
.btn:focus-visible, .quiz__opt:focus-visible, .faq summary:focus-visible, .site-footer a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
/* Header: the "book a call" pill is a real 44px tap target and the nav lines up with it */
.site-cta .btn { min-height: 44px; padding: 12px 26px; font-size: 14px; }
.site-nav a { padding: 6px 0; }
/* FAQ accordions: site font instead of the leftover Helvetica, softer corners, clearer open state */
.faq details { border-radius: 12px; transition: background .15s, border-color .15s; }
.faq summary { font-family: var(--heading-font); font-weight: 500; line-height: 1.35; min-height: 56px; }
.faq summary::before { transition: transform .2s; }
.faq details[open] summary::before { transform: rotate(180deg); }
.faq details[open] { border-color: rgba(255,255,255,.28); background: rgba(0,0,0,.2); }
.faq--light details[open] { border-color: var(--orange); background: var(--white); }
.faq .faq__a { font-family: var(--heading-font); font-size: 15.5px; line-height: 1.7; }
/* Long-form lists in prose read better with a touch more air */
.prose li { line-height: 1.6; }
/* Footer: line up the columns and give phone users room to tap */
.footer-col a { padding: 2px 0; }
.footer-social a { width: 44px; height: 44px; }
.split__lede { line-height: 1.3; }
@media (max-width: 600px) {
  .footer-col { gap: 4px; }
  .footer-col a { padding: 9px 0; }
  .footer-col h2 { margin-bottom: 2px; }
  .footer-legal__row p { font-size: 12px; }
  .site-cta .btn { padding: 11px 20px; font-size: 13.5px; }
  .faq summary { padding: 16px 16px; gap: 14px; }
  .faq .faq__a { padding: 0 16px 18px 16px; }
}

/* ---------- Phone menu (10/4): hamburger button + dropdown panel, shown below 768px ---------- */
.nav-toggle { display: none; }
.mobile-nav[hidden] { display: none !important; }
@media (max-width: 767px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; gap: 10px; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0;
    border: 1.5px solid currentColor; border-radius: 50%; background: rgba(0,0,0,.22); color: inherit; cursor: pointer;
  }
  .header-dark .nav-toggle { background: rgba(32,54,59,.06); }
  .nav-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .mobile-nav {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; z-index: 40;
    display: flex; flex-direction: column; padding: 10px 0 10px; background: var(--white); color: var(--teal);
    border-radius: var(--radius); border-top: 4px solid var(--orange); box-shadow: 0 18px 40px rgba(0,0,0,.25);
    font-family: var(--heading-font); text-align: left; max-height: calc(100vh - 100px); overflow-y: auto;
  }
  .mobile-nav a { text-decoration: none; }
  .mobile-nav__top { display: flex; align-items: center; min-height: 48px; padding: 6px 22px; font-size: 18px; font-weight: 600; }
  .mobile-nav__sub { list-style: none; margin: 0 0 6px; padding: 0 0 6px; border-bottom: 1px solid var(--line); }
  .mobile-nav__sub a { display: flex; align-items: center; min-height: 44px; padding: 4px 22px 4px 36px; font-size: 16px; color: var(--ink); }
  .mobile-nav a:hover, .mobile-nav a:focus-visible { background: var(--paper); color: var(--orange); }
}
/* Phones: small text links like "Book a call" get a full 44px tap area (10/4) */
@media (max-width: 767px) {
  .arrow-link { min-height: 44px; }
}

/* ---------- Video gallery: featured player + clickable list (see site.js) ----------
   Desktop: player on the left (~62%), the 5 videos as a list on the right, same height as the player.
   Phones/tablets: player on top, a swipeable row of equal cards under it. */
.yt-gallery { min-width: 0; }
.yt-gallery--split { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: 22px; align-items: stretch; }
.yt-gallery--split .yt-gallery__main { border-radius: 14px; box-shadow: 0 14px 34px rgba(32, 54, 59, .16); align-self: start; }
.yt-gallery__list { display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.yt-thumb { display: flex; align-items: center; gap: 14px; flex: 1 1 0; min-height: 44px; padding: 4px 10px 4px 6px; border: 0; border-left: 4px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-strong); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s; }
.yt-thumb img { display: block; flex: none; width: 112px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #1d2b2e; }
.yt-thumb span { font-family: var(--heading-font); font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-thumb:hover { background: #fff; box-shadow: 0 4px 14px rgba(32, 54, 59, .08); }
.yt-thumb.is-active { background: #fff; border-left-color: var(--orange); box-shadow: 0 4px 14px rgba(32, 54, 59, .08); }
.yt-thumb.is-active span { color: var(--orange); }
.yt-thumb:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .yt-thumb img { width: 88px; }
  .yt-thumb span { font-size: 13.5px; }
}
@media (max-width: 900px) {
  .yt-gallery { max-width: 620px; margin: 0 auto; width: 100%; }
  .yt-gallery--split { display: block; }
  .yt-gallery__list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-top: 14px; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .yt-thumb { flex: 0 0 31%; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; padding: 0 0 10px; border-left: 0; border-bottom: 3px solid transparent; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(32, 54, 59, .07); scroll-snap-align: start; }
  .yt-thumb img { width: 100%; max-height: none; border-radius: 8px 8px 0 0; }
  .yt-thumb span { font-size: 13.5px; padding: 0 10px; }
  .yt-thumb:hover { background: #fff; box-shadow: 0 2px 10px rgba(32, 54, 59, .07); }
  .yt-thumb.is-active { border-bottom-color: var(--orange); }
}
@media (max-width: 480px) {
  .yt-thumb { flex-basis: 44%; }
  .yt-thumb span { font-size: 13px; padding: 0 8px; }
}

.footer-col h2.footer-col__sub { margin-top: 18px; }

/* ---------- Consent line under every lead form (src/partials/consent.html) ---------- */
form.lead-form p.consent-line { font-family: var(--form-font); font-size: 12.5px; line-height: 1.55; color: inherit; opacity: .78; margin: 12px 0 0; max-width: 640px; text-align: left; font-style: normal; font-weight: 400; }
form.lead-form p.consent-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
form.quiz p.consent-line { text-align: center; margin-left: auto; margin-right: auto; }
form.lead-form .center + p.consent-line { text-align: center; margin: 14px auto 0; }

/* ---------- "call or text" line (src/partials/call-text.html) ---------- */
.call-text { font-size: 15px; margin: 10px 0 0; }
.call-text a { color: var(--orange); font-weight: 600; text-decoration: none; }
.call-text a:hover { text-decoration: underline; }
.call-text .call-text__sms { display: inline-block; margin-left: 6px; padding: 2px 10px; border: 1.5px solid currentColor; border-radius: 30px; font-size: 13px; line-height: 1.5; }
.call-text--dark { color: rgba(255,255,255,.88); }
.call-text--dark a { color: color-mix(in srgb, var(--orange) 70%, #fff); }
.site-footer .footer-sms { font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--orange) 70%, #fff); }
.footer-brand .footer-areas { margin-top: -6px; font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,.7); }
.footer-areas a { color: rgba(255,255,255,.9); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }

/* ---------- Phone-only bottom bar: text / call / apply (src/partials/stickybar.html) ---------- */
.stickybar { display: none; }
@media (max-width: 767px) {
  .stickybar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--teal); box-shadow: 0 -6px 20px rgba(0, 0, 0, .18); padding-bottom: env(safe-area-inset-bottom); }
  .stickybar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; color: #fff; text-decoration: none; font-family: var(--heading-font); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
  .stickybar__btn + .stickybar__btn { border-left: 1px solid rgba(255, 255, 255, .14); }
  .stickybar__btn svg { width: 19px; height: 19px; flex: none; }
  .stickybar__btn:active { background: rgba(255, 255, 255, .1); }
  .stickybar__btn--apply { background: var(--orange); border-left: 0 !important; }
  .stickybar__btn--apply:active { background: var(--orange-dark); }
  .has-stickybar .footer-legal { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .nav-open .stickybar { display: none; }
}
