/* Mortgage Dealer public site (homepage + privacy policy). Brand: see brand/README.md */
:root {
  --navy: #0f2a44;
  --navy-soft: #1c4272;
  --gold: #c9a54c;
  --gold-deep: #a8862f;
  --sand: #f7f3ea;
  --slate: #5b6b7f;
  --ink: #14213d;
  --line: rgba(15, 42, 68, 0.12);
  --white: #ffffff;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-soft); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: "Lora", Georgia, serif; font-weight: 600; color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.site-header .logo img { height: 52px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { text-decoration: none; color: var(--slate); font-weight: 600; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--navy); }
.nav-links { display: flex; gap: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 2px solid transparent; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d6b562; color: var(--navy); }
.btn-ghost { border-color: rgba(247, 243, 234, 0.55); color: var(--sand); }
.btn-ghost:hover { border-color: var(--sand); color: var(--white); }
.site-header .btn { padding: 9px 16px; font-size: 0.9rem; }
.site-header nav .btn-primary, .site-header nav .btn-primary:hover { color: var(--white); }

/* Hero */
.hero { background: var(--navy); color: var(--sand); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(201, 165, 76, 0.25); }
.hero .wrap { padding-top: 88px; padding-bottom: 96px; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.hero h1 { color: var(--white); max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 1.15rem; max-width: 620px; color: rgba(247, 243, 234, 0.88); margin-bottom: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
section { padding: 80px 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(15, 42, 68, 0.04); }
.card .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sand); color: var(--gold-deep); font-weight: 700; margin-bottom: 14px; }
.card p { color: var(--slate); margin: 0; }

.split { display: grid; gap: 40px; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.panel { background: var(--navy); color: var(--sand); border-radius: var(--radius); padding: 30px; }
.panel h3 { color: var(--white); }
.panel ul { margin: 0; padding-left: 20px; }
.panel li { margin-bottom: 8px; }
.panel li::marker { color: var(--gold); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 4px var(--sand); }

/* Contact */
.contact-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 8px; }
.contact-list div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-list strong { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }

/* Placeholder for details the business still has to supply (remove the class once filled in) */
.todo { background: #fff3c4; color: #6b4e00; border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* Footer */
.site-footer { background: #0b2036; color: rgba(247, 243, 234, 0.78); font-size: 0.9rem; padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer img { height: 48px; width: auto; }
.site-footer a { color: var(--sand); }
.site-footer p { margin: 0.25em 0; }

/* Privacy policy page */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 1.4em; }
.doc .meta { color: var(--slate); margin-bottom: 2em; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.toc { background: var(--sand); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 2em; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.callout { border-left: 4px solid var(--gold); background: var(--sand); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.2em 0; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .split { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  section { padding: 60px 0; }
  .hero .wrap { padding-top: 60px; padding-bottom: 70px; }
}
@media (max-width: 420px) {
  .site-header .logo img { height: 44px; }
  .hero .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
