/* 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; }
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 { 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) ---------- */
.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(24px, 2.4vw, 34px); font-weight: 700; text-align: center; margin-bottom: 28px; }
.quiz__field { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.quiz__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.quiz__opt {
  display: flex; align-items: center; gap: 14px; min-height: 90px; padding: 14px 16px;
  background: var(--white); color: var(--orange); border: 2px solid #3d4b3c; border-radius: 4px;
  font: 500 18px/1.15 var(--heading-font); text-align: left; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.quiz__opt:hover, .quiz__opt:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.quiz__opt.is-picked { outline: 3px solid var(--orange); outline-offset: 2px; }
.quiz__opt img { width: 70px; height: 60px; object-fit: contain; flex: none; }
.quiz__opt small { display: block; font-size: 14px; font-weight: 400; margin-top: 4px; }
.quiz__opt--text { justify-content: center; text-align: center; min-height: 64px; }
.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__progress { height: 4px; background: rgba(255,255,255,.2); border-radius: 4px; margin-bottom: 26px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s; }
/* After a successful submit, only the thank-you message stays visible. */
.quiz.is-done .quiz__step[data-final] > :not(.form-msg), .quiz.is-done .quiz__nav, .quiz.is-done .quiz__progress { display: none; }
.quiz.is-done .form-msg { font-size: 20px; text-align: center; padding: 40px 0; }
.quiz--light { color: var(--ink-strong); }
.quiz--light .quiz__progress { background: var(--line); }

/* ---------- 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; }
.footer-brand__logos { display: inline-flex; align-items: center; gap: 16px; }
.footer-brand__logos img:first-child { width: 96px; }
.footer-brand__logos img:last-child { width: 100px; }
.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([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; }
  .quiz__options { 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; }
}
