@import url("../assets/fonts/fonts.css");

:root {
  --paper: #f3eee4;
  --paper-2: #e9e1d2;
  --paper-3: #fffdf8;
  --ink: #221e1a;
  --navy: #1c2c44;
  --navy-deep: #152033;
  --suit: #3a5f96;
  --copper: #a65d3c;
  --copper-soft: #c4815e;
  --brass: #9a7b4f;
  --text: #2c2824;
  --text-soft: #5a534a;
  --text-mute: #7a7268;
  --line: rgba(34, 30, 26, 0.12);
  --line-strong: rgba(34, 30, 26, 0.2);
  --card: #fffcf7;
  --footer: #171b22;
  --footer-text: #c9c3b8;
  --header-h: 6.35rem;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 36px rgba(60, 40, 20, 0.08);
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--suit);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

img, svg { max-width: 100%; display: block; }

a { color: var(--copper); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  height: auto;
  background: rgba(243, 238, 228, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  border-top: 3px solid var(--copper);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 238, 228, 0.96);
}

.header-inner {
  min-height: var(--header-h);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-block: 0;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.15rem;
  padding-block: 0.35rem;
}
.header-lockup {
  border-top: 1px solid var(--line);
  padding: 0.32rem 0 0.4rem;
}
.header-lockup p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.header-lockup a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
.header-lockup a:hover { color: var(--copper); }


.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand:hover { color: var(--navy); }

.brand-mark {
  width: 1.85rem;
  height: 2.55rem;
  flex: 0 0 auto;
  color: var(--navy);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.brand-name {
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
}
.brand-powered {
  margin-top: 0.18rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--navy);
  max-width: none;
}
.brand-powered a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
.brand-powered a:hover { color: var(--copper); }
.brand-sub {
  margin-top: 0.22rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

.nav-panel { display: flex; align-items: center; gap: 1.5rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--navy); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}
.header-actions .btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--navy);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-copper {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}
.btn-copper:hover { background: #8f4e32; border-color: #8f4e32; color: #fff; }
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--suit); border-color: var(--suit); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(28, 44, 68, 0.05); color: var(--navy); border-color: var(--navy); }
.btn-lg { min-height: 3.15rem; padding: 0.85rem 1.5rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 6vw, 5.2rem) 0 clamp(3.2rem, 7vw, 5.5rem);
}
.hero::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -18%;
  width: min(58vw, 680px);
  height: min(72vw, 800px);
  background: url("../assets/logo-mark.svg") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
  filter: invert(0);
}

.hero-inner { position: relative; z-index: 1; max-width: 46rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 6.4vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1.1rem;
}

.suite-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
}
.suite-line li { display: inline-flex; align-items: center; gap: 0.15rem; }
.suite-line li:not(:last-child)::after {
  content: "·";
  margin: 0 0.55rem;
  color: var(--brass);
  font-weight: 400;
}
.suite-line a { color: inherit; text-decoration: none; }
.suite-line a:hover { color: var(--copper); }
.badge-soon {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--copper-soft);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--copper);
  text-transform: uppercase;
  vertical-align: middle;
}

.lead-hero {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  max-width: 40rem;
}
.lead-hero strong { color: var(--ink); font-weight: 550; }

.hero-note {
  margin: 0 0 1.7rem;
  color: var(--text-soft);
  max-width: 38rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hero-meta {
  margin-top: 1.35rem;
  color: var(--text-mute);
  font-size: 0.92rem;
}
.hero-meta a { color: var(--text-soft); text-decoration: none; }
.hero-meta a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Sections ---------- */
section.band { padding: clamp(3.4rem, 7.5vw, 5.6rem) 0; }
section.band + section.band { border-top: 1px solid var(--line); }
.band-warm { background: var(--paper-2); }
.band-card { background: var(--paper-3); }

.section-head { max-width: 40rem; margin-bottom: 2.3rem; }
.section-head h2,
.split h2,
.page-head h1,
.contact-copy h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.05rem, 3.8vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.lead { margin: 0; color: var(--text-soft); font-size: 1.08rem; }

/* ---------- Journey ---------- */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.journey-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.journey-col h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 550;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.journey-intro {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}
.journey-steps { list-style: none; margin: 0; padding: 0; }
.journey-steps li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.journey-steps li:first-child { border-top: 0; padding-top: 0; }
.step-index {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--copper);
  line-height: 1.15;
  font-weight: 500;
}
.journey-steps h4 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 560;
  color: var(--ink);
}
.journey-steps p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.service-tag {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}

