/* ============================================================
   Canyon Villas — Shared Stylesheet
   Desert / canyon visual identity for Hurricane, UT
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Palette — warm desert canyon */
  --canyon: #a8432a;        /* deep terracotta red  */
  --canyon-dark: #7e2f1c;   /* darker terracotta    */
  --clay: #c8693f;          /* warm clay accent     */
  --sage: #74815f;          /* muted desert sage    */
  --sand: #e9dcc6;          /* sandstone            */
  --sand-soft: #f3ebdc;
  --cream: #fbf6ec;         /* page background      */
  --ink: #2b231e;           /* primary text         */
  --muted: #6f6358;         /* secondary text       */
  --line: #e4d8c4;          /* hairline borders     */
  --white: #ffffff;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing / sizing */
  --container: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(43, 35, 30, 0.06), 0 2px 8px rgba(43, 35, 30, 0.05);
  --shadow-md: 0 6px 18px rgba(43, 35, 30, 0.10), 0 2px 6px rgba(43, 35, 30, 0.06);
  --shadow-lg: 0 24px 60px rgba(43, 35, 30, 0.16);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { color: var(--muted); }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(64px, 9vw, 120px); }

.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--canyon);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--clay);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 16px;
}

.section-sub {
  margin-top: 16px;
  font-size: 1.075rem;
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--canyon);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--canyon-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.btn--light:hover {
  background: var(--white);
  color: var(--canyon-dark);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 246, 236, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}
.brand .mark { flex-shrink: 0; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.brand-logo { height: clamp(44px, 5.4vw, 54px); width: auto; display: block; }
.brand-logo--footer { height: 70px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--canyon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--canyon); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: clamp(60px, 10vw, 120px);
  overflow: hidden;
  background: linear-gradient(180deg, #f6c98a 0%, #e89f63 32%, #c8693f 64%, #a8432a 100%);
}
.hero__sky-glow {
  position: absolute;
  top: -10%;
  right: 8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 224, 0.95), rgba(255, 246, 224, 0) 65%);
  pointer-events: none;
}
.hero__mesa {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 3; }

.hero__inner { max-width: 720px; color: #fff; }

.hero .pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(126, 47, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  margin-top: 22px;
  text-shadow: 0 2px 24px rgba(126, 47, 28, 0.35);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
}
.hero__lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  margin-top: 22px;
  max-width: 54ch;
  text-shadow: 0 1px 12px rgba(126, 47, 28, 0.3);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.hero__stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #fff;
  line-height: 1;
}
.hero__stats .stat span {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

/* ---------- Community details (feature grid) ---------- */
.details { background: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand);
}
.feature .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sand-soft);
  color: var(--canyon);
  margin-bottom: 18px;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { font-size: 0.95rem; }

/* ---------- Property cards ---------- */
.properties { background: var(--sand-soft); position: relative; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}

.property-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.property-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, #e9c79a 0%, #cf8a55 45%, #b35a35 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.property-card__media svg.house { width: 84px; height: 84px; color: rgba(255, 255, 255, 0.85); position: relative; z-index: 2; }
.property-card__media .contours {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  z-index: 1;
}
.property-card__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 3;
}
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge--build { background: rgba(43, 35, 30, 0.82); color: #fff; }
.badge--save { background: var(--sage); color: #fff; }

.property-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.property-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.property-card__title { font-size: 1.35rem; margin-top: 4px; }

.specs {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}
.spec {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.spec svg { width: 18px; height: 18px; color: var(--canyon); flex-shrink: 0; }
.spec small { color: var(--muted); font-weight: 400; }

.property-card__foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price { line-height: 1.1; }
.price strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--canyon);
  display: block;
}
.price span { font-size: 0.78rem; color: var(--muted); }

.property-card .btn { padding: 12px 20px; font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--canyon) 0%, var(--canyon-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.cta-band .contours-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 2; text-align: center; }
.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  max-width: 18ch;
  margin-inline: auto;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 16px;
  font-size: 1.1rem;
  max-width: 52ch;
  margin-inline: auto;
}
.cta-band .hero__cta { justify-content: center; }

