/* bradhainesmortgage.com — site styles
   Brand palette, supplied by Brad:
     forest      #1F2D26  block backgrounds, and body ink on cream
     cream       #F4EEE2  page ground, and text on forest
     amber       #E8A765  accent words on dark, primary button fill
     amber-dark  #B8682E  borders and rules ONLY — never as text
   Matches the flyers and channel branding. */

:root {
  --forest:    #1F2D26;
  --forest-2:  #16201B;
  --forest-lt: #38493F;
  --cream:     #F4EEE2;
  --cream-2:   #FBF8F1;
  --cream-mute:#C4BBA9;
  --amber:     #E8A765;
  --amber-lt:  #F2C193;
  --amber-dk:  #B8682E;
  --ink:       #1F2D26;
  --ink-2:     #55605A;
  --ink-3:     #6E7C73;
  --rule:      rgba(31,45,38,.14);
  --rule-2:    #CDBFA9;
  --warn:      #A8362C;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Public Sans", -apple-system, system-ui, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --text: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); text-underline-offset: 2px; text-decoration-color: var(--amber-dk); }
a:hover { color: var(--amber-dk); }
:focus-visible { outline: 3px solid var(--amber-dk); outline-offset: 3px; }

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

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--forest); padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-head {
  background: var(--forest);
  color: var(--cream);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 66px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  font-family: var(--f-display); font-weight: 600; font-size: 19px;
  color: var(--cream); text-decoration: none; letter-spacing: -.01em; margin-right: auto;
  display: flex; flex-direction: column; line-height: 1.15;
}
.brand small {
  font-family: var(--f-body); font-size: 11px; font-weight: 400;
  color: var(--amber-lt); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px;
}
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-nav a {
  color: var(--cream-mute); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--amber-dk); }
.btn-head {
  background: var(--amber); color: var(--forest) !important;
  padding: 9px 16px !important; border-radius: 8px; font-weight: 700; border: none !important;
}
.btn-head:hover { background: var(--amber-lt); }

/* ---------- hero ---------- */
.hero { background: var(--forest); color: var(--cream); padding: 64px 0 72px; }
.hero .eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber-lt); margin: 0 0 18px; font-weight: 600;
}
.hero h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 20px; max-width: 20ch; text-wrap: balance; color: var(--cream);
}
.hero h1 em { font-style: italic; color: var(--amber-lt); }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: var(--cream-mute); max-width: 60ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 26px; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 16px; border: 2px solid transparent;
}
.btn-primary { background: var(--amber); color: var(--forest); }
.btn-primary:hover { background: var(--amber-lt); color: var(--forest); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--amber); color: var(--cream); }
.btn-dark { background: var(--forest-2); color: var(--cream); }
.btn-dark:hover { background: var(--forest-lt); color: var(--cream); }

/* ---------- sections ---------- */
main section { padding: 60px 0; }
main section.alt { background: var(--cream-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(26px, 3.6vw, 36px); line-height: 1.18; letter-spacing: -.015em;
  margin: 0 0 14px; text-wrap: balance;
}
h3 {
  font-family: var(--f-display); font-weight: 600; font-size: 21px;
  margin: 34px 0 10px; letter-spacing: -.01em;
}
h4 { font-family: var(--f-body); font-weight: 700; font-size: 17px; margin: 24px 0 8px; }
p { max-width: var(--text); }
main li { max-width: var(--text); margin-bottom: .4em; }
strong { font-weight: 700; }

.section-intro { color: var(--ink-2); font-size: 18px; max-width: 62ch; margin-bottom: 32px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card {
  background: var(--cream-2); border: 1px solid var(--rule); border-radius: 12px;
  padding: 26px 24px; display: flex; flex-direction: column;
}
section.alt .card { background: var(--cream); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { font-size: 15.5px; color: var(--ink-2); margin: 0 0 12px; max-width: none; }
.card { transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(31,45,38,.28); }
.card .more { margin-top: auto; font-weight: 700; font-size: 15px; text-decoration: none; }
.card .more::after { content: " →"; }

.town-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: 24px 0; }
.town-grid a {
  display: block; background: var(--cream-2); border: 1px solid var(--rule); border-radius: 8px;
  padding: 13px 16px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px;
}
.town-grid a:hover { border-color: var(--amber-dk); background: var(--cream); }
.town-grid a span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---------- callout ---------- */
.callout {
  background: var(--forest); color: var(--cream); border-radius: 12px;
  padding: 30px 32px; margin: 34px 0; max-width: 820px;
}
.callout h3 { color: var(--cream); margin: 0 0 10px; }
.callout p { color: var(--cream-mute); max-width: none; }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: var(--amber-lt); font-weight: 600; }

.note {
  border-left: 3px solid var(--amber-dk); background: var(--cream-2);
  padding: 18px 22px; margin: 28px 0; max-width: 820px;
}
section.alt .note { background: var(--cream); }
.note p { margin: 0; font-size: 16px; color: var(--ink-2); max-width: none; }
.note p + p { margin-top: .7em; }

/* ---------- tables ---------- */
.tw { overflow-x: auto; margin: 26px 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--cream-2); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15.5px; }
thead th {
  text-align: left; background: var(--cream); color: var(--ink);
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700;
  padding: 12px 15px; border-bottom: 2px solid var(--amber-dk);
}
tbody td { padding: 13px 15px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-top: 10px; }
.faq details {
  background: var(--cream-2); border: 1px solid var(--rule); border-radius: 12px;
  margin-bottom: 10px; padding: 0;
}
section.alt .faq details { background: var(--cream); }
.faq summary {
  cursor: pointer; padding: 17px 22px; font-weight: 700; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--forest-2); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--rule); }