.journey-foot {
  margin: 1.5rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 46rem;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
  position: relative;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 550;
  color: var(--navy);
  margin: 0 0 0.55rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-card p { margin: 0 0 1.15rem; color: var(--text-soft); flex: 1; }
.service-card .card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-card.is-soon { background: #f7f2ea; }

.affil-note {
  margin-top: 1.6rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--brass);
  color: var(--text-soft);
  font-size: 0.92rem;
  background: rgba(255, 253, 248, 0.55);
}

/* ---------- Loans ---------- */
.tablist {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0 1.5rem 0.5rem 0;
  margin: 0 0 1.25rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.tablist [role="tab"] {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}
.tablist [role="tab"][aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.loan-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 550;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.loan-panel > p { margin: 0 0 1.1rem; color: var(--text-soft); }

.loan-panel[hidden] { display: block; }
.js .loan-panel[hidden] { display: none !important; }

.loan-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.loan-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
}
.loan-item h4 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--ink); }
.loan-item p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }

.loan-disclaimer {
  margin-top: 1.4rem;
  color: var(--text-mute);
  font-size: 0.9rem;
}

/* ---------- Team leader ---------- */
.leader {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
  max-width: 52rem;
}
.leader-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ddd4c6;
}
.leader-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 16%;
  filter: saturate(0.94) contrast(1.03) sepia(0.08);
}
.leader-photo figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--text-mute);
  padding: 0.45rem 0.5rem 0.55rem;
  background: var(--paper-3);
  line-height: 1.35;
}
.leader-copy h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  color: var(--navy);
  margin: 0 0 0.65rem;
}
.leader-copy p { margin: 0 0 0.75rem; color: var(--text-soft); }
.leader-copy p:last-child { margin-bottom: 0; }

/* ---------- Reviews / partners / contact ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.panel h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 550;
  color: var(--navy);
  margin: 0 0 0.65rem;
}
.panel p { color: var(--text-soft); margin: 0 0 1.1rem; }
.panel p:last-child { margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.office-card {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.map-frame {
  position: relative;
  height: 240px;
  background: #e4ddd0;
}
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--text-soft);
  background: radial-gradient(circle at 50% 42%, rgba(166, 93, 60, 0.16), transparent 55%), #e4ddd0;
  z-index: 0;
}
.map-fallback:hover { color: var(--navy); }
.map-fallback strong { color: var(--navy); font-weight: 560; }
.map-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}
.map-frame iframe.is-loaded { pointer-events: auto; opacity: 1; }

.office-details { padding: 1.15rem 1.2rem 1.3rem; }
.office-details h3 { margin: 0 0 0.4rem; font-size: 1.15rem; color: var(--navy); }
.office-details p,
.office-details address {
  margin: 0 0 0.35rem;
  font-style: normal;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1rem; }
.form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}
.form .req { color: var(--copper); }
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  appearance: none;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--suit);
  box-shadow: 0 0 0 3px rgba(58, 95, 150, 0.2);
}
.form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M4 6l4 4 4-4' stroke='%235a534a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}
.form-note, .form-status { margin: 0.85rem 0 0; font-size: 0.88rem; color: var(--text-mute); }
.form-status { color: var(--navy); }
.form .btn { width: 100%; margin-top: 0.4rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.social-bar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.25rem; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.88rem;
  background: var(--card);
}
.social-pill:hover { color: var(--navy); border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  font-size: 0.92rem;
  padding: 2.5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .brand { color: #f3eee4; margin-bottom: 0.8rem; }
.site-footer .brand-mark { color: #f3eee4; }
.site-footer .brand-sub { color: #9a948a; }
.footer-legal p, .footer-legal li, .footer-brand > p { margin: 0 0 0.4rem; }
.footer-legal a, .site-footer a { color: #e8d7c0; }
.footer-legal a:hover, .site-footer a:hover { color: #fff; }
.eho {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0 0.4rem;
  color: #f3eee4;
}
.eho svg { width: 2.1rem; height: 2.1rem; flex: 0 0 auto; }
.eho span {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.tx-notice {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 238, 228, 0.12);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #9a948a;
  text-wrap: pretty;
}
.tx-notice .notice-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9c3b8;
}
.tx-notice a { color: #c9c3b8; }
.disclaimers { margin-top: 1rem; font-size: 0.8rem; color: #9a948a; }
.disclaimers p { margin: 0 0 0.5rem; }

/* Interior */
.page-main { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-head { max-width: 42rem; margin-bottom: 2rem; }
.prose { max-width: 42rem; }
.prose h2 {
  font-family: var(--font-serif);
  font-weight: 550;
  font-size: 1.7rem;
  color: var(--navy);
  margin: 2rem 0 0.6rem;
}
.prose p, .prose li { color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .journey-grid,
  .service-grid,
  .loan-list,
  .split,
  .contact-grid,
  .qa-grid,
  .footer-top { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 8.5rem 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(243, 238, 228, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0 1.25rem;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }
  .nav-panel.is-open { display: flex; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: 0.25rem var(--pad) 0.75rem;
    gap: 0;
  }
  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
  }
  .header-actions .btn-hide-mobile { display: none; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas .btn-ghost {
    width: calc(50% - 0.35rem);
    flex: 1 1 calc(50% - 0.35rem);
    font-size: 0.86rem;
    padding-inline: 0.55rem;
  }
  .brand-sub { display: none; }
  /* Keep the Team USA lockup visible on small screens (7 TAC 56.203(f)(2)). */
  .leader { grid-template-columns: 1fr; max-width: 22rem; }
  .leader-photo { max-width: 14rem; }
  .header-actions { gap: 0.4rem; }
  .header-actions .btn-navy {
    font-size: 0.82rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.8rem;
  }
  .tx-notice { font-size: 0.75rem; }
  .loan-list { grid-template-columns: 1fr; }
}

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

/* ---------- Areas, referrals, highlights ---------- */
.areas-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}
.areas-bar li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: var(--card);
}
.areas-note {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  color: var(--text-mute);
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: start;
}
.feature-list {
  list-style: none;
  margin: 1.1rem 0 1.3rem;
  padding: 0;
}
.feature-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}
.feature-list li:first-child { border-top: 0; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--copper);
}
.feature-list strong { color: var(--ink); font-weight: 560; }

