/*
Theme Name: 915sell
Theme URI: https://www.915sell.com
Author: 915sell.com
Description: Conversion-focused theme for 915sell.com, a local cash home buyer serving El Paso County, TX and Dona Ana County, NM. Carries the 915sell Borderland design direction: navy grounds, a single locked orange action color, and the five-step emoji offer wizard.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 915sell
Tags: real-estate, one-column, custom-menu, featured-images
*/

/* ============================================================
   DESIGN TOKENS - 915sell Borderland
   ============================================================ */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #1e293b;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --primary: #1a6fd4;
  --secondary: #0d3b73;
  --deep: #082a54;
  --muted: #64748b;
  --border: #e6edf5;
  --success: #16a34a;
  --error: #dc2626;
  --gold: #ffd166;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 32px;
  --s-xl: 64px;

  --shadow: 0 8px 30px rgba(13, 59, 115, .12);
  --shadow-lift: 0 14px 40px rgba(13, 59, 115, .2);
  --shadow-action: 0 4px 14px rgba(249, 115, 22, .35);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --container: 1160px;
}

/* ============================================================
   RESET  (:where() keeps specificity at 0 so components win)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background: var(--surface);
  font-size: 16px;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--deep); color: #fff;
  padding: 12px 20px; z-index: 999; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar { background: var(--deep); color: #cfe2ff; font-size: .85rem; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.admin-bar .site-header { top: 32px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 16px; }
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 56px; width: auto; }
.site-logo .wordmark { font-weight: 900; font-size: 1.5rem; color: var(--primary); letter-spacing: -.5px; }
.site-logo .wordmark span { color: var(--muted); font-size: .6rem; display: block; letter-spacing: 3px; font-weight: 600; }

.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--primary); }
.btn-phone {
  background: var(--accent); color: #fff !important; padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-action);
  min-height: 48px; display: inline-flex; align-items: center;
}
.btn-phone:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--secondary); cursor: pointer; min-height: 48px; min-width: 48px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 70%, #3f8ee8 100%);
  color: #fff; padding: 56px 0 70px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.12), transparent 45%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; font-weight: 900; margin-bottom: 16px; }
.hero h1 .hl { color: var(--gold); }
.hero .sub { font-size: 1.15rem; color: #dbeafe; margin-bottom: 22px; max-width: 34rem; }
.hero-points { display: grid; gap: 10px; margin-bottom: 26px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.hero-points li::before { content: "\2713"; color: #4ade80; font-weight: 900; font-size: 1.1rem; }

/* TV credibility strip */
.tv-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.tv-strip .astv { height: 74px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.tv-label { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: #bfdbfe; width: 100%; font-weight: 700; }
.tv-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tv-badge {
  background: #fff; border-radius: var(--r-sm); padding: 6px 12px; font-weight: 900; font-size: .85rem;
  letter-spacing: .5px; box-shadow: 0 2px 8px rgba(0,0,0,.25); display: flex; align-items: center; height: 40px;
}
.tv-badge img { height: 30px; width: auto; }
.tv-badge.kvia { color: #111; }
.tv-badge.kfox { color: #123a7a; }
.tv-badge.cbs { color: #c00; }
.tv-badge.cw { color: #14833b; }

/* ============================================================
   OFFER WIZARD
   ============================================================ */
.wizard-card {
  background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0,0,0,.3);
  padding: 28px; max-width: 480px; width: 100%; justify-self: end;
}
.wizard-card h2 { font-size: 1.35rem; color: var(--secondary); margin-bottom: 4px; }
.wizard-card .wz-sub { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.wz-progress { height: 8px; background: var(--border); border-radius: var(--r-pill); margin-bottom: 20px; overflow: hidden; }
.wz-progress-bar { height: 100%; width: 20%; background: linear-gradient(90deg, var(--accent), #fbbf24); border-radius: var(--r-pill); transition: width .35s ease; }
.wz-step { display: none; }
.wz-step.active { display: block; animation: wzfade .3s ease; }
@keyframes wzfade { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .wz-step.active { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.wz-step h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--secondary); }
.wz-field { margin-bottom: 14px; }
.wz-field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.wz-field input, .wz-field select {
  width: 100%; padding: 13px 14px; border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 1rem; font-family: var(--font); transition: border-color .2s; min-height: 48px; background: #fff; color: var(--ink);
}
.wz-field input:focus, .wz-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,111,212,.15); }
.wz-field.error input, .wz-field.error select { border-color: var(--error); }
.wz-error { color: var(--error); font-size: .8rem; font-weight: 600; display: none; margin-top: 4px; }
.wz-field.error .wz-error { display: block; }

.wz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wz-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wz-opt {
  border: 2px solid var(--border); border-radius: var(--r-md); padding: 14px 8px; text-align: center;
  cursor: pointer; background: #fff; transition: all .15s ease; min-height: 48px;
}
.wz-opt:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(26,111,212,.15); }
.wz-opt:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.wz-opt.selected { border-color: var(--accent); background: #fff7ed; box-shadow: 0 0 0 3px rgba(249,115,22,.2); }
.wz-opt .emoji { font-size: 2.2rem; display: block; margin-bottom: 6px; line-height: 1; }
.wz-opt .lbl { font-weight: 800; font-size: .9rem; display: block; color: var(--ink); }
.wz-opt .desc { font-size: .72rem; color: var(--muted); display: block; margin-top: 2px; }

.wz-nav { display: flex; gap: 10px; margin-top: 18px; }
.btn { border: none; border-radius: var(--r-sm); padding: 14px 22px; font-size: 1rem; font-weight: 800; cursor: pointer; font-family: var(--font); transition: all .15s; min-height: 48px; }
.btn-next { background: var(--accent); color: #fff; flex: 1; box-shadow: var(--shadow-action); }
.btn-next:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-next:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-back { background: var(--border); color: var(--ink); }
.btn-back:hover { background: #d7e1ec; }
.wz-secure { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 12px; }
.wz-success { text-align: center; padding: 20px 0; }
.wz-success .big { font-size: 3.5rem; }
.wz-success h3 { font-size: 1.4rem; color: var(--success); margin: 10px 0 8px; }
.wz-success p { color: var(--muted); margin-bottom: 16px; }
.wz-success .btn-next { display: inline-block; text-decoration: none; flex: none; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trustbar { background: var(--bg); padding: 26px 0; border-bottom: 1px solid var(--border); }
.trustbar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust-item .num { font-size: 1.5rem; font-weight: 900; color: var(--secondary); }
.trust-item .lab { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ============================================================
   SECTIONS
   ============================================================ */
.block { padding: 64px 0; }
.block.alt { background: var(--bg); }
.block .title { font-size: 2rem; font-weight: 900; color: var(--secondary); text-align: center; margin-bottom: 8px; }
.block .lead { text-align: center; color: var(--muted); max-width: 44rem; margin: 0 auto 40px; font-size: 1.05rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: #fff; border-radius: var(--r-md); padding: 30px 24px; box-shadow: var(--shadow); text-align: center; }
.step-card .n {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 900; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.step-card .emoji { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.step-card h3 { color: var(--secondary); margin-bottom: 8px; font-size: 1.15rem; }
.step-card p { font-size: .95rem; color: var(--muted); }

.situations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sit-card {
  background: #fff; border-radius: var(--r-md); padding: 26px 22px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; border-top: 4px solid var(--primary);
  display: block;
}
.sit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.sit-card .emoji { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.sit-card h3 { color: var(--secondary); font-size: 1.1rem; margin-bottom: 6px; }
.sit-card p { font-size: .9rem; color: var(--muted); }
.sit-card .go { color: var(--accent); font-weight: 800; font-size: .85rem; display: inline-block; margin-top: 10px; }

.compare-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); min-width: 640px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); font-size: .95rem; }
table.compare th { background: var(--secondary); color: #fff; font-size: .9rem; }
table.compare th.us { background: var(--accent); }
table.compare td:first-child { text-align: left; font-weight: 700; }
table.compare td.yes { color: var(--success); font-weight: 800; }
table.compare td.no { color: var(--error); }

.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.area-col { background: #fff; border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow); }
.area-col h3 { color: var(--secondary); margin-bottom: 14px; font-size: 1.2rem; }
.area-col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.area-col a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.area-col a:hover { text-decoration: underline; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: #fff; border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow); }
.quote .stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 2px; }
.quote p { font-size: .95rem; font-style: italic; margin-bottom: 12px; }
.quote .who { font-weight: 800; color: var(--secondary); font-size: .9rem; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border-radius: var(--r-sm); margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { padding: 18px 22px; font-weight: 800; cursor: pointer; color: var(--secondary); list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 16px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 18px; color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.cta-band p { margin-bottom: 24px; font-size: 1.1rem; opacity: .95; }
.btn-white {
  background: #fff; color: var(--accent-dark); padding: 16px 34px; border-radius: var(--r-pill); font-weight: 900;
  font-size: 1.1rem; text-decoration: none; display: inline-block; box-shadow: 0 8px 24px rgba(0,0,0,.2); min-height: 48px;
}
.cta-band .or-call { margin-top: 14px; font-size: 1rem; }
.cta-band .or-call a { color: #fff; font-weight: 900; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; padding: 48px 0; }
.page-hero h1 { font-size: 2.1rem; font-weight: 900; line-height: 1.2; margin-bottom: 12px; }
.page-hero p { color: #dbeafe; font-size: 1.1rem; max-width: 42rem; }
.page-hero .phone-inline { color: var(--gold); font-weight: 800; }
.breadcrumb { font-size: .85rem; margin-bottom: 10px; color: #bfdbfe; }
.breadcrumb a { color: #fff; }

.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start; }
.entry-content h2 { color: var(--secondary); font-size: 1.5rem; margin: 28px 0 12px; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { color: var(--secondary); font-size: 1.2rem; margin: 22px 0 10px; }
.entry-content p { margin-bottom: 14px; }
.entry-content ul, .entry-content ol { margin: 0 0 14px 22px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: var(--r-md); margin: 18px 0; }
.entry-content blockquote { border-left: 4px solid var(--primary); padding: 4px 0 4px 18px; margin: 18px 0; color: var(--muted); font-style: italic; }
.sidebar-sticky { position: sticky; top: 96px; }
.admin-bar .sidebar-sticky { top: 128px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb img { width: 100%; height: 190px; object-fit: cover; }
.post-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.post-card h2 a { color: var(--secondary); text-decoration: none; }
.post-card h2 a:hover { color: var(--primary); }
.post-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.post-card .excerpt { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.post-card .more { color: var(--accent); font-weight: 800; font-size: .88rem; text-decoration: none; margin-top: auto; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 16px; border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--primary); color: #fff; }

/* WP core alignment + captions */
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--deep); color: #9db8d9; padding: 48px 0 24px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #9db8d9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; text-align: center; font-size: .8rem; }
.site-footer .astv-foot { height: 60px; margin-top: 12px; }

/* Mobile sticky call bar */
.sticky-call { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .wizard-card { justify-self: stretch; max-width: 100%; }
  .steps, .situations, .quotes, .post-grid { grid-template-columns: 1fr; }
  .trustbar .container { grid-template-columns: repeat(2, 1fr); }
  .areas, .two-col { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .sidebar-sticky { position: static; }
  .hero h1 { font-size: 2rem; }
  .block .title { font-size: 1.6rem; }

  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 18px; box-shadow: 0 12px 24px rgba(0,0,0,.12); gap: 14px; align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }

  body { padding-bottom: 64px; }
  .sticky-call { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; }
  .sticky-call a { flex: 1; text-align: center; padding: 15px 8px; font-weight: 900; text-decoration: none; font-size: .95rem; min-height: 48px; }
  .sticky-call .call { background: var(--success); color: #fff; }
  .sticky-call .offer { background: var(--accent); color: #fff; }
}
@media (max-width: 520px) {
  .site-footer .cols { grid-template-columns: 1fr; }
  .area-col ul { grid-template-columns: 1fr; }
  .wz-options.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
