/* =========================================
   Taylor Buys Homes — Stylesheet v3
   ========================================= */

:root {
  --dark:      #071525;
  --navy:      #0d2140;
  --blue:      #1565c0;
  --blue-lt:   #1e88e5;
  --cyan:      #00b4d8;
  --orange:    #f97316;
  --orange-dk: #ea580c;
  --green:     #16a34a;
  --slate:     #f0f6ff;
  --text:      #1e293b;
  --text-md:   #475569;
  --white:     #ffffff;
  --border:    #e2e8f0;
  --error:     #dc2626;
  --sh:     0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06);
  --sh-md:  0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.06);
  --sh-lg:  0 20px 40px rgba(0,0,0,.18),0 8px 16px rgba(0,0,0,.1);
  --sh-xl:  0 32px 64px rgba(0,0,0,.28),0 12px 24px rgba(0,0,0,.14);
  --r:  8px;
  --rl: 16px;
  --rx: 24px;
  --nav-h: 72px;
  --ease: 200ms ease;
  --diagonal: 70px; /* consistent diagonal height across page */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
abbr { text-decoration: none; }

.skip-link {
  position: absolute;
  top: -100%; left: 1rem;
  z-index: 9999;
  background: var(--orange);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--r) var(--r);
  font-weight: 600; font-size: .875rem;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%; max-width: 1140px;
  margin: 0 auto; padding: 0 1.5rem;
}

/* ===========================
   NAVIGATION
=========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.nav--static { position: relative; }

.nav-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo-wrap {
  background: transparent;
  border-radius: var(--r);
  padding: 0;
  display: flex; align-items: center;
}
.nav-logo-img { height: 50px; width: auto; display: block; }

.nav-right { display: flex; align-items: center; gap: .875rem; flex-shrink: 0; }

.nav-phone {
  display: flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.92); text-decoration: none;
  font-weight: 500; font-size: .9rem; white-space: nowrap;
  cursor: pointer;
  transition: color var(--ease);
}
.nav-phone:hover { color: var(--white); }
.nav-phone:hover .phone-text { text-decoration: underline; }

.nav-cta {
  display: inline-flex; align-items: center; gap: .375rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 700; font-size: .8rem;
  padding: .5rem 1.25rem;
  border-radius: 50px;
  text-decoration: none; white-space: nowrap;
  transition: background var(--ease), transform 100ms, box-shadow var(--ease);
  box-shadow: 0 3px 12px rgba(249,115,22,.35);
}
.nav-cta:hover { background: var(--orange-dk); box-shadow: 0 4px 16px rgba(249,115,22,.45); }
.nav-cta:active { transform: scale(.97); }
.nav-cta:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ===========================
   HERO
   Layout: text LEFT | form card RIGHT
   Diagonal: trust-bar bites into hero
             from top-right via clip-path
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: url('hero-bg.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Solid on the left where text lives, opens up toward the photo on the right */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    rgba(5,16,30,0.92) 0%,
    rgba(5,16,30,0.88) 45%,
    rgba(5,16,30,0.82) 70%,
    rgba(5,16,30,0.78) 100%
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem; /* extra bottom: clears the diagonal */
}

/* ---------- LEFT: Text content ---------- */
.hero-content { padding-right: 1rem; text-align: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.28);
  color: var(--orange);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 1.375rem;
}

.hero-highlight {
  color: var(--orange);
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-style: italic;
  display: inline-block;
}

.hero-subheadline {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.95);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.65;
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  margin-bottom: 2.75rem;
  align-items: center;
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: .875rem;
  color: rgba(255,255,255,.92);
  font-size: .9375rem;
  width: min(100%, 430px);
}
.hero-bullets li::before {
  content: '';
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}


/* ---------- RIGHT: Form Card ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--rx);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  position: relative;
}

.form-card-hd {
  background: var(--dark);
  padding: 1.5rem 1.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
/* Subtle orange accent stripe at very top */
.form-card-hd::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dk));
}
.form-card-hd h2 {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .25rem;
}
.form-card-hd p {
  color: rgba(255,255,255,.78);
  font-size: .78rem;
}

.form-card-bd { padding: 1.5rem 1.75rem 1.25rem; }

