/* Palette: ink, slate grays and deep blue, with burgundy as the one accent. */
:root {
  --ink: #18212d;
  --navy: #1f3a5f;
  --navy-deep: #162a45;
  --slate: #4b5563;
  --slate-soft: #6b7482;
  --line: #d8dde5;
  --mist: #f1f3f6;
  --paper: #ffffff;
  --accent: #7a1f35;        /* burgundy: buttons and small highlights */
  --accent-dark: #5f1728;
  --accent-tint: #f6ecee;
  --radius: 10px;
  --wrap: 1120px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; }
strong { color: var(--ink); font-weight: 600; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 780px; }

/* ---------- Language bar ---------- */
.langbar { background: var(--ink); }
.langbar__in { max-width: var(--wrap); margin: 0 auto; padding: 5px 20px; text-align: right; }
.langbar a { color: #fff; font-size: 0.86rem; font-weight: 600; text-underline-offset: 3px; }
.nav__lang { display: none; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top__in { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--slate); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 6px 0; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--accent); }
.menu-btn { display: none; font: inherit; font-size: 0.93rem; font-weight: 500; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; padding: 14px 24px; border-radius: 8px; border: 2px solid var(--accent); text-align: center; transition: background 0.15s, border-color 0.15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--sm { padding: 8px 18px; font-size: 0.95rem; }
.btn--block { display: block; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--mist); border-color: var(--mist); }
.link { color: var(--navy); font-weight: 600; text-underline-offset: 4px; }
.link--light { color: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }

.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 38em; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%); padding: 64px 0 56px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; }
.facts li { font-size: 0.93rem; line-height: 1.45; }
.facts strong { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 4px; }
.hero__card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 26px; box-shadow: 0 12px 30px rgba(24, 33, 45, 0.07); }
.hero__card-title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin-bottom: 14px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; }
.steps li { counter-increment: step; display: flex; gap: 12px; padding: 9px 0; font-size: 0.97rem; line-height: 1.5; }
.steps li::before { content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; font-size: 0.82rem; display: grid; place-items: center; margin-top: 1px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--navy-deep); color: #d5dce6; }
.section--ink h2, .section--ink strong { color: #fff; }
.section--ink .eyebrow { color: #e3b8c2; }
.section__intro { max-width: 44em; margin-top: 14px; font-size: 1.05rem; }
.group-title { margin: 44px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 26px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card p { font-size: 0.96rem; margin: 8px 0 16px; }
.card__cta { margin-top: auto; align-self: flex-start; color: var(--accent); font-weight: 600; font-size: 0.95rem; text-decoration: none; border-bottom: 2px solid var(--accent); padding: 4px 0 2px; white-space: nowrap; }
.card__cta:hover { color: var(--accent-dark); border-color: var(--accent-dark); }

.loan { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.loan__text .btn { margin: 8px 20px 12px 0; }
.loan__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.loan__list li { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.loan__list li:last-child { border-bottom: 0; }
.loan__list strong { display: block; }

/* ---------- Lists ---------- */
.plain { padding-left: 1.15em; margin: 0 0 1em; }
.plain li { margin-bottom: 0.7em; }
.plain--tight li { margin-bottom: 0.35em; }
.check, .checklist { list-style: none; margin: 0; padding: 0; }
.check li { position: relative; padding: 7px 0 7px 30px; }
.check li::before, .checklist li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
.checklist li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 54px; margin-bottom: 12px; }
.checklist li::before { left: 20px; top: 24px; color: var(--accent); }
.checklist strong { display: block; margin-bottom: 4px; }
.checklist span { font-size: 0.96rem; }

/* ---------- Panels ---------- */
.panel { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); padding: 26px; }
.panel__title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.panel--plain { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--navy); }
.panel--plain .panel__title { color: var(--ink); }
.panel__small { font-size: 0.92rem; margin: 14px 0 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; position: relative; }
#pricing .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
@media (max-width: 1100px) { #pricing .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); font-weight: 600; }
tbody th { color: var(--ink); font-weight: 600; }
tbody th small { display: block; font-weight: 400; font-size: 0.86rem; color: var(--slate-soft); margin-top: 2px; }
.price { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; }
.price tbody tr:last-child th, .price tbody tr:last-child td { border-bottom: 0; }
.price td:last-child { text-align: right; }
.price td { white-space: nowrap; }
.offer { background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 12px 16px; }
.panel__title--second { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.compare { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { white-space: nowrap; }

/* ---------- Learn ---------- */
.learn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.learn__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.learn__item--wide { grid-column: 1 / -1; }
.learn__item h3 { margin-bottom: 12px; }
.learn__item p:last-child, .learn__item ul:last-child { margin-bottom: 0; }
.note { font-size: 0.95rem; background: var(--mist); border-radius: 8px; padding: 12px 16px; margin: 16px 0 0; }
.acts { margin: 0; }
.acts div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acts div:last-child { border-bottom: 0; }
.acts dt { color: var(--ink); font-weight: 600; }
.acts dd { margin: 0; }

.legal { margin-top: 28px; background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; }
.legal__title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.legal p:last-child { margin-bottom: 0; }
.source { font-size: 0.88rem; color: var(--slate-soft); margin: 18px 0 0; }

/* ---------- Bilingual legal notice (Utah Code 46-1-11) ---------- */
.notice { background: var(--accent-tint); border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); padding: 28px 0; }
.notice__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 44px; }
.notice__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.notice__statement { font-weight: 600; color: var(--ink); font-size: 1.02rem; line-height: 1.5; text-transform: uppercase; margin-bottom: 10px; }
.notice__fees { font-size: 0.95rem; margin: 0; }

/* ---------- Service area ---------- */
.chips { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--mist); color: var(--ink); border-radius: 999px; padding: 7px 16px; font-size: 0.95rem; font-weight: 500; }
.area__ask { margin-bottom: 24px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; margin: 0; }

/* ---------- Booking ---------- */
.booking { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.booking .calendly-inline-widget { min-width: 300px; height: 720px; }
.booking__draft { padding: 70px 24px; text-align: center; background: repeating-linear-gradient(135deg, var(--mist), var(--mist) 14px, #e8ebf0 14px, #e8ebf0 28px); }
.booking__draft p { display: inline-block; background: var(--paper); padding: 12px 18px; border-radius: 8px; margin: 0; }
.booking__alt { font-size: 0.95rem; margin: 14px 0 0; }

/* ---------- About ---------- */
.about-teaser { text-align: center; }
.about-teaser p { max-width: 36em; margin-left: auto; margin-right: auto; }
.about-teaser h2 { margin-bottom: 14px; }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.about__photo img { width: 100%; max-width: 420px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; display: block; border: 6px solid var(--paper); box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(24, 33, 45, 0.12); }
.about-teaser__photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 18px; border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.about__photo { position: sticky; top: 100px; }
.about__text h1 { font-size: clamp(2rem, 5vw, 3rem); }
.about__text .lede { margin-bottom: 22px; }
.about__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin-top: 26px; }

/* ---------- Text pages ---------- */
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin: 36px 0 12px; }
.prose .btn { margin-top: 18px; }
.price td[colspan] { white-space: normal; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 18px; }
.contact__item { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; }
a.contact__item:hover { border-color: var(--navy); }
.contact__label { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); font-weight: 600; margin-bottom: 6px; }
.contact__value { display: block; color: var(--ink); font-weight: 600; font-size: 1.08rem; overflow-wrap: anywhere; }
.contact__sub { display: block; font-size: 0.9rem; margin-top: 4px; }
.contact__lang { margin-bottom: 24px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #b9c1cd; padding: 48px 0 40px; font-size: 0.93rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px; }
.foot__name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.foot__nav a { color: #dfe4ec; text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }
.foot__legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 22px; margin: 0; font-size: 0.86rem; }
.foot__copy { grid-column: 1 / -1; margin: 0; font-size: 0.86rem; }

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 6px 20px 14px; box-shadow: 0 14px 24px rgba(24, 33, 45, 0.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--mist); }
  .nav a:hover, .nav a[aria-current="page"] { box-shadow: none; }
  .nav__lang { display: block; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .top__in { gap: 10px; padding: 10px 16px; }
  .brand { gap: 8px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 1rem; white-space: normal; }
  .menu-btn { padding: 8px 10px; }
  .btn--sm { padding: 8px 14px; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 44px; }
  .hero__grid, .split, .loan, .learn, .about__grid, .foot__in, .notice__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .langbar__in { padding: 5px 16px; }
  .facts, .contact, .about__facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; }
  .loan__text .btn { display: block; margin-right: 0; }
  .acts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .about__photo { position: static; max-width: 260px; }
  .learn__item { padding: 20px; }

  /* Tables stack into labelled blocks so nothing scrolls sideways */
  .price thead, .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price tr, .compare tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .price tbody tr:last-child, .compare tbody tr:last-child { border-bottom: 0; }
  .price th, .price td, .compare th, .compare td { display: block; padding: 2px 0; border: 0; }
  .price td:last-child { text-align: left; padding-top: 8px; }
  .price td[data-label]::before { content: attr(data-label) ": "; color: var(--slate-soft); }
  .price td[data-label] { color: var(--ink); font-weight: 600; }
  .price td[data-label]::before { font-weight: 400; }
  .compare td { padding-top: 6px; }
  .compare tbody th { font-size: 1.02rem; }
  .compare td:nth-child(3)::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}