/* ---------- About page ---------- */
.about-hero {
  background: linear-gradient(180deg, var(--sand-soft), var(--cream));
  padding-block: clamp(72px, 10vw, 120px) clamp(48px, 6vw, 80px);
  text-align: center;
}
.about-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-top: 16px; }
.about-hero p { font-size: 1.15rem; max-width: 60ch; margin: 20px auto 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.prose p + p { margin-top: 18px; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }

.media-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #e9c79a, #b35a35);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}
.media-card svg.scene { width: 100%; height: 100%; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-card {
  padding: 28px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.stat-card strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--canyon);
  display: block;
  line-height: 1;
}
.stat-card span { font-size: 0.9rem; color: var(--muted); margin-top: 8px; display: block; }

.value-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list .tick {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: grid;
  place-items: center;
}
.value-list .tick svg { width: 16px; height: 16px; }
.value-list h4 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; }
.value-list p { font-size: 0.95rem; margin-top: 2px; }

/* ---------- Contact page ---------- */
.contact-hero {
  background: linear-gradient(180deg, var(--sand-soft), var(--cream));
  padding-block: clamp(64px, 8vw, 96px) clamp(36px, 5vw, 56px);
  text-align: center;
}
.contact-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-top: 14px; }
.contact-hero p { font-size: 1.12rem; max-width: 54ch; margin: 18px auto 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: var(--canyon); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--canyon);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(168, 67, 42, 0.12);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f6358' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--canyon); flex-shrink: 0; }

/* visually-hidden honeypot */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e7efe1; color: #3c5230; border: 1px solid #c4d6b6; }
.form-status.is-error { background: #f7e3dd; color: #8a341f; border: 1px solid #e6c2b6; }
.form-status.is-info { background: var(--sand-soft); color: var(--ink); border: 1px solid var(--sand); }

/* Contact info sidebar */
.info-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.info-card h3 { color: #fff; font-size: 1.5rem; }
.info-card > p { color: rgba(251, 246, 236, 0.78); margin-top: 8px; font-size: 0.96rem; }
.info-list { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .info-ic {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(200, 105, 63, 0.25);
  color: var(--clay);
  display: grid;
  place-items: center;
}
.info-list .info-ic svg { width: 20px; height: 20px; }
.info-list .label { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(251, 246, 236, 0.6); }
.info-list .value { color: #fff; font-weight: 500; font-size: 1.02rem; }
.info-list a.value:hover { color: var(--clay); }

.hours {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 246, 236, 0.16);
  font-size: 0.92rem;
  color: rgba(251, 246, 236, 0.82);
}
.hours strong { color: #fff; display: block; margin-bottom: 8px; font-family: var(--font-body); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(251, 246, 236, 0.72);
  padding-block: 64px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(251, 246, 236, 0.55); }
.footer-about { margin-top: 16px; font-size: 0.95rem; max-width: 38ch; color: rgba(251, 246, 236, 0.66); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, 0.55);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { font-size: 0.96rem; color: rgba(251, 246, 236, 0.78); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--clay); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 246, 236, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: rgba(251, 246, 236, 0.5);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  /* Hide header CTAs on mobile so the brand + menu toggle always fit;
     actions are covered by the dropdown menu, hero CTAs, and call button. */
  .nav .nav-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__cta .btn,
  .cta-band .hero__cta .btn { width: 100%; }
  .property-card__foot { flex-direction: column; align-items: stretch; }
  .property-card__foot .btn { width: 100%; }
}

/* ---------- Financing / 3-2-1 Buydown ---------- */
.finance { background: var(--white); }

.finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.finance-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.finance-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.finance-card__head {
  padding: 22px 22px 18px;
  background: var(--sand-soft);
  border-bottom: 1px solid var(--line);
}
.finance-card__head .pname {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.finance-card__head h3 { font-size: 1.3rem; margin-top: 4px; }
.finance-card__head .meta { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.finance-card__head .pprice {
  font-family: var(--font-display); font-size: 1.45rem;
  color: var(--canyon); margin-top: 8px;
}

.finance-highlight {
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--canyon), var(--canyon-dark));
  color: #fff;
}
.finance-highlight .lbl {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85;
}
.finance-highlight .amt {
  font-family: var(--font-display); font-size: 2rem; line-height: 1; margin-top: 4px;
}
.finance-highlight .amt span { font-size: 0.85rem; font-family: var(--font-body); opacity: 0.9; }
.finance-highlight .cmp { font-size: 0.82rem; opacity: 0.92; margin-top: 7px; }
.finance-highlight .cmp s { opacity: 0.7; }

.pay-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.pay-table th, .pay-table td { padding: 9px clamp(14px, 2.4vw, 22px); text-align: right; }
.pay-table th:first-child, .pay-table td:first-child { text-align: left; }
.pay-table thead th {
  font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line);
  padding-top: 14px;
}
.pay-table tbody tr { border-bottom: 1px solid var(--line); }
.pay-table tbody tr.is-market td { color: var(--muted); }
.pay-table tbody tr.is-year td:first-child { font-weight: 600; color: var(--ink); }
.pay-table .yr-rate { color: #56603f; font-weight: 600; }

.finance-savings {
  margin-top: auto;
  padding: 16px clamp(14px, 2.4vw, 22px);
  background: var(--sand-soft);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.finance-savings .lbl { font-size: 0.82rem; color: var(--muted); }
.finance-savings .val {
  font-family: var(--font-display); font-size: 1.25rem; color: #56603f; font-weight: 700;
}

/* buydown tag on property cards */
.buydown-tag {
  display: flex; align-items: center; gap: 9px;
  margin-top: 16px;
  padding: 11px 13px;
  background: var(--sand-soft);
  border: 1px dashed var(--clay);
  border-radius: var(--radius-sm);
  font-size: 0.85rem; line-height: 1.35; color: var(--ink);
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
/* It's a link to the Financing page now. */
a.buydown-tag:hover { background: #f2e7d3; border-color: var(--canyon); }
a.buydown-tag:hover strong { text-decoration: underline; }
.buydown-tag svg { width: 19px; height: 19px; color: var(--canyon); flex-shrink: 0; }
.buydown-tag strong { color: var(--canyon); }

/* preferred lender band */
.lender {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: clamp(22px, 3vw, 34px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.lender__who .k {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--canyon); font-weight: 600;
}
.lender__who h3 { font-size: 1.25rem; margin-top: 6px; }
.lender__who p { font-size: 0.92rem; margin-top: 4px; }
.lender__who a { color: var(--canyon); font-weight: 500; }
.lender__contact { display: flex; flex-wrap: wrap; gap: 10px; }
.lender__contact .btn { padding: 13px 22px; }

/* disclaimers / legal */
.disclaimer { margin-top: 30px; }
.eho {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--ink);
}
.eho svg { width: 20px; height: 20px; color: var(--ink); }
.disclaimer h4 {
  font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin: 16px 0 8px;
}
.disclaimer p { font-size: 0.74rem; line-height: 1.65; color: var(--muted); max-width: 95ch; }
.disclaimer p + p { margin-top: 8px; }

/* footer legal line */
.footer-legal {
  font-size: 0.74rem; line-height: 1.6;
  color: rgba(251, 246, 236, 0.48);
  margin-top: 10px;
}

/* ---------- Lender logo lockup ---------- */
.lender__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lender__logo {
  width: 54px; height: 54px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #244463, #11283f);
  box-shadow: var(--shadow-sm);
}
.lender__logo svg { width: 32px; height: 32px; }
.lender__wordmark .l1 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.18rem;
  color: var(--ink); line-height: 1.05;
}
.lender__wordmark .l2 { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ---------- Financing teaser (homepage) ---------- */
.finance-teaser-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sand-soft), var(--cream));
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}
.finance-teaser-card .section-title { margin-top: 14px; }
.finance-teaser-card > p { margin-top: 14px; max-width: 60ch; font-size: 1.05rem; }
.teaser-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }
.teaser-chips span {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 17px; font-size: 0.9rem; box-shadow: var(--shadow-sm);
}
.teaser-chips strong { color: var(--canyon); }

/* ---------- Sticky mobile call button ---------- */
.call-fab {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--canyon);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 0 10px 28px rgba(126, 47, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.call-fab:hover { background: var(--canyon-dark); color: #fff; }
.call-fab svg { width: 20px; height: 20px; flex-shrink: 0; }
.call-fab small { font-weight: 500; opacity: 0.85; font-size: 0.78rem; }

@media (max-width: 760px) {
  .call-fab { display: flex; }
  body { padding-bottom: 86px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Legal pages (Privacy Policy, Terms & Conditions)
   ============================================================ */
.legal-hero {
  background: linear-gradient(180deg, var(--sand-soft), var(--cream));
  padding-block: clamp(64px, 8vw, 96px) clamp(28px, 4vw, 44px);
  text-align: center;
}
.legal-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin-top: 14px; }
.legal-hero p.updated {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal {
  max-width: 820px;
  margin-inline: auto;
}
.legal .toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
}
.legal .toc h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal .toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 36px;
  font-size: 0.93rem;
}
.legal .toc li { margin-bottom: 6px; break-inside: avoid; }
.legal .toc a { color: var(--canyon); text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }

.legal section { margin-bottom: 38px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  color: var(--canyon-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}
.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 8px;
}
.legal p { margin-bottom: 14px; }
.legal p + p { margin-top: 0; }
.legal ul, .legal ol.body-list { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--canyon); }
.legal strong { color: var(--ink); }

/* Highlighted compliance callout (SMS terms, consent summary) */
.legal .callout {
  background: var(--sand-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 18px 0 24px;
}
.legal .callout p:last-child { margin-bottom: 0; }

/* Business-info / contact card at the end of legal docs */
.legal .biz-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.legal .biz-card p { margin-bottom: 4px; }
.legal .biz-card .biz-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.legal .biz-card a { text-decoration: none; }
.legal .biz-card a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .legal .toc ol { columns: 1; }
}

/* Footer legal links + DBA line */
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(251, 246, 236, 0.7); }
.footer-legal-links a:hover { color: #fff; }

/* Provisional placeholder highlight — swapped out once real values are provided */
.todo { background: #ffe4a3; color: #7a4a00; padding: 0 5px; border-radius: 3px; font-weight: 600; white-space: nowrap; }

/* Property card photo (from the database) — fills the media area,
   layering over the SVG illustration fallback. */
.property-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.property-grid.is-loading { opacity: 0.55; transition: opacity 0.2s var(--ease); }

/* ============================================================
   Hero background photo (uploaded in the admin)
   ------------------------------------------------------------
   Added as a layer over the existing gradient rather than
   replacing it, so the gradient remains the fallback whenever no
   image is set or the API is unreachable.
   ============================================================ */
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.hero__photo.is-loaded { opacity: 1; }

/* Scrim: the headline is light, so it needs contrast against an
   arbitrary photo. Without this, text over a bright sky is unreadable. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(43, 35, 30, 0.55) 0%, rgba(43, 35, 30, 0.28) 45%, rgba(43, 35, 30, 0.62) 100%),
    linear-gradient(90deg, rgba(43, 35, 30, 0.5) 0%, rgba(43, 35, 30, 0.05) 65%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.hero__scrim.is-loaded { opacity: 1; }

/* Keep copy and the decorative mesa above the photo. */
.hero .container { position: relative; z-index: 2; }
.hero__mesa { z-index: 2; }

/* Financing cards — "call for details" treatment (replaces specific
   payment figures with a call-to-action). */
.finance-highlight .amt--call {
  font-size: 1.5rem;
  line-height: 1.1;
}
.finance-cta {
  margin-top: auto; /* anchor to the card bottom, like the old savings row */
  padding: 18px clamp(14px, 2.4vw, 22px) 20px;
  background: var(--sand-soft);
  border-top: 1px solid var(--line);
}
.finance-cta .btn { width: 100%; justify-content: center; }
.finance-cta__note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