.form-group { margin-bottom: .875rem; }
.form-group label {
  display: block;
  font-size: .78rem; font-weight: 600;
  color: var(--text);
  margin-bottom: .3rem;
  letter-spacing: .01em;
}
.form-group input {
  width: 100%; height: 48px;
  padding: 0 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: .9375rem; font-family: inherit;
  color: var(--text); background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.form-group input::placeholder { color: #94a3b8; }
.form-group input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.form-group input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.field-error {
  font-size: .72rem; color: var(--error);
  margin-top: .25rem; min-height: 1em; font-weight: 500;
}

/* Orange submit button */
.btn-submit {
  width: 100%; height: 52px;
  background: var(--orange);
  color: var(--white);
  border: none; border-radius: var(--r);
  font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background var(--ease), box-shadow var(--ease), transform 100ms;
  letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
}
.btn-submit:hover:not(:disabled) {
  background: var(--orange-dk);
  box-shadow: 0 6px 20px rgba(249,115,22,.4);
}
.btn-submit:active:not(:disabled) { transform: scale(.985); }
.btn-submit:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; }

.btn-loading { display: none; align-items: center; gap: .5rem; }
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: flex; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin .8s linear infinite; }

.form-card-ft {
  display: flex; justify-content: center; gap: 1.25rem;
  padding: .875rem 1.75rem 1.25rem;
  border-top: 1px solid var(--border);
}
.form-trust-item {
  display: flex; align-items: center; gap: .3rem;
  font-size: .72rem; color: var(--text-md); font-weight: 500;
}

/* ===========================
   TRUST BAR
   Diagonal: clips into hero with
   polygon cutting top-left corner
=========================== */
.trust-bar {
  background: var(--dark);
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--diagonal));
  clip-path: polygon(0 var(--diagonal), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--diagonal) + 1.375rem);
  padding-bottom: 1.375rem;
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .875rem;
  align-items: stretch;
}
.trust-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  background: rgba(255,255,255,.035);
  justify-content: center;
}
.trust-icon-wrap {
  width: 42px; height: 42px;
  background: rgba(249,115,22,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(249,115,22,.22);
}
.trust-text strong {
  display: block; color: var(--white);
  font-size: .875rem; font-weight: 600; line-height: 1.3;
}
.trust-text span {
  display: block; color: rgba(255,255,255,.82);
  font-size: .8rem; margin-top: .15rem;
}

/* ===========================
   SECTION SHARED
=========================== */
.section-eyebrow {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #c2410c;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 800; color: var(--dark);
  letter-spacing: -.025em; line-height: 1.2;
  margin-bottom: .625rem;
}
.section-sub {
  font-size: 1rem; color: var(--text-md);
  max-width: 580px; margin: 0 auto; line-height: 1.7;
}
.how-it-works .section-sub,
.benefits .section-sub,
.comparison .section-sub,
.faq .section-sub {
  color: #020617;
}

/* ===========================
   HOW IT WORKS
   Equal-height premium cards
   with gradient header blocks
=========================== */
.how-it-works {
  padding: 6rem 0;
  background: var(--slate);
  position: relative;
  z-index: 1;
}
.how-it-works .container { text-align: center; }

.steps-row {
  display: grid;
  grid-template-columns: 1fr 52px 1fr 52px 1fr;
  align-items: center;
  margin-top: 3rem;
  gap: 0;
}

.step {
  background: var(--white);
  border-radius: var(--rx);
  box-shadow: 0 4px 24px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  border: 1px solid rgba(21,101,192,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: stretch; /* equal height */
  transition: transform 200ms, box-shadow 200ms;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(21,101,192,.14), 0 4px 8px rgba(0,0,0,.06);
}

.step-top {
  background: #f8fafc;
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
/* Orange accent bar at very top */
.step-top::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dk));
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: rgba(249,115,22,.12);
  border: 1.5px solid rgba(249,115,22,.35);
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: .875rem;
  position: relative;
  letter-spacing: -.01em;
}

.step-title {
  color: #020617;
  font-size: .9375rem; font-weight: 700;
  line-height: 1.3;
  position: relative;
}

.step-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.step-body p {
  font-size: .8125rem; color: #020617;
  line-height: 1.75; flex: 1;
}

