/* Room Painting Henderson — shared stylesheet */

:root {
  --ink: #22303c;
  --sage: #55794b;
  --sage-light: #6d9161;
  --off-white: #f6f7f1;
  --text: #2c3138;
  --muted: #66705f;
  --border: #dee4d4;
  --alt-bg: #eaf0df;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--sage);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
header.site-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--sage);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--sage-light);
  text-decoration: none;
  color: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #e7edd9 0%, var(--off-white) 100%);
  padding: 64px 20px 56px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 720px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 24px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--sage-light);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--off-white);
  text-decoration: none;
}

/* Hero with photo + lead form (above the fold) */
.hero-with-photo .hero-inner {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-with-photo .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    order: -1;
  }
}

@media (max-width: 600px) {
  .hero-with-photo {
    padding-top: 20px;
    padding-bottom: 24px;
  }
  .hero-photo img {
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
  }
  .hero-with-photo .eyebrow {
    margin-top: 14px;
    margin-bottom: 4px;
  }
  .hero-with-photo h1 {
    font-size: 1.5rem;
    margin: 0 0 8px;
  }
  .hero-with-photo p.lead {
    font-size: 0.95rem;
    margin: 0 0 14px;
  }
  .hero-with-photo .hero-ctas {
    display: none;
  }
  .lead-card {
    padding: 16px;
    margin-top: 14px;
  }
  .lead-card h2 {
    font-size: 1.02rem;
  }
  .lead-card .lead-card-sub {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  .lead-form input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(34, 48, 60, 0.18);
  display: block;
}

.lead-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-top: 22px;
  box-shadow: 0 10px 28px rgba(34, 48, 60, 0.08);
}

.lead-card h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--ink);
}

.lead-card .lead-card-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 16px;
}

.lead-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .lead-form .form-row {
    grid-template-columns: 1fr;
  }
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--off-white);
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--sage-light);
  outline-offset: 1px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  margin: 10px 0 0;
  color: var(--sage);
}

.talk-to-alex {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  text-align: center;
}

.talk-to-alex-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.alex-phone-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.alex-phone-row input {
  flex: 1;
}

.alex-phone-row button {
  white-space: nowrap;
  cursor: pointer;
}

.alex-status {
  min-height: 1.2em;
  font-size: 0.88rem;
  margin: 8px 0 0;
  color: var(--muted);
}

/* Page header (non-home pages) */
.page-header {
  background: var(--ink);
  color: var(--off-white);
  padding: 48px 20px;
  text-align: left;
}

.page-header .container {
  max-width: 900px;
}

.page-header h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.page-header p {
  color: #ccd6c4;
  margin: 0;
  max-width: 680px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #a4b0a6;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #ccd6c4;
}

/* Sections */
section {
  padding: 56px 20px;
}

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

h2 {
  color: var(--ink);
  font-size: 1.7rem;
  margin: 0 0 20px;
}

h3 {
  color: var(--ink);
  font-size: 1.2rem;
  margin: 0 0 10px;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
}

.card h3 {
  color: var(--sage);
}

.card a.card-link {
  font-weight: 700;
  display: inline-block;
  margin-top: 10px;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
}

ul.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage);
  font-weight: 700;
}

/* Location grid on service-areas hub */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.location-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 700;
}

.location-grid a:hover {
  border-color: var(--sage);
  text-decoration: none;
  color: var(--sage);
}

.location-grid a span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item h3 {
  margin: 0 0 8px;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--off-white);
  text-align: center;
  padding: 48px 20px;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #ccd6c4;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: #c3ccbd;
  padding: 44px 20px 26px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

footer.site-footer h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 1rem;
}

footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer.site-footer li {
  margin-bottom: 8px;
}

footer.site-footer a {
  color: #c3ccbd;
}

footer.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #3c4a45;
  font-size: 0.85rem;
  color: #97a291;
}

.table-wrap {
  overflow-x: auto;
}

table.compare {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  min-width: 480px;
}

table.compare th,
table.compare td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.95rem;
}

table.compare th {
  background: var(--alt-bg);
  color: var(--ink);
}

/* Stat list */
ul.stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.stat-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

ul.stat-list li:last-child {
  border-bottom: none;
}

ul.stat-list strong {
  color: var(--sage);
  display: block;
  font-size: 1.05rem;
}

/* Numbered steps */
ol.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 18px 18px 64px;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.steps h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

ol.steps p {
  margin: 0;
  color: var(--muted);
}

/* Contact block */
.contact-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.contact-block a.phone-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage);
  display: inline-block;
  margin: 6px 0 4px;
}

/* Neighborhood detail card variant used on the service-areas hub note box */
.note-box {
  background: var(--alt-bg);
  border-left: 4px solid var(--sage);
  border-radius: 6px;
  padding: 18px 20px;
  margin-top: 20px;
}

.note-box p {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 640px) {
  section {
    padding: 40px 20px;
  }
}

/* ===== Hero full-bleed background photo ===== */
.hero.hero-with-photo {
  background: linear-gradient(rgba(17, 24, 19, 0.58), rgba(17, 24, 19, 0.72)), url("/assets/hero-home.jpg") center / cover no-repeat;
  background-color: #141a15;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-with-photo .hero-inner { grid-template-columns: 1fr; max-width: 720px; align-items: start; }
.hero-with-photo .hero-photo { display: none !important; }
.hero-with-photo .hero-content .eyebrow { color: #cde3b5; }
.hero-with-photo .hero-content h1 { color: #ffffff; }
.hero-with-photo .hero-content p.lead { color: rgba(255, 255, 255, 0.92); }
@media (max-width: 600px) {
  .hero.hero-with-photo { padding-top: 22px; padding-bottom: 26px; }
  .hero-with-photo .hero-photo { display: none !important; }
}

/* ===== CSS-variable fallbacks (older browsers / partial var support) ===== */
body { background: var(--off-white, #f6f7f1); color: var(--text, #2c3138); }
a { color: var(--sage, #55794b); }
.btn-primary { background: var(--sage, #55794b); }
.btn-primary:hover { background: var(--sage-light, #6d9161); }
.header-phone { background: var(--sage, #55794b); }
.eyebrow { color: var(--sage, #55794b); }
h2, h3 { color: var(--ink, #22303c); }
.cta-band, .page-header, footer.site-footer { background: var(--ink, #22303c); }
.cta-band h2 { color: #fff; }

/* ===== .btn-secondary override (keeps outline button readable on white lead card) ===== */
.btn-secondary {
  background: transparent;
  color: var(--ink, #22303c);
  border: 2px solid var(--ink, #22303c);
}
.btn-secondary:hover {
  background: var(--ink, #22303c);
  color: var(--off-white, #f6f7f1);
  text-decoration: none;
}
