/* =====================================================================
   Houston Construction Cleaning — shared stylesheet
   Hand-written, no framework, no build step. Mobile-first.
   Palette: slate-blue trust + confident orange CTA + clean neutrals.
   ===================================================================== */

:root {
  --brand:        #123a5e;   /* deep slate-blue — headers, trust */
  --brand-dark:   #0d2b45;
  --brand-tint:   #eef4fa;   /* pale blue section wash */
  --accent:       #ea6a13;   /* confident construction orange — CTAs */
  --accent-dark:  #c9560a;
  --ink:          #1a2733;   /* body text */
  --ink-soft:     #4a5a6a;   /* muted text */
  --line:         #dbe3ec;   /* borders */
  --bg:           #ffffff;
  --bg-alt:       #f5f8fb;   /* alt section background */
  --ok:           #1a7a4c;   /* success green */
  --ok-bg:        #e8f6ee;
  --warn-bg:      #fdecec;
  --warn:         #b3261e;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 2px rgba(16,42,66,.06), 0 1px 3px rgba(16,42,66,.08);
  --shadow-md:    0 4px 16px rgba(16,42,66,.10);
  --shadow-lg:    0 12px 40px rgba(16,42,66,.16);
  --maxw:         1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--brand-dark); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 2.85rem); letter-spacing: -0.015em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -0.01em; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin: .3rem 0; }
strong { color: var(--brand-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand-dark); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
  padding: .85rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.06rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: grid; place-items: center;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { color: var(--brand-dark); font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-text span { color: var(--ink-soft); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.nav { display: none; align-items: center; gap: 1.35rem; }
.nav a { color: var(--brand-dark); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-dark); }
.header-cta { display: none; align-items: center; gap: .8rem; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--brand-dark); text-decoration: none; font-size: 1.02rem; }
.header-phone:hover { color: var(--accent-dark); }
.header-phone svg { width: 17px; height: 17px; }

/* mobile menu (checkbox toggle, no JS) */
.nav-toggle { display: inline-flex; }
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: inline-flex; flex-direction: column; gap: 4px; padding: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.nav-toggle-label span { width: 22px; height: 2px; background: var(--brand-dark); border-radius: 2px; }
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .mobile-nav {
    display: block; border-bottom: 1px solid var(--line); background: #fff;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-toggle-input:checked ~ .mobile-nav { max-height: 460px; }
  .mobile-nav ul { list-style: none; margin: 0; padding: .5rem 20px 1rem; }
  .mobile-nav li { margin: 0; border-bottom: 1px solid var(--bg-alt); }
  .mobile-nav a { display: block; padding: .8rem .2rem; text-decoration: none; color: var(--brand-dark); font-weight: 600; }
  .mobile-nav .mobile-call { color: var(--accent-dark); }
}
@media (min-width: 861px) {
  .nav { display: flex; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: radial-gradient(circle at 85% 15%, rgba(234,106,19,.9), transparent 45%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start;
  padding: 2.4rem 0 2.8rem;
}
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.14rem; color: #dbe7f2; margin-bottom: 1.4rem; max-width: 40ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  padding: .35rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #eaf2fa;
}
.hero-badges svg { width: 15px; height: 15px; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .3rem; }

@media (min-width: 861px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; padding: 3.4rem 0 3.8rem; }
  .hero-form-col { position: relative; }
}

/* ---------- Lead form card ---------- */
.form-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1.5rem;
}
.form-card h2, .form-card .form-title { margin: 0 0 .25rem; font-size: 1.3rem; }
.form-card .form-sub { color: var(--ink-soft); font-size: .92rem; margin: 0 0 1rem; }

.lead-form .form-row { margin-bottom: .8rem; }
.lead-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; color: var(--brand-dark); }
.lead-form .req { color: var(--accent-dark); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18,58,94,.14);
}
.lead-form textarea { resize: vertical; min-height: 84px; }
.lead-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.lead-form input[type="file"] { padding: .55rem; font-size: .9rem; background: var(--bg-alt); }
.lead-form .field-hint { font-size: .78rem; color: var(--ink-soft); margin: .25rem 0 0; }
.lead-form .cf-turnstile { margin: .4rem 0 .9rem; min-height: 65px; }
.lead-form button[type="submit"] { margin-top: .3rem; }
.form-legal { font-size: .76rem; color: var(--ink-soft); margin: .8rem 0 0; text-align: center; }