/* Connector between steps */
.step-connector {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue-lt);
  opacity: .4;
}

/* ===========================
   BENEFITS
=========================== */
.benefits {
  padding: 6rem 0;
  background: var(--white);
  position: relative; z-index: 1;
}
.benefits .container { text-align: center; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}
.benefit-card {
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.75rem;
  transition: box-shadow var(--ease), border-color var(--ease), transform 150ms;
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dk));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  border-color: #c8d8f0;
  transform: translateY(-3px);
}
.benefit-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(249,115,22,.1), rgba(234,88,12,.08));
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.375rem;
  border: 1px solid rgba(249,115,22,.15);
}
.benefit-card h3 {
  font-size: .9375rem; font-weight: 700; color: var(--dark); margin-bottom: .375rem;
}
.benefit-card p {
  font-size: .8125rem; color: #020617; line-height: 1.7;
}

/* ===========================
   COMPARISON
=========================== */
.comparison {
  padding: 6rem 0 7.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef6fb 100%);
  position: relative;
  z-index: 1;
}
.comparison-table-wrap {
  margin: 3.5rem auto 0;
  overflow: visible;
  max-width: 980px;
  padding: 0 1rem;
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  text-align: left;
}
.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 0;
  vertical-align: middle;
  font-size: .95rem;
}
.comparison-table thead th {
  background: transparent;
  color: var(--dark);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1rem;
}
.comparison-table thead th:nth-child(2) {
  background: #075aa7;
  color: var(--white);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 28px rgba(7,90,167,.16);
  font-size: 1.05rem;
}
.comparison-table tbody th {
  color: var(--dark);
  font-weight: 800;
  width: 34%;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: 1.05rem;
}
.comparison-table tbody td {
  color: #1f2937;
  text-align: center;
  font-weight: 600;
}
.comparison-table tbody td:nth-child(2) {
  background: #075aa7;
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(7,90,167,.16);
}
.comparison-table tbody tr:first-child td:nth-child(2) {
  padding-top: 1.45rem;
}
.comparison-table tbody tr:last-child td:nth-child(2) {
  padding-bottom: 1.45rem;
}
.comparison-table tbody tr:nth-child(odd) th,
.comparison-table tbody tr:nth-child(odd) td:nth-child(3) {
  background: linear-gradient(90deg, #edf0f3 0%, #e1e5ea 100%);
}
.comparison-table tbody tr:nth-child(odd) th {
  border-radius: 24px 0 0 24px;
}
.comparison-table tbody tr:nth-child(odd) td:nth-child(3) {
  border-radius: 0 24px 24px 0;
}
.comparison-table tbody tr:last-child td:nth-child(2) {
  border-radius: 0 0 18px 18px;
}
.compare-good {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

/* ===========================
   TESTIMONIALS
   Diagonal: bites into Benefits
   from top-right
=========================== */
.testimonials {
  background: var(--dark);
  position: relative; z-index: 2;
  margin-top: calc(-1 * var(--diagonal));
  clip-path: polygon(0 var(--diagonal), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--diagonal) + 5.5rem);
  padding-bottom: 8rem;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(249,115,22,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(21,101,192,.1) 0%, transparent 50%);
  pointer-events: none;
}
.testimonials .container { text-align: center; position: relative; }
.testimonials .section-title { color: var(--white); }
.testimonials .section-sub { color: rgba(255,255,255,.78); }
.testimonials .section-eyebrow { color: var(--orange); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}
.testimonial-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--rl);
  padding: 1.75rem;
  transition: background var(--ease), border-color var(--ease);
  display: flex; flex-direction: column;
}
.testimonial-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}
.testimonial-stars {
  color: var(--orange);
  font-size: .875rem; letter-spacing: 2px;
  margin-bottom: 1rem;
}
.testimonial-card blockquote {
  font-size: .875rem; color: rgba(255,255,255,.9);
  line-height: 1.78; margin-bottom: 1.375rem;
  font-style: italic; flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dk));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .78rem; color: var(--white); flex-shrink: 0;
}
.testimonial-name { font-size: .875rem; font-weight: 600; color: var(--white); line-height: 1.3; }
.testimonial-location { font-size: .72rem; color: rgba(255,255,255,.7); }

