/**
 * Advanced homepage — expressive cards, founder hero, city showcase
 * Extends shared-prototype.css
 */

:root {
  --radius-3xl: 2rem;
  --radius-pill: 9999px;
  --accent-glow: rgba(37, 99, 235, 0.35);
  --listing-cta: #f97316;
  --listing-cta-hover: #ea580c;
}

[data-theme="dark"] {
  --accent-glow: rgba(96, 165, 250, 0.28);
}

/* ---- Broker hero zone ---- */
.broker-hero-zone {
  position: relative;
  overflow: visible;
}

/* Hero broker image (composite asset) */
.hero-advanced .hero-broker-visual {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: min(520px, 44vw);
  z-index: 2;
}

.hero-broker-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(15, 23, 42, 0.14));
}

@media (min-width: 960px) {
  .hero-advanced .hero-broker-visual {
    max-width: min(560px, 46vw);
  }
}

@media (max-width: 959px) {
  .hero-advanced .hero-broker-visual {
    max-width: min(400px, 88vw);
    margin: 0 auto;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-broker-visual {
    animation: hero-broker-float 6s ease-in-out infinite;
  }
}

@keyframes hero-broker-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-broker-visual {
    animation: none;
  }
}

.broker-profile {
  position: relative;
  z-index: 3;
  padding: 0 0 clamp(1rem, 2.5vw, 1.5rem);
  overflow: visible;
}

.broker-hero-zone .hero-advanced {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-bottom: 0;
  overflow: visible;
}
.broker-profile-layout {
  position: relative;
  z-index: 3;
}

.broker-profile-panel {
  position: relative;
  width: 100%;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem clamp(1.25rem, 3vw, 2.5rem);
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-xl, 1rem);
  background: var(--elevated);
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.broker-profile-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--emerald));
}

.broker-profile-info {
  flex: 0 1 auto;
  min-width: min(100%, 200px);
}

.broker-profile-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.broker-profile-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.2rem;
  color: var(--text);
}

.broker-profile-designation {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
}

.broker-profile-bio {
  flex: 1 1 240px;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-2);
}

.broker-profile-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-left: auto;
}

.broker-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.broker-profile-btn:hover {
  transform: translateY(-1px);
}

.broker-profile-btn--call {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.broker-profile-btn--call:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
}

.broker-profile-btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.broker-profile-btn--whatsapp:hover {
  background: #1ebe57;
}

.broker-profile-btn--linkedin {
  background: #0a66c2;
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.35);
}

.broker-profile-btn--linkedin:hover {
  background: #0958a8;
}

@media (max-width: 767px) {
  .broker-profile {
    padding: 0 0 0.65rem;
  }

  .broker-profile-panel {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    text-align: left;
    padding: 0.7rem 0.85rem;
    gap: 0.5rem 0.75rem;
  }

  .broker-profile-bio {
    display: none;
  }

  .broker-profile-info {
    flex: 1 1 auto;
    min-width: 0;
  }

  .broker-profile-eyebrow {
    margin-bottom: 0.15rem;
    font-size: 0.5625rem;
  }

  .broker-profile-name {
    font-size: 1rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .broker-profile-designation {
    font-size: 0.6875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .broker-profile-actions {
    margin-left: 0;
    width: auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .broker-profile-btn {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    overflow: hidden;
    text-indent: -9999px;
    position: relative;
  }

  .broker-profile-btn svg {
    position: absolute;
    inset: 0;
    margin: auto;
  }

  .hero-advanced {
    padding-top: 1.15rem;
  }

  .hero-advanced-grid {
    gap: 0.65rem;
    padding-bottom: 0.35rem;
  }

  .hero-advanced h1 {
    font-size: clamp(1.65rem, 6.5vw, 2rem);
    max-width: none;
    margin-bottom: 0.65rem;
  }

  .hero-advanced .lead {
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
    line-height: 1.5;
  }

  .hero-advanced-copy {
    padding-bottom: 0.25rem;
  }

  .hero-advanced-actions {
    gap: 0.45rem;
  }

  .btn-expressive {
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
  }

  .hero-broker-image {
    max-height: min(42vw, 200px);
    width: auto;
    max-width: 72vw;
    margin: 0 auto;
  }
}

/* ---- Trust logo strip (grid bg + pill badge + carousel) ---- */
.trust-logo-strip {
  --trust-strip-bg: color-mix(in srgb, var(--bg) 92%, var(--deep));
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 4.5vw, 2.85rem) 0 clamp(1.75rem, 4vw, 2.35rem);
}

[data-theme="dark"] .trust-logo-strip {
  --trust-strip-bg: #101114;
}

.trust-logo-strip .credibility-trust-inner {
  padding-bottom: 0;
}

.trust-logo-strip .credibility-badge {
  margin-bottom: clamp(1.5rem, 3.5vw, 2rem);
}

.credibility-badge-icon--filled {
  color: var(--accent);
}

.trust-logo-marquee {
  position: relative;
  width: 100%;
}

.trust-logo-marquee-viewport {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}

.trust-logo-marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2.5rem, 10vw, 5.5rem);
  z-index: 2;
  pointer-events: none;
}