.referral-strip {
  background: var(--navy);
  color: #f3eee4;
  padding: clamp(1.6rem, 4vw, 2.2rem) 0;
}
.referral-strip .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
}
.referral-strip h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.4rem;
  color: #f3eee4;
}
.referral-strip p { margin: 0; color: #c9c3b8; max-width: 40rem; }
.referral-strip .btn-copper { justify-self: end; }

/* ---------- Calculator ---------- */
.example-homes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}
.example-home {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-sans);
  color: inherit;
  box-shadow: var(--shadow);
  width: 100%;
}
.example-home:hover,
.example-home:focus-visible {
  border-color: var(--copper);
}
.example-home .kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.35rem;
}
.example-home h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--navy);
  font-weight: 550;
}
.example-home p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}
.calc-box,
.calc-result {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.7rem);
  box-shadow: var(--shadow);
}
.calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.9rem;
}
.calc-fields .span-2 { grid-column: 1 / -1; }
.calc-box label {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}
.calc-box input,
.calc-box select {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
}
.calc-box input:focus,
.calc-box select:focus {
  outline: none;
  border-color: var(--suit);
  box-shadow: 0 0 0 3px rgba(58, 95, 150, 0.2);
}
.rate-help {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--copper);
}
.calc-result h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 0.8rem;
}
.calc-lines { list-style: none; margin: 0; padding: 0; }
.calc-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}
.calc-lines li:first-child { border-top: 0; padding-top: 0; }
.calc-lines .total {
  font-weight: 650;
  color: var(--navy);
  font-size: 1.15rem;
  border-top: 2px solid var(--line-strong);
  margin-top: 0.35rem;
  padding-top: 0.7rem;
}
.calc-empty { color: var(--text-mute); margin: 0; }
.calc-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-mute);
  line-height: 1.55;
}
.payments-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.1rem;
  align-items: start;
}
.team-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ddd4c6;
}
.team-photo img,
.team-photo .photo-ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 16%;
  display: grid;
  place-items: center;
  filter: saturate(0.94) contrast(1.03) sepia(0.08);
}
.team-photo .photo-ph {
  filter: none;
  background: #e4ddd0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
}
.team-photo figcaption {
  font-size: 0.7rem;
  color: var(--text-mute);
  padding: 0.4rem 0.45rem 0.5rem;
  line-height: 1.35;
  background: var(--paper-3);
}
.team-card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--navy);
  margin: 0 0 0.15rem;
}
.team-role {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
}
.team-card p { margin: 0 0 0.55rem; color: var(--text-soft); font-size: 0.95rem; }
.team-card p:last-child { margin-bottom: 0; }
.todo-note { font-size: 0.82rem; color: var(--text-mute); font-style: italic; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 960px) {
  .highlight-grid,
  .example-homes,
  .calc-grid,
  .team-grid,
  .reviews-grid,
  .referral-strip .wrap,
  .calc-fields { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 7rem 1fr; }
  .referral-strip .btn-copper { justify-self: start; }
}
@media (max-width: 640px) {
  .example-homes { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; max-width: 22rem; }
  .team-photo { max-width: 10rem; }
}