/* ===========================
   FAQ
   Diagonal: cuts up from
   Testimonials (dark → slate)
=========================== */
.faq {
  background: var(--slate);
  position: relative; z-index: 2;
  margin-top: calc(-1 * var(--diagonal));
  /* Opposite direction: right side lower */
  clip-path: polygon(0 0, 100% var(--diagonal), 100% 100%, 0 100%);
  padding-top: calc(var(--diagonal) + 5.5rem);
  padding-bottom: 5.5rem;
}
.faq .container { max-width: 740px; text-align: center; }
.faq-list { margin-top: 2.5rem; text-align: left; }

details.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  margin-bottom: .625rem;
  transition: box-shadow var(--ease), border-color var(--ease);
}
details.faq-item[open] { border-color: rgba(249,115,22,.3); box-shadow: 0 4px 20px rgba(249,115,22,.08); }
details.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 1.5rem;
  font-size: .9375rem; font-weight: 600; color: var(--dark);
  cursor: pointer; gap: 1rem; list-style: none; user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 1.5rem; font-weight: 300;
  color: var(--orange); flex-shrink: 0; line-height: 1;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item summary:focus-visible {
  outline: 3px solid var(--orange); outline-offset: -3px; border-radius: var(--rl);
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: .9rem; color: #020617;
  line-height: 1.75; border-top: 1px solid var(--border);
}

/* ===========================
   CTA BOTTOM
   Diagonal: bites into FAQ
   from top-right
=========================== */
.cta-bottom {
  background: #f8fafc;
  position: relative; z-index: 2;
  margin-top: calc(-1 * var(--diagonal));
  clip-path: polygon(0 var(--diagonal), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--diagonal) + 6rem);
  padding-bottom: 6rem;
  text-align: center;
  overflow: hidden;
}
.cta-bottom .container { position: relative; }
.cta-bottom h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800; color: var(--dark);
  letter-spacing: -.025em; margin-bottom: .75rem;
}
.cta-bottom p { color: #020617; font-size: 1.0625rem; margin-bottom: 2.25rem; }

.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}

