/* Nexian Realty — public site. Brand tokens per Nexian family palette. */
:root {
  --nexian-blue: #1E3A8A;
  --nexian-blue-deep: #172E6E;
  --light-blue: #CFE4F3;
  --modern-gold: #D1A054;
  --juniper: #8DA78D;
  --graphite: #333333;
  --white: #FFFFFF;
  --mist: #F3F8FC;           /* light-blue tint for quiet sections */
  --rule: #D7E3EE;
  --muted: #5B6575;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 66ch;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nexian-blue); text-underline-offset: 0.18em; }
a:hover { color: var(--nexian-blue-deep); }
:focus-visible { outline: 3px solid var(--modern-gold); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--white); padding: 8px 12px; }

/* Type scale (1.25 ratio) */
h1, h2, h3 { font-family: var(--serif); color: var(--nexian-blue); font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; line-height: 1.55; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--nexian-blue); padding: 10px 0; }
.brand img { width: 62px; }
.brand span { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 8px 0; }
.nav a { color: var(--graphite); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--nexian-blue); border-bottom-color: var(--modern-gold); }

/* Hero — the one bold moment: Bluegrass contour lines on Nexian Blue */
.hero { position: relative; background: var(--nexian-blue); color: var(--white); overflow: hidden; }
.hero svg.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 9vw, 112px); }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero .lede { color: var(--light-blue); max-width: 54ch; }
.page-hero { background: var(--nexian-blue); color: var(--white); }
.page-hero .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero .lede { color: var(--light-blue); max-width: 58ch; margin-bottom: 0; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; font-weight: 600; font-size: 1rem; text-decoration: none; padding: 13px 22px; border-radius: 4px; border: 2px solid transparent; }
.btn-gold { background: var(--modern-gold); color: #1B1B1B; }
.btn-gold:hover { background: #C38F40; color: #1B1B1B; }
.btn-line { border-color: var(--light-blue); color: var(--white); }
.btn-line:hover { background: rgba(207,228,243,0.12); color: var(--white); }
.btn-blue { background: var(--nexian-blue); color: var(--white); }
.btn-blue:hover { background: var(--nexian-blue-deep); color: var(--white); }
.btn-outline { border-color: var(--nexian-blue); color: var(--nexian-blue); background: var(--white); }
.btn-outline:hover { background: var(--mist); color: var(--nexian-blue-deep); }

/* Sections */
section.band { padding: clamp(48px, 7vw, 88px) 0; }
section.band.tint { background: var(--mist); }
.section-intro { margin-bottom: 36px; }

/* Three paths: plain columns divided by rules, not cards */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--nexian-blue); }
.paths > div { padding: 28px 28px 8px 0; }
.paths > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.paths h3 { margin-bottom: 0.4em; }
.paths .more { font-weight: 600; }

/* Principles list */
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.principles li { max-width: 70ch; padding-left: 20px; border-left: 3px solid var(--juniper); }
.principles strong { display: block; font-family: var(--serif); color: var(--nexian-blue); font-size: 1.1rem; margin-bottom: 2px; }

/* Two-column content */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.aside { background: var(--mist); border-top: 3px solid var(--modern-gold); padding: 24px; }
.aside p:last-child { margin-bottom: 0; }

/* Fee table */
.fees { width: 100%; max-width: 720px; border-collapse: collapse; margin: 8px 0 20px; }
.fees th, .fees td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fees th { font-weight: 600; color: var(--nexian-blue); }
.fees td:last-child { white-space: nowrap; font-weight: 600; }
.figure-big { font-family: var(--serif); color: var(--nexian-blue); font-size: clamp(3rem, 8vw, 5rem); line-height: 1; margin: 0; }

.note { font-size: 0.92rem; color: var(--muted); }
.disclaimer { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 28px; }

/* Contact block */
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.contact-list .label { display: block; font-size: 0.9rem; color: var(--muted); }
.contact-list a { font-weight: 600; font-size: 1.1rem; }

/* Legal pages */
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { background: var(--nexian-blue-deep); color: var(--light-blue); padding: 48px 0 32px; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 32px 48px; align-items: start; }
.footer-grid img { width: 150px; }
.footer-grid p { margin: 0 0 0.5em; }
.footer-nav { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-nav li { margin-bottom: 6px; }
.legal-line { border-top: 1px solid rgba(207,228,243,0.25); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.eho { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.eho svg { width: 30px; height: 30px; flex: none; }

@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .paths > div, .paths > div + div { padding: 24px 0 8px; border-left: 0; }
  .paths > div + div { border-top: 1px solid var(--rule); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand span { font-size: 1.05rem; }
  .nav { gap: 2px 16px; }
  .btn { width: 100%; text-align: center; }
  .fees td:last-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .site-header .nav, .hero svg, .actions { display: none; } }

/* FAQ — answer-first Q&A (visible copy must match FAQPage schema) */
.faq .faq-item { max-width: 72ch; padding: 18px 0; border-top: 1px solid var(--rule); }
.faq .faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq h3 { font-size: 1.12rem; margin-bottom: 0.35em; }
.faq p { margin: 0; }
