/*
 * Agent Sites v1 (AS-4 / VIR-1279): agent site homepage.
 * Enqueued only by agent-site-home.php. Typography and colour are inherited from the parent/child
 * theme so the brokerage look carries over; this file only lays out the agent-specific blocks
 * (intro band, disclosure) and the parent-theme fallbacks used when a child has no broker partials.
 */

.agent-site-intro {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.agent-site-intro__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 768px) {
  .agent-site-intro__row {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
}
.agent-site-intro__portrait {
  flex: 0 0 auto;
  width: min(280px, 70vw);
}
.agent-site-intro__portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.agent-site-intro__body {
  flex: 1 1 auto;
  min-width: 0;
}
.agent-site-intro__name {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
}
.agent-site-intro__title {
  margin: 0 0 1.25rem;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
}
.agent-site-intro__text {
  max-width: 62ch;
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}
@media (max-width: 767.98px) {
  .agent-site-intro__text { margin-left: auto; margin-right: auto; }
}
.agent-site-intro__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: inherit;
  gap: .5rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
}
@media (max-width: 767.98px) {
  .agent-site-intro__contact { justify-content: center; }
}
.agent-site-intro__contact a {
  color: inherit;
  overflow-wrap: anywhere;
}
.agent-site-intro__cta {
  display: inline-block;
  padding: .75rem 1.75rem;
  border: 1px solid currentColor;
  color: inherit;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.agent-site-intro__cta:hover,
.agent-site-intro__cta:focus-visible {
  text-decoration: none;
  opacity: .8;
}

.agent-site-disclosure {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
  font-size: .8125rem;
  line-height: 1.6;
  opacity: .8;
}
.agent-site-disclosure p {
  max-width: 80ch;
  margin: 0 auto;
  text-align: center;
}

/* ---- Parent-theme fallbacks (tenants without the broker homepage partials) ---- */
.agent-site-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(70vh, 640px);
  background: #222 center / cover no-repeat;
  color: #fff;
}
.agent-site-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%);
}
.agent-site-hero__inner {
  position: relative;
  padding-bottom: clamp(2rem, 6vw, 4rem);
}
.agent-site-hero__title {
  margin: 0;
  color: inherit;
}
.agent-site-section-title {
  margin: 0 0 1.5rem;
  text-align: center;
}
.agent-site-press,
.agent-site-listings,
.agent-site-neighborhoods,
.agent-site-testimonials {
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.agent-site-press__label {
  margin: 0 0 .5rem;
  text-align: center;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.agent-site-press__list {
  margin: 0;
  text-align: center;
}
.agent-site-neighborhood {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
  color: #fff;
}
.agent-site-neighborhood img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agent-site-neighborhood__name {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: 1.25rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* ---- Hero call to action (replaces the listings search on agent sites) ----
   Same treatment as the broker hero's primary (search submit) button: accent fill, square corners,
   48px tall, inverse on hover. */
.kny-hero__cta,
.daylight-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 2rem;
  border: 1px solid var(--vr-color-accent, #245b57);
  border-radius: 0;
  background: var(--vr-color-accent, #245b57);
  color: var(--vr-color-on-accent, #fff);
  font-family: var(--vr-font-body, Montserrat, sans-serif);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.kny-hero__cta:hover,
.daylight-hero__cta:hover {
  border-color: var(--vr-color-inverse, #231f1c);
  background: var(--vr-color-inverse, #231f1c);
  color: var(--vr-color-on-inverse, #fff);
  text-decoration: none;
}
.kny-hero__cta:focus-visible,
.daylight-hero__cta:focus-visible {
  outline: 2px solid var(--vr-color-accent, #245b57);
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .kny-hero__search--cta .kny-hero__cta,
  .daylight-hero__search--cta .daylight-hero__cta { width: 100%; }
}
.agent-site-intro__headline {
  margin: 0 0 .75rem;
  font-size: 1.125rem;
  font-style: italic;
}

/* Featured listings: reserve space for the edge-filled placeholder so the page doesn't jump. */
.agent-site-listings .vr-idx-embed:empty { min-height: 420px; }