/* Orange primary button */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #c2410c;
  color: var(--white);
  font-weight: 700; font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(249,115,22,.35);
  transition: background var(--ease), box-shadow var(--ease), transform 100ms;
}
.btn-primary:hover {
  background: #9a3412;
  box-shadow: 0 6px 28px rgba(249,115,22,.5);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--white);
  font-weight: 600; font-size: .9375rem;
  padding: .9375rem 2rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.3);
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--dark);
  padding: 1.5rem 0;
  color: rgba(255,255,255,.7);
  font-size: .8125rem;
  border-top: 1px solid rgba(255,255,255,.05);
  position: relative; z-index: 1;
  text-align: center;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .75rem;
}
.footer-logo {
  width: min(140px, 48vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.28));
}
.footer-copy {
  color: rgba(255,255,255,.82);
  font-size: .76rem;
}
.footer-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.78); text-decoration: none; transition: color var(--ease); }
.footer-links a:hover { color: var(--white); }
.footer-disclaimer {
  font-size: .66rem; color: rgba(255,255,255,.62);
  line-height: 1.55;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: .75rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ===========================
   LEGAL PAGES
=========================== */
.legal-page {
  background: #f8fafc;
}
.legal-main {
  padding: 4rem 0 5rem;
}
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  box-shadow: 0 12px 36px rgba(15,23,42,.08);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.legal-content h1 {
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: .75rem;
}
.legal-updated {
  color: #020617;
  font-weight: 600;
  margin-bottom: 2rem;
}
.legal-content h2 {
  color: var(--dark);
  font-size: 1.2rem;
  margin: 2rem 0 .65rem;
}
.legal-content p,
.legal-content li {
  color: #020617;
  line-height: 1.75;
  font-size: .95rem;
}
.legal-content ul {
  padding-left: 1.25rem;
  margin: .75rem 0 1rem;
}
.legal-content a {
  color: var(--blue);
  font-weight: 700;
}

/* ===========================
   OFFER POPUP
=========================== */
.offer-popup {
  position: fixed;
  inset: 0;
  z-index: 500;
  width: 100%;
  min-height: 100%;
  background: rgba(3,10,20,.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.offer-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.offer-popup-card {
  position: relative;
  width: min(390px, calc(100vw - 2rem));
  background: var(--white);
  border: 1px solid rgba(15,23,42,.1);
  border-radius: var(--rl);
  box-shadow: 0 22px 80px rgba(0,0,0,.36);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  transform: translateY(14px) scale(.98);
  transition: transform 180ms ease;
}
.offer-popup.is-visible .offer-popup-card {
  transform: translateY(0) scale(1);
}
.offer-popup-close {
  position: absolute;
  top: .625rem;
  right: .75rem;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.offer-popup-kicker {
  color: var(--orange);
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: .65rem;
}
.offer-popup h2 {
  color: var(--dark);
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.offer-popup p {
  color: var(--text-md);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.offer-popup-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  border-radius: var(--r);
  padding: .875rem 1rem;
}

/* ===========================
   VERIFY PAGE
=========================== */
.verify-page { min-height: 100vh; background: var(--slate); display: flex; flex-direction: column; }
.verify-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; }
.verify-card {
  background: var(--white); border-radius: var(--rx);
  box-shadow: var(--sh-lg);
  padding: 2.75rem 2rem;
  width: 100%; max-width: 440px;
  text-align: center;
}
.verify-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(249,115,22,.1), rgba(234,88,12,.15));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(249,115,22,.2);
}
.verify-card h1 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: .5rem; letter-spacing: -.02em; }
.verify-card > p { color: var(--text-md); font-size: .9375rem; margin-bottom: 2rem; line-height: 1.65; }
.verify-phone-display { font-weight: 600; color: var(--dark); }

.otp-group { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.25rem; }
.otp-input {
  width: 50px; height: 58px;
  border: 2px solid var(--border); border-radius: var(--r);
  font-size: 1.5rem; font-weight: 700; text-align: center;
  color: var(--dark); font-family: inherit; outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.otp-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }
.otp-input.filled { border-color: var(--green); background: #f0fdf4; }
.otp-input.is-invalid { border-color: var(--error); background: #fef2f2; }

.verify-error { color: var(--error); font-size: .8125rem; font-weight: 500; min-height: 1.25rem; margin-bottom: .875rem; }
.btn-verify {
  width: 100%; height: 52px;
  background: var(--orange); color: var(--white);
  border: none; border-radius: var(--r);
  font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background var(--ease);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(249,115,22,.25);
}
.btn-verify:hover:not(:disabled) { background: var(--orange-dk); }
.btn-verify:disabled { opacity: .6; cursor: not-allowed; }
.btn-verify:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.resend-row { font-size: .8125rem; color: var(--text-md); }
.resend-btn {
  background: none; border: none; color: var(--orange); font-weight: 600;
  cursor: pointer; font-family: inherit; font-size: inherit;
  padding: 0; text-decoration: underline; transition: color var(--ease);
}
.resend-btn:hover { color: var(--orange-dk); }
.resend-btn:disabled { color: var(--text-md); text-decoration: none; cursor: not-allowed; }
.resend-timer { font-weight: 600; color: var(--dark); }

/* ===========================
   SUCCESS PAGE
=========================== */
.success-page { min-height: 100vh; background: var(--slate); display: flex; flex-direction: column; }

.success-hero-wrap {
  background: linear-gradient(135deg, #051018 0%, var(--navy) 60%, #051018 100%);
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.success-hero-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(249,115,22,.1) 0%, transparent 60%);
  pointer-events: none;
}
.success-hero-inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.success-check-circle {
  width: 80px; height: 80px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 28px rgba(22,163,74,.38);
}
.success-heading {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: .875rem;
  line-height: 1.15;
}
.success-heading .success-name { color: var(--orange); }
.success-address-line {
  font-size: .9375rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 1rem;
}
.success-address-line strong { color: var(--white); font-weight: 600; }
.success-body-text {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.9);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2.25rem;
}
.success-phone-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 700; font-size: 1.0625rem;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(249,115,22,.38);
  transition: background var(--ease), box-shadow var(--ease), transform 100ms;
  margin-bottom: .75rem;
}
.success-phone-btn:hover {
  background: var(--orange-dk);
  box-shadow: 0 6px 28px rgba(249,115,22,.52);
  transform: translateY(-2px);
}
.success-hours { font-size: .78rem; color: rgba(255,255,255,.72); }

.success-next-wrap {
  flex: 1;
  padding: 4rem 1.5rem 5rem;
  background: var(--slate);
}
.success-next-heading {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 2.5rem;
}
.success-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.125rem;
  max-width: 760px;
  margin: 0 auto;
}
.success-step-card {
  background: var(--white);
  border-radius: var(--rl);
  padding: 1.625rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow var(--ease), transform 150ms;
}
.success-step-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.success-step-badge {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dk));
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem; font-weight: 800;
}
.success-step-card h3 {
  font-size: .9375rem; font-weight: 700; color: var(--dark); line-height: 1.3;
}
.success-step-card p {
  font-size: .8125rem; color: var(--text-md); line-height: 1.7;
}

