/* San Jose Realtor Rankings (2026 directory)
   Style modeled on modash.io/find-influencers: Inter body text, a heavy
   condensed uppercase display face (Anton stands in for Modash's Mo Sans),
   near-black ink on white, light-grey rounded containers holding white
   rounded cards and stat tiles, a pink accent block and a dark rounded footer. */

:root {
  --ink: #141414;
  --text: #09090B;
  --body: #333333;
  --muted: #71717A;
  --faint: #A1A1AA;
  --white: #FFFFFF;
  --grey: #F4F4F5;
  --grey-2: #EEEEF0;
  --line: #E4E4E7;
  --line-strong: #D4D4D8;
  --pink: #FFA3D1;
  --pink-light: #FFDBED;
  --lavender: #C08CF2;
  --orange: #FF521A;
  --star: #141414;

  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;

  --page: 1136px;
  --margin: 24px;
  --r-block: 20px;
  --r-card: 16px;
  --r-tile: 12px;
  --r-btn: 12px;
  --header-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

[id] { scroll-margin-top: calc(var(--header-h) + 48px); }

/* ── Type ── */
h1, .display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0;
}
h1 { font-size: 72px; line-height: 0.9; text-align: center; max-width: 1000px; margin: 0 auto; }
h2 { font-family: var(--f-body); font-weight: 600; font-size: 32px; line-height: 40px; letter-spacing: -0.5px; color: var(--text); }
h3 { font-family: var(--f-body); font-weight: 600; font-size: 24px; line-height: 32px; color: var(--text); }
h2.display { font-size: 48px; line-height: 0.95; }

.body-lg { font-size: 18px; line-height: 28px; }
.body-sm { font-size: 14px; line-height: 22px; }
.muted { color: var(--muted); }

p a, .textlink {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
p a:hover, .textlink:hover { color: var(--ink); text-decoration-thickness: 2px; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--margin);
}
.container-wide { max-width: 1408px; }

.block {
  background: var(--grey);
  border-radius: var(--r-block);
  padding: 40px;
}
.section { padding: 48px 0 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: var(--r-btn);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: #2a2a2a; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 8px; }
.btn-secondary { background: var(--grey-2); color: var(--ink); }
.btn-secondary:hover { background: var(--line); }
.btn-pink { background: var(--pink); color: var(--ink); }
.btn-pink:hover { background: #ff8fc6; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.header-actions .btn .short { display: none; }

/* ── Sticky pill header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 24px 0 0;
  pointer-events: none;
}
.site-header .pill {
  pointer-events: auto;
  max-width: var(--page);
  margin: 0 auto;
  height: var(--header-h);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.06), 0 8px 24px rgba(20, 20, 20, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 8px 0 20px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.wordmark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
  transition: background-color .15s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--grey); color: var(--ink); }
.header-actions { display: flex; gap: 6px; }

/* ── Hero ── */
.hero { padding: 56px 0 40px; text-align: center; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb strong { color: var(--ink); }
.breadcrumb .chev { color: var(--faint); }

.intro-block { text-align: left; }
.intro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.intro-head h2 { max-width: 640px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--white);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  white-space: nowrap;
  flex-shrink: 0;
}
.chip b { font-weight: 600; color: var(--ink); }
.chip-pink { background: var(--pink-light); color: var(--ink); }
.intro-block p { max-width: 760px; font-size: 15px; line-height: 24px; color: var(--body); margin-bottom: 12px; }
.intro-block p:last-of-type { margin-bottom: 0; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.hero-stats div { background: var(--white); border-radius: var(--r-tile); padding: 14px 16px; }
.hero-stats strong { display: block; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.5px; color: var(--ink); }
.hero-stats span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

/* ── About card ── */
.about-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 24px;
  margin-top: 24px;
}
.about-card h2 { font-size: 20px; line-height: 28px; margin-bottom: 8px; }
.about-card p { font-size: 15px; line-height: 24px; color: var(--body); }

/* ── Agents ── */
.section-head { margin-bottom: 24px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { max-width: 720px; color: var(--muted); font-size: 15px; line-height: 24px; }
.agents-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.agents-head .count { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }

.agent {
  display: grid;
  align-items: start;
  grid-template-columns: 300px 1fr;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.agent:first-of-type { border-top: 0; padding-top: 8px; }

.agent-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agent-avatar,
.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: var(--grey-2);
  display: block;
}
.avatar-placeholder { position: relative; overflow: hidden; background: #D4D4D8; }
.avatar-placeholder::after {
  content: '';
  position: absolute;
  inset: 10px 10px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='white'%3E%3Ccircle cx='300' cy='210' r='120'/%3E%3Ccircle cx='300' cy='580' r='230'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
}
.agent-card h3 { font-size: 24px; line-height: 32px; }
.agent-brokerage { font-size: 15px; line-height: 22px; color: var(--muted); margin-top: -8px; }
.agent-bio { font-size: 14px; line-height: 22px; color: var(--text); max-width: 760px; }
.agent-card .btn { align-self: flex-start; margin-top: auto; }

.agent-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  gap: 8px;
}
.tile {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.tile .lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
}
.tile .lbl svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink); }
.tile .val { font-size: 15px; font-weight: 600; color: var(--text); text-align: right; }
.tile .val .star-icons { color: var(--star); letter-spacing: 1px; margin-right: 6px; font-size: 14px; }
.tile.tile-tall { grid-column: 1 / -1; display: block; }
.tile.tile-tall .lbl { margin-bottom: 10px; }
.tile.tile-wide { grid-column: 1 / -1; }
.tile .sub { font-size: 12px; font-weight: 400; color: var(--muted); display: block; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--grey);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.tag.pink { background: var(--pink-light); }

/* ── Neighborhoods ── */
.neighborhood-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.neighborhood {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 20px;
}
.neighborhood .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--pink-light);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.neighborhood h3 { font-size: 18px; line-height: 26px; margin-bottom: 4px; }
.neighborhood p { font-size: 14px; line-height: 22px; color: var(--muted); }

