/* Lewisville Garage Floor Coatings - shared stylesheet */

:root {
  --charcoal: #1c2024;
  --slate: #3a4048;
  --concrete: #6b7280;
  --fog: #e9eaec;
  --paper: #faf9f7;
  --rust: #b5482f;
  --rust-dark: #8f3a25;
  --amber: #c9922f;
  --success-green: #3a6b4a;
  --max-width: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / phone bar ---- */
.top-bar {
  background: var(--charcoal);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}
.top-bar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: #fff; font-weight: 600; }
.top-bar a:hover { color: var(--amber); text-decoration: none; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--fog);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo {
  font-size: 21px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.logo span { color: var(--rust); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--slate);
  font-weight: 600;
  font-size: 15px;
}
nav.main-nav a:hover { color: var(--rust); text-decoration: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rust);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.phone-pill:hover { background: var(--rust-dark); text-decoration: none; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--fog);
    border-radius: var(--radius);
    padding: 8px 10px;
    font-size: 20px;
  }
  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--fog);
    padding: 16px 24px;
  }
  nav.main-nav.open ul { flex-direction: column; gap: 16px; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, rgba(28,32,36,0.88), rgba(28,32,36,0.72)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect width="200" height="200" fill="%232a2e33"/><rect width="200" height="4" y="0" fill="%23343a40"/></svg>');
  background-size: cover;
  color: #fff;
  padding: 64px 0 56px;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 780px;
}
.hero p.lead {
  font-size: 19px;
  color: #d7d9db;
  max-width: 640px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); text-decoration: none; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; text-decoration: none; }

.trust-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: 14px;
  color: #cfd2d5;
}
.trust-row strong { color: #fff; display: block; font-size: 20px; }

/* ---- Sections ---- */
section { padding: 56px 0; }
section.tight { padding: 36px 0; }
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 10px;
}
h2 { font-size: 30px; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { font-size: 21px; margin: 28px 0 10px; }
.lede { font-size: 18px; color: var(--slate); max-width: 760px; }

.alt-bg { background: #fff; border-top: 1px solid var(--fog); border-bottom: 1px solid var(--fog); }
.dark-bg { background: var(--charcoal); color: #fff; }
.dark-bg h2, .dark-bg h3 { color: #fff; }

/* TL;DR box */
.tldr {
  background: #fff;
  border: 1px solid var(--fog);
  border-left: 4px solid var(--rust);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.tldr h3 { margin-top: 0; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rust); }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin-bottom: 6px; }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

.card {
  background: #fff;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-top: 0; }
.card .price-note { color: var(--concrete); font-size: 14px; }

/* Comparison table */
table.compare { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; }
table.compare th, table.compare td {
  border: 1px solid var(--fog);
  padding: 12px 14px;
  text-align: left;
  font-size: 15px;
}
table.compare th { background: var(--charcoal); color: #fff; font-weight: 700; }
table.compare tr:nth-child(even) td { background: #f5f4f2; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 22px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--rust);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.steps h3 { margin: 0 0 4px; font-size: 18px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--fog); padding: 20px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; }
.faq-item p { margin: 0; color: var(--slate); }

/* Service area chips */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.area-chips span {
  background: #fff;
  border: 1px solid var(--fog);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--slate);
}

/* Footer disclaimer */
.disclaimer {
  font-size: 13px;
  color: var(--concrete);
  max-width: 780px;
  margin-top: 18px;
}

/* Footer */
footer.site-footer { background: var(--charcoal); color: #cfd2d5; padding: 48px 0 28px; margin-top: 40px; }
footer.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
footer.site-footer .grid-4 { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
footer.site-footer a { color: #cfd2d5; }
footer.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #33383e;
  margin-top: 32px;
  padding-top: 20px;
  font-size: 13px;
  color: #8b9096;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) {
  footer.site-footer .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* Section photos (stock, captioned neutrally) */
.section-photo {
  margin: 0 0 32px;
}
.section-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--fog);
}
.section-photo figcaption {
  font-size: 13px;
  color: var(--concrete);
  margin-top: 8px;
}

/* Quick Answer spec table */
.spec-table {
  background: #fff;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  margin: 24px 0 32px;
  overflow: hidden;
}
.spec-table h3 {
  margin: 0;
  padding: 14px 20px;
  background: var(--charcoal);
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spec-table dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}
.spec-table > dl > div {
  display: contents;
}
.spec-row {
  display: contents;
}
.spec-row dt {
  padding: 12px 20px;
  font-weight: 600;
  color: var(--slate);
  border-top: 1px solid var(--fog);
  background: #f9f8f6;
}
.spec-row dd {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--fog);
  color: var(--charcoal);
}
@media (max-width: 600px) {
  .spec-table dl { grid-template-columns: 1fr; }
  .spec-row dt { border-bottom: none; padding-bottom: 4px; background: #fff; }
  .spec-row dd { padding-top: 0; }
}

form.lead-form {
  background: #fff;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  padding: 28px;
}
form.lead-form label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
form.lead-form label:first-child { margin-top: 0; }
form.lead-form input, form.lead-form select, form.lead-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7d5d1;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
}
form.lead-form textarea { min-height: 100px; resize: vertical; }
form.lead-form .btn-primary { border: none; cursor: pointer; margin-top: 18px; width: 100%; }
.form-note { font-size: 13px; color: var(--concrete); margin-top: 10px; }