.trust-logo-marquee-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--trust-strip-bg) 35%, transparent);
}

.trust-logo-marquee-fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--trust-strip-bg) 35%, transparent);
}

.trust-logo-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.trust-logo-slide {
  display: flex;
  align-items: center;
  gap: clamp(2.25rem, 5.5vw, 4rem);
  list-style: none;
  margin: 0;
  padding: 0 clamp(1.25rem, 2.5vw, 2rem);
}

.trust-logo-slide li {
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .trust-logo-marquee-track {
    animation: trust-logo-scroll 42s linear infinite;
  }

  .trust-logo-marquee:hover .trust-logo-marquee-track {
    animation-play-state: paused;
  }
}

@keyframes trust-logo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-logo-marquee-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .trust-logo-marquee-track {
    animation: none;
    padding-bottom: 0.5rem;
  }

  .trust-logo-marquee-fade {
    display: none;
  }
}

/* ---- Hero: client standing ---- */
.hero-advanced {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) 0 0;
  overflow: visible;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--deep) 4%, var(--bg)) 0%,
    var(--bg) 45%,
    color-mix(in srgb, var(--accent) 6%, var(--bg)) 100%
  );
}

.hero-advanced-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem clamp(0.75rem, 2vw, 1.25rem);
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 960px) {
  .broker-hero-zone .hero-advanced-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
    max-width: 1280px;
    margin: 0 auto;
    min-height: min(440px, 52vh);
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
  }

  .broker-hero-zone .hero-advanced-copy {
    max-width: none;
  }

  .broker-hero-zone .hero-advanced h1 {
    max-width: 16ch;
  }
}

.hero-advanced-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}

.hero-advanced .overline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-advanced .overline::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--emerald));
  border-radius: 2px;
}

.hero-advanced h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw + 0.5rem, 3.65rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero-advanced .lead {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 44ch;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.hero-advanced-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.btn-expressive {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.28s ease, background 0.28s;
}

.btn-expressive:active {
  transform: scale(0.97);
}

.btn-expressive--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-expressive--primary:hover {
  box-shadow: 0 12px 36px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-expressive--outline {
  background: var(--elevated);
  color: var(--text);
  border: 1.5px solid rgba(128, 128, 128, 0.2);
}

.btn-expressive--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-icon-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(128, 128, 128, 0.18);
  background: var(--elevated);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-icon-round:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.hero-advanced-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 320px;
}

@media (min-width: 960px) {
  .hero-advanced-visual {
    min-height: 100%;
  }
}

.hero-visual-blob {
  position: absolute;
  bottom: 0;
  right: 5%;
  width: min(420px, 95%);
  height: 88%;
  background: linear-gradient(
    145deg,
    var(--deep) 0%,
    color-mix(in srgb, var(--accent) 55%, var(--deep)) 100%
  );
  border-radius: 48% 52% 38% 62% / 42% 38% 62% 58%;
  opacity: 0.92;
  animation: blob-morph 14s ease-in-out infinite alternate;
}

@keyframes blob-morph {
  0% {
    border-radius: 48% 52% 38% 62% / 42% 38% 62% 58%;
  }
  100% {
    border-radius: 58% 42% 52% 48% / 48% 58% 42% 52%;
  }
}

.hero-client-cutout {
  position: relative;
  z-index: 2;
  max-height: min(520px, 72vh);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 48px rgba(15, 39, 68, 0.22));
  animation: hero-float 5s ease-in-out infinite;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-blob,
  .hero-client-cutout,
  .city-card-img img,
  .editorial-img img {
    animation: none !important;
  }
}