/* Team photos: Ashly's current file is 200×200 — keep it small and circular. */
.team-photo.is-round {
  border-radius: 50%;
  width: 6.5rem;
  height: 6.5rem;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.team-photo.is-round img,
.team-photo.is-round .photo-ph {
  width: 6.5rem;
  height: 6.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  filter: none;
}
.team-photo.is-round figcaption { display: none; }
.brokerage-line {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 550;
}
.brokerage-line span { font-weight: 400; color: var(--text-soft); }

/* TREC-required homepage links: at least 10-point font, readily noticeable. */
.re-notices {
  margin-top: 1.6rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(243, 238, 228, 0.16);
}
.re-notices h3 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3eee4;
  font-weight: 600;
}
.re-notices p { margin: 0 0 0.45rem; color: #c9c3b8; font-size: 0.9rem; }
.re-notices a.trec-link {
  font-size: 10pt;
  line-height: 1.5;
  color: #f3eee4;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  display: inline-block;
  margin: 0.15rem 1.1rem 0.15rem 0;
}
.re-notices a.trec-link:hover { color: #fff; }


/* ---------- Contact / partners / reviews aliases used by the current markup ---------- */
.band-navy {
  background: var(--navy-deep);
  color: #f3eee4;
  border-top: 0 !important;
}
.band-navy .eyebrow { color: var(--copper-soft); }
.band-navy h2,
.band-navy .section-head h2,
.contact-grid h2 {
  color: #f3eee4;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.05rem, 3.8vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.band-navy .lead { color: #c9c3b8; }
.band-navy a:not(.btn) { color: #e8d7c0; }
.band-navy a:not(.btn):hover { color: #fff; }
.band-navy .btn-ghost {
  color: #f3eee4;
  border-color: rgba(243, 238, 228, 0.35);
  background: transparent;
}
.band-navy .btn-ghost:hover {
  background: rgba(243, 238, 228, 0.1);
  color: #fff;
  border-color: #f3eee4;
}
.band-navy .social-pill {
  background: transparent;
  border-color: rgba(243, 238, 228, 0.28);
  color: #e8d7c0;
}
.band-navy .social-pill:hover {
  color: #fff;
  border-color: #f3eee4;
}
.band-navy .office {
  font-style: normal;
  margin: 1.25rem 0 0.5rem;
  color: #c9c3b8;
}
.contact-actions,
.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
}
.review-cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
}
.review-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 550;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.review-cta p { margin: 0 0 1.1rem; color: var(--text-soft); }
.review-cta .card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.team-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0 !important;
}
.team-contact a { font-size: 0.92rem; }
.highlight-grid .hero-ctas { margin-top: 1.1rem; }
.panel .btn { margin-top: 0.4rem; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(243, 238, 228, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0 1.25rem;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }
  .nav-panel.is-open { display: flex; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: 0.25rem var(--pad) 0.75rem;
    gap: 0;
  }
  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
  }
  .header-actions .btn-hide-mobile { display: none; }
  body.nav-open { overflow: hidden; }
}

@media (min-width: 1181px) {
  .nav-links { gap: 0.15rem 0.72rem; }
  .nav-links a { font-size: 0.84rem; }
}


/* Layout fixes after visual review */
.loan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.loan-item {
  flex: 1 1 calc(50% - 0.45rem);
  max-width: calc(50% - 0.425rem);
  box-sizing: border-box;
}
.social-bar {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.team-photo {
  width: 7.5rem;
  max-width: 7.5rem;
  height: 7.5rem;
  align-self: start;
  justify-self: start;
}
.team-photo img,
.team-photo .photo-ph {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 16%;
}
.team-photo.is-round,
.team-photo.is-round img,
.team-photo.is-round .photo-ph {
  width: 6.5rem;
  height: 6.5rem;
  max-width: 6.5rem;
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-ctas .btn { width: 100%; flex: 1 1 100%; }
  .hero-ctas .btn-ghost {
    width: calc(50% - 0.35rem);
    max-width: calc(50% - 0.35rem);
    flex: 1 1 calc(50% - 0.35rem);
    font-size: 0.86rem;
    padding-inline: 0.55rem;
  }
  .loan-item { flex: 1 1 100%; max-width: 100%; }
  .team-card { grid-template-columns: 1fr; max-width: none; }
  .team-photo { margin-bottom: 0.15rem; }
  .calc-box input,
  .calc-box select { font-size: 16px; } /* avoid iOS zoom; placeholders fit better */
}

@media (max-width: 960px) {
  .loan-item { flex-basis: 100%; max-width: 100%; }
}

.loan-list { justify-content: center; }
.map-frame:has(iframe.is-loaded) .map-fallback {
  opacity: 0;
  pointer-events: none;
}
.map-underlink {
  margin: 0;
  padding: 0.65rem 0.9rem 0.8rem;
  background: var(--card);
  text-align: center;
  font-size: 0.88rem;
}
.band-navy .map-underlink { background: #1a2230; }
.band-navy .map-underlink a { color: #e8d7c0; }

.band-navy .office-card {
  background: #1a2230;
  border-color: rgba(243, 238, 228, 0.16);
}


/* ---------- Multi-page suite ---------- */
.nav-links a[aria-current="page"] {
  color: var(--navy);
  font-weight: 560;
}
.nav-links .badge-soon {
  margin-left: 0.25rem;
  vertical-align: middle;
}
.page-hero {
  padding: clamp(2.4rem, 5.5vw, 4.4rem) 0 clamp(2.2rem, 4vw, 3.2rem);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.powered-by {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  color: var(--navy);
  font-weight: 550;
}
a.service-tag {
  text-decoration: none;
  color: var(--navy);
}
a.service-tag:hover {
  color: var(--copper);
  text-decoration: underline;
}
.team-grid.is-single {
  grid-template-columns: 1fr;
  max-width: 44rem;
}

.site-footer .brand-name,
.site-footer .brand-powered { color: #f3eee4; }
.site-footer .brand-powered a { color: #e8d7c0; }
.site-footer .brand-powered a:hover { color: #fff; }
.site-footer .brand-powered { max-width: 22rem; }

/* Real estate team name and Fathom Realty at equal prominence */
.re-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin: 0 0 1rem;
}
.re-lockup .re-team,
.re-lockup .re-broker {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.15rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  display: block;
}
.re-lockup .re-join {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
}
.re-lockup.is-card {
  margin: 0 0 0.65rem;
}
.re-lockup.is-card .re-team,
.re-lockup.is-card .re-broker {
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}
.nmls-line {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 550;
}
.license-note {
  margin: 1.15rem 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.form-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1rem 0 0.35rem;
}
.form input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  min-width: 1.15rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--navy);
  box-shadow: none;
  padding: 0;
}
.form-consent label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 640px) {
  .brand-name { font-size: 0.74rem; letter-spacing: 0.12em; }
  .header-lockup p { font-size: 0.74rem; }
}

/* ---------- Q&A ---------- */
#qa,
#contact {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
.qa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.qa-form-title {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  color: var(--navy);
}
.qa-form-lead {
  margin: 0 0 1.1rem;
  color: var(--text-soft);
}
.form .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-mute);
}
.qa-list {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line-strong);
}
.qa-item {
  border-bottom: 1px solid var(--line-strong);
  padding: 0;
}
.qa-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(45deg);
  translate: 0 -0.12rem;
  transition: transform 0.15s ease;
}
.qa-item[open] summary::after {
  transform: rotate(225deg);
  translate: 0 0.15rem;
}
.qa-item summary:focus-visible {
  outline: 2px solid var(--suit);
  outline-offset: 3px;
}
.qa-answer {
  padding: 0 0 1.05rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.qa-answer p { margin: 0 0 0.7rem; }
.qa-answer p:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
  .qa-grid { grid-template-columns: 1fr; }
}
