/* WisHomeBuyers — responsive design system (mobile-first).
   Replaces the pixel-placed layout with a real responsive site. */

:root {
  --brand:        #04aee9;
  --brand-dark:   #0398cc;
  --brand-darker: #0277a3;
  --ink:          #0f172a; /* slate-900 */
  --body:         #334155; /* slate-700 */
  --muted:        #64748b; /* slate-500 */
  --line:         #e2e8f0; /* slate-200 */
  --surface:      #ffffff;
  --surface-2:    #f1f5f9; /* slate-100 */
  --surface-3:    #f8fafc; /* slate-50  */
  --dark:         #0b1f2a;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.10);
  --shadow:       0 10px 30px rgba(15,23,42,.10);
  --shadow-lg:    0 20px 50px rgba(15,23,42,.18);
  --container:    1140px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand-darker); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1rem; }
strong { color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--surface-3); }
.section--dark { background: var(--dark); color: #cbd5e1; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto clamp(28px, 5vw, 52px); text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section__head p { color: #94a3b8; }
.eyebrow { color: var(--brand-dark); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .6rem; }

/* ---- skip link & a11y ---- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 1000; }
.skip:focus { left: 8px; top: 8px; background: #fff; color: var(--brand-dark); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1rem/1 var(--font); text-align: center; white-space: nowrap;
  padding: 14px 24px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; user-select: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(4,174,233,.30); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(4,174,233,.40); }
.btn-ghost { background: #fff; color: var(--brand-darker); border-color: #fff; box-shadow: 0 8px 20px rgba(2,72,99,.22); }
.btn-ghost:hover { background: #eaf7fe; color: var(--brand-darker); border-color: #eaf7fe; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(2,72,99,.30); }
.btn-outline { background: #fff; color: var(--brand-dark); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-darker); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

/* ---- header / nav ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img { height: 38px; width: auto; }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__panel {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease;
  background: #fff; border-bottom: 1px solid var(--line);
}
.nav__panel > div { overflow: hidden; }
.site-header.is-open .nav__panel { grid-template-rows: 1fr; }
.site-header.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__panel a { display: block; padding: 14px 20px; color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); }
.nav__panel a:hover { background: var(--surface-3); color: var(--brand-darker); }
.nav__panel .btn { margin: 14px 20px; }

@media (min-width: 920px) {
  .nav__toggle, .nav__panel { display: none; }
  .nav__links { display: flex; align-items: center; gap: 28px; }
  .nav__links a { color: var(--ink); font-weight: 600; font-size: 1rem; }
  .nav__links a:hover { color: var(--brand-darker); }
  .nav__cta { display: inline-flex; }
}

/* ---- hero ---- */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,20,28,.58) 0%, rgba(8,20,28,.30) 55%, rgba(8,20,28,.16) 100%); z-index: 1; }

/* The cash-offer hero photo is a dark dusk shot; brighten the image itself and
   lighten its overlay so it isn't murky (the title keeps its text-shadow). */
