/* =========================================================
   HOME PAGE — Michelle's Property Portfolio layout
   ========================================================= */

:root {
  --home-cream: #F3E9E2;
  --home-peach: #F7D7DA;
  --home-stats-bg: #B7C7D6;
  --home-peach-btn: #E9B4B9;
  --home-peach-btn-hover: #F2C7B9;
  --home-warm: #F7F2EE;
  --home-gold: #E9B4B9;
  --home-gold-border: #E9B4B9;
  --home-border: #B7C7D6;
  --home-section-y: clamp(5rem, 8vw, 6.25rem);
  --home-card-gap: 1.25rem;
}

/* Header + main offset on home */
.mch-home .site-main {
  padding-top: 0;
}

.mch-home .site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--home-border);
  box-shadow: none;
  backdrop-filter: none;
}

.mch-home .nav__list a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Shared */
.home-section {
  padding: var(--home-section-y) 0;
}

.home-section--cream {
  background: var(--home-cream);
}

.home-section--warm {
  background: var(--home-warm);
}

.home-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-transform: none;
  color: #2C2C2C;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.home-section__title--center {
  text-align: center;
}

.home-section__title--light {
  color: #fff;
}

.home-btn {
  display: inline-block;
  padding: 0.8125rem 2rem;
  background: var(--home-peach-btn);
  color: #2C2C2C;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  transition: var(--transition-fast);
  text-align: center;
}

.home-btn:hover {
  background: var(--home-peach-btn-hover);
  color: #2C2C2C;
}

.home-btn--sm {
  padding: 0.75rem 1.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

/* Hero */
.home-hero {
  position: relative;
  height: 60vh;
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .home-hero {
    height: 100vh;
    min-height: 100vh;
  }
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7.5rem 1.5rem 0;
}

.home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.02em;
  color: #2C2C2C;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  text-shadow: none;
}

.home-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.825rem, 1.32vw, 0.9625rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3A4550;
  margin: 0;
}

/* Intro + stats block */
.home-intro-block {
  margin: 0;
  background: #fff;
  overflow: visible;
}

.home-intro-block__wrap {
  background: #fff;
  padding: 8rem 5vw 0;
}

.home-intro-block__box {
  background: var(--home-cream);
  max-width: var(--container-max);
  margin: 0 auto;
  overflow: hidden;
}

.home-intro-block__stats {
  background: var(--home-stats-bg);
  padding: 3rem 0;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  overflow: visible;
}

.home-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.home-intro__content {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.home-intro__inner {
  width: 100%;
  max-width: 100%;
}

.home-intro__title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 2.8vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-transform: none;
  color: #2C2C2C;
  margin: 0 0 0.625rem;
  line-height: 1.08;
}

.home-intro__lead {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 1rem;
  color: #52606D;
}

.home-intro__lead strong {
  font-weight: 700;
  color: #1F2933;
}

.home-intro__link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1F2933;
  text-decoration: none;
  padding: 0 0 0.375rem;
  margin: 0;
  transition: opacity 0.2s ease;
}

.home-intro__link:hover {
  opacity: 0.7;
  color: #1F2933;
}

.home-intro__divider {
  border: none;
  border-top: 1px solid var(--home-gold-border);
  margin: 0;
  width: 100%;
}

.home-intro__highlight {
  font-family: var(--font-heading);
  font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.42;
  text-transform: uppercase;
  color: #2C2C2C;
  margin: 0.5rem 0 0;
  padding: 0;
}

.home-intro__highlight-accent {
  color: var(--home-gold-border);
  font-weight: 600;
  letter-spacing: 0.035em;
}

.home-intro__media {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  min-height: 0;
}

.home-intro__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Stats band — hatched square on cream/white seam (reference) */
.home-stats__deco {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(7.5rem, 12vw, 10rem);
  height: clamp(7.5rem, 12vw, 10rem);
  transform: translateY(50%);
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cdefs%3E%3Cpattern id='h' width='16' height='16' patternUnits='userSpaceOnUse' patternTransform='rotate(-45)'%3E%3Cline x1='0' y1='0' x2='0' y2='16' stroke='%239BAFC1' stroke-width='2.5' shape-rendering='crispEdges'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23h)'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 2;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.home-stats__col {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem 1.25rem;
}

.home-stats__figure {
  flex-shrink: 0;
  min-width: 5.5rem;
}

.home-stats__number {
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-dark);
  white-space: nowrap;
}

.home-stats__plus {
  font-weight: 700;
}

.home-stats__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-top: 0.4rem;
  line-height: 1.3;
}

.home-stats__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0.15rem 0 0;
}

/* Meet Michelle + services — partial cream band on white */
.home-feature-block {
  background: #fff;
}

.home-feature-block__wrap {
  background: #fff;
  padding: var(--home-section-y) 3vw;
}

.home-feature-block__stage {
  --feature-bg-w: min(var(--container-max), 94vw);
  --feature-content-w: min(1040px, 92vw);
  --service-card-h: clamp(280px, 30vw, 340px);
  --services-gap: 1.5rem;
  --about-services-bridge: clamp(4.5rem, 7vw, 6rem);
  position: relative;
  width: var(--feature-bg-w);
  max-width: 100%;
  margin: 0 auto;
}

