/* ============================================================
   THE YONG REAL ESTATE GROUP — design tokens
   Editorial / architectural / luxury minimal, gold-on-ivory,
   derived from the brand mark (gold gradient monogram on ivory).
   ============================================================ */

:root {
  --bg: #FAF7EF;
  --bg-alt: #F2ECDC;
  --ink: #18150F;
  --ink-soft: #52493A;
  --ink-faint: #8A7F68;
  --gold: #A9812E;
  --gold-light: #CBA455;
  --gold-dark: #7C5D1E;
  --line: #E3D9BC;
  --card: #FFFFFF;
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .9em;
  font-weight: 500;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 34px;
  font-family: var(--font-body);
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold-dark));
  color: var(--white);
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .74rem; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 239, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 14px;
}
.logo-link { flex: 0 0 auto; }
.logo-link img { height: 88px; width: auto; max-width: none; display: block; }
@media (max-width: 980px) { .logo-link img { height: 64px; } }
nav.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
nav.main-nav .nav-item { position: relative; }
nav.main-nav > .nav-item > a {
  display: block;
  padding: 10px 9px;
  font-size: .74rem;
  white-space: nowrap;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
nav.main-nav > .nav-item > a:hover { color: var(--gold-dark); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(24,21,15,.10);
  padding: 10px 0;
  display: none;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: .82rem;
  color: var(--ink-soft);
}
.dropdown a:hover { color: var(--gold-dark); background: var(--bg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 6px; font-size: .72rem; letter-spacing: .06em; color: var(--ink-faint); }
.lang-switch a { cursor: pointer; }
.lang-switch a.active { color: var(--gold-dark); font-weight: 600; }

.site-header .container { max-width: 1440px; padding: 0 20px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }
@media (max-width: 1280px) and (min-width: 981px) {
  nav.main-nav > .nav-item > a { padding: 10px 6px; letter-spacing: .03em; }
  .header-actions .btn-outline { display: none; }
}
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .header-row { flex-wrap: wrap; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions .btn-outline, .header-actions .lang-switch { display: none; }
  nav.main-nav { display: none; order: 10; flex: 0 0 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 6px 0 12px; border-top: 1px solid var(--line); }
  nav.main-nav.open { display: flex; }
  nav.main-nav > .nav-item > a { padding: 13px 4px; font-size: .84rem; border-bottom: 1px solid var(--line); }
  nav.main-nav .dropdown { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: linear-gradient(180deg, rgba(20,17,12,.35), rgba(15,13,9,.82)), var(--ink);
  background-size: cover;
  background-position: center;
}
.hero-inner { padding: 90px 0 64px; width: 100%; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero .lede { color: rgba(255,255,255,.86); }
.hero-ctas { display: flex; gap: 14px; margin: 34px 0 40px; flex-wrap: wrap; }

.search-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  gap: 8px;
  max-width: 780px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  flex-wrap: wrap;
}
.search-bar select, .search-bar input {
  border: none;
  background: var(--bg);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--ink);
  flex: 1;
  min-width: 130px;
}
.search-bar button { flex: 0 0 auto; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--ink); color: var(--white); }
section.dark h2, section.dark .eyebrow { color: var(--white); }
section.dark p { color: rgba(255,255,255,.72); }
.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(24,21,15,.10); }
.card-media { aspect-ratio: 4/3; background: var(--bg-alt) center/cover no-repeat; position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink); color: var(--white);
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px;
}
.card-body { padding: 22px 22px 24px; }
.card-body .price { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 4px; }
.card-body .addr { font-size: .92rem; color: var(--ink-soft); margin-bottom: 10px; }
.card-body .meta { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-faint); }

/* Big feature cards (Buy/Sell/Invest) */
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 46px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card .num { font-family: var(--font-display); font-size: 1rem; color: var(--gold); letter-spacing: .1em; }

/* Advantage tiles */
.advantage-tile { padding: 8px 0; border-top: 1px solid var(--line); padding-top: 26px; }
.advantage-tile h3 { font-size: 1.2rem; margin-bottom: .3em; }

/* Community / agent / listing pills */
.pill { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 6px 6px 0; }

/* Testimonials */
.testimonial { border-left: 2px solid var(--gold); padding-left: 24px; }
.testimonial p.quote { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-style: italic; }
.testimonial .who { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.step .step-num {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--gold);
  min-width: 52px;
}

