.relocation-page {
  --relocation-navy: #0c2438;
  --relocation-deep: #071824;
  --relocation-forest: #315747;
  --relocation-gold: #c99835;
  --relocation-gold-light: #e3bd68;
  --relocation-ivory: #f6f2e9;
  --relocation-cream: #fbf9f4;
  overflow: hidden;
  color: #172128;
  background: var(--relocation-cream);
}

.relocation-nav-cta {
  appearance: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: transparent;
}

.relocation-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 78% 28%, rgba(201, 152, 53, .15), transparent 27%),
    linear-gradient(118deg, var(--relocation-deep) 0%, var(--relocation-navy) 55%, #183a49 100%);
}

.relocation-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 72%);
}

.relocation-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, .62fr);
  align-items: center;
  gap: 90px;
  min-height: 790px;
  padding-block: 92px;
}

.relocation-hero-copy h1 {
  max-width: 810px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 6.4vw, 90px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .96;
  text-wrap: balance;
}

.relocation-hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.8);
  font-size: 19px;
  line-height: 1.75;
}

.relocation-hero-copy .button { border: 0; cursor: pointer; }

.relocation-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  color: rgba(255,255,255,.66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.relocation-trust span { position: relative; padding-left: 16px; }
.relocation-trust span::before { position: absolute; top: 50%; left: 0; width: 6px; height: 6px; content: ""; border-radius: 50%; background: var(--relocation-gold-light); transform: translateY(-50%); }

.relocation-cover-wrap {
  position: relative;
  width: min(395px, 100%);
  justify-self: end;
  padding: 16px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 42px 90px rgba(0,0,0,.38);
  transform: rotate(1.25deg);
}

.relocation-cover-wrap > img { position: relative; z-index: 1; width: 100%; }
.relocation-cover-accent { position: absolute; top: -24px; right: -24px; width: 130px; height: 130px; border-top: 2px solid var(--relocation-gold-light); border-right: 2px solid var(--relocation-gold-light); }
.relocation-cover-note { position: absolute; z-index: 2; right: -38px; bottom: 28px; left: 38px; padding: 20px 22px; color: var(--relocation-navy); background: var(--relocation-gold-light); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.relocation-cover-note span { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.relocation-cover-note strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; }

.relocation-includes { background: var(--relocation-ivory); }
.relocation-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(12,36,56,.16); border-left: 1px solid rgba(12,36,56,.16); }
.relocation-feature-grid article { display: flex; min-height: 330px; flex-direction: column; padding: 34px 29px; border-right: 1px solid rgba(12,36,56,.16); border-bottom: 1px solid rgba(12,36,56,.16); background: var(--relocation-cream); }
.relocation-feature-grid article:nth-child(2) { color: #fff; border-color: var(--relocation-forest); background: var(--relocation-forest); }
.relocation-feature-grid article > span { color: var(--relocation-gold); font-family: Georgia, "Times New Roman", serif; }
.relocation-feature-grid h3 { margin: 54px 0 16px; color: var(--relocation-navy); font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; line-height: 1.14; }
.relocation-feature-grid article:nth-child(2) h3 { color: #fff; }
.relocation-feature-grid p { margin: 0; color: #627078; font-size: 13px; line-height: 1.8; }
.relocation-feature-grid article:nth-child(2) p { color: rgba(255,255,255,.7); }
.relocation-feature-grid article::after { width: 35px; height: 1px; margin-top: auto; content: ""; background: var(--relocation-gold); }

.relocation-map-section { color: #fff; background: var(--relocation-forest); }
.relocation-map-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 100px; }
.relocation-map-frame { position: relative; padding: 20px; background: var(--relocation-navy); box-shadow: 0 30px 70px rgba(0,0,0,.27); }
.relocation-map-frame::after { position: absolute; right: -28px; bottom: -28px; width: 110px; height: 110px; content: ""; border-right: 2px solid var(--relocation-gold-light); border-bottom: 2px solid var(--relocation-gold-light); }
.relocation-map-frame img { width: 100%; }
.relocation-map-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 5.6vw, 72px); font-weight: 400; letter-spacing: -.036em; line-height: 1.02; }
.relocation-map-copy > p:not(.eyebrow) { margin: 28px 0; color: rgba(255,255,255,.74); font-size: 16px; line-height: 1.82; }
.relocation-map-copy ul { margin: 0 0 36px; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.relocation-map-copy li { padding: 16px 0; color: rgba(255,255,255,.74); border-bottom: 1px solid rgba(255,255,255,.18); font-size: 13px; line-height: 1.7; }
.relocation-map-copy li strong { color: #fff; }

.relocation-video-section { background: var(--relocation-cream); }
.relocation-video-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 90px; }
.relocation-video-copy h2 { margin: 0; color: var(--relocation-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 5.4vw, 68px); font-weight: 400; letter-spacing: -.034em; line-height: 1.03; }
.relocation-video-copy > p:not(.eyebrow) { margin: 27px 0; color: #627078; font-size: 15px; line-height: 1.82; }
.relocation-video-points { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 29px; border-top: 1px solid rgba(12,36,56,.15); }
.relocation-video-points span { padding: 15px 0; color: var(--relocation-navy); border-bottom: 1px solid rgba(12,36,56,.15); font-size: 12px; }
.relocation-open-form { appearance: none; padding: 0; border: 0; cursor: pointer; background: transparent; font: inherit; font-weight: 800; }
.relocation-video-player { padding: 18px; background: var(--relocation-navy); box-shadow: 0 28px 60px rgba(12,36,56,.22); }
.relocation-video-player video { width: 100%; aspect-ratio: 16/9; background: var(--relocation-deep); object-fit: cover; }
.relocation-video-player p { margin: 14px 4px 0; color: rgba(255,255,255,.6); font-size: 11px; line-height: 1.6; }

.relocation-youtube-section { color: #fff; background: var(--relocation-deep); }
.relocation-youtube-section .section-heading > p:last-child { color: rgba(255,255,255,.66); }
.relocation-youtube-section .section-heading h2 { color: #fff; }
.relocation-video-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.relocation-video-cards article { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.045); transition: transform .2s, border-color .2s; }
.relocation-video-cards article:hover { border-color: var(--relocation-gold-light); transform: translateY(-4px); }
.relocation-video-cards article > a { display: block; height: 100%; padding-bottom: 24px; }
.youtube-thumbnail { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.youtube-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.youtube-thumbnail::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(7,24,36,.45), transparent 58%); }
.youtube-thumbnail span { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: 58px; height: 58px; place-items: center; color: var(--relocation-navy); border-radius: 50%; background: var(--relocation-gold-light); box-shadow: 0 12px 28px rgba(0,0,0,.3); transform: translate(-50%, -50%); }
.relocation-video-cards h3 { min-height: 66px; margin: 22px 22px 11px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 400; line-height: 1.36; }
.relocation-video-cards p { margin: 0 22px; color: var(--relocation-gold-light); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.relocation-youtube-action { display: flex; justify-content: center; margin-top: 44px; }

.relocation-final-cta { color: #fff; background: var(--relocation-navy); }
.relocation-final-grid { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 74px; padding-block: 82px; }
.relocation-final-grid > img { width: 230px; box-shadow: 0 24px 50px rgba(0,0,0,.32); transform: rotate(-2deg); }
.relocation-final-grid h2 { max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 5.7vw, 72px); font-weight: 400; letter-spacing: -.036em; line-height: 1.02; }
.relocation-final-grid div > p:not(.eyebrow) { max-width: 680px; margin: 26px 0 34px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.8; }
.relocation-final-grid button { border: 0; cursor: pointer; }
.relocation-footer { padding-top: 76px; }
.relocation-mobile-bar button { flex: 1; color: inherit; border: 0; background: transparent; font: inherit; font-weight: 800; text-transform: uppercase; }

.relocation-modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 26px; background: rgba(7,24,36,.78); backdrop-filter: blur(8px); }
.relocation-modal-backdrop[hidden] { display: none; }
.relocation-modal { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; width: min(930px, 100%); max-height: calc(100vh - 52px); overflow-y: auto; background: var(--relocation-cream); box-shadow: 0 35px 100px rgba(0,0,0,.4); }
.relocation-modal-close { position: absolute; z-index: 2; top: 14px; right: 17px; width: 40px; height: 40px; color: var(--relocation-navy); border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.82); font-size: 30px; line-height: 1; }
.relocation-modal-intro { color: #fff; padding: 70px 48px; background: var(--relocation-navy); }
.relocation-modal-intro h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 45px; font-weight: 400; letter-spacing: -.03em; line-height: 1.04; }
.relocation-modal-intro > p:not(.eyebrow) { margin: 25px 0 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; }
.relocation-lead-form { display: grid; gap: 17px; padding: 62px 50px 46px; }
.relocation-lead-form > label:not(.consent-field) { display: grid; gap: 8px; color: var(--relocation-navy); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.relocation-lead-form label span { color: #718087; font-weight: 500; }
.relocation-lead-form input:not([type="checkbox"]), .relocation-lead-form select { width: 100%; height: 50px; padding: 0 14px; color: #172128; border: 1px solid rgba(12,36,56,.2); background: #fff; font-size: 14px; letter-spacing: normal; text-transform: none; }
.relocation-lead-form input:focus, .relocation-lead-form select:focus { outline: 2px solid var(--relocation-gold); outline-offset: 1px; }
.relocation-lead-form .consent-field { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: #627078; font-size: 10px; line-height: 1.55; }
.relocation-lead-form .consent-field input { margin-top: 2px; }
.relocation-lead-form .button { width: 100%; border: 0; cursor: pointer; }
.relocation-form-note { margin: -4px 0 0; color: #77858b; text-align: center; font-size: 10px; }
.relocation-form-success { padding: 22px; color: var(--relocation-navy); border: 1px solid rgba(49,87,71,.25); background: #edf4ef; font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.45; }

.communities-hero .relocation-guide-button { color: var(--navy-deep, #071824); border-color: var(--gold-light, #e3bd68); background: var(--gold-light, #e3bd68); }
.communities-hero .relocation-guide-button:hover { color: var(--navy, #0c2438); background: #fff; }

.buyers-book-page .relocation-map-grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 74px; }
.buyers-book-page .buyers-book-preview { padding: 12px; }
.buyers-book-page .buyers-book-preview img { aspect-ratio: 1.55 / 1; object-fit: cover; object-position: center; }
.buyers-book-page .relocation-map-copy .button { border: 0; cursor: pointer; }

.buyers-book-thank-you { min-height: 100vh; background: var(--relocation-deep); }
.buyers-book-thank-you-main { color: #fff; background: radial-gradient(circle at 75% 28%, rgba(201,152,53,.18), transparent 30%), linear-gradient(118deg, var(--relocation-deep), var(--relocation-navy)); }
.buyers-book-thank-you-grid { display: grid; grid-template-columns: minmax(250px, 390px) 1fr; align-items: center; gap: 90px; min-height: calc(100vh - 118px); padding-block: 74px; }
.buyers-book-thank-you-grid > img { width: 100%; box-shadow: 0 35px 80px rgba(0,0,0,.36); transform: rotate(-1deg); }
.buyers-book-thank-you-grid h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 7vw, 88px); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.buyers-book-thank-you-grid div > p:not(.eyebrow):not(.buyers-book-download-note) { max-width: 700px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.75; }
.buyers-book-download-note { margin: 20px 0 0; color: rgba(255,255,255,.55); font-size: 11px; }

@media (max-width: 1050px) {
  .relocation-hero-grid { gap: 55px; }
  .relocation-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .relocation-map-grid, .relocation-video-grid { gap: 60px; }
}

@media (max-width: 900px) {
  .relocation-hero-grid, .relocation-map-grid, .relocation-video-grid, .buyers-book-page .relocation-map-grid { grid-template-columns: 1fr; }
  .relocation-hero-grid { padding-block: 75px 95px; }
  .relocation-cover-wrap { width: min(410px, calc(100% - 30px)); justify-self: start; margin-top: 15px; }
  .relocation-map-frame { width: min(600px, 100%); }
  .relocation-video-player { order: -1; }
  .relocation-video-cards { grid-template-columns: repeat(2, 1fr); }
  .relocation-modal { grid-template-columns: 1fr; }
  .relocation-modal-intro { padding: 54px 45px 42px; }
  .relocation-lead-form { padding: 40px 45px 45px; }
  .buyers-book-thank-you-grid { grid-template-columns: 1fr; gap: 48px; }
  .buyers-book-thank-you-grid > img { width: min(370px, 80vw); }
}

@media (max-width: 600px) {
  .relocation-hero-grid { min-height: 0; padding-block: 58px 85px; }
  .relocation-hero-copy h1 { font-size: clamp(48px, 14vw, 65px); }
  .relocation-hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .relocation-hero-copy .hero-actions { flex-direction: column; align-items: stretch; }
  .relocation-cover-note { right: -18px; left: 22px; }
  .relocation-feature-grid, .relocation-video-cards, .relocation-video-points { grid-template-columns: 1fr; }
  .relocation-feature-grid article { min-height: 285px; }
  .relocation-map-grid { gap: 55px; }
  .relocation-map-frame { padding: 10px; }
  .relocation-map-frame::after { right: -10px; bottom: -14px; }
  .relocation-video-player { padding: 8px; }
  .relocation-final-grid { grid-template-columns: 1fr; gap: 45px; padding-block: 70px; }
  .relocation-final-grid > img { width: 180px; }
  .relocation-modal-backdrop { padding: 10px; }
  .relocation-modal { max-height: calc(100vh - 20px); }
  .relocation-modal-intro { padding: 55px 27px 35px; }
  .relocation-modal-intro h2 { font-size: 36px; }
  .relocation-lead-form { padding: 31px 27px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .relocation-cover-wrap { transform: none; }
  .relocation-video-cards article { transition: none; }
}