/* honeypot — visually hidden but present in the DOM (NOT type=hidden) */
.hp-field {
  position: absolute !important; left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status { margin: .9rem 0 0; font-size: .95rem; font-weight: 600; }
.form-status.is-error { color: var(--warn); background: var(--warn-bg); padding: .7rem .9rem; border-radius: var(--radius); }
.form-status.is-ok { color: var(--ok); background: var(--ok-bg); padding: .7rem .9rem; border-radius: var(--radius); }
.form-success {
  text-align: center; padding: 1.4rem .5rem;
}
.form-success svg { width: 46px; height: 46px; color: var(--ok); margin: 0 auto .6rem; }
.form-success h3 { color: var(--ok); margin: 0 0 .4rem; }

/* ---------- Layout sections ---------- */
main { display: block; }
section { padding: 2.6rem 0; }
section.alt { background: var(--bg-alt); }
section.brand-wash { background: var(--brand-tint); }
.section-head { max-width: 44rem; margin-bottom: .5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 .4rem; }
.prose { max-width: 46rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.lead-answer { font-size: 1.06rem; }
.lead-answer strong:first-child { color: var(--brand-dark); }

.updated-stamp {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.updated-stamp svg { width: 14px; height: 14px; color: var(--ok); }

.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin: 1.2rem 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span { color: var(--line); margin: 0 .3rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow-sm); height: 100%;
}
.card h3 { margin-top: 0; display: flex; align-items: center; gap: .5rem; }
.card .card-ico {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: .7rem;
}
.card .card-ico svg { width: 22px; height: 22px; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link { font-weight: 700; text-decoration: none; }
.card a.card-link::after { content: " →"; }

/* feature list with checks */
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin: .55rem 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.2rem; height: 1.2rem;
  background: var(--ok-bg); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: .8rem; background-position: center; background-repeat: no-repeat;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 460px; }
table.data caption { text-align: left; padding: .8rem 1rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-tint); }
table.data th, table.data td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--brand); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
table.data tbody tr:nth-child(even) { background: var(--bg-alt); }
table.data td.price { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.table-note { font-size: .82rem; color: var(--ink-soft); margin: -.4rem 0 1.4rem; }

/* ---------- Steps ---------- */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.2rem; }
ol.steps li {
  position: relative; padding: 0 0 1rem 3rem; margin: 0;
}
ol.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2rem; height: 2rem;
  background: var(--brand); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
ol.steps li strong { display: block; }

/* ---------- FAQ / Q&A ---------- */
.qa { border-top: 1px solid var(--line); }
.qa h2 { scroll-margin-top: 90px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0ee; max-width: 44ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--brand-dark); color: #cfe0ee; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; padding: 1rem 20px; }
.trust-strip .t-item { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; }
.trust-strip svg { width: 18px; height: 18px; color: var(--accent); }

/* ---------- NAP block ---------- */
.nap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.nap dl { margin: 0; }
.nap dt { font-weight: 700; color: var(--brand-dark); margin-top: .8rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.nap dt:first-child { margin-top: 0; }
.nap dd { margin: .1rem 0 0; }
.nap a { font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #b9cad9; padding: 2.6rem 0 1.4rem; margin-top: 1rem; }
.site-footer a { color: #dbe7f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand b { color: #fff; font-size: 1.05rem; }
.footer-brand p { color: #9fb4c6; font-size: .92rem; margin: .6rem 0 0; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .7rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .4rem 0; }
.footer-nap { font-style: normal; font-size: .92rem; line-height: 1.7; }
.footer-nap a { font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #8ba3b7;
}
.footer-bottom a { color: #8ba3b7; }
.footer-disclaimer { font-size: .78rem; color: #7c94a8; margin-top: 1rem; max-width: 60ch; }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: .5rem; padding: .55rem; background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(16,42,66,.12);
}
.sticky-call .btn { flex: 1; }
@media (min-width: 861px) { .sticky-call { display: none; } }
@media (max-width: 860px) { body { padding-bottom: 68px; } }

/* ---------- Misc utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.pill { display: inline-block; background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; }
.two-col { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

/* focus visibility for keyboard users */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