/* Forms */
form.styled { display: grid; gap: 16px; }
form.styled .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { form.styled .row { grid-template-columns: 1fr; } }
form.styled label { display: block; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
form.styled input, form.styled select, form.styled textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: .94rem;
  color: var(--ink);
}
form.styled textarea { min-height: 120px; resize: vertical; }
form.styled input:focus, form.styled select:focus, form.styled textarea:focus {
  outline: 2px solid var(--gold-light);
  outline-offset: 1px;
}
.intent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 620px) { .intent-grid { grid-template-columns: repeat(2, 1fr); } }
.intent-option { border: 1px solid var(--line); padding: 16px; text-align: center; cursor: pointer; font-size: .82rem; letter-spacing: .04em; }
.intent-option input { display: none; }
.intent-option.active, .intent-option:has(input:checked) { border-color: var(--gold); background: var(--bg-alt); color: var(--gold-dark); font-weight: 600; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.72); margin: 0 auto 30px; max-width: 560px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 70px 0 26px; }
footer.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: 18px; }
footer.site-footer a { color: rgba(255,255,255,.68); font-size: .88rem; }
footer.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-logo img { height: 120px; width: auto; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 50px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: .76rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 10px;
}
.powered a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); }
.powered a:hover { color: var(--gold-light); }
.powered img { height: 30px; width: auto; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Breadcrumb / page header ---------- */
.page-header { padding: 60px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .76rem; color: var(--ink-faint); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-dark); }