.home-feature-block__inner {
  position: relative;
  z-index: 1;
  width: var(--feature-content-w);
  max-width: 100%;
  margin: 0 auto;
}

.home-about,
.home-services {
  position: relative;
}

.home-about {
  margin-bottom: 0;
}

/* About Michelle — image overhangs top only; text + image bottom-aligned */
.home-about__stage {
  --about-overhang: clamp(100px, 12vw, 160px);
  --about-band-h: clamp(300px, 34vw, 400px);
  --about-img-h: calc(var(--about-band-h) + var(--about-overhang));
  position: relative;
  padding-top: var(--about-overhang);
}

.home-about__bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--feature-bg-w);
  bottom: 0;
  height: calc(var(--about-band-h) + var(--about-services-bridge) + 4px);
  background: var(--home-cream);
  z-index: 0;
  pointer-events: none;
}

.home-about__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}

.home-about__media {
  margin-top: calc(var(--about-overhang) * -1);
}

.home-about__media img {
  width: 100%;
  max-width: 100%;
  height: var(--about-img-h);
  display: block;
  object-fit: cover;
  object-position: center top;
}

.home-about__content {
  min-height: var(--about-band-h);
  padding: 2.5rem 2.5rem 2rem 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.home-about__content .home-section__title {
  margin-bottom: 1.25rem;
}

.home-about__content p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.home-about__content p:last-of-type {
  margin-bottom: 0;
}

.home-about__footer {
  margin-top: auto;
  padding-top: 1.5rem;
  width: 100%;
}

.home-about__link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2C2C2C;
  text-decoration: none;
  margin-bottom: 0.875rem;
  transition: opacity 0.2s ease;
}

.home-about__link:hover {
  opacity: 0.7;
  color: #2C2C2C;
}

.home-about__divider {
  border: none;
  border-top: 1px solid var(--home-gold-border);
  margin: 0;
  width: 100%;
}

/* Services */
.home-services {
  position: relative;
  margin-top: calc(-1 * var(--about-services-bridge));
  padding-top: var(--about-services-bridge);
}

.home-services__bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--feature-bg-w);
  z-index: 0;
  background: var(--home-cream);
  pointer-events: none;
  top: calc(-1 * var(--about-services-bridge) - 4px);
  bottom: calc(var(--service-card-h) + var(--services-gap) + var(--service-card-h) * 0.5 + 1.5rem);
}

.home-services .home-section__title,
.home-services__grid {
  position: relative;
  z-index: 1;
}

.home-services .home-section__title {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  margin-top: 5rem;
  padding-top: 0.5rem;
  text-align: center;
  font-size: clamp(1.0625rem, 1.85vw, 1.5625rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

@media (min-width: 1024px) {
  .home-services .home-section__title {
    white-space: nowrap;
  }
}

.home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--services-gap);
  margin: 2.75rem 0 0;
  width: 100%;
}

.home-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  aspect-ratio: 1;
  min-height: var(--service-card-h);
  padding: 2.75rem 2rem 3.25rem;
  background: #fff;
  border: 1px solid var(--home-gold-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-service-card::after {
  content: '';
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.75rem;
  height: 1px;
  background: var(--home-gold-border);
  pointer-events: none;
}

.home-service-card:hover {
  border-color: #E9B4B9;
  background: #fff;
  color: inherit;
  box-shadow: 0 4px 20px rgba(233, 180, 185, 0.12);
}

.home-service-card__icon {
  color: var(--home-gold-border);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.home-service-card__title {
  font-family: var(--font-heading);
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.65;
  color: #3A3A3A;
  margin: 0;
  max-width: 17rem;
}

/* Top 3 properties */
.home-top3 {
  background: #fff;
  padding: var(--home-section-y) 5vw;
}

.home-top3__wrap {
  background: #fff;
}

.home-top3__stage {
  --top3-bg-w: min(var(--container-max), 96vw);
  --top3-content-w: min(1040px, 90vw);
  --top3-pad-top: 4.5rem;
  --top3-header-block: clamp(210px, 25vw, 290px);
  --top3-img-h: calc((var(--top3-content-w) - 2.5rem) / 3 * 0.667);
  position: relative;
  width: var(--top3-bg-w);
  max-width: 100%;
  margin: 0 auto;
}

.home-top3__bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--top3-bg-w);
  top: 0;
  height: calc(
    var(--top3-pad-top) + var(--top3-header-block) + 2.5rem + var(--top3-img-h) * 0.5
  );
  background: var(--home-cream);
  z-index: 0;
  pointer-events: none;
}

.home-top3__header {
  position: relative;
  z-index: 1;
  width: var(--top3-content-w);
  max-width: 100%;
  margin: 0 auto 3rem;
  text-align: center;
  padding: var(--top3-pad-top) 0.5rem 0;
}

.home-top3__intro {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #555;
  margin: 0 auto;
  max-width: 52rem;
}

.home-top3__grid {
  position: relative;
  z-index: 1;
  width: var(--top3-content-w);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--home-card-gap);
}

