/**
 * Keller Williams KW Local compliant branding
 * v20260711
 */

:root {
  --kw-red: #b40101;
  --kw-charcoal: #2d2d2d;
  --kw-gray: #6b6b6b;
}

/* —— KW Local lockup (text) —— */
.kw-local-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 1;
  text-align: left;
}

.kw-local-lockup__row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.kw-local-lockup__kw {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--kw-red);
  text-transform: lowercase;
}

.kw-local-lockup__local {
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--kw-charcoal);
  text-transform: uppercase;
}

.kw-local-lockup__legal {
  margin: 0;
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--kw-gray);
  text-transform: uppercase;
}

.kw-local-lockup__legal sup {
  font-size: 0.65em;
  vertical-align: super;
}

.kw-local-lockup--img img {
  display: block;
  height: auto;
  width: clamp(140px, 28vw, 200px);
}

/* Header */
.site-zillow .logo-kw-local {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* KW logo stays in header corner; large KW Local wordmark is footer-only */

.site-zillow .site-header.is-solid {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  box-shadow: none;
}

.site-zillow .site-header .header-wrap {
  gap: 1rem;
}

/* Hero brand band */
.hero-compliance-brand {
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
  padding-top: clamp(1.25rem, 3vh, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.hero-compliance-brand .kw-local-lockup {
  align-items: center;
}

.hero-compliance-brand .kw-local-lockup__row {
  justify-content: center;
}

.hero-agent-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero-agent-identity__name {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.01em;
}

.hero-agent-identity__broker {
  margin: 0;
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.hero-agent-identity__broker .kw-local-lockup__kw {
  font-size: 1.05em;
  font-weight: 800;
  color: var(--kw-red);
  text-transform: lowercase;
}

.hero-agent-identity__sep {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0.2rem;
}

.hero-agent-identity__license {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

/* Footer KW Local wordmark (official image on dark footer) */
.site-footer .footer-kw-local {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 0.85rem;
}

.footer-kw-local-link {
  display: inline-block;
  background: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  line-height: 0;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-kw-local-link:focus-visible {
  outline: 2px solid var(--gold-bright, #c9a227);
  outline-offset: 3px;
}

.footer-kw-local-wordmark {
  display: block;
  width: min(220px, 78vw);
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.site-footer .footer-brokerage-note {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.02em;
}

.site-zillow .header-cta--mobile {
  display: none;
}

@media (max-width: 899px) {
  .site-zillow .header-cta--desktop {
    display: none;
  }

  .site-zillow .header-nav .header-nav-cta {
    display: none;
  }
}
