/* ==========================================================================
   Meva Estates — Home v2 sections
   Parent theme CSS is dequeued on this template; tokens, grid, header and
   footer come from meva-chrome.css, which loads site-wide.
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.mv-body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
/* Keep chrome logo sized — bare img { height:auto } must not win on equal specificity elsewhere */
body.mv-body .mv-logo img {
  width: auto;
  height: 42px;
  max-height: 42px;
  max-width: none;
  object-fit: contain;
}
body.mv-body .mv-logo--foot img {
  height: 80px;
  max-height: 80px;
  max-width: none;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.012em;
  color: var(--charcoal);
  font-optical-sizing: auto;
}

/* ------------------------------------------------------------------- hero */

.mv-hero {
  position: relative;
  padding-top: 148px;
  padding-bottom: 46px;
  background: linear-gradient(180deg, #f4f1ea 0%, #f8f6f0 100%);
  overflow: hidden;
}
.mv-hero__bg { position: absolute; inset: 0; z-index: 0; }
.mv-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.mv-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(94deg, rgba(248, 246, 240, .97) 0%, rgba(248, 246, 240, .9) 26%,
      rgba(248, 246, 240, .45) 44%, rgba(248, 246, 240, 0) 58%),
    linear-gradient(180deg, rgba(248, 246, 240, .5) 0%, rgba(248, 246, 240, 0) 22%);
}

.mv-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  min-height: 430px;
}
.mv-hero__copy { max-width: 560px; }

.mv-hero__title {
  font-size: clamp(34px, 3.65vw, 52px);
  line-height: 1.09;
  margin-bottom: 20px;
}
.mv-hero__text {
  max-width: 420px;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 30px;
}
.mv-hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.mv-play { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 500; }
.mv-play__disc {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(43, 41, 37, .3);
  border-radius: 50%;
  color: var(--charcoal);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.mv-play:hover .mv-play__disc { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

.mv-hero__aside {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.32;
  text-align: right;
  color: #fff;
  text-shadow: 0 2px 22px rgba(20, 18, 14, .4);
}

/* ------------------------------------------------------------- search bar */

.mv-search-wrap { position: relative; z-index: 2; margin-top: 44px; }

.mv-search {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 18px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(43, 41, 37, .07);
  border-radius: 10px;
  box-shadow: 0 22px 54px rgba(31, 29, 24, .14);
}
.mv-search__field { min-width: 0; }
.mv-search__field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.mv-select { position: relative; }
.mv-select select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 13px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--charcoal);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mv-select select:hover { border-color: #d3cab8; }
.mv-select select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 161, 90, .14); outline: none; }
.mv-select > .mv-i {
  position: absolute;
  top: 50%; right: 13px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.mv-search__submit {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.mv-search__submit:hover { background: var(--gold-dark); transform: scale(1.05); }

/* -------------------------------------------------------------- value row */

.mv-usp { background: var(--cream); padding: 54px 0 56px; }
.mv-usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mv-usp__item {
  padding: 0 34px;
  text-align: center;
  border-left: 1px solid var(--hair);
}
.mv-usp__item:first-child { border-left: 0; }
.mv-usp__icon { display: block; margin: 0 auto 16px; color: var(--gold); width: 26px; }
.mv-usp__title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 11px;
}
.mv-usp__text { font-size: 13px; color: var(--muted); line-height: 1.62; }

/* ---------------------------------------------------------------- section */

.mv-section { padding: 94px 0; }
.mv-section--devs { background: var(--white); }
.mv-seo.mv-seo--lead {
  padding: 64px 0;
  background: #fff;
}
.mv-seo.mv-seo--lead p:last-child { margin-bottom: 0; }
.mv-seo.mv-seo--lead + .mv-section--devs { padding-top: 0; }
.mv-section--locs { background: var(--cream); }
.mv-section--types { background: var(--white); }
.mv-section--journal { background: var(--white); padding-bottom: 86px; }

.mv-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.mv-section__head--stack { margin-bottom: 34px; }
.mv-section__title {
  font-size: clamp(27px, 2.85vw, 40px);
  line-height: 1.14;
}
.mv-lede { max-width: 470px; font-size: 14.5px; color: var(--muted); margin: 18px 0 28px; }

[data-mv-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-mv-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------- featured developments */
/* Card chrome (.mv-dev*) lives in meva-chrome.css — keep in sync site-wide */

.mv-section__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ------------------------------------------------------------------ about */

.mv-about { background: var(--cream-deep); padding: 0; }
.mv-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-block: 84px;
}
.mv-about__media { position: relative; margin: 0; border-radius: 6px; overflow: hidden; }
.mv-about__media img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.mv-about__media figcaption {
  position: absolute;
  left: 30px; bottom: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 20px rgba(20, 18, 14, .45);
}
.mv-about__body .mv-section__title { margin-bottom: 4px; }

.mv-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  padding-top: 4px;
}
.mv-values li {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 6px 12px;
  text-align: center;
  border-left: 1px solid var(--hair);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.mv-values li:first-child { border-left: 0; }
.mv-values .mv-i { color: var(--muted); }

/* -------------------------------------------------------------- locations */

.mv-loc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.mv-loc {
  background: #fff;
  border: 1px solid var(--hair-soft);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.mv-loc:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(31, 29, 24, .11); }
.mv-loc__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.mv-loc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mv-loc:hover .mv-loc__media img { transform: scale(1.05); }
.mv-loc__body { padding: 15px 16px 17px; }
.mv-loc__title { font-size: 16px; margin-bottom: 7px; }
.mv-loc__copy { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }

/* -------------------------------------------------------------- lifestyle */

.mv-life { position: relative; overflow: hidden; }
.mv-life__bg { position: absolute; inset: 0; z-index: 0; }
.mv-life__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.mv-life__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(97deg, rgba(31, 46, 58, .84) 0%, rgba(31, 46, 58, .62) 44%,
    rgba(31, 46, 58, .34) 72%, rgba(31, 46, 58, .2) 100%);
}
.mv-life__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  padding-block: 78px;
  color: #fff;
}
.mv-life__title {
  font-size: clamp(27px, 2.9vw, 40px);
  line-height: 1.14;
  color: #fff;
  margin-bottom: 16px;
}
.mv-life__text { max-width: 520px; font-size: 14px; color: rgba(255, 255, 255, .84); margin-bottom: 28px; }