@media (max-width: 580px) {
  .success-steps-grid { grid-template-columns: 1fr; }
  .success-hero-wrap { padding: 3rem 1.25rem 4rem; }
}

/* ===========================
   PROPERTY / SURVEY PAGE
=========================== */
.property-page {
  min-height: 100vh;
  background: #dce4ed;
  display: flex;
  flex-direction: column;
  font-family: 'Times New Roman', Times, Georgia, serif;
}
.property-page .nav,
.property-page .nav-phone,
.property-page .nav-cta,
.property-page .survey-progress-strip,
.property-page .survey-progress-meta,
.property-page .form-group label,
.property-page .form-group input,
.property-page .btn-survey-submit,
.property-page .survey-back-btn,
.property-page .survey-footer-note {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.survey-progress-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem .875rem;
}
.survey-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-md);
  letter-spacing: .01em;
}
.survey-progress-track {
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.survey-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: 999px;
  transition: width 380ms cubic-bezier(.4,0,.2,1);
}

.survey-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem 3rem;
}

.survey-card-wrap {
  width: 100%;
  max-width: 480px;
}

.survey-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  margin-bottom: 1rem;
  will-change: opacity, transform;
}

.survey-q-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 1.375rem;
  letter-spacing: -.02em;
  text-align: center;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.survey-option-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: .9375rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 80ms;
  -webkit-tap-highlight-color: transparent;
}
.survey-option-btn:hover { border-color: var(--orange); background: #fff8f2; }
.survey-option-btn.selected {
  border-color: var(--navy);
  background: #eff6ff;
  color: var(--navy);
  font-weight: 600;
}
.survey-option-btn:active { transform: scale(.98); }

.survey-name-fields { display: none; }

.survey-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}

.survey-name-error {
  font-size: .78rem;
  color: var(--error);
  font-weight: 500;
  min-height: 1.25rem;
  margin-bottom: .625rem;
}

.btn-survey-submit {
  width: 100%;
  height: 52px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--ease), box-shadow var(--ease), transform 80ms;
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
  letter-spacing: .01em;
}
.btn-survey-submit:hover { background: var(--orange-dk); box-shadow: 0 6px 20px rgba(249,115,22,.4); }
.btn-survey-submit:active { transform: scale(.98); }

.survey-nav-row { padding: .125rem .25rem; }

.survey-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-md);
  cursor: pointer;
  padding: .5rem 0;
  transition: color var(--ease);
  visibility: hidden;
}
.survey-back-btn:hover { color: var(--dark); }

.survey-footer-note {
  max-width: 480px;
  text-align: center;
  font-size: .72rem;
  color: #475569;
  line-height: 1.7;
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .survey-card { padding: 1.75rem 1.25rem; }
  .survey-q-title { font-size: 1.25rem; }
  .survey-name-row { grid-template-columns: 1fr; }
}