.page-cash-offer .hero__bg { filter: brightness(1.55) saturate(1.08) contrast(.98); }
.page-cash-offer .hero::after { background: linear-gradient(100deg, rgba(8,20,28,.50) 0%, rgba(8,20,28,.22) 55%, rgba(8,20,28,.10) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero__grid { display: grid; gap: clamp(28px, 5vw, 56px); padding: clamp(44px, 8vw, 92px) 0; align-items: center; }
/* Everything in the hero sits on a photo, so force light, readable text. */
.hero h1, .hero h2, .hero p, .hero strong, .hero li, .hero .checks li { color: #fff; }
.hero h1, .hero__lead { text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #f1f6fb; max-width: 40ch; }
.hero__lead strong { color: #fff; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* ---- form card ---- */
.form-card { background: #fff; color: var(--body); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 28px); }
.form-card h2, .form-card h3 { color: var(--ink); margin-top: 0; }
.form-card .muted { color: var(--muted); margin-top: -.3rem; }
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--body); }
.field .req { color: #e11d48; }
.input {
  width: 100%; font: 1rem var(--font); color: var(--ink);
  background: var(--surface-3); border: 1px solid #cbd5e1; border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(4,174,233,.18); background: #fff; }
textarea.input { min-height: 110px; resize: vertical; }

/* ---- feature / steps / cards grids ---- */
.grid { display: grid; gap: clamp(18px, 3vw, 28px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 980px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 18px 20px; }
.card__body h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.card__body p { margin: 0; color: var(--muted); }

.steps { counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 22px 22px; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; box-shadow: 0 6px 14px rgba(4,174,233,.30); }
.step h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---- comparison table (stacks on mobile) ---- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-size: .95rem; }
.compare thead th.is-us { background: var(--brand); }
.compare tbody th { font-weight: 700; color: var(--ink); }
.compare td { color: var(--body); }
.compare .is-us-col { background: rgba(4,174,233,.06); font-weight: 600; color: var(--ink); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
@media (max-width: 680px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tbody th { background: var(--surface-3); }
  .compare td { border-bottom: 1px solid var(--line); }
  .compare td::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
  .compare tr { border-bottom: 2px solid var(--line); }
}

/* ---- feature list with checks ---- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(4,174,233,.14); color: var(--brand-darker); font-weight: 800; font-size: .85rem; }

/* ---- FAQ accordion ---- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq__a { padding: 0 20px 18px; color: var(--body); }

/* ---- article / prose (legal + blog) ---- */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: var(--body); }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: .4em 0; }
.article img { border-radius: var(--radius); margin: 1.5em 0; }
.article a { text-decoration: underline; }
.post-hero { position: relative; overflow: hidden; background: var(--surface-3); border-bottom: 1px solid var(--line); }
.post-hero .container { position: relative; z-index: 2; padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(28px, 5vw, 48px); }
.post-hero .hero__bg { z-index: 0; }
.post-meta { color: var(--muted); font-size: .9rem; }
/* Post heroes that carry a photo (blog posts): contain the image to the top band
   (it was escaping full-page) and lay a DARK overlay so the title stays readable. */
.post-hero:has(.hero__bg) { background: var(--dark); border-bottom: 0; }
.post-hero:has(.hero__bg)::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,20,28,.34), rgba(8,20,28,.60)); }
.post-hero:has(.hero__bg) .container { padding-top: clamp(52px, 8vw, 96px); padding-bottom: clamp(44px, 6vw, 72px); }
.post-hero:has(.hero__bg) h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.post-hero:has(.hero__bg) .eyebrow { color: #7dd3fc; }
.post-hero:has(.hero__bg) .post-meta { color: #e2e8f0; text-shadow: 0 1px 10px rgba(0,0,0,.5); }

/* ---- CTA band ---- */
.cta-band {
  position: relative; overflow: hidden;
  background: radial-gradient(130% 150% at 88% 0%, rgba(4,174,233,.30), transparent 55%),
              linear-gradient(135deg, #0b2533 0%, #103a4e 100%);
  color: #fff; border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 56px); text-align: center;
}
.cta-band .eyebrow { color: #7dd3fc; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: #aebecb; max-width: 50ch; margin-inline: auto; }
.cta-band .btn { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 10px 26px rgba(4,174,233,.45); margin-top: .6rem; }
.cta-band .btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(4,174,233,.55); }

/* ---- footer ---- */
.site-footer { background: var(--dark); color: #94a3b8; padding: clamp(40px, 6vw, 64px) 0 28px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer__brand img { height: 40px; background: #fff; border-radius: 8px; padding: 6px 8px; }
.footer__phone { color: #fff; font-size: 1.25rem; font-weight: 800; margin: 14px 0 4px; }
.footer__phone a { color: #fff; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer__col h4 { color: #fff; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
@media (min-width: 820px) {
  .footer__grid { grid-template-columns: 1.4fr 2fr; align-items: start; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---- utilities ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--muted); }
.stack > * + * { margin-top: 1rem; }

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