/**
 * La Villa Hermosa — Layout: header, footer, hero, forms, feature list
 */

/* ================= Utility Bar ================= */
.utility-bar { background: var(--bg-dark); color: var(--text-on-dark-muted); font-size: var(--text-caption); }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.utility-bar__call { display: flex; align-items: center; gap: var(--space-4); }
.utility-bar__call a { color: var(--text-on-dark); font-weight: 500; }

/* ================= Site Header ================= */
.site-header { background: var(--bg-surface); border-bottom: 1px solid var(--border-default); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 85px; }
.site-header__logo img { height: 41px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: var(--space-8); }
.site-header__links { display: flex; align-items: center; gap: var(--space-7); }
.site-header__links a { font-size: var(--text-body-xs); font-weight: 500; color: var(--text-primary); }
.site-header__links a:hover { color: var(--brand-primary); }
.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-header__toggle span { width: 22px; height: 2px; background: var(--text-primary); transition: transform .2s ease, opacity .2s ease; }
.site-header__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle.is-active span:nth-child(2) { opacity: 0; }
.site-header__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-6);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
    padding: var(--space-6) var(--container-pad);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__links { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  .site-header__cta { align-self: flex-start; }
  .site-header__toggle { display: flex; }

  .utility-bar__inner { justify-content: center; font-size: var(--text-caption-sm); }
  .utility-bar__address,
  .utility-bar__call-note { display: none; }
}

/* ================= Site Footer ================= */
.site-footer { background: var(--bg-dark); color: var(--text-on-dark-muted); }
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  padding-block: var(--space-20);
}
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-5); }
.site-footer__brand img { height: 64px; }
.site-footer__brand p { max-width: 420px; color: var(--text-on-dark-muted); font-size: var(--text-body-sm); line-height: var(--lh-body-sm); }
.site-footer__col { display: flex; flex-direction: column; gap: var(--space-5); }
.site-footer__col .eyebrow { color: var(--text-on-dark-muted); letter-spacing: var(--ls-eyebrow); }
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-4); }
.site-footer__col li,
.site-footer__col li a { color: var(--text-on-dark-muted); font-size: var(--text-body-sm); }
.site-footer__col li a:hover { color: var(--text-on-dark); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-block: var(--space-6);
  font-size: var(--text-caption);
  color: var(--text-on-dark-muted);
}
.site-footer__legal { display: flex; gap: var(--space-6); }
.site-footer__legal a { color: var(--text-on-dark-muted); }
.site-footer__legal a:hover { color: var(--text-on-dark); }

@media (max-width: 900px) {
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer__main { grid-template-columns: 1fr; }
}

/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  background: var(--bg-dark) center/cover no-repeat;
  color: var(--text-on-dark);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17, 31, 35, 0.85) 0%, rgba(17, 31, 35, 0.5) 45%, rgba(220, 244, 255, 0.2) 65%, rgba(220, 244, 255, 0.2) 100%);
}
.hero_container {
  width: 100%;
}
.hero__inner { position: relative; z-index: 1; max-width: 560px;}
.hero__eyebrow { color: var(--text-on-dark); margin-bottom: var(--space-6); text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);}
.hero__title { color: var(--text-on-dark); margin-bottom: var(--space-6); text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);}
.hero__subtitle { color: var(--text-on-dark); margin-bottom: var(--space-8); text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);}
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero--sm { min-height: 420px; }

/* ================= Page Hero (inner pages: Inventory, Amenities, About, Financing) ================= */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--space-24) 120px;
  background-color: #1F363E;
  background-image: linear-gradient(90deg, #1F363E 0%, rgba(31, 54, 62, 0.7) 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-on-dark);
  overflow: hidden;
  min-height: 400px;
}
.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--brand-secondary-dark);
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--container-pad);
}
.page-hero__eyebrow { color: var(--text-on-dark); }
.page-hero__title { color: var(--text-on-dark); }
.page-hero__subtitle { color: var(--text-on-dark); max-width: 680px; }

@media (max-width: 900px) {
  .page-hero { padding: 20px; }
}

/* ================= Section head ================= */
.section-head .eyebrow { display: block; margin-bottom: var(--space-3); }
.section-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); }
.section-head__link { font-weight: 500; font-size: var(--text-body-sm); color: var(--text-brand); white-space: nowrap; }

/* ================= Feature list (checkmarks) ================= */
.feature-list__head { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-8); }
.feature-list__head .eyebrow { white-space: nowrap; }
.feature-list__rule { flex: 1; height: 1px; background: var(--border-default); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8) var(--space-6); }
.feature-item { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-body-xs); color: var(--text-secondary); }
.feature-item__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-primary);
  font-size: 11px; flex-shrink: 0; margin-top: 2px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

/* ================= Amenities feature grid (large left card + stacked right cards) ================= */
#featured-homes, #amenities {
  background: var(--bg-surface);
}
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
  margin-bottom: var(--space-12);
}
.amenities-grid__feature { display: flex; }
.amenities-grid__feature .amenity-card { flex: 1; height: 100%; min-height: 0; }
.amenities-grid__stack { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.amenities-grid__stack .amenity-card { min-height: 380px; }
@media (max-width: 900px) {
  .amenities-grid { grid-template-columns: 1fr; }
  .amenities-grid__feature .amenity-card { min-height: 440px; }
}

/* ================= Split / Mission section ================= */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--bg-dark);}
.split .eyebrow { color: var(--text-on-dark-muted);}
.split__text { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); padding: var(--space-16) var(--container-pad); color: var(--text-on-dark);}
.split__image { background: var(--bg-sand) center/cover no-repeat; min-height: 480px; }
.split .body-default, .split h2 {
  color: var(--text-on-dark-muted);
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ================= Steps ================= */
#next-steps {
  background: var(--bg-surface);
}
.step {
  border-radius: var(--radius-xl, 20px);
  border: 1px solid var(--border-default, #E4DDD3);
  background: var(--bg-base, #FAF8F5);
  padding: 40px 36px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.step__num { font-family: var(--font-display); font-weight: 600; font-size: var(--text-h4); color: var(--brand-primary); margin-bottom: var(--space-4); }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-h4); margin-bottom: var(--space-3); }
.step__desc { font-size: var(--text-body-xs); color: var(--text-secondary); line-height: var(--lh-body-xs); }
@media (max-width: 900px) { .step-grid { grid-template-columns: 1fr; } }

/* ================= Form Card ================= */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  max-width: 920px;
  margin-inline: auto;
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label { font-size: var(--text-body-xs); font-weight: 500; color: var(--text-primary); }
.form-field .req { color: var(--brand-primary); }
.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  font: inherit;
  font-size: var(--text-body);
  color: var(--text-primary);
  background: var(--bg-surface);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: 2px solid var(--brand-primary); outline-offset: 1px; }
.form-consent { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-8); font-size: var(--text-body-xs); color: var(--text-secondary); }
.form-consent input { margin-top: 3px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: var(--space-6); } }