/* ── Market ── */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.market-stat { background: var(--white); border-radius: var(--r-card); padding: 20px; }
.market-stat .value { display: block; font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -1px; color: var(--ink); margin-bottom: 6px; }
.market-stat .lbl { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.market-stat p { font-size: 13px; line-height: 20px; color: var(--muted); }
.market-stat p a { color: var(--muted); font-weight: 500; }
.market-stat p a:hover { color: var(--ink); }
.note { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--muted); }

/* ── Map ── */
.map-embed { border-radius: var(--r-card); overflow: hidden; background: var(--grey-2); line-height: 0; }
.map-embed iframe { display: block; width: 100%; height: 440px; border: 0; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--white); border-radius: var(--r-card); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 17px;
  line-height: 26px;
  color: var(--text);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grey);
  position: relative;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform .2s ease;
}
.faq-item summary .plus::before { left: 8px; right: 8px; top: 13px; height: 2px; }
.faq-item summary .plus::after  { top: 8px; bottom: 8px; left: 13px; width: 2px; }
.faq-item[open] summary .plus::after { transform: scaleY(0); }
.faq-answer { padding: 0 20px 20px; }
.faq-answer p { font-size: 15px; line-height: 24px; color: var(--body); max-width: 820px; }

/* ── Pink CTA block ── */
.cta-block {
  background: var(--pink);
  border-radius: var(--r-block);
  padding: 72px 40px;
  text-align: center;
  color: var(--ink);
}
.cta-block .display { font-size: 64px; line-height: 0.92; max-width: 820px; margin: 0 auto 24px; }
.cta-block p { font-size: 16px; line-height: 24px; max-width: 560px; margin: 0 auto 28px; }
.cta-block .actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cta-block .btn-secondary { background: rgba(255,255,255,0.55); color: var(--ink); }
.cta-block .btn-secondary:hover { background: rgba(255,255,255,0.8); }

/* ── Footer ── */
.site-footer { padding: 16px 16px 16px; }
.site-footer .inner {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  border-radius: var(--r-block);
  padding: 72px 64px 0;
  overflow: hidden;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand .wordmark { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 22px; max-width: 300px; }
.footer-col .label { display: block; color: var(--white); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 15px; color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.disclaimer { font-size: 12px; line-height: 19px; color: rgba(255,255,255,0.45); max-width: 900px; padding-bottom: 24px; }
.footer-giant {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(72px, 15vw, 220px);
  line-height: 0.8;
  color: rgba(255,255,255,0.08);
  white-space: nowrap;
  margin: 0 -64px -0.14em;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 1060px) {
  h1 { font-size: 56px; }
  .main-nav { display: none; }
  .agent { grid-template-columns: 1fr; }
  .agent-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-block .display { font-size: 52px; }
}

@media (max-width: 760px) {
  :root { --margin: 16px; --header-h: 52px; }
  .site-header { padding-top: 12px; }
  .site-header .pill { margin: 0 var(--margin); padding: 0 6px 0 14px; }
  .wordmark { font-size: 16px; }
  .header-actions .btn-secondary { display: none; }
  .header-actions .btn .full { display: none; }
  .header-actions .btn .short { display: inline; }
  .hero { padding: 36px 0 24px; }
  h1 { font-size: 40px; line-height: 0.92; }
  h2 { font-size: 24px; line-height: 32px; }
  h2.display { font-size: 36px; }
  .block { padding: 20px; border-radius: 16px; }
  .intro-head { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .agent-stats { grid-template-columns: 1fr; }
  .agent-card { padding: 16px; }
  .agent-card h3 { font-size: 22px; line-height: 28px; }
  .neighborhood-grid, .market-grid { grid-template-columns: 1fr; }
  .market-stat .value { font-size: 32px; line-height: 36px; }
  .map-embed iframe { height: 320px; }
  .faq-item summary { font-size: 16px; line-height: 24px; padding: 16px; }
  .faq-answer { padding: 0 16px 16px; }
  .cta-block { padding: 48px 20px; }
  .cta-block .display { font-size: 40px; }
  .site-footer { padding: 8px; }
  .site-footer .inner { padding: 48px 24px 0; border-radius: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-giant { margin: 0 -24px -0.14em; }
}
