:root {
  --cream: #f6efe3;
  --sand: #e7dccb;
  --white: #fffdf9;
  --charcoal: #24211d;
  --muted: #6d665e;
  --sage: #74816a;
  --olive: #4e5b45;
  --copper: #b7623d;
  --copper-dark: #87422b;
  --border: #d7cbbb;
  --focus: #2f6f9f;
  --shadow: 0 18px 50px rgba(36, 33, 29, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--charcoal);
  color: var(--white);
  padding: .75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-logo {
  width: min(260px, 52vw);
  height: auto;
  display: block;
}

.brand strong {
  display: block;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .78rem;
  font-size: .9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
}

.nav-links a:hover {
  color: var(--copper-dark);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .78rem 1.05rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 750;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border .2s ease;
}

.nav-cta,
.button.primary {
  background: var(--copper);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 253, 249, .8);
  color: var(--charcoal);
  border-color: var(--border);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  font-weight: 800;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: grid;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 33, 29, .78), rgba(36, 33, 29, .18)),
    linear-gradient(135deg, #b7623d 0%, #74816a 42%, #f6efe3 100%);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 9% 0 0 42%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.38), transparent 12%),
    linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.04));
  clip-path: polygon(10% 70%, 20% 48%, 32% 59%, 42% 28%, 56% 64%, 73% 33%, 90% 74%, 100% 100%, 0 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 2rem;
  align-items: end;
  padding: 5rem 0;
}

.hero-copy {
  color: var(--white);
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--copper-dark);
  font-weight: 850;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .12em;
}

.hero .eyebrow {
  color: #f8d4be;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.45rem;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 720px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.quick-card,
.contact-panel,
.quiz {
  background: rgba(255, 253, 249, .94);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.quick-card a,
.contact-panel a {
  display: block;
  font-weight: 800;
  color: var(--copper-dark);
  margin-top: .45rem;
}

.section {
  padding: 5rem 0;
}

.section.contrast {
  background: var(--olive);
  color: var(--white);
}

.section.contrast .eyebrow {
  color: #f8d4be;
}

.section.muted {
  background: var(--sand);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.article-card,
.area-card,
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-range {
  margin: .2rem 0 1rem;
  color: var(--copper-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}

.info-card:hover,
.article-card:hover,
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  padding: .25rem .55rem;
  background: rgba(116, 129, 106, .15);
  color: var(--olive);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .9rem;
}

.info-card a,
.article-card a,
.area-card a,
.feature-link {
  color: var(--copper-dark);
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.neighborhood-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.neighborhood-tile {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  display: flex;
  align-items: end;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: var(--shadow);
}

.neighborhood-tile:nth-child(1),
.neighborhood-tile:nth-child(8) {
  grid-column: span 2;
}

.neighborhood-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--sage), var(--copper));
  transform: scale(1.02);
  transition: transform .45s ease;
}

.neighborhood-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(36, 33, 29, .08), rgba(36, 33, 29, .78)),
    radial-gradient(circle at 72% 20%, rgba(255, 253, 249, .22), transparent 20%);
}

.neighborhood-tile:hover::before {
  transform: scale(1.08);
}

.tile-content {
  width: 100%;
  color: var(--white);
  padding: 1.4rem;
}

.tile-content span {
  display: inline-flex;
  margin-bottom: .7rem;
  padding: .28rem .6rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(36, 33, 29, .28);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.tile-content h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  margin-bottom: .65rem;
}

.tile-content p {
  max-width: 620px;
  margin: 0;
}

.tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}

.tile-actions a {
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, .75);
}

.tile-old-town::before {
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .2), rgba(36, 33, 29, .18)),
    linear-gradient(145deg, #26201c 0%, #87422b 45%, #d6a16e 100%);
}

.tile-north-scottsdale::before {
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .08), rgba(36, 33, 29, .15)),
    linear-gradient(145deg, #3f4f43 0%, #74816a 45%, #c7b189 100%);
}

.tile-mccormick::before {
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .1), rgba(36, 33, 29, .18)),
    linear-gradient(145deg, #4e5b45 0%, #8ea076 48%, #d8c99f 100%);
}

.tile-gainey::before {
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .12), rgba(36, 33, 29, .18)),
    linear-gradient(145deg, #53634b 0%, #b7623d 58%, #e7dccb 100%);
}

.tile-dc-ranch::before {
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .12), rgba(36, 33, 29, .18)),
    linear-gradient(145deg, #2d3b34 0%, #7a6e57 48%, #c78257 100%);
}

.tile-grayhawk::before {
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .1), rgba(36, 33, 29, .2)),
    linear-gradient(145deg, #59685a 0%, #9a8c63 52%, #dbc89b 100%);
}

.tile-troon::before {
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .1), rgba(36, 33, 29, .2)),
    linear-gradient(145deg, #3b3730 0%, #9a6b48 48%, #d5b685 100%);
}

.tile-kierland::before {
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .15), rgba(36, 33, 29, .22)),
    linear-gradient(145deg, #24211d 0%, #6f5a49 45%, #b7623d 100%);
}

.tile-silverleaf::before {
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .08), rgba(36, 33, 29, .2)),
    linear-gradient(145deg, #2f332d 0%, #4e5b45 40%, #c3ad7e 100%);
}

.tile-south-scottsdale::before {
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .12), rgba(36, 33, 29, .2)),
    linear-gradient(145deg, #87422b 0%, #b7623d 42%, #e4c59a 100%);
}

.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(36, 33, 29, .25), rgba(36, 33, 29, .75)),
    linear-gradient(135deg, var(--copper), var(--sage));
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
}

.video-frame::after {
  content: "";
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 253, 249, .92);
  box-shadow: var(--shadow);
}

.video-frame.has-video::before,
.video-frame.has-video::after,
.video-frame.has-video span {
  display: none;
}

.video-frame span {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--copper-dark);
  transform: translateX(3px);
}

.video-frame video,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-card-content {
  padding: 1.2rem;
}

.video-card-content h2,
.video-card-content h3 {
  margin-bottom: .55rem;
}

.video-meta {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 .8rem;
}

.video-note {
  display: block;
  margin-top: .8rem;
  color: var(--olive);
  font-weight: 850;
  font-size: .9rem;
}

.feature-link {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-decoration: none;
  color: var(--charcoal);
}

.feature-link span {
  display: block;
  font-weight: 900;
  color: var(--copper-dark);
  margin-bottom: .5rem;
}

.quiz {
  display: grid;
  gap: .8rem;
  color: var(--charcoal);
}

label {
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  padding: .8rem;
  font: inherit;
}

textarea {
  min-height: 130px;
}

.quiz-result {
  min-height: 1.6rem;
  font-weight: 800;
  color: var(--olive);
}

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.footer-grid a {
  display: block;
  color: var(--white);
  font-weight: 800;
}

.legal {
  margin-top: 1.5rem;
  color: #d9d0c3;
  font-size: .88rem;
}

.page-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, var(--cream), var(--sand));
}

.page-hero .lead {
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.content-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.sidebar {
  position: sticky;
  top: 100px;
}

.list-check {
  padding-left: 1.1rem;
}

.list-check li {
  margin-bottom: .55rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  text-align: left;
  padding: .9rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(116, 129, 106, .12);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: .8rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .feature-list,
  .neighborhood-showcase,
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }

  .neighborhood-tile:nth-child(1),
  .neighborhood-tile:nth-child(8) {
    grid-column: span 1;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: .92rem;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.75rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .card-grid.three,
  .feature-list,
  .neighborhood-showcase,
  .video-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .neighborhood-tile {
    min-height: 330px;
  }
}