.mv-life__list { display: none; gap: 17px; }
.mv-life__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 12px rgba(16, 26, 34, .55);
}
.mv-life__list .mv-i { color: rgba(255, 255, 255, .85); }

/* --------------------------------------------------------- property types */

.mv-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mv-type { border-bottom: 1px solid var(--hair); padding-bottom: 20px; }
.mv-type__media { display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; }
.mv-type__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mv-type:hover .mv-type__media img { transform: scale(1.05); }
.mv-type__body { padding-top: 16px; }
.mv-type__title { font-size: 17px; margin-bottom: 7px; }
.mv-type__copy { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; min-height: 39px; }

/* ------------------------------------------------------------ buyer guides */

.mv-guides { background: var(--white); padding-top: 0; }
.mv-guides__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 66px; align-items: start; }
.mv-guides__intro .mv-section__title { font-size: clamp(25px, 2.5vw, 35px); }

.mv-guide-list { display: grid; }
.mv-guide { border-top: 1px solid var(--hair); }
.mv-guide:last-child { border-bottom: 1px solid var(--hair); }
.mv-guide > a {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 4px;
  transition: background .25s var(--ease);
}
.mv-guide > a:hover { background: var(--cream); }
.mv-guide img { width: 96px; height: 66px; object-fit: cover; border-radius: 3px; }
.mv-guide__text { display: grid; gap: 4px; }
.mv-guide__text strong { font-size: 14px; font-weight: 500; color: var(--charcoal); }
.mv-guide__text em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.mv-guide .mv-arrow { color: var(--muted); transition: transform .3s var(--ease); }
.mv-guide > a:hover .mv-arrow { transform: translateX(4px); color: var(--charcoal); }

/* ------------------------------------------------------------ lead capture */

.mv-lead { background: var(--cream); }
.mv-lead__grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: stretch; }

.mv-lead__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 56px 72px max(40px, calc((100vw - var(--shell)) / 2 + 40px));
  background: var(--forest);
  color: #fff;
  overflow: hidden;
}
.mv-lead__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .1) 0%, transparent 60%),
    radial-gradient(80% 70% at 0% 100%, rgba(255, 255, 255, .06) 0%, transparent 60%);
  pointer-events: none;
}
.mv-lead__title { font-size: clamp(26px, 2.7vw, 37px); line-height: 1.14; color: #fff; margin-bottom: 16px; }
.mv-lead__text { font-size: 14px; color: rgba(255, 255, 255, .78); max-width: 330px; }

.mv-lead__form {
  padding: 56px 40px 56px 56px;
  padding-right: max(40px, calc((100vw - var(--shell)) / 2 + 40px));
}

.mv-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; }
.mv-field { display: grid; gap: 7px; min-width: 0; }
.mv-field > label { font-size: 11px; font-weight: 500; color: var(--muted); }
.mv-field > label span { color: var(--gold-dark); }
.mv-field--wide { grid-column: 1 / -1; }
.mv-field--submit { grid-column: 1 / -1; justify-items: end; margin-top: 2px; }