.hero-glass-chip {
  position: absolute;
  z-index: 3;
  bottom: 12%;
  left: 0;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .hero-glass-chip {
  background: rgba(24, 24, 27, 0.82);
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-glass-chip .dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.25);
}

.hero-broker-card {
  position: absolute;
  z-index: 4;
  top: 8%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-md);
  max-width: min(240px, 90%);
}

[data-theme="dark"] .hero-broker-card {
  background: rgba(24, 24, 27, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-broker-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--elevated);
}

.hero-broker-card strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hero-broker-card span:not(.hero-broker-verified) {
  font-size: 0.6875rem;
  color: var(--text-2);
  font-weight: 500;
}

.hero-broker-verified {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: 0.15rem;
}

@media (max-width: 959px) {
  .hero-broker-card {
    top: auto;
    bottom: 14%;
    right: 1rem;
  }
}

/* ---- Broker profile (legacy card styles) ---- */
.broker-profile-card {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-3xl);
  background: var(--elevated);
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.broker-profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--emerald));
}

@media (min-width: 960px) {
  .broker-profile-card {
    grid-template-columns: 240px 1fr;
    gap: 2rem 2.5rem;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .broker-profile-card {
    grid-template-columns: 260px 1fr;
    padding: 2.25rem 2.5rem;
  }
}

.broker-profile-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 960px) {
  .broker-profile-aside {
    align-items: stretch;
  }
}

.broker-portrait-stack {
  text-align: center;
  width: 100%;
}

.broker-portrait-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
}

@media (min-width: 960px) {
  .broker-portrait-wrap {
    width: 180px;
    height: 180px;
  }
}

.broker-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--emerald));
}

.broker-portrait {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--elevated);
}

.broker-online {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--elevated);
  border: 1px solid rgba(128, 128, 128, 0.14);
  box-shadow: var(--shadow-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.broker-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25);
}

.broker-rating-stars {
  color: #eab308;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.broker-rating-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.broker-rating-text strong {
  color: var(--text);
  font-weight: 700;
}

.broker-contact-stack {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.broker-contact-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(128, 128, 128, 0.14);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.broker-contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(2px);
}

.broker-contact-btn--whatsapp:hover {
  border-color: #25d366;
  color: #128c7e;
}

.broker-contact-btn--muted {
  opacity: 0.92;
}

.broker-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.broker-contact-btn--whatsapp .broker-contact-icon {
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
}

.broker-profile-main .overline {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.broker-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.broker-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}

.broker-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 150, 105, 0.1);
  color: var(--emerald);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.broker-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.broker-meta-line {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.broker-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

@media (min-width: 640px) {
  .broker-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.broker-stat {
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  border: 1px solid rgba(128, 128, 128, 0.08);
  text-align: center;
}

.broker-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}

[data-theme="dark"] .broker-stat-value {
  color: #60a5fa;
}

.broker-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.3;
}

.broker-bio {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 68ch;
}

.broker-bio + .broker-bio {
  margin-top: 0.75rem;
}

.broker-specializations,
.broker-coverage {
  margin-top: 1.25rem;
}

.broker-spec-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.broker-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.broker-spec-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.broker-coverage-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.broker-coverage-cities span {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid rgba(128, 128, 128, 0.14);
  color: var(--text);
}

.broker-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* Legacy founder classes kept for compatibility */
.founder-bio {
  padding: 0 0 clamp(3rem, 6vw, 4.5rem);
  margin-top: -0.5rem;
}