/* Property detail */
.gallery-main { aspect-ratio: 16/9; background: var(--bg-alt) center/cover no-repeat; margin-bottom: 8px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-row { display: flex; gap: 34px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.spec-row .spec b { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.spec-row .spec span { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* Agent profile */
.agent-photo { aspect-ratio: 3/4; background: var(--bg-alt) center/cover no-repeat; overflow: hidden; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Misc */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-status { display:inline-block; font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; padding:4px 10px; background: var(--gold); color:#fff; }
.empty-state { text-align:center; padding: 60px 20px; color: var(--ink-faint); }
.flash { padding: 12px 18px; margin-bottom: 16px; font-size: .88rem; }
.flash.success { background: #eef6ea; color: #33632c; border: 1px solid #cfe8c4; }
.flash.error { background: #fbeaea; color: #8a2b2b; border: 1px solid #f1c6c6; }

/* Admin */
.admin-body { background: #F4F2EC; font-family: var(--font-body); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--ink); color: rgba(255,255,255,.85); padding: 26px 18px; flex-shrink: 0; }
.admin-sidebar a { display: block; padding: 9px 10px; font-size: .84rem; border-radius: 3px; color: rgba(255,255,255,.72); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar .brand { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin-bottom: 26px; display:block; }
.admin-main { flex: 1; padding: 34px 40px; max-width: 1100px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.admin-table th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 34px; }
.stat-card { background: #fff; border: 1px solid var(--line); padding: 20px; }
.stat-card b { font-family: var(--font-display); font-size: 2rem; display: block; }
.stat-card span { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.login-box { max-width: 380px; margin: 100px auto; background: #fff; padding: 40px; border: 1px solid var(--line); }

/* ---------- Brokerage strip (HomeSmart + awards) ---------- */
.brokerage-strip { background: var(--white, #fff); border-top: 1px solid var(--line); padding: 38px 0 34px; text-align: center; }
.brokerage-note { font-size: .92rem; color: var(--ink); margin: 0 0 22px; letter-spacing: .02em; }
.brokerage-logos { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.brokerage-logos img { height: 110px; width: auto; }
.brokerage-logos img.bl-homesmart { height: 50px; }
@media (max-width: 620px) { .brokerage-logos { gap: 26px; } .brokerage-logos img { height: 74px; } .brokerage-logos img.bl-homesmart { height: 38px; } }
.about-banner { max-width: 1000px; margin: 0 auto 10px; }
.about-banner img { width: 100%; height: auto; display: block; border-radius: var(--radius, 6px); }
.about-awards { display: flex; align-items: center; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 26px; }
.about-awards img { height: 140px; width: auto; }
.about-awards img.bl-homesmart { height: 64px; }

.mobile-only { display: none; }
@media (max-width: 980px) { nav.main-nav .mobile-only { display: block; } nav.main-nav .lang-mobile { display: flex; gap: 18px; padding: 12px 4px 0; } nav.main-nav .lang-mobile a { padding: 0 !important; border: 0 !important; font-size: .8rem !important; } }
.about-banner img { mix-blend-mode: multiply; }

/* ---------- Home hero slideshow ---------- */
.hero-slideshow { overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(15,13,9,.55) 0%, rgba(15,13,9,.18) 65%, rgba(15,13,9,0) 100%), linear-gradient(180deg, rgba(20,17,12,.28), rgba(15,13,9,.84)); }
.hero-slideshow h1, .hero-slideshow .lede, .hero-slideshow .eyebrow { text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-slideshow .hero-inner { position: relative; z-index: 3; }
.hero-controls { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero-arrow { pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(20,17,12,.4); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; position: relative; }
.hero-arrow::before { content: ""; position: absolute; inset: -6px; }
.hero-arrow:hover { background: rgba(20,17,12,.7); }
.hero-dots { pointer-events: auto; position: absolute; right: 28px; bottom: 22px; display: flex; align-items: center; gap: 12px; }
.hero-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85); background: transparent; padding: 0; cursor: pointer; position: relative; }
.hero-dot::before { content: ""; position: absolute; inset: -12px; }  /* bigger touch target */
.hero-dot.is-active { background: #D8B565; border-color: #D8B565; }
.hero-pause { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(20,17,12,.4); color: #fff; font-size: .6rem; cursor: pointer; padding: 0; margin-left: 6px; letter-spacing: -1px; }
@media (max-width: 700px) {
  .hero-dots { right: 50%; transform: translateX(50%); bottom: 14px; }
  .hero-slideshow .hero-inner { padding-bottom: 62px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero-slideshow .hero-inner { padding-left: 32px; padding-right: 32px; }
@media (max-width: 700px) { .hero-slideshow .hero-inner { padding-left: 20px; padding-right: 20px; } }
.check-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 600; }
.agent-bio p { max-width: 62ch; }
@media (max-width: 800px) { .agent-detail-grid { grid-template-columns: 1fr !important; gap: 28px !important; } .agent-detail-grid .agent-photo { max-width: 340px; } }
@media (max-width: 1480px) and (min-width: 981px) { nav.main-nav > .nav-item > a { padding: 10px 7px; letter-spacing: .04em; } .header-actions { gap: 8px; } }

/* ---------- Page intro (text + image) ---------- */
.page-intro { padding: 70px 0 56px; }
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.intro-text p { margin: 0 0 16px; max-width: 62ch; }
.intro-media img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(20,17,12,.14); }
@media (max-width: 860px) { .page-intro { padding: 44px 0 36px; } .intro-grid { grid-template-columns: 1fr; gap: 28px; } .intro-media { order: -1; } }

/* ---------- Team page ---------- */
.page-header.centered .container { text-align: center; }
.page-header.centered .lede { margin-left: auto; margin-right: auto; }
.team-intro { padding: 56px 0 10px; }
.team-intro .container { max-width: 780px; text-align: center; }
.team-intro p { font-size: 1.05rem; }
.team-profile { padding: 76px 0; }
.team-profile + .team-profile { border-top: 1px solid var(--line); }
.team-profile:nth-of-type(even) { background: var(--bg-alt); }
.profile-grid { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 72px; align-items: center; max-width: 1180px; }
.team-profile.reverse .profile-grid { grid-template-columns: 7fr minmax(300px, 5fr); }
.team-profile.reverse .profile-photo { order: 2; }
.profile-photo img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; object-position: top center; display: block; border-radius: var(--radius); box-shadow: 0 24px 54px rgba(20,17,12,.18); background: #fff; }
.profile-body p { max-width: 64ch; }
.profile-meta { color: var(--ink-faint); font-size: .9rem; }
.profile-pills { margin: 12px 0 18px; }
.profile-h3 { font-size: 1.2rem; margin: 22px 0 10px; }
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.lender-box { display: flex; gap: 22px; align-items: center; margin-top: 28px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-width: 560px; }
.lender-qr { text-align: center; flex: 0 0 auto; }
.lender-qr img { width: 130px; height: 130px; display: block; border: 1px solid var(--line); background: #fff; }
.lender-qr span { display: block; margin-top: 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.lender-info { display: flex; flex-direction: column; gap: 3px; font-size: .88rem; color: var(--ink-soft); }
.lender-info strong { color: var(--ink); font-size: 1rem; }
.lender-info a { color: var(--gold-dark); }
.team-cta { padding: 76px 0; background: var(--ink); color: #fff; }
.team-cta h2 { color: #fff; }
.team-cta p { color: rgba(255,255,255,.75); }
@media (max-width: 900px) {
  .team-profile { padding: 48px 0; }
  .profile-grid, .team-profile.reverse .profile-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-profile.reverse .profile-photo { order: 0; }
  .profile-photo { max-width: 440px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) { .lender-box { flex-direction: column; text-align: center; } .lender-info { align-items: center; } .profile-actions .btn { width: 100%; text-align: center; } }

/* ---------- Team page ---------- */
.team-header { text-align: center; }
.team-header .container { display: flex; flex-direction: column; align-items: center; }
.team-header .lede { max-width: 640px; }
.team-intro { padding: 56px 0 30px; text-align: center; }
.team-intro .container { max-width: 800px; }
.team-intro p { font-size: 1.05rem; margin: 0; }
.team-profile { padding: 70px 0; }
.team-grid { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 64px; align-items: start; max-width: 1180px; }
.team-grid.flip { grid-template-columns: 1fr minmax(300px, 460px); }
.team-grid.flip .team-photo { order: 2; }
.team-photo img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; object-position: top center; display: block; border-radius: var(--radius); box-shadow: 0 22px 48px rgba(20,17,12,.16); background: var(--white); }
.team-text h2, .team-text h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 6px; }
.team-text h3 { margin: 22px 0 10px; font-size: 1.15rem; }
.agent-title { font-size: 1.1rem; color: var(--gold-dark); letter-spacing: .04em; margin: 0 0 6px; }
.agent-meta { color: var(--ink-faint); font-size: .88rem; margin: 0 0 10px; }
.agent-pills { margin: 12px 0 16px; }
.agent-bio p { max-width: 64ch; margin: 0 0 14px; }
.agent-contact p { margin: 0 0 6px; }
.agent-cta { margin-top: 24px; }
.apply-card { display: flex; align-items: center; gap: 22px; margin: 26px 0 6px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); max-width: 520px; box-shadow: 0 10px 28px rgba(20,17,12,.07); }
.apply-card img { width: 156px; height: 156px; flex: 0 0 auto; display: block; }
.apply-card strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.apply-card p { margin: 6px 0 14px; font-size: .92rem; color: var(--ink-soft); }
.apply-card .btn { margin-right: 6px; }
@media (max-width: 860px) {
  .team-profile { padding: 44px 0; }
  .team-grid, .team-grid.flip { grid-template-columns: 1fr; gap: 28px; }
  .team-grid.flip .team-photo { order: 0; }
  .team-photo { max-width: 420px; margin: 0 auto; }
  .team-text { text-align: left; }
}
@media (max-width: 520px) { .apply-card { flex-direction: column; text-align: center; } }

/* ---------- Blog posts ---------- */
.post-body p, .post-body li { color: var(--ink-soft); line-height: 1.8; font-size: 1.04rem; }
.post-body p { margin: 0 0 1.3em; }
.post-body h2 { font-size: 1.6rem; margin: 1.8em 0 .5em; padding-bottom: 6px; border-bottom: 2px solid var(--gold); }
.post-body h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.post-body ul, .post-body ol { margin: 0 0 1.4em 1.4em; }
.post-body li { margin-bottom: .5em; }
.post-body .pull-quote { border-left: 4px solid var(--gold); background: var(--white); padding: 18px 24px; margin: 1.8em 0; font-size: 1.15rem; font-style: italic; }
.post-figure { margin: 2em 0; }
.post-figure img { width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: var(--radius); display: block; }
.post-figure figcaption { font-size: .82rem; color: var(--ink-faint); text-align: center; margin-top: 8px; }
.post-cta { margin: 2.5em 0 1.5em; padding: 32px 28px; background: #14110c; color: #fff; text-align: center; border-radius: var(--radius); }
.post-cta h3 { color: var(--gold); margin: 0 0 8px; }
.post-cta p { color: #ddd; margin: 0 0 18px; }
.post-author { padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); font-size: .92rem; }
.post-author p { margin: 6px 0 0; }

/* ---------- Social links ---------- */
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; transition: background .2s, color .2s, border-color .2s; }
.social-links a:hover, .social-links a:focus-visible { background: var(--gold); border-color: var(--gold); color: #14110c; }

/* ---------- Legal notices ---------- */
.legal-notice-bar { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.legal-notice-bar .container { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; align-items: center; font-size: .92rem; }
.legal-notice-bar .legal-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.legal-notice-bar a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal-notice-bar a:hover { color: var(--gold-dark); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 22px 0 6px; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-legal a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--gold); }
