/* =========================================================
   Windy Bailey — Real Estate Educator
   Palette drawn from the Colorado flag in her speaking photo.
   ========================================================= */
:root {
  --navy: #13294b;
  --navy-deep: #0c1c35;
  --red: #b5222f;
  --red-dark: #951b26;
  --gold: #e3ae35;
  --stone: #f5f2ed;
  --stone-2: #ebe6de;
  --paper: #ffffff;
  --ink: #1a1f29;
  --muted: #545b69;
  --line: #ddd6cb;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --radius: 6px;
}

*, *::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; } * { transition: none !important; } }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; color: var(--navy); text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--sans); text-decoration: none; letter-spacing: .01em;
  padding: 15px 24px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: .925rem; }
.btn-block { width: 100%; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 237, .92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: var(--navy); }
.wordmark-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem; }
.site-nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--stone); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
.eyebrow span { color: var(--line); margin: 0 .4em; }
h1 { margin-bottom: 22px; }
.h1-name { display: block; font-size: clamp(3rem, 7vw, 5.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.h1-tag { display: block; margin-top: 18px; font-size: clamp(1.25rem, 2.3vw, 1.65rem); font-weight: 400; font-style: italic; color: var(--ink); line-height: 1.35; max-width: 30ch; }
.location { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); margin-bottom: 20px; }
.location span[aria-hidden] { color: var(--gold); }
.pin { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(227,174,53,.25); flex: none; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 54ch; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.hero-photo img { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(12,28,53,.45); width: 100%; }

@media (max-width: 960px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { max-width: 440px; margin: 0 auto; width: calc(100% - 24px); }
}
@media (max-width: 520px) {
  .cta-row .btn { width: 100%; }
  .eyebrow { letter-spacing: .1em; }
}

/* ---------- Proof strip ---------- */
.proof { background: var(--navy); color: #fff; }
.proof-list { list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof-list li { display: flex; flex-direction: column; padding-left: 18px; border-left: 2px solid var(--gold); }
.proof-list strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.proof-list span { font-size: .9rem; color: #c6cedc; }
@media (max-width: 860px) { .proof-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .proof-list { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.kicker-light { color: var(--gold); }
.on-dark { color: #fff; }

/* About */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.about-head h2 { position: sticky; top: 110px; }
.about-body p { color: #343a46; }
.about-body p:first-child { font-size: 1.2rem; color: var(--ink); }
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.approach-item { padding: 32px 32px 0 0; }
.approach-item + .approach-item { padding-left: 32px; border-left: 1px solid var(--line); }
.approach-item .num { font-family: var(--serif); font-size: .95rem; color: var(--red); font-weight: 600; }
.approach-item h3 { margin: 6px 0 8px; font-size: 1.55rem; }
.approach-item p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 8px; }
  .about-head h2 { position: static; }
  .approach { grid-template-columns: 1fr; }
  .approach-item, .approach-item + .approach-item { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Services */
.services { background: var(--navy); color: #dfe4ee; position: relative; }
.services::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--navy-deep) 0 33%, var(--gold) 33% 34%, var(--red) 34% 66%, var(--gold) 66% 67%, var(--navy-deep) 67%); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.service-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; border-top: 4px solid var(--red);
}
.service-card p { color: var(--muted); flex: 1; }
.service-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--stone); color: var(--navy); display: grid; place-items: center; margin-bottom: 20px; }
.service-icon svg { width: 26px; height: 26px; }
.status-tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fbf1d8; color: #7a5a10; padding: 5px 10px; border-radius: 99px; margin-bottom: 16px; }
.card-link { font-weight: 600; text-decoration: none; color: var(--red); margin-top: auto; }
.card-link:hover { text-decoration: underline; }
.topics { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.15); }
.topics h3 { font-size: 1.2rem; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { border: 1px solid rgba(255,255,255,.28); border-radius: 99px; padding: 7px 16px; font-size: .95rem; color: #fff; }
@media (max-width: 900px) { .service-grid, .topics { grid-template-columns: 1fr; } .topics { gap: 32px; } }

/* Credentials */
.credentials { background: var(--stone); }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 40px; }
.cred-col h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; color: var(--navy); margin-top: 0; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.cred-col h3:not(:first-child) { margin-top: 40px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 78px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline .yr { font-family: var(--serif); font-weight: 600; color: var(--red); }
.timeline strong { color: var(--navy); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; font-weight: 700; font-size: .9rem; color: var(--navy); letter-spacing: .04em; }
.chip-list abbr { text-decoration: none; cursor: help; }
@media (max-width: 860px) { .cred-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Contact */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-intro h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-intro p:not(.kicker):not(.location) { color: var(--muted); }
.location-dark { color: var(--navy) !important; }
.contact-form { background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .925rem; margin-bottom: 6px; color: var(--navy); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #c9c1b4; border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19,41,75,.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: var(--red); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } .contact-form { padding: 22px 18px; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c2d3; padding: 56px 0 32px; font-size: .95rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-name { font-family: var(--serif); font-size: 1.5rem; color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer-tag { font-style: italic; margin-bottom: 4px; }
.footer-loc { color: var(--gold); margin: 0 0 6px; }
.footer-email a { color: #fff; }
.direct { font-weight: 600; }
.direct a { color: var(--red); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a { color: #fff; text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
.footer-legal { padding-top: 24px; font-size: .8rem; color: #8e99ad; }
.footer-legal p { max-width: 90ch; }

/* Simple page (privacy / thanks) */
.simple-page { padding: 72px 0 96px; background: var(--paper); min-height: 60vh; }
.simple-page .wrap { max-width: 760px; }
.simple-page h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
