/* El Pálido's CSS for the front page, exactly as he delivered it (2026-11-04), sections 1-5, 7 and 8.
   Section 3 carries his own later correction to the .home-community background. Section 6 (FAQ) came
   without CSS. Not edited here: Claude's changes for options F/F2 live in site.css, all under
   .mr-integrated, so this file shows his design untouched on /design-options/palido/.
   His delivered files: Palido Files/code/. */

/* ===== Section 1: hero ===== */
/* Hero: replace the placeholder photo path with an approved asset. */
.home-intro {
  position: relative;
  isolation: isolate;
  color: var(--paper);
  background: var(--navy)
    url('/assets/img/hero/revere-beach-placeholder.webp')
    center / cover no-repeat;
  padding: clamp(4rem, 7vw, 7rem) 0 2rem;
}

/* Readability overlay; the photo remains visible on the right. */
.home-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(3, 25, 56, .94) 0%,
    rgba(7, 39, 78, .84) 34%,
    rgba(7, 39, 78, .38) 66%,
    rgba(7, 39, 78, .14) 100%
  );
}

.home-intro__inner {
  min-height: 23rem;
  display: flex;
  align-items: center;
}

.home-intro__content {
  max-width: 42rem;
  padding: 1rem 0 3rem;
}

.home-intro__content h1 {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 .65rem;
}

.home-intro__content h1 span { color: var(--gold); }

.home-intro__content p {
  max-width: 42rem;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.3vw, 1.3rem);
  line-height: 1.45;
  margin: 0 0 1.5rem;
}

.home-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.home-intro__actions .btn {
  min-height: 48px;
  border-radius: 3px;
}

.home-intro__actions .btn--outline-light {
  background: rgba(3, 25, 56, .72);
}

.home-intro__actions .btn--outline-light:hover {
  background: var(--paper);
  color: var(--navy);
}

.home-intro__search-wrap { position: relative; }

.home-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 3px;
  background: rgba(255, 255, 255, .82);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.home-search__widget {
  flex: 1 1 42rem;
  min-width: 0;
}

.home-search__placeholder { margin: 0; }

.home-search__advanced {
  flex: 0 1 auto;
  color: var(--navy);
  font: 600 1rem/1.3 var(--font-display);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.home-search__advanced:hover { color: var(--navy-slate); }

.home-intro a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.home-search a:focus-visible {
  outline-color: var(--navy);
}

@media (max-width: 900px) {
  .home-intro {
    background-position: 70% center;
  }
  .home-intro::before {
    background: linear-gradient(
      180deg,
      rgba(3, 25, 56, .94) 0%,
      rgba(7, 39, 78, .80) 50%,
      rgba(7, 39, 78, .35) 100%
    );
  }
}

@media (max-width: 640px) {
  .home-intro { padding: 3rem 0 1.5rem; }
  .home-intro__inner { min-height: 0; }
  .home-intro__content { padding: 0 0 2rem; }
  .home-intro__actions { flex-direction: column; }
  .home-intro__actions .btn { width: 100%; }
  .home-search { padding: .875rem; }
  .home-search__widget { flex-basis: 100%; }
  .home-search__advanced { margin-left: auto; }
}

/* ===== Section 2: How I can help ===== */
/* Replace the photo path with an approved, people-free image. */
.home-services {
  background: var(--tint)
    url('/assets/img/hero/revere-beach-placeholder.webp')
    center bottom / cover no-repeat;
  padding: 2rem 0;
}

.home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-services__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 3px;
  background: rgba(255, 255, 255, .78);
  color: var(--navy-deep);
  box-shadow: var(--shadow);
}

.home-services__card h3 {
  color: var(--navy-deep);
  font: 600 1.35rem/1.2 var(--font-display);
  margin: 0 0 .65rem;
}

.home-services__card p {
  color: var(--navy-deep);
  margin: 0 0 1.25rem;
}

.home-services__card a {
  margin-top: auto;
  color: var(--navy-deep);
  font: 600 1rem/1.4 var(--font-display);
  text-decoration: underline;
  text-decoration-color: var(--gold-text);
  text-underline-offset: .2em;
}

.home-services__card a:hover {
  color: var(--navy-slate);
}

.home-services__card a:focus-visible {
  outline: 3px solid var(--navy-deep);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .home-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-services__grid {
    grid-template-columns: 1fr;
  }
  .home-services__card {
    padding: 1.25rem;
  }
}