.home-property-cta {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--home-gold-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-property-cta:hover {
  border-color: #6C8191;
  color: inherit;
  box-shadow: 0 4px 18px rgba(166, 124, 82, 0.12);
}

.home-property-cta__img-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eee;
}

.home-property-cta__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-property-cta:hover .home-property-cta__img-wrap img {
  transform: scale(1.05);
}

.home-property-cta__body {
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.625rem;
  align-items: stretch;
  text-align: center;
}

.home-property-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: #2C2C2C;
  margin: 0;
}

.home-property-cta__specs {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #777;
  margin: 0 0 0.5rem;
  flex: 1;
}

.home-property-cta__body .home-btn {
  width: 100%;
  margin-top: auto;
}

/* CTA section */
.home-cta {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: clip;
  isolation: isolate;
}

.home-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: 100% auto;
  background-position: 0px -1100px; /* ← MUEVE AQUÍ: negativo=sube, positivo=baja */
  background-repeat: repeat-y;
  background-attachment: fixed;
}

.home-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.52) 50%, rgba(0,0,0,0.65) 100%);
}

.home-cta__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: var(--home-section-y) 0;
  width: 100%;
}

.home-cta__content .home-section__title {
  font-size: clamp(1.875rem, 3vw, 2.375rem);
  margin-bottom: 1.25rem;
}

.home-cta__content {
  color: #fff;
}

.home-cta__content p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.92);
}

.home-cta__content .home-btn {
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .home-stats__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-top3__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-top3__grid .home-property-cta:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .home-section {
    padding: 3.5rem 0;
  }

  .home-hero__inner {
    padding-top: 3.5rem;
  }

  .home-hero__bg {
    background-position: center 45%;
  }

  .home-intro-block__wrap {
    padding: 4.5rem 1.25rem 0;
  }

  .home-intro__grid {
    grid-template-columns: 1fr;
  }

  .home-intro__content {
    padding: 2rem 1.75rem 2.5rem;
    justify-content: flex-start;
  }

  .home-intro__inner {
    max-width: none;
  }

  .home-intro__highlight {
    font-size: clamp(0.8125rem, 3.8vw, 0.9375rem);
    margin-top: 0.5rem;
  }

  .home-feature-block__wrap {
    padding: 4rem 1.25rem 5rem;
  }

  .home-feature-block__stage {
    --feature-bg-w: min(var(--container-max), 100%);
    --feature-content-w: min(1040px, 100%);
    --service-card-h: 240px;
  }

  .home-about__stage {
    --about-overhang: clamp(72px, 14vw, 120px);
    --about-band-h: clamp(260px, 58vw, 340px);
  }

  .home-about__grid {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: end;
  }

  .home-about__media {
    margin-top: 0;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-about__media img {
    height: auto;
    max-height: 420px;
    aspect-ratio: 533 / 576;
  }

  .home-about__stage {
    padding-top: 0;
  }

  .home-about__bg {
    width: 100%;
    left: 0;
    transform: none;
  }

  .home-about__content {
    padding: 2rem 1.5rem 1.75rem;
    min-height: 0;
  }

  .home-service-card {
    padding: 2rem 1.25rem 2.75rem;
  }

  .home-service-card::after {
    bottom: 2rem;
    width: 2.25rem;
  }

  .home-service-card__title {
    max-width: 100%;
    font-size: 0.75rem;
  }

  .home-feature-block__inner {
    padding: 0 0.25rem;
  }


  .home-services__bg {
    width: 100%;
    left: 0;
    transform: none;
    bottom: calc(var(--service-card-h) + var(--services-gap) + var(--service-card-h) * 0.5 + 12rem);
  }

  .home-about {
    margin-bottom: 0;
  }

  .home-feature-block__stage {
    --about-services-bridge: 3.25rem;
  }

  .home-services .home-section__title {
    white-space: normal;
    font-size: clamp(1.0625rem, 4.5vw, 1.3125rem);
    padding-top: 0.25rem;
  }

  .home-cta__grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }

  .home-top3 {
    padding: 4.5rem 1.25rem 5rem;
  }

  .home-top3__stage {
    --top3-bg-w: 100%;
    --top3-content-w: 100%;
    --top3-pad-top: 3rem;
    --top3-header-block: clamp(190px, 48vw, 260px);
    --top3-img-h: calc(var(--top3-content-w) * 0.667);
  }

  .home-intro__media {
    aspect-ratio: 3 / 2;
    height: auto;
  }

  .home-about__media {
    order: -1;
    max-width: 280px;
  }

  .home-stats__col {
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(58, 69, 80, 0.12);
  }

  .home-stats__col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .home-intro-block__stats {
    padding: 2rem 0;
  }

  .home-services__grid,
  .home-top3__grid {
    grid-template-columns: 1fr;
  }

  .home-top3__grid .home-property-cta:last-child {
    grid-column: auto;
    max-width: none;
  }

  .home-cta {
    min-height: auto;
  }

  .home-cta__bg {
    background-attachment: scroll;
  }

  .home-cta__spacer {
    display: none;
  }

  .home-cta__content {
    text-align: center;
  }

}
