/* ====== We Buy Homes — Shared Styles ====== */
/* Mobile-first. Breakpoints: 640px, 768px, 1024px */

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

:root {
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --green: #059669;
  --green-light: #d1fae5;
  --red: #dc2626;
  --red-light: #fef2f2;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

/* ====== Mobile Sticky CTA ====== */\n.mobile-cta {\n  display: none;\n  position: fixed;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  z-index: 999;\n  background: #fff;\n  border-top: 1px solid var(--border);\n  padding: 8px 12px;\n  gap: 8px;\n  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);\n}\n\n@media (max-width: 639px) {\n  .mobile-cta { display: flex; }\n  body { padding-bottom: 60px; }\n}\n\n.mobile-cta__btn {\n  flex: 1;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 6px;\n  padding: 12px 16px;\n  font-size: 14px;\n  font-weight: 700;\n  border-radius: 8px;\n  text-decoration: none;\n  text-align: center;\n}\n\n.mobile-cta__btn--call {\n  background: var(--bg);\n  color: var(--blue);\n  border: 2px solid var(--blue);\n}\n\n.mobile-cta__btn--offer {\n  background: var(--blue);\n  color: #fff;\n  border: 2px solid var(--blue);\n}\n\n/* ====== Breadcrumbs ====== */\n.breadcrumbs {\n  background: #f1f5f9;\n  border-bottom: 1px solid var(--border);\n  padding: 8px 0;\n}\n\n.breadcrumbs__list {\n  display: flex;\n  flex-wrap: wrap;\n  list-style: none;\n  font-size: 13px;\n}\n\n.breadcrumbs__item + .breadcrumbs__item::before {\n  content: \"/\";\n  margin: 0 8px;\n  color: var(--text-muted);\n}\n\n.breadcrumbs__link {\n  color: var(--blue);\n  text-decoration: none;\n}\n\n.breadcrumbs__link:hover {\n  text-decoration: underline;\n}\n\n.breadcrumbs__item--current {\n  color: var(--text-muted);\n}\n\n/* ====== Nearby List ====== */\n.nearby-list {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 10px;\n  justify-content: center;\n  margin-bottom: 24px;\n}\n\n.nearby-link {\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  padding: 8px 14px;\n  font-size: 14px;\n  font-weight: 500;\n  border: 1px solid var(--border);\n  border-radius: 8px;\n  background: var(--surface);\n  color: var(--blue);\n  text-decoration: none;\n  transition: border-color 0.15s;\n}\n\n.nearby-link:hover {\n  border-color: var(--blue);\n}\n\n/* ====== Header ====== */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 8px;
}

.header__logo {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 639px) {
  .header__nav .btn--outline {
    display: none;
  }
}

@media (min-width: 480px) {
  .header__logo { font-size: 16px; }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline:hover {
  background: #eff6ff;
}

.btn--sm {
  font-size: 13px;
  padding: 6px 14px;
}

.btn--lg {
  font-size: 16px;
  padding: 14px 28px;
}

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

/* ====== Hero ====== */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}

.hero__title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 16px;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .hero { padding: 72px 0 56px; }
  .hero__title { font-size: 40px; }
  .hero__subtitle { font-size: 18px; }
}

/* ====== Trust Badges ====== */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
}

.trust-badge i {
  font-size: 18px;
  color: var(--blue);
}

/* ====== Section ====== */
.section {
  padding: 48px 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section__desc {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .section { padding: 64px 0; }
  .section__title { font-size: 28px; }
}

/* ====== Steps / How It Works ====== */
.steps {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ====== Local Section (city pages) ====== */
.local {
  max-width: 700px;
  margin: 0 auto;
}

.local__content {
  margin-bottom: 28px;
}

.local__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

.local__details {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .local__details { grid-template-columns: 1fr 1fr; }
}

.local__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.local__card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.local__card-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.local__cta {
  text-align: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 28px 20px;
}

.local__cta-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ====== Comparison Table ====== */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-weight: 700;
  font-size: 15px;
}

.compare-table__label {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.compare-table__us {
  color: var(--green);
  font-weight: 600;
  background: var(--green-light);
}

.compare-table__agent {
  color: var(--red);
  font-weight: 600;
  background: var(--red-light);
}

.compare-table th.compare-table__us {
  background: var(--green);
  color: #fff;
  border-radius: 8px 0 0 0;
}

.compare-table th.compare-table__agent {
  background: var(--red);
  color: #fff;
  border-radius: 0 8px 0 0;
}

/* ====== Reasons / Why Us ====== */
.reasons {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .reasons { grid-template-columns: repeat(2, 1fr); }
}

.reason {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.reason__icon {
  font-size: 28px;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}

.reason__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.reason__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ====== Form ====== */
.form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.form__group {
  margin-bottom: 16px;
}

.form__row {
  display: grid;
  gap: 12px;
}

@media (min-width: 480px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form__required { color: var(--red); }
.form__optional { color: var(--text-muted); font-weight: 400; }

.form__input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.15s;
  background: var(--bg);
}

.form__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.form__message {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.form__message--visible {
  display: block;
}

.form__message--success {
  background: var(--green-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form__message--error {
  background: var(--red-light);
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ====== FAQ ====== */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.15s;
}

.faq-q:hover { background: #f8fafc; }

.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
}

details[open] .faq-q::after { content: '−'; }

.faq-a {
  padding: 0 18px 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====== Content Block ====== */
.content-block {
  max-width: 700px;
  margin: 0 auto;
}

.content-block__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-block__list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}

.content-block__list li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.content-block__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green, #059669);
  font-weight: 700;
}

/* ====== Footer ====== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: auto;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer a {
  color: var(--blue);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