/* ===== Section 3: Explore communities (background: his correction) ===== */
.home-communities {
  padding: 2rem 0;
  background: linear-gradient(rgba(255,255,255,.92), rgba(246,243,236,.92)),
    var(--mr-community-photo, none) center / cover no-repeat;
  background-color: var(--paper);
}
.home-communities__inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.home-communities h2 {
  flex: 0 0 12rem;
  margin: .5rem 0 0;
  font: 600 1.2rem/1.25 var(--font-display);
  color: var(--navy);
}
.home-communities__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-communities__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .875rem;
  color: var(--navy);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font: 500 1rem/1.25 var(--font-display);
  text-decoration: none;
}
.home-communities__list a:hover {
  background: var(--tint);
  color: var(--navy);
  border-color: var(--gold-text);
}
.home-communities__list a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .home-communities__inner { display: block; }
  .home-communities h2 { margin: 0 0 1rem; }
}
@media (max-width: 640px) {
  .home-communities__list { gap: .5rem; }
  .home-communities__list li { flex: 1 1 8rem; }
  .home-communities__list a { width: 100%; justify-content: center; }
}

/* ===== Section 4: About John Miro ===== */
.mr-about {
  background: linear-gradient(145deg, var(--paper), var(--tint));
}
.mr-about__layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.mr-about__portrait {
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.mr-about__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 3px;
}
.mr-about__copy { min-width: 0; }
.mr-about__copy p { color: var(--muted); max-width: 58ch; }
.mr-about__copy .btn { min-height: 48px; border-radius: 3px; }
.mr-about__copy a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .mr-about__layout { grid-template-columns: 1fr; }
  .mr-about__portrait { width: min(100%, 360px); }
}

/* ===== Section 5: Real Estate Guides ===== */
.mr-guides { background: linear-gradient(175deg, var(--paper), var(--tint)); }
.mr-guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.mr-guides__card { min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 3px; background: rgba(255,255,255,.75); }
.mr-guides__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mr-guides__card div { padding: 1.25rem; }
.mr-guides__card h3 { margin: 0 0 .6rem; }
.mr-guides__card a { color: var(--navy); font-family: var(--font-display); font-weight: 600; text-underline-offset: .2em; }
.mr-guides__card a:hover { color: var(--gold-text); }
.mr-guides__card a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (max-width: 900px) { .mr-guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mr-guides__grid { grid-template-columns: 1fr; } }

/* ===== Section 7: closing contact invitation (CSS only; his HTML not received yet) ===== */
.mr-contact-band {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(3,25,56,.90), rgba(7,39,78,.68)),
    var(--mr-contact-photo, none) center / cover no-repeat;
  background-color: var(--navy);
}
.mr-contact-band__inner { display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.mr-contact-band h2 { color: var(--paper); }
.mr-contact-band p { color: var(--paper); margin-bottom: 0; }
.mr-contact-band .btn { flex: 0 0 auto; min-height: 48px; border-radius: 3px; }
.mr-contact-band a:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
@media (max-width: 640px) {
  .mr-contact-band__inner { align-items: stretch; flex-direction: column; gap: 1.25rem; }
  .mr-contact-band .btn { width: 100%; }
}

/* ===== Section 8: footer ===== */
.mr-footer {
  color: var(--paper);
  background: linear-gradient(115deg, rgba(3,25,56,.97), rgba(7,39,78,.92)),
    var(--mr-footer-photo, none) center / cover no-repeat;
  background-color: var(--navy-deep);
}
.mr-footer__layout { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 2rem; align-items: start; }
.mr-footer__brand img:first-child { width: 180px; height: auto; margin-bottom: 1rem; }
.mr-footer__brand img:nth-child(2) { width: auto; height: 24px; max-width: 100%; }
.mr-footer nav ul { list-style: none; margin: 0; padding: 0; }
.mr-footer nav a, .mr-footer__contact a { color: var(--paper); display: inline-flex; align-items: center; min-height: 44px; }
.mr-footer__contact p { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.mr-footer__socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.mr-footer__socials a { display: grid; place-items: center; width: 44px; height: 44px; }
.mr-footer__socials img { width: 24px; height: 24px; object-fit: contain; }
.mr-footer__marks { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; margin-top: .75rem; }
.mr-footer__marks img { height: 30px; width: auto; max-width: 80px; object-fit: contain; }
.mr-footer a:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.mr-footer__legal { margin-top: 2rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
@media (max-width: 900px) { .mr-footer__layout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .mr-footer__layout { grid-template-columns: 1fr; }
  .mr-footer__marks { justify-content: flex-start; }
}
