/* ==========================================================================
   Rio Grande Estate Planning - landing page system
   Palette lifted from Jim's N2 half-page ad (rgep-half-page-v2.html)
   ========================================================================== */

:root {
  --burgundy: #7a1225;
  --burgundy-dk: #5a0d1b;
  --burgundy-lt: #96223a;
  --ivory: #fbf8f3;
  --stone: #f1ebe1;
  --charcoal: #1a1a1a;
  --gold: #a98b4f;
  --gold-lt: #c8a86a;
  --grey: #6b645c;
  --hair: #e2d9cb;

  --serif: "Prata", "Canela", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Söhne", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 18px 50px -22px rgba(26, 13, 17, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- shared type ------------------------------------------------- */

.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--burgundy);
}

.kicker--light { color: var(--gold-lt); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.25; }

.em { color: var(--burgundy); }
.em--gold { color: var(--gold-lt); }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #443e38; max-width: 54ch; }

.rule { width: 58px; height: 2px; background: var(--gold); border: 0; margin: 22px 0; }
.rule--center { margin-inline: auto; }

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 17px 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn--primary {
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(122, 18, 37, 0.75);
}
.btn--primary:hover { background: var(--burgundy-lt); }

.btn--gold { background: var(--gold); color: #241a08; }
.btn--gold:hover { background: var(--gold-lt); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

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

/* ---------- top bar ----------------------------------------------------- */

.topbar {
  background: var(--burgundy-dk);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
  flex-wrap: wrap;
}
.topbar a { color: var(--gold-lt); text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar .tag { opacity: 0.82; }

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

.hero {
  position: relative;
  background: var(--burgundy-dk);
  color: #fff;
  overflow: hidden;
}

/* warm vignette so Leon sits in light rather than on a flat block */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 42%, rgba(201, 156, 88, 0.26), transparent 62%),
    radial-gradient(90% 80% at 8% 10%, rgba(0, 0, 0, 0.4), transparent 58%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
  padding-block: 74px 0;
}

.hero__copy { padding-bottom: 74px; }

.hero__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.hero__brand img { width: 46px; height: auto; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4)); }
.hero__brand span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero h1 { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, 0.84); margin-top: 20px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  flex-wrap: wrap;
}
.stars { color: var(--gold-lt); letter-spacing: 2px; font-size: 15px; }

.hero__art { position: relative; align-self: end; min-height: 380px; }
.hero__art img {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.5));
}
/* Leon has no file yet - this keeps the layout honest until he lands */
.hero__art--empty {
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-align: center;
  padding: 24px;
  line-height: 1.6;
}

/* Leon as a framed photo (full office scene, not a cut-out) */
.hero__art--photo { align-self: center; min-height: 0; padding-bottom: 74px; }
.hero__art--photo img {
  width: 100%; max-width: 430px; height: auto; margin-inline: auto;
  border-radius: 6px; border: 3px solid var(--gold);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  filter: none;
}
@media (max-width: 960px) {
  .hero__art--photo { padding-bottom: 40px; }
  .hero__art--photo img { max-width: 340px; }
}

/* ---------- trust strip ------------------------------------------------- */

.strip { background: var(--charcoal); color: #fff; }
.strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-block: 22px;
}
.strip__item { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; }
.strip__item b { color: var(--gold-lt); font-weight: 600; }
.strip__dot { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }

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

.section { padding-block: 84px; }
.section--stone { background: var(--stone); }
.section--tight { padding-block: 62px; }
.section__head { max-width: 62ch; margin-bottom: 46px; }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------- S.P.A. / pillar cards -------------------------------------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.pillar {
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--burgundy);
}
.pillar__letter {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--burgundy);
  margin-bottom: 14px;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 15px; color: #4a443d; }

/* ---------- mistakes list ---------------------------------------------- */