.founder-bio-panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2rem) 1.5rem;
  border-radius: var(--radius-3xl);
  background: var(--elevated);
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .founder-bio-panel {
    grid-template-columns: auto 1fr;
    gap: 2.25rem;
    padding: 2rem 2.25rem;
  }
}

.founder-portrait-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .founder-portrait-wrap {
    width: 140px;
    height: 140px;
    margin: 0;
  }
}

.founder-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--emerald));
  opacity: 0.85;
}

.founder-portrait {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--elevated);
}

.founder-bio-content .founder-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .founder-bio-content .founder-name {
    text-align: left;
  }
}

.founder-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.85rem;
  text-align: center;
}

@media (min-width: 768px) {
  .founder-role {
    text-align: left;
  }
}

.founder-bio-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 68ch;
}

.founder-bio-text + .founder-bio-text {
  margin-top: 0.75rem;
}

.founder-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .founder-credentials {
    justify-content: flex-start;
  }
}

.founder-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---- City showcase ---- */
.city-showcase {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: color-mix(in srgb, var(--deep) 3%, var(--bg));
}

.city-showcase-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.city-showcase-head .overline {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.city-showcase-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw + 0.5rem, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.city-showcase-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
}

.city-showcase-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .city-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.city-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--elevated);
  border: 1px solid rgba(128, 128, 128, 0.1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.city-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.city-card-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.city-card-img {
  position: absolute;
  inset: 0;
}

.city-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transform-origin: center center;
  will-change: transform;
  animation: city-kenburns 32s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.city-showcase-grid .city-card:nth-child(1) .city-card-img img {
  animation-delay: 0s;
}

.city-showcase-grid .city-card:nth-child(2) .city-card-img img {
  animation-delay: -10.5s;
}

.city-showcase-grid .city-card:nth-child(3) .city-card-img img {
  animation-delay: -21s;
}

@keyframes city-kenburns {
  0%,
  100% {
    transform: scale(1.04) translate(0.4%, 0.2%);
  }
  25% {
    transform: scale(1.07) translate(-0.6%, -0.35%);
  }
  50% {
    transform: scale(1.09) translate(-1%, -0.55%);
  }
  75% {
    transform: scale(1.06) translate(-0.35%, -0.2%);
  }
}

.city-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.88) 0%,
    rgba(10, 10, 12, 0.2) 45%,
    transparent 70%
  );
  transition: opacity 0.55s ease;
}

.city-card:hover .city-card-img::after {
  opacity: 0.92;
}

.city-landmark-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.city-card:hover .city-landmark-badge {
  transform: translateY(-2px);
}

.city-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1rem 1.15rem 1.15rem;
  color: #fff;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.city-card:hover .city-card-body {
  transform: translateY(-2px);
}

.city-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}

.city-card-body p {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
}

.city-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.55s ease, border-color 0.55s ease;
}

