/* ============================================================
   JiT Home Buyers — Demo Stylesheet
   Inspired by jithomebuyers.com / Carrot investor template
   ============================================================ */

:root {
  /* JiT brand: orange + sky blue + charcoal navy (from real logo) */
  --navy: #2d3849;          /* "HOME" charcoal navy from logo */
  --navy-dark: #1f2937;     /* deeper variant for hero/footer */
  --blue: #29a9e0;          /* "BUYERS" sky blue from logo */
  --blue-dark: #1d8cc4;
  --blue-light: #e6f5fc;
  --orange: #f26a1f;        /* "JIT" orange from logo — CTA color */
  --orange-dark: #d85912;
  --green: #2ecc71;         /* check / success */
  --green-dark: #25a85a;
  --yellow: #f9a826;
  --red: #e74c3c;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --border: #e1e6eb;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius: 6px;
  --radius-lg: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===== Top Bar ===== */
.top-bar {
  background: var(--navy-dark);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: #fff; }
.top-bar .badges span { margin-right: 12px; opacity: 0.9; }

/* ===== Header / Nav ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo img {
  height: 54px;
  width: auto;
  display: block;
}
.logo .logo-mark {
  background: var(--navy);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }
/* footer dark-bg variant of the logo image */
.logo.logo-footer img {
  height: 48px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  font-weight: 800;
  color: var(--navy);
  font-size: 18px;
}
.header-phone span { display: block; font-size: 11px; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.btn-cta {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 0 var(--orange-dark);
}
.btn-cta:hover { background: var(--orange-dark); color: #fff; }
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 18px; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--bg-soft);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb li::after {
  content: "›";
  margin-left: 8px;
  color: var(--text-light);
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: var(--text-light); font-weight: 600; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(29, 117, 200, 0.25), transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(46, 204, 113, 0.15), transparent 50%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--yellow); }
.hero p.lede {
  font-size: 19px;
  margin-bottom: 22px;
  opacity: 0.95;
}
.hero-bullets {
  list-style: none;
  margin-bottom: 24px;
}
.hero-bullets li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 8px;
  font-size: 16px;
}
.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  background: var(--green);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
}
.trust-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
}
.trust-badge strong { color: var(--yellow); display: block; font-size: 16px; }

/* ===== Hero Form ===== */
.lead-form-card {
  background: #fff;
  color: var(--text);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--orange);
}
.lead-form-card h3 {
  color: var(--navy);
  font-size: 22px;
  margin-bottom: 6px;
  text-align: center;
}
.lead-form-card .form-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 18px;
}
.lead-form-card .form-row { margin-bottom: 12px; }
.lead-form-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}
.lead-form-card input,
.lead-form-card select,
.lead-form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lead-form-card input:focus,
.lead-form-card select:focus,
.lead-form-card textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 117, 200, 0.15);
}
.form-disclaimer {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2 { color: #fff; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}
.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-head p {
  font-size: 17px;
  color: var(--text-light);
}
.eyebrow {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ===== Stats Strip ===== */
.stats-strip {
  background: var(--navy);
  color: #fff;
  padding: 36px 0;
}
.stats-strip .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-strip .stat strong {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 6px;
}
.stats-strip .stat span { font-size: 14px; opacity: 0.9; }

/* ===== 3 Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card .step-num {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--shadow);
}
.step-card h3 {
  font-size: 20px;
  color: var(--navy);
  margin: 12px 0 10px;
}
.step-card p { color: var(--text-light); font-size: 15px; }

/* ===== Map / GMB ===== */
.gmb-section { background: var(--bg-soft); }
.gmb-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: stretch;
}
.gmb-info {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--green);
}
.gmb-info h3 {
  color: var(--navy);
  font-size: 26px;
  margin-bottom: 14px;
}
.gmb-info .nap {
  list-style: none;
  margin: 18px 0;
}
.gmb-info .nap li {
  padding: 10px 0 10px 36px;
  position: relative;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}
.gmb-info .nap li:last-child { border-bottom: 0; }
.gmb-info .nap li strong { display: block; font-size: 12px; text-transform: uppercase; color: var(--text-light); margin-bottom: 2px; letter-spacing: 0.5px; }
.gmb-info .nap li::before {
  position: absolute;
  left: 0;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.gmb-info .nap li.addr::before { content: "📍"; }
.gmb-info .nap li.phone::before { content: "📞"; }
.gmb-info .nap li.hours::before { content: "🕒"; }
.gmb-info .nap li.review::before { content: "⭐"; }
.gmb-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ===== Why / Benefits Cards ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.benefit-card .icon {
  width: 54px;
  height: 54px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.benefit-card h4 { color: var(--navy); font-size: 19px; margin-bottom: 8px; }
.benefit-card p { color: var(--text-light); font-size: 15px; }

/* ===== Comparison Table ===== */
.compare-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
table.compare th,
table.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.compare th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
table.compare th:first-child { width: 36%; }
table.compare td.yes { color: var(--green-dark); font-weight: 700; }
table.compare td.no { color: var(--red); }
table.compare tr:nth-child(even) td { background: var(--bg-soft); }

/* ===== City list (on state page) ===== */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.city-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.city-tile:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.city-tile span.arrow { color: var(--blue); font-weight: 800; }
.city-tile.placeholder {
  opacity: 0.7;
  background: var(--bg-soft);
  font-style: italic;
}

/* ===== Testimonial ===== */
.testimonial {
  background: #fff;
  border-left: 5px solid var(--yellow);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}
.testimonial .stars { color: var(--yellow); font-size: 18px; margin-bottom: 10px; }
.testimonial blockquote { font-size: 17px; font-style: italic; color: var(--text); margin-bottom: 12px; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy); }
.testimonial cite span { font-weight: 400; color: var(--text-light); font-size: 14px; }

/* ===== FAQ ===== */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  color: var(--navy);
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 22px 18px;
  color: var(--text-light);
  font-size: 15px;
}

/* ===== Final CTA Strip ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; font-size: 32px; margin-bottom: 12px; }
.cta-strip p { font-size: 18px; margin-bottom: 24px; opacity: 0.95; }
.cta-strip .btn-primary { background: #fff; color: var(--orange-dark); }
.cta-strip .btn-primary:hover { background: var(--navy); color: #fff; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 50px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h5 {
  color: var(--yellow);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a { color: rgba(255, 255, 255, 0.85); }
.footer-grid ul a:hover { color: var(--yellow); text-decoration: none; }
.footer-grid p { color: rgba(255, 255, 255, 0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* ===== Demo Banner (only on index/landing) ===== */
.demo-banner {
  background: var(--yellow);
  color: var(--navy-dark);
  text-align: center;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
}
.demo-banner a { color: var(--navy-dark); text-decoration: underline; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .gmb-grid { grid-template-columns: 1fr; }
  .gmb-map iframe { min-height: 320px; }
  .stats-strip .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps,
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .section { padding: 50px 0; }
  .section-head h2 { font-size: 26px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 50px; }
  .hero h1 { font-size: 26px; }
  .stats-strip .stat strong { font-size: 28px; }
}