.mistakes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 34px; counter-reset: m; }
.mistake { display: flex; gap: 16px; align-items: flex-start; }
.mistake__n {
  counter-increment: m;
  font-family: var(--serif);
  font-size: 15px;
  color: #fff;
  background: var(--burgundy);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.mistake__n::before { content: counter(m); }
.mistake h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mistake p { font-size: 14.5px; color: #4a443d; }

/* ---------- attorney ---------------------------------------------------- */

.bio { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.bio__photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 30px -14px rgba(26, 13, 17, 0.6);
  margin-bottom: 20px;
}
.bio__facts { list-style: none; display: grid; gap: 11px; margin-top: 22px; }
.bio__facts li { position: relative; padding-left: 22px; font-size: 15px; color: #4a443d; }
.bio__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--burgundy);
  transform: rotate(45deg);
}
.bio__card {
  background: var(--burgundy-dk);
  color: #fff;
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}
.bio__card h3 { color: #fff; }
.bio__card p { color: rgba(255, 255, 255, 0.82); font-size: 15px; margin-top: 12px; }
.bio__card .kicker { color: var(--gold-lt); margin-bottom: 10px; display: block; }

/* ==========================================================================
   QUIZ
   ========================================================================== */

.quiz-section { background: var(--burgundy-dk); color: #fff; padding-block: 84px; }
.quiz-section .section__head { margin-inline: auto; text-align: center; }
.quiz-section h2 { color: #fff; }
.quiz-section .lede { color: rgba(255, 255, 255, 0.82); margin-inline: auto; }

.quiz {
  background: var(--ivory);
  color: var(--charcoal);
  border-radius: 6px;
  max-width: 740px;
  margin: 0 auto;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.quiz__bar { height: 5px; background: var(--hair); }
.quiz__fill { height: 100%; width: 0%; background: var(--gold); transition: width 0.35s ease; }

.quiz__body { padding: 44px 42px 40px; }

.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: fade 0.28s ease both; }

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.quiz__count { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.quiz__q { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 12px 0 6px; }
.quiz__hint { font-size: 14px; color: var(--grey); margin-bottom: 24px; }

.opts { display: grid; gap: 11px; }

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 17px 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.opt:hover { border-color: var(--burgundy); transform: translateX(2px); }
.opt:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt.is-picked { border-color: var(--burgundy); background: #fff5f6; }

.opt__box {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--hair);
  border-radius: 3px;
  flex: none;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.opt--radio .opt__box { border-radius: 50%; }
.opt.is-picked .opt__box { border-color: var(--burgundy); background: var(--burgundy); }
.opt__box::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 1px;
  transform: scale(0);
  transition: transform 0.15s ease;
}
.opt--radio .opt__box::after { border-radius: 50%; }
.opt.is-picked .opt__box::after { transform: scale(1); }

.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.quiz__back {
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--grey);
  cursor: pointer;
  padding: 8px 2px;
}
.quiz__back:hover { color: var(--burgundy); }
.quiz__back[hidden] { visibility: hidden; }

/* ---------- result ------------------------------------------------------ */

.result__badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.result__badge--hot { background: var(--burgundy); color: #fff; }
.result__badge--warm { background: var(--gold); color: #241a08; }
.result__badge--out { background: var(--hair); color: var(--grey); }

.result h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.result__body { font-size: 15.5px; color: #4a443d; }
.result__body p + p { margin-top: 12px; }

.findings { list-style: none; display: grid; gap: 12px; margin: 22px 0 26px; }
.findings li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: #3d3830;
  line-height: 1.55;
}
.findings li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--burgundy);
  transform: rotate(45deg);
}

.callout {
  background: var(--stone);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 14.5px;
  color: #46403a;
  margin: 22px 0;
}

/* ---------- form -------------------------------------------------------- */

.form { display: grid; gap: 16px; margin-top: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--grey); }
.field input {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
}
.field input:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(122, 18, 37, 0.12); }
.field input:invalid:not(:placeholder-shown) { border-color: #b4402f; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; color: var(--grey); line-height: 1.55; }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--burgundy); }
.consent a { color: var(--burgundy); }

.form__error {
  display: none;
  background: #fdf0ee;
  border-left: 3px solid #b4402f;
  color: #8c2e20;
  font-size: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
}
.form__error.is-on { display: block; }

.hp { position: absolute; left: -9999px; }

/* ---------- booked ------------------------------------------------------ */

.booked { text-align: center; }
.booked__mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 26px;
}
.booked__actions { display: grid; gap: 12px; margin-top: 26px; max-width: 380px; margin-inline: auto; }
.booked__phones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; font-size: 14px; }
.booked__phones a { color: var(--burgundy); font-weight: 600; text-decoration: none; }

/* ---------- footer ------------------------------------------------------ */

.foot { background: var(--charcoal); color: rgba(255, 255, 255, 0.72); font-size: 13.5px; padding-block: 46px; }
.foot .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.foot h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 12px; font-weight: 600; }
.foot a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 22px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- sticky mobile CTA ------------------------------------------- */

.sticky {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  background: var(--burgundy);
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.5);
}
.sticky .btn { width: 100%; padding-block: 14px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 54px 0; gap: 8px; }
  .hero__copy { padding-bottom: 8px; }
  .hero__art { min-height: 0; }
  .hero__art img { max-width: 330px; }
  .hero__art--empty { min-height: 220px; margin-bottom: 34px; }
  .pillars { grid-template-columns: 1fr; }
  .mistakes { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; gap: 32px; }
  .strip .wrap { grid-template-columns: 1fr; gap: 12px; }
  .foot .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding-block: 58px; }
  .quiz-section { padding-block: 58px; }
  .quiz__body { padding: 30px 22px 30px; }
  .field--row { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .sticky { display: block; }
  body { padding-bottom: 74px; }
  .topbar .tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Four-pillar layout (protect page): 2 x 2 on desktop, stacked on mobile */
.pillars--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .pillars--two { grid-template-columns: 1fr; }
}