.city-card:hover .city-card-stat {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---- Editorial 2-column ---- */
.editorial-split {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.editorial-split-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .editorial-split-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.editorial-collage {
  position: relative;
  min-height: 420px;
}

.editorial-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 78%;
  height: 72%;
  background: var(--deep);
  border-radius: var(--radius-3xl);
  transform: rotate(-2deg);
}

[data-theme="dark"] .editorial-shape {
  background: #1e293b;
}

.editorial-img {
  position: absolute;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.editorial-img--top {
  top: 0;
  right: 8%;
  width: 58%;
  aspect-ratio: 4 / 3;
  z-index: 2;
}

.editorial-img--bottom {
  bottom: 0;
  left: 4%;
  width: 62%;
  aspect-ratio: 16 / 11;
  z-index: 3;
}

.editorial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editorial-glass-stat {
  position: absolute;
  bottom: 8%;
  right: 0;
  z-index: 4;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-md);
  max-width: 200px;
}

[data-theme="dark"] .editorial-glass-stat {
  background: rgba(24, 24, 27, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

.editorial-glass-stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  line-height: 1;
}

.editorial-glass-stat .stat-label {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.35;
}

.editorial-copy .overline {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.editorial-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.editorial-copy > p {
  margin: 0 0 1.75rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 46ch;
}

.editorial-features {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 520px) {
  .editorial-features {
    grid-template-columns: 1fr 1fr;
  }
}

.editorial-feature {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.icon-expressive {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.icon-expressive svg {
  width: 26px;
  height: 26px;
}

.editorial-feature h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.editorial-feature p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.5;
}

.editorial-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.editorial-nav-pair {
  display: flex;
  gap: 0.5rem;
}

.btn-expressive--square {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-lg);
  justify-content: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-expressive--square:hover {
  transform: translateY(-2px);
}

.editorial-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

@media (max-width: 639px) {
  .editorial-phone {
    margin-left: 0;
    width: 100%;
  }
}

.editorial-phone-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.editorial-phone strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
}

.editorial-phone span {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

/* ---- Explore offices (reference listing cards) ---- */
.explore-offices {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: #eef2f6;
}

[data-theme="dark"] .explore-offices {
  background: color-mix(in srgb, var(--bg) 92%, #1e293b);
}

.explore-offices-head {
  max-width: 1280px;
  margin: 0 auto 1.75rem;
  padding: 0 1.5rem;
}

.explore-offices-head .overline {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.explore-offices-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw + 0.5rem, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}

.filter-pills {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(128, 128, 128, 0.16);
  background: var(--elevated);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s, color 0.22s,
    box-shadow 0.22s, transform 0.22s;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-pill.is-active {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.filter-pill-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.filter-pill.is-active .filter-pill-thumb {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.explore-cards-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.explore-cards-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .explore-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .explore-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .explore-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.explore-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.35s ease;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .explore-card {
  background: var(--elevated);
  border-color: rgba(128, 128, 128, 0.18);
}

.explore-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.explore-card.is-hidden {
  display: none;
}

.explore-card-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
}

.explore-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.explore-card:hover .explore-card-visual img {
  transform: scale(1.04);
}

.explore-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.explore-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}

.explore-price {
  margin: 0.35rem 0 0.85rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.explore-specs {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.explore-spec {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.4;
}

.explore-spec svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.explore-spec strong {
  font-weight: 600;
  color: var(--text);
}

.explore-location {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-2);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.explore-location svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--listing-cta);
}

.explore-card-cta {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0.72rem 1rem;
  border-radius: 0.5rem;
  background: var(--listing-cta);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.explore-card-cta:hover {
  background: var(--listing-cta-hover);
  transform: translateY(-1px);
}

.explore-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.explore-dots {
  display: flex;
  gap: 0.4rem;
}

.explore-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(128, 128, 128, 0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.explore-dot.is-active {
  background: var(--text);
  transform: scale(1.15);
}

.explore-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(128, 128, 128, 0.2);
  background: var(--elevated);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, color 0.2s;
}

.explore-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.explore-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---- Why us / testimonials / FAQ (advanced page) ---- */
.section-advanced-head {
  margin-bottom: 2rem;
}

.section-advanced-head--center {
  text-align: center;
}

.section-advanced-head .overline {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-advanced-head .section-head {
  margin-bottom: 0.65rem;
}

.section-advanced-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 52ch;
}

.section-advanced-head--center .section-advanced-lead {
  margin-left: auto;
  margin-right: auto;
}

.why-advanced {
  background: var(--elevated);
  border-top: 1px solid rgba(128, 128, 128, 0.08);
  border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}

.why-card--expressive {
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

.why-card--expressive .why-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
}

.testimonials-advanced {
  background: color-mix(in srgb, var(--deep) 3%, var(--bg));
}

.testimonial-card--expressive {
  border-radius: var(--radius-2xl);
  padding: 1.65rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.testimonial-card--expressive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-card--expressive blockquote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: -0.5rem;
}

.faq-advanced {
  padding-bottom: clamp(4rem, 8vw, 5.5rem);
}

.faq-list--wide {
  max-width: 820px;
}

.faq-item--expressive {
  border-radius: var(--radius-xl);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item--expressive[open] {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-sm);
}

.faq-item--expressive summary {
  font-size: 1.02rem;
}

.faq-item--expressive .faq-body {
  padding-top: 0.15rem;
}
