/* =============================================================================
   HOUSTON BUILD CREW — Standard Theme
   Single source of truth. Edit here, not in page <style> blocks.
   ============================================================================= */

/* 1. RESET & VARIABLES */
:root {
  --blue-deep: #0f3b63;
  --blue-soft: #eef2ff;
  --orange: #f97316;
  --orange-dark: #ea6c0a;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-page: #f9fafb;
  --bg-white: #ffffff;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
  --transition: 0.18s ease;
  /* spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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


/* 2. HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--blue-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
}

.header-subtle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 3. NAVIGATION — desktop horizontal, mobile vertical card */
.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--blue-deep);
  background: var(--blue-soft);
  text-decoration: none;
}

.nav a.active {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

/* 4. PHONE / CTA BUTTON */
.phone-button,
.header-cta a {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--orange-dark);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.phone-button:hover,
.header-cta a:hover {
  background: var(--orange-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* 5. PAGE CONTAINER */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 6. HERO */
.hero-block {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1a5a94 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-block h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero-block p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* 7. CARDS */
.section-card,
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* 8. FORM */
.form-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-card h2, .form-card h3 {
  margin: 0 0 0.5rem;
  color: var(--blue-deep);
}

.form-card p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-white);
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-card button[type="submit"],
.btn-primary {
  width: 100%;
  padding: 1rem;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.form-card button[type="submit"]:hover,
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* 9. TRUST ELEMENTS */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* 10. STICKY MOBILE CALL BAR */
.sticky-phone-bar,
.mobile-callbar {
  display: none; /* hidden on desktop */
}

/* 11. FOOTER */
footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
}

footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

/* 12. UTILITY CLASSES */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* ============================================================================
   MOBILE — max-width: 820px
   ============================================================================ */
@media (max-width: 820px) {

  /* Header stacks vertically */
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    gap: 0.75rem;
  }

  /* Nav becomes a full-width vertical card */
  .nav {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
  }

  .nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  /* Phone button full width */
  .phone-button,
  .header-cta a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  /* Body padding for sticky call bar */
  body {
    padding-bottom: 80px;
  }

  /* Show sticky call bar on mobile */
  .sticky-phone-bar,
  .mobile-callbar {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    text-align: center;
    padding: 14px 16px;
    border-radius: 999px;
    background: var(--blue-deep);
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
  }

  .sticky-phone-bar:hover,
  .mobile-callbar:hover {
    text-decoration: none;
    background: #0a2d4e;
  }

  /* Cards full width */
  .section-card,
  .service-card,
  .form-card {
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  /* Hero text smaller */
  .hero-block {
    padding: 2.5rem 1.25rem;
  }

  /* Page container padding */
  .page, .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Form card margin so sticky bar doesn't overlap */
  .form-card:last-child {
    margin-bottom: 5rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Print */

/* ============================================================================
   COMPONENT LIBRARY — Page-level components used across all service pages
   ============================================================================ */

/* ── Header extras ───────────────────────────────────────────────────────── */
.site-footer { /* alias for <footer> used on newer pages */
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}
.site-footer a:hover {
  color: #fff;
}
.center-text { text-align: center; }
.brand-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}
.footer-links a:hover { color: #fff; }

/* ── Hero two-column layout ──────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
  padding: 3.5rem 1.5rem;
}
.hero-block {
  /* override hero-block to let hero-grid control padding */
  padding: 0;
}
.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #fff;
}
.hero-lede {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 0 1.5rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}
.hero-bullets {
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-bullets ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hero-bullets li {
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-form-col .form-card {
  position: sticky;
  top: 80px;
}

/* ── Trust badges (hero strip) ───────────────────────────────────────────── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.trust-badges .trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(120deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── HBC Form components ─────────────────────────────────────────────────── */
.form-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin: 0 0 0.4rem;
}
.form-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.form-highlight {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 1.25rem;
}
.hbc-form-group {
  margin-bottom: 0.9rem;
}
.hbc-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}
.hbc-form-group label.required::after {
  content: " *";
  color: var(--orange);
}
.hbc-input,
.hbc-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.hbc-input:focus,
.hbc-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.hbc-textarea {
  resize: vertical;
  min-height: 80px;
}
.hbc-submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 0.25rem;
}
.hbc-submit-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.hbc-form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

/* ── Stats bar ───────────────────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--blue-deep);
  color: #fff;
  text-align: center;
}
.stat-item {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.stat-item:last-child {
  border-right: none;
}
.stat-number {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.78rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Section title ───────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--blue-deep);
  margin: 2.5rem 0 1rem;
}
.section-card .section-title:first-child {
  margin-top: 0;
}
.service-details ul {
  margin: 0.75rem 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-details li {
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ── Services grid ───────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.service-card .service-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 0.4rem;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.55;
}
.service-card a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--orange);
}
.service-card a:hover {
  text-decoration: underline;
}

/* ── CTA banner ──────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1a5a94 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
  color: #fff;
}
.cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.cta-banner p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.95rem;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cta-phone-big {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
}

/* ============================================================================
   MOBILE OVERRIDES — Component responsive
   ============================================================================ */
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 2rem;
  }
  .hero-form-col .form-card {
    position: static;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-banner {
    padding: 1.75rem 1.25rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-badges {
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media print {
  .site-header,
  .sticky-phone-bar,
  .mobile-callbar,
  .form-card { display: none; }
}

/* ============================================================================
   SERVICES DROPDOWN NAV
   ============================================================================ */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-item > a .caret {
  font-size: 0.65rem;
  transition: transform 0.18s ease;
  display: inline-block;
}

.nav-item.open > a .caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  min-width: 240px;
  z-index: 200;
  padding: 0.5rem;
  animation: dropdownFade 0.15s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-item.open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
  text-decoration: none;
}

.nav-dropdown .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0.5rem;
}

.nav-dropdown .dropdown-all {
  font-weight: 700;
  color: var(--orange) !important;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
  padding-bottom: 0.65rem;
}

.nav-dropdown .dropdown-all:hover {
  background: #fff7ed !important;
}

/* Mobile: dropdown is inline card below Services link */
@media (max-width: 820px) {
  .nav-item {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 0.4rem;
    animation: none;
  }

  .nav-dropdown a {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
}