.mv-field input,
.mv-field textarea {
  width: 100%;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  font-size: 13.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mv-field input { height: 44px; padding-block: 0; }
.mv-field textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.mv-field input::placeholder,
.mv-field textarea::placeholder { color: #a79d8e; }
.mv-field input:focus,
.mv-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 161, 90, .14);
  outline: none;
}

/* ---------------------------------------------------------------- journal */

.mv-post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mv-post { display: grid; grid-template-columns: 104px 1fr; gap: 15px; align-items: start; }
.mv-post__media { display: block; border-radius: 4px; overflow: hidden; }
.mv-post__media img { width: 104px; height: 88px; object-fit: cover; transition: transform .8s var(--ease); }
.mv-post:hover .mv-post__media img { transform: scale(1.06); }
.mv-post__title { font-size: 14.5px; line-height: 1.32; margin-bottom: 6px; }
.mv-post__title a:hover { color: var(--gold-dark); }
.mv-post__copy { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.mv-post__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #9b9284;
}
.mv-post__meta > span { white-space: nowrap; }

/* Parent theme relies on its own .hidden utility, which is dequeued here. */
.hidden { display: none !important; }

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 1180px) {
  .mv-loc-grid { grid-template-columns: repeat(3, 1fr); }
  .mv-post-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 30px; }
  .mv-guides__grid { gap: 44px; }
}

@media (max-width: 1024px) {
  .mv-hero { padding-top: 128px; }
  .mv-hero__aside { display: none; }
  .mv-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .mv-search__submit { grid-column: 1 / -1; width: 100%; border-radius: 999px; height: 46px; }
  .mv-usp__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .mv-usp__item:nth-child(3) { border-left: 0; }
  .mv-dev-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-about__grid { grid-template-columns: 1fr; gap: 36px; padding-block: 64px; }
  .mv-type-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-guides__grid { grid-template-columns: 1fr; gap: 34px; }
  .mv-life__grid { grid-template-columns: 1fr; gap: 34px; padding-block: 62px; }
  .mv-life__list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .mv-lead__grid { grid-template-columns: 1fr; }
  .mv-lead__panel { padding: 54px 28px; }
  .mv-lead__form { padding: 40px 28px 52px; }
  .mv-form { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body.mv-body { font-size: 14.5px; }
  .mv-section { padding: 44px 0; }
  .mv-seo.mv-seo--lead { padding: 44px 0; }
  .mv-seo.mv-seo--lead + .mv-section--devs { padding-top: 0; }
  .mv-section--types { padding-bottom: 28px; }
  .mv-guides { padding-top: 8px; padding-bottom: 44px; }
  .mv-section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .mv-section__head--stack { margin-bottom: 22px; }
  .mv-hero { padding-top: 112px; padding-bottom: 30px; }
  .mv-hero__bg img { object-position: 68% 50%; }
  .mv-hero__bg::after {
    background: linear-gradient(180deg, rgba(248, 246, 240, .96) 0%, rgba(248, 246, 240, .88) 44%,
      rgba(248, 246, 240, .3) 74%, rgba(248, 246, 240, .12) 100%);
  }
  .mv-hero__inner { min-height: 0; }
  .mv-hero__actions { gap: 16px; }
  .mv-search { grid-template-columns: 1fr; padding: 18px; }
  .mv-usp { padding: 36px 0; }
  .mv-usp__grid { grid-template-columns: 1fr; gap: 30px; }
  .mv-usp__item { border-left: 0; padding: 0; }
  .mv-dev-grid,
  .mv-loc-grid,
  .mv-type-grid,
  .mv-post-grid { grid-template-columns: 1fr; gap: 20px; }
  .mv-type { padding-bottom: 16px; }
  .mv-values { grid-template-columns: 1fr; gap: 22px; }
  .mv-values li { border-left: 0; grid-template-columns: 24px 1fr; justify-items: start; text-align: left; align-items: center; }
  .mv-life__list { grid-template-columns: 1fr; }
  .mv-about__grid { padding-block: 48px; gap: 28px; }
  .mv-life__grid { padding-block: 48px; gap: 28px; }
  .mv-section--journal { padding-bottom: 52px; }
  .mv-form { grid-template-columns: 1fr; }
  .mv-field--submit { justify-items: stretch; }
  .mv-field--submit .mv-btn { justify-content: center; }
  .mv-post { grid-template-columns: 88px 1fr; }
  .mv-post__media img { width: 88px; height: 76px; }
  .mv-guide > a { grid-template-columns: 72px 1fr auto; gap: 14px; }
  .mv-guide img { width: 72px; height: 54px; }
  .mv-guides__grid { gap: 24px; }
  .mv-section__cta { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-mv-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
