.agents-house {
  --agents-ink: var(--brand-ink, #283f47);
  --agents-green: var(--brand-green, #00983d);
  --agents-navy: var(--brand-navy, #173b63);
  --agents-orange: var(--brand-orange-bright, #f39220);
  --agents-orange-soft: var(--brand-orange-light, #ffd08a);
  --agents-wine: #8a4f64;
  --agents-rose: #fbf1f4;
  --agents-line: #d8d8d5;
  padding: clamp(62px, 6.3vw, 94px) 24px;
  color: var(--agents-ink);
  background: #f7f7f5;
}

.agents-house__frame {
  display: grid;
  gap: clamp(24px, 3vw, 42px);
  width: min(100%, 1280px);
  margin-inline: auto;
}

.agents-house__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  grid-template-areas: "copy media";
  align-items: center;
  gap: clamp(32px, 5vw, 74px);
  padding-block-end: clamp(22px, 2.6vw, 36px);
  border-block-end: 1px solid #cececa;
}

.agents-house__intro-copy {
  grid-area: copy;
  display: grid;
  align-content: center;
  gap: clamp(14px, 1.8vw, 22px);
  min-width: 0;
}

.agents-house__intro-media {
  grid-area: media;
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
  aspect-ratio: 1;
  box-sizing: border-box;
  padding: 5px;
  overflow: hidden;
  border-radius: 50%;
  background: conic-gradient(from 18deg, #168bc0 0 34%, #0b8a43 34% 67%, #f39220 67% 100%);
  box-shadow: 0 22px 44px rgba(24, 52, 68, .12);
}

.agents-house__intro-media::after {
  display: none;
  content: none;
}

.agents-house__intro-media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
}

.agents-house__intro h2 {
  margin: 0;
  color: var(--agents-ink);
  font-family: var(--font-hebrew, "Noto Sans Hebrew", Arial, sans-serif);
  font-size: clamp(36px, 3.8vw, 54px);
  font-weight: 850;
  line-height: 1.02;
  text-wrap: balance;
}

.agents-house__title-line { display: block; }
.agents-house__title-line--accent { color: var(--agents-wine); }

.agents-house__lead {
  max-width: 72ch;
  margin: 0;
  color: #425a61;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.56;
}

.agents-house__ownership {
  display: grid;
  gap: 5px;
  width: min(100%, 760px);
  padding: 15px 18px;
  border: 1px solid #d8dfda;
  border-inline-start: 4px solid var(--agents-green);
  border-radius: 12px;
  background: #fff;
}

.agents-house__ownership strong { color: var(--agents-navy); font-size: 20px; line-height: 1.25; }
.agents-house__ownership span { color: #415b60; font-size: 16px; line-height: 1.5; }

.agents-house__offer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--agents-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(53, 72, 76, .055);
}

.agents-house__offer-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 24px 28px 20px;
  border-block-end: 1px solid var(--agents-line);
}

.agents-house__offer-heading h3 { margin: 0; color: var(--agents-wine); font-size: clamp(23px, 1.95vw, 30px); font-weight: 850; line-height: 1.12; }
.agents-house__offer-heading p { max-width: 72ch; margin: 0; color: var(--agents-ink); font-size: clamp(16px, 1.25vw, 18px); font-weight: 750; line-height: 1.42; }

/* Keep this authored section quiet even though the global glass layer loads later. */
.agents-house .agents-house__offer-heading {
  margin: 0;
  overflow: visible;
  border: 0;
  border-block-end: 1px solid var(--agents-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.agents-house .agents-house__offer-heading::before {
  display: none;
  content: none;
}

.agents-house__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 26px;
  margin: 0;
  list-style: none;
}

.agents-house__services li {
  --service-accent: var(--agents-green);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 96px;
  padding: 17px 16px;
  border: 0;
  border-block-end: 1px solid #e2e5e2;
  border-radius: 0;
  background: #fff;
}

.agents-house__services li:nth-child(odd) {
  border-inline-end: 1px solid #e2e5e2;
}

.agents-house__services li:nth-last-child(-n + 2) {
  border-block-end: 0;
}

.agents-house__service-icon {
  display: block;
  width: 40px;
  height: 52px;
  overflow: hidden;
  background: transparent url("../../assets/brand/agents-service-icons-ai.png") no-repeat;
  background-size: 400% 200%;
  mix-blend-mode: multiply;
}

.agents-house__service-icon--1 { background-position: 0 0; }
.agents-house__service-icon--2 { background-position: 33.333% 0; }
.agents-house__service-icon--3 { background-position: 66.666% 0; }
.agents-house__service-icon--4 { background-position: 100% 0; }
.agents-house__service-icon--5 { background-position: 0 100%; }
.agents-house__service-icon--6 { background-position: 33.333% 100%; }
.agents-house__service-icon--7 { background-position: 66.666% 100%; }
.agents-house__service-icon--8 { background-position: 100% 100%; }

.agents-house__service-copy { display: block; min-width: 0; overflow-wrap: anywhere; }
.agents-house__services strong, .agents-house__service-copy > span { display: block; }
.agents-house__services strong { color: var(--agents-ink); font-size: clamp(14px, 1.05vw, 16px); font-weight: 850; line-height: 1.32; }
.agents-house__service-copy > span { margin-block-start: 3px; color: #4e676e; font-size: clamp(13px, .95vw, 14.5px); line-height: 1.42; }

.agents-house__closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 20px 26px;
  border-block-start: 1px solid var(--agents-line);
  background: #fafaf8;
}

.agents-house__closing p { max-width: 78ch; margin: 0; color: #304d56; font-size: clamp(16px, 1.25vw, 18px); font-weight: 650; line-height: 1.56; }
.agents-house__closing strong { justify-self: start; padding: 11px 0; border-block-end: 3px solid var(--agents-green); color: var(--agents-navy); background: transparent; font-size: 17px; line-height: 1.35; text-align: start; white-space: normal; }

.agents-house__actions { display: flex; align-items: center; justify-content: center; gap: 18px; }
.agents-house__button { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; min-height: 52px; padding: 12px 26px; border: 1px solid var(--agents-orange); border-radius: 999px; color: #352612; background: var(--agents-orange-soft); box-shadow: 0 10px 24px rgba(155, 91, 16, .12); font-size: 16px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease; }
.agents-house__button:hover, .agents-house__button:focus-visible { background: var(--agents-orange); transform: translateY(-2px); }

.agents-house__mascot {
  position: relative;
  isolation: isolate;
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
}

.agents-house__mascot::before {
  content: none;
}

.agents-house__mascot::after {
  content: none;
}
.agents-house__mascot img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; object-position: center; filter: drop-shadow(0 6px 7px rgba(58, 40, 19, .18)); }

/* Specificity is intentional: glass-material.css is loaded after this sheet. */
.agents-house .agents-house__mascot {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.agents-house .agents-house__mascot::before,
.agents-house .agents-house__mascot::after {
  display: none;
  content: none;
}

@media (max-width: 1100px) {
  .agents-house__intro { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 34px; }
  .agents-house__services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .agents-house__intro { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media"; }
  .agents-house__intro-media { width: min(82vw, 400px); aspect-ratio: 1; }
  .agents-house__intro-media img { object-position: 50% 22%; }
}

@media (max-width: 760px) {
  .agents-house { padding: 58px 20px 68px; }
  .agents-house__intro, .agents-house__offer-heading, .agents-house__closing { grid-template-columns: 1fr; }
  .agents-house__intro { align-items: start; gap: 20px; }
  .agents-house__lead { max-width: 52ch; }
  .agents-house__offer-heading, .agents-house__closing { gap: 10px; }
  .agents-house__closing strong { white-space: normal; }
}

@media (max-width: 560px) {
  .agents-house { padding-inline: 16px; }
  .agents-house__frame { gap: 22px; }
  .agents-house__intro h2 { font-size: clamp(30px, 9.2vw, 35px); }
  .agents-house__lead { font-size: 16px; }
  .agents-house__intro-media { width: min(86vw, 340px); aspect-ratio: 1; padding: 4px; border-radius: 50%; }
  .agents-house__ownership { padding: 16px 18px; }
  .agents-house__offer { border-radius: 24px 9px 24px 9px; }
  .agents-house__offer-heading { padding: 20px 18px 16px; }
  .agents-house__offer-heading h3 { font-size: 25px; }
  .agents-house__services { grid-template-columns: 1fr; gap: 9px; padding: 12px; }
  .agents-house__services li { min-height: 76px; padding: 13px 12px; border: 0; border-block-end: 1px solid #e2e5e2; }
  .agents-house__services li:last-child { border-block-end: 0; }
  .agents-house__service-icon { width: 38px; height: 49px; }
  .agents-house__services strong { font-size: 15px; }
  .agents-house__closing { padding: 18px; }
  .agents-house__button { flex: 1 1 auto; min-width: 0; }
  .agents-house__mascot { flex-basis: 82px; width: 82px; height: 82px; padding: 6px; }
}

@media (max-width: 340px) {
  .agents-house { padding-inline: 12px; }
  .agents-house__actions { gap: 10px; }
  .agents-house__mascot { flex-basis: 72px; width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) { .agents-house__button { transition: none; } }

@media (forced-colors: active) {
  .agents-house__offer, .agents-house__ownership, .agents-house__button, .agents-house__services li, .agents-house__service-icon { border: 1px solid CanvasText; }

  .agents-house .agents-house__offer-heading,
  .agents-house .agents-house__mascot {
    border: 1px solid CanvasText;
    background: Canvas;
  }
}