.faq .a { padding: 16px 22px 20px; }
.faq .a p { margin: 0; color: var(--ink-2); max-width: none; }

/* ---------- video ---------- */
.video-facade {
  position: relative; display: block; width: 100%; max-width: 820px;
  aspect-ratio: 16/9; background: var(--forest); border: 0; border-radius: 12px;
  overflow: hidden; cursor: pointer; padding: 0; margin: 28px 0;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-facade .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-facade .play span {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(232,167,101,.95);
  display: flex; align-items: center; justify-content: center;
}
.video-facade .play span::after {
  content: ""; border-left: 22px solid var(--forest);
  border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px;
}
.video-facade:hover .play span { background: var(--amber-lt); }
.video-facade .vlabel {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
  background: linear-gradient(transparent, rgba(31,45,38,.94));
  color: var(--cream); font-weight: 600; font-size: 15.5px; text-align: left;
}
.video-facade iframe { width: 100%; height: 100%; border: 0; }

/* ---------- breadcrumb ---------- */
.crumb { font-size: 14px; color: var(--ink-3); padding: 18px 0 0; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--forest-2); text-decoration: underline; }
.crumb span { margin: 0 7px; color: var(--rule-2); }

/* ---------- page head band ---------- */
.page-head { background: var(--cream-2); border-bottom: 1px solid var(--rule); padding: 8px 0 46px; }
.page-head .eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--forest-2); font-weight: 700; margin: 20px 0 12px;
}
.page-head h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 16px; max-width: 22ch; text-wrap: balance;
}
.page-head p.lede { font-size: 19px; color: var(--ink-2); max-width: 62ch; margin: 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--forest); color: var(--cream-mute); padding: 52px 0 34px; font-size: 15px; margin-top: 40px; }
.site-foot a { color: var(--cream); }
.foot-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 34px; }
.foot-grid h4 { color: var(--amber-lt); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; color: var(--cream); }
.disclosure {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  font-size: 13px; line-height: 1.6; color: #A79C8B; max-width: none;
}
.disclosure p { max-width: none; margin: 0 0 10px; }
.disclosure strong { color: var(--cream); }
.ehl {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); font-weight: 600;
}
.ehl svg { flex: none; }

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .site-head .wrap { min-height: 0; }
  .site-nav { gap: 14px; font-size: 14px; width: 100%; }
  .site-nav a { font-size: 14px; }
  .hero { padding: 46px 0 52px; }
  main section { padding: 44px 0; }
  .callout { padding: 24px 22px; }
}

/* ---------- freshness / byline line ---------- */
.updated {
  font-size: 14px; color: var(--ink-3); margin: 14px 0 0; max-width: 68ch;
  padding-top: 12px; border-top: 1px solid var(--rule);
}
.updated a { color: var(--ink-2); }

/* ---------- worked scenario ---------- */
.scenario {
  background: var(--cream-2); border: 1px solid var(--rule);
  border-left: 4px solid var(--amber-dk); border-radius: 12px;
  padding: 26px 28px; margin: 30px 0; max-width: 820px;
}
section.alt .scenario { background: var(--cream); }
.scen-label {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin: 0 0 6px;
}
.scenario h3 { margin: 0 0 16px; font-size: 21px; }
.scen-facts { list-style: none; padding: 0; margin: 0 0 20px; }
.scen-facts li {
  padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; color: var(--ink-2);
}
.scen-facts li:last-child { border-bottom: none; }
.scen-facts strong { color: var(--ink); }
.scen-head { font-weight: 700; margin: 0 0 10px; font-size: 15.5px; }
.scen-walk { margin: 0 0 18px; padding-left: 20px; }
.scen-walk li { font-size: 15.5px; color: var(--ink-2); margin-bottom: 10px; }
.scen-out {
  background: var(--forest); color: var(--cream); padding: 16px 20px;
  border-radius: 8px; margin: 0 0 14px; font-size: 15.5px; max-width: none;
}
.scen-out strong { color: var(--amber-lt); }
.scen-disc { font-size: 13.5px; color: var(--ink-3); margin: 0; max-width: none; }

/* ---------- video key points ---------- */
.vpoints {
  border: 1px solid var(--rule); border-radius: 12px; background: var(--cream-2);
  padding: 22px 24px; margin: -14px 0 30px; max-width: 820px;
}
section.alt .vpoints { background: var(--cream); }
.vp-label {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin: 0 0 6px;
}
.vp-h { margin: 0 0 12px; font-size: 18px; }
.vpoints ul { margin: 0 0 14px; padding-left: 20px; }
.vpoints li { font-size: 15.5px; color: var(--ink-2); margin-bottom: 8px; }
.vp-foot { font-size: 13.5px; color: var(--ink-3); margin: 0; max-width: none; }