/* ===========================
   GOOGLE PLACES AUTOCOMPLETE
=========================== */
.pac-container {
  border-radius: var(--r) !important;
  border: 1px solid rgba(249,115,22,.25) !important;
  box-shadow: var(--sh-lg) !important;
  font-family: sans-serif !important;
  margin-top: 4px; overflow: hidden;
}
.pac-item { padding: .5rem .875rem !important; font-size: .875rem !important; cursor: pointer; }
.pac-item:hover, .pac-item-selected { background: var(--slate) !important; }
.pac-item-query { font-size: .875rem !important; color: var(--dark) !important; }
.pac-matched { color: var(--orange) !important; font-weight: 600; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 960px) {
  :root { --diagonal: 48px; }

  .nav-logo-img { height: 44px; }
  .hero {
    align-items: flex-start;
    min-height: auto;
    background-position: center top;
    background-size: auto 100%;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(5,16,30,.96) 0%, rgba(5,16,30,.9) 52%, rgba(5,16,30,.98) 100%);
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.5rem 4.75rem;
    min-height: auto;
    gap: 1.5rem;
  }
  .hero-content {
    max-width: 620px;
    margin: 0 auto;
    padding-right: 0;
  }
  .hero-eyebrow { margin-bottom: .9rem; }
  .hero-headline { margin-bottom: .75rem; }
  .hero-subheadline {
    margin-bottom: 1.125rem;
    padding-left: 0;
    border-left: 0;
    max-width: 540px;
  }
  .hero-bullets {
    gap: .5rem;
    margin-bottom: 0;
  }
  .hero-bullets li {
    justify-content: center;
    font-size: .875rem;
  }
  .form-card {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .steps-row { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .step-connector { transform: rotate(90deg); height: 36px; }
  .step { align-self: auto; }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .trust-bar-inner { grid-template-columns: 1fr; max-width: 520px; }
  .trust-item { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; --diagonal: 36px; }
  .nav { padding: 0 1rem; }
  .nav-logo-img { height: 38px; }
  .nav-phone { font-size: .78rem; }
  .nav-cta { display: none; }
  .hero-cta-btn { display: none; }
  .hero { background-size: auto 82%; }
  .hero-inner {
    padding: 1rem 1rem 4.25rem;
    gap: 1rem;
  }
  .hero-eyebrow {
    justify-content: center;
    white-space: normal;
    border-radius: 10px;
    font-size: .62rem;
    line-height: 1.35;
  }
  .hero-headline {
    font-size: 2rem;
    line-height: 1.08;
  }
  .hero-subheadline {
    display: none;
  }
  .hero-bullets {
    display: none;
  }
  .form-card-hd { padding: 1rem 1.25rem; }
  .form-card-bd { padding: 1.125rem 1.25rem 1rem; }
  .form-group { margin-bottom: .65rem; }
  .form-group input { height: 45px; }
  .btn-submit { height: 48px; }
  .form-card-ft { padding: .75rem 1rem 1rem; gap: .6rem; flex-wrap: wrap; }
  .benefits-grid { grid-template-columns: 1fr; }
  .comparison { padding: 4rem 0 5.5rem; }
  .comparison-table-wrap {
    margin-top: 2.25rem;
    padding: 0;
  }
  .comparison-table {
    min-width: 0;
    table-layout: fixed;
  }
  .comparison-table th,
  .comparison-table td {
    padding: .68rem .32rem;
    font-size: .68rem;
    line-height: 1.25;
  }
  .comparison-table thead th {
    font-size: .62rem;
    letter-spacing: 0;
  }
  .comparison-table thead th:nth-child(2) {
    font-size: .64rem;
    border-radius: 12px 12px 0 0;
  }
  .comparison-table tbody th {
    width: 35%;
    font-size: .66rem;
    letter-spacing: 0;
  }
  .comparison-table tbody td {
    width: 32.5%;
  }
  .comparison-table tbody tr:nth-child(odd) th {
    border-radius: 14px 0 0 14px;
  }
  .comparison-table tbody tr:nth-child(odd) td:nth-child(3) {
    border-radius: 0 14px 14px 0;
  }
  .compare-good {
    justify-content: center;
  }
  .footer-inner { flex-direction: column; align-items: center; }
  .otp-input { width: 44px; height: 52px; font-size: 1.25rem; }
  .trust-bar { padding-bottom: 1rem; }
  .trust-item {
    min-height: 78px;
    padding: .875rem 1rem;
  }
  .trust-text strong { font-size: .86rem; }
  .trust-text span { font-size: .76rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .offer-popup {
    padding: 1rem;
  }
  .offer-popup-card {
    width: calc(100vw - 2rem);
    padding: 2rem 1.25rem 1.25rem;
  }
}

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