/* Desert Breeze Real Estate Partners: shared polish layer.
   Loaded LAST on every page, so it overrides page-level styles. Rules documented in DESIGN.md.
   Fixes button contrast, sharpens the main call to action, adds the phone action bar. */

:root {
  --primary: #a34f22;
  --primary-hover: #8a421c;
  --text: #2b2019;
  --muted: #6f5f53;
  --pl-shadow: 0 10px 30px rgba(26, 17, 12, 0.1);
}

/* ---- Buttons: readable white-on-dark-orange, dark-on-gold ---- */
.btn,
.vform button,
nav.main .cta-li a,
header nav .cta,
.pl-btn {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 4px;
}
.btn:hover,
.vform button:hover,
nav.main .cta-li a:hover,
header nav .cta:hover,
.pl-btn:hover {
  background: var(--primary-hover) !important;
}
.btn.ghost {
  background: transparent !important;
  border: 2px solid var(--sand);
  color: var(--sand) !important;
}
.btn.ghost:hover {
  background: rgba(217, 163, 91, 0.15) !important;
}
.ctas a {
  color: var(--ink) !important;
  font-weight: 500;
  text-shadow: none;
}
.vform button {
  font-weight: 600;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 2px;
}
.vform input:focus-visible,
.vform select:focus-visible,
.box input:focus-visible {
  outline-color: var(--primary);
}
.vnote,
.fine,
.note {
  color: var(--muted);
}
.vnote strong {
  color: var(--ink);
}

/* ---- Homepage hero: one main action + phone ---- */
.hero-grid.pl-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-grid.pl-hero-actions a {
  min-width: 0;
  border-radius: 4px;
  letter-spacing: 0.08em;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 28px;
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
}
.hero-grid.pl-hero-actions a:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.hero-grid.pl-hero-actions a.pl-call {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.9);
}
.hero-grid.pl-hero-actions a.pl-call:hover {
  background: rgba(255, 255, 255, 0.12);
}
.pl-hero-vet {
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
  color: #f1e7da;
}
.pl-hero-vet a {
  color: var(--sand);
  font-weight: 600;
  text-decoration: underline;
}

/* ---- Marketing plan section (homepage + marketing page) ---- */
.pl-section {
  padding: 96px 0;
}
.pl-section.alt {
  background: var(--cream);
}
.pl-head {
  max-width: 700px;
  margin-bottom: 48px;
}
.pl-head .pl-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.pl-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.pl-head p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}
.pl-plan {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: pl;
}
.pl-plan li {
  border-top: 2px solid var(--rust);
  padding-top: 24px;
  counter-increment: pl;
}
.pl-plan li::before {
  content: "0" counter(pl);
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--rust);
  display: block;
  margin-bottom: 16px;
}
.pl-plan h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.pl-plan p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.pl-cta-row {
  margin-top: 48px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  font: 600 15px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.pl-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.pl-link:hover {
  text-decoration: underline;
}

/* ---- Marketing page extras ---- */
.pl-page-hero {
  background:
    linear-gradient(rgba(26, 17, 12, 0.66), rgba(26, 17, 12, 0.74)),
    url(hero-bg.jpg) center/cover;
  color: #fff;
  padding: 96px 0;
}
.pl-page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  color: #fff;
  max-width: 16ch;
  margin-bottom: 24px;
}
.pl-page-hero p {
  font-size: 20px;
  max-width: 36ch;
  color: #f1e7da;
  margin-bottom: 32px;
}
.pl-page-hero .pl-btn.pl-secondary {
  background: transparent !important;
  border: 1.5px solid #fff;
  margin-left: 12px;
}
.pl-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}
.pl-detail h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.pl-detail p,
.pl-detail li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}
.pl-detail ul {
  padding-left: 20px;
}
.pl-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--pl-shadow);
  padding: 32px;
  max-width: 560px;
}
.pl-form h2 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 8px;
}
.pl-form label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin: 16px 0 6px;
}
.pl-form input,
.pl-form select {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--text);
}
.pl-form .pl-btn {
  width: 100%;
  margin-top: 24px;
}
.pl-form .pl-help {
  font-size: 15px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}
.pl-bar {
  background: var(--ink);
  color: #f1e7da;
  padding: 64px 0;
}
.pl-bar h2 {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(32px, 4vw, 44px);
}

/* ---- Phone action bar (small screens only) ---- */
.pl-mbar {
  display: none;
}
@media (max-width: 900px) {
  .pl-plan {
    grid-template-columns: 1fr 1fr;
  }
  .pl-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .pl-section {
    padding: 64px 0;
  }
  .pl-plan {
    grid-template-columns: 1fr;
  }
  body {
    padding-bottom: 76px;
  }
  .pl-mbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: var(--ink);
    z-index: 9999;
  }
  .pl-mbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 4px;
    font: 600 15px/1 var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .pl-mbar .call {
    border: 1.5px solid #fff;
    color: #fff;
  }
  .pl-mbar .val {
    background: var(--primary);
    color: #fff;
  }
  .pl-page-hero .pl-btn.pl-secondary {
    margin: 12px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