/* ---------- trust chips (from the live site) ---------- */
.trust { background: var(--cream-2); border-bottom: 1px solid var(--rule); }
.trust-inner { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 18px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--cream);
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 15px;
  font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--ink);
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip.link:hover { border-color: var(--amber-dk); }

/* ---------- about photo ---------- */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.about-grid .photo {
  width: 100%; border-radius: 16px; border: 1px solid var(--rule);
  aspect-ratio: 1; object-fit: cover;
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid .photo { max-width: 240px; }
}

/* ---------- touch targets (mobile) ----------
   Measured 2026-08-30 in Chromium/iPhone-13 emulation: 26 links rendered
   under 24px tall, 27 of them in the footer. Padding, not font size, is the
   fix — text stays the same size, the hit box gets to 44px. */
@media (pointer: coarse), (max-width: 760px) {
  .foot-grid li { margin-bottom: 0; }
  .foot-grid a,
  .disclosure a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
  .site-nav a { padding: 10px 2px; }
  .site-head .brand { padding: 4px 0; }
  .card .more { padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
  .chip.link { min-height: 44px; }
}

@media (pointer: coarse), (max-width: 760px) {
  .btn-head { min-height: 44px; display: inline-flex; align-items: center; }
  .crumb a { display: inline-block; padding: 13px 4px; margin: -13px -4px; }
}

/* ---------- compact mobile header (2026-08-30) ----------
   The 5-item nav wrapped to three rows (~189px) and the header is sticky,
   so it held ~22% of a phone screen while scrolling. One scrollable row
   instead: brand row + nav row ≈ 118px, CTA still always visible. */
@media (max-width: 760px) {
  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; }
}
@media (max-width: 760px) {
  /* keep the booking CTA visible: first in the scrollable row */
  .btn-head { order: -1; margin-right: 4px; }
}

/* ---------- v3.1 (2026-09-10): answer-first landing pattern for promoted guides ---------- */
.quick-answer {
  background: var(--forest); color: var(--cream); border-radius: 12px;
  padding: 22px 24px; margin: 22px 0 26px; max-width: 820px;
}
.quick-answer .qa-label { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); font-weight: 700; margin: 0 0 10px; }
.quick-answer ul { margin: 0; padding-left: 20px; }
.quick-answer li { margin: 0 0 8px; color: var(--cream); font-size: 17px; line-height: 1.45; }
.quick-answer li:last-child { margin-bottom: 0; }
.quick-answer li strong { color: var(--amber-lt); }

.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 10px; max-width: 820px; }
.doors a {
  display: block; text-decoration: none; border: 1px solid var(--rule-2); border-radius: 12px;
  background: var(--cream-2); padding: 16px 16px 14px; color: var(--ink); min-height: 44px;
}
.doors a:hover { border-color: var(--amber-dk); background: var(--cream); }
.doors .d-step { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }
.doors .d-title { display: block; font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.doors .d-sub { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.doors a.d-primary { background: var(--amber); border-color: var(--amber); }
.doors a.d-primary .d-step, .doors a.d-primary .d-sub { color: var(--forest); opacity: .85; }
.doors a.d-primary:hover { background: var(--amber-lt); }
.doors-note { font-size: 14px; color: var(--ink-3); max-width: 820px; margin: 0 0 8px; }

.watch { margin-top: 36px; }
.watch .watch-label { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 0 0 6px; }
.watch .came-from { font-size: 13.5px; color: var(--ink-3); margin: -4px 0 12px; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--forest-2); border-top: 1px solid rgba(255,255,255,.12);
  display: none; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-bar.on { transform: translateY(0); }
.sticky-bar a {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--cream);
  background: var(--forest-lt); text-align: center; padding: 6px 4px; line-height: 1.15;
}
.sticky-bar a.s-primary { background: var(--amber); color: var(--forest); }
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .sticky-bar { display: grid; }
  body.has-sticky { padding-bottom: 72px; }
}

/* v3.1 mobile: header scrolls away (the sticky bar carries the CTA), tighter page head, stacked tables */
@media (max-width: 760px) {
  .site-head { position: static; }
  .page-head { padding-bottom: 26px; }
  .page-head h1 { font-size: 32px; }
  .updated { font-size: 13.5px; line-height: 1.45; }
  .tw table { min-width: 0; }
  .tw thead { display: none; }
  .tw tbody tr { display: block; padding: 10px 0 6px; border-bottom: 1px solid var(--rule); }
  .tw tbody tr:last-child { border-bottom: none; }
  .tw tbody td { display: block; padding: 4px 15px; border: none; }
  .tw tbody td:first-child { font-size: 17px; padding-bottom: 6px; }
  .tw tbody td[data-label]:not(:first-child)::before {
    content: attr(data-label) " — "; font-weight: 700; color: var(--ink);
  }
}
