/* T. Woods Contractor — Demo Site Styles */
:root {
  --red: #1E5BA8; /* brand blue */
  --red-dark: #164A8A;
  --red-light: #3B82C4;
  --black: #111111;
  --near-black: #1A1A1A;
  --gray-900: #222;
  --gray-700: #444;
  --gray-600: #555;
  --gray-500: #777;
  --gray-400: #999;
  --gray-300: #CCC;
  --gray-200: #E5E5E5;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --gold: #C9A227;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);
  --radius: 6px;
  --header-h: 72px;
  --util-h: 40px;
  --max: 1180px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ========== UTILITY BAR ========== */
.util-bar {
  background: var(--near-black);
  color: var(--white);
  font-size: 0.8125rem;
  height: var(--util-h);
  display: flex;
  align-items: center;
}
.util-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.util-left, .util-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.util-bar a {
  color: var(--white);
  opacity: 0.9;
  transition: opacity var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.util-bar a:hover { opacity: 1; color: var(--red-light); }
.util-bar .pin-icon, .util-bar .alert-icon { width: 14px; height: 14px; flex-shrink: 0; }
.util-bar .emergency { color: #A8C5E8; font-weight: 600; }
.util-bar .emergency:hover { color: #fff; }

/* ========== STICKY HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-link img, .logo-link svg {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.main-nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
  background: rgba(30,91,168,.06);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  white-space: nowrap;
}
.header-phone:hover { color: var(--red); }
.header-phone svg { width: 18px; height: 18px; color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(30,91,168,.3);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 4px 14px rgba(30,91,168,.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-yellow {
  background: #F5C518;
  color: var(--black);
}
.btn-yellow:hover { background: #E0B010; }
.btn-lg { padding: 1rem 1.75rem; font-size: 0.875rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  width: 42px;
  height: 42px;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--near-black);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(17,17,17,.92) 0%, rgba(17,17,17,.75) 45%, rgba(17,17,17,.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0;
  max-width: 640px;
}
.hero-eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.hero h1 .accent { color: var(--red); font-style: italic; font-weight: 700; }
.hero-sub {
  color: rgba(255,255,255,.88);
  font-size: 1.125rem;
  max-width: 480px;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.proof-item {
  color: rgba(255,255,255,.85);
  font-size: 0.875rem;
}
.proof-item strong {
  display: block;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Split hero (Guardian-inspired) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}
.hero-split-text {
  background: var(--near-black);
  display: flex;
  align-items: center;
  padding: 4rem 3rem 4rem max(3rem, calc((100vw - var(--max)) / 2 + 1.25rem));
}
.hero-split-text .hero-content { padding: 0; max-width: 520px; }
.hero-split-img {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

/* ========== TRUST BAR ========== */
.trust-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}
.trust-item strong { color: var(--black); font-size: 1.125rem; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 0.95rem; }
.trust-badge {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.demo-label {
  font-size: 0.65rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ========== SECTIONS ========== */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark {
  background: var(--near-black);
  color: var(--white);
}
.section-gray { background: var(--gray-100); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-header p {
  color: var(--gray-600);
  font-size: 1.0625rem;
}
.section-dark .section-header p { color: rgba(255,255,255,.7); }
.eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 1.25rem;
}
.service-card .link-arrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.service-card .link-arrow:hover { gap: 0.55rem; }

/* ========== PROJECT GALLERY ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--white);
}
.project-overlay h3 { font-size: 1.0625rem; font-weight: 700; }
.project-overlay span { font-size: 0.8125rem; opacity: 0.85; }

/* ========== FINANCING / PROTECTION ========== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
}
.feature-card .icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(30,91,168,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--red);
}
.feature-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}
.feature-card p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}
.feature-card ul {
  margin-bottom: 1.5rem;
}
.feature-card li {
  padding: 0.35rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--gray-700);
}
.feature-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.75rem;
}
.testimonial .stars { margin-bottom: 0.85rem; }
.testimonial blockquote {
  font-size: 0.9875rem;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.testimonial cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.875rem;
  display: block;
}
.testimonial .meta {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 400;
}

/* ========== CTA BAND ========== */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
}
.cta-band p {
  opacity: 0.92;
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
}
.cta-band .btn-primary {
  background: var(--white);
  color: var(--red);
  box-shadow: none;
}
.cta-band .btn-primary:hover { background: var(--gray-100); }
.cta-band .btn-outline { margin-left: 0.75rem; }

/* ========== PAGE HERO (inner) ========== */
.page-hero {
  background: var(--near-black);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,91,168,.15), transparent 50%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  position: relative;
}
.page-hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.0625rem;
  max-width: 560px;
  position: relative;
}
.breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
  position: relative;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }

/* ========== CONTENT LAYOUT ========== */
.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2rem 0 0.85rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--gray-700); margin-bottom: 1rem; }
.prose ul {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}
.prose li {
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.sidebar-card {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--header-h) + var(--util-h) + 1rem);
}
.sidebar-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.sidebar-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}
.sidebar-card .btn { width: 100%; margin-bottom: 0.65rem; }
.sidebar-phone {
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 0.5rem;
}
.sidebar-phone a:hover { color: var(--red); }

/* ========== ABOUT ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.stat-box {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}
.stat-box strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
}
.stat-box span {
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-grid img {
  border-radius: 10px;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ========== FORMS ========== */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--gray-900);
}
.form-group .required { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(30,91,168,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.35rem;
}
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px;
  height: 64px;
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}
.form-success h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.form-success p { color: var(--gray-600); margin-bottom: 1.5rem; }
.form-error {
  color: var(--red);
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  display: none;
}
.form-error.show { display: block; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-link { margin-bottom: 1rem; }
.footer-brand .logo-link img,
.footer-brand .logo-link svg { filter: brightness(0) invert(1); height: 48px; }
/* Better: use white logo variant via CSS filter on colored parts - we'll use inline white text logo in footer */
.footer-logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.footer-logo-sub {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  padding: 0.3rem 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,.45);
}
.demo-disclaimer {
  background: #152033;
  color: #A8C5E8;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ========== CHAT WIDGET ========== */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.chat-prompt {
  background: var(--white);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 260px;
  font-size: 0.8125rem;
  color: var(--gray-700);
  animation: fadeSlideUp 0.4s ease;
}
.chat-prompt.hidden { display: none; }
.chat-prompt img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.chat-btn {
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  transition: background var(--transition), transform var(--transition);
}
.chat-btn:hover { background: var(--gray-900); transform: translateY(-2px); }
.chat-btn svg { width: 20px; height: 20px; }
.chat-btn .sub {
  font-weight: 500;
  font-size: 0.7rem;
  opacity: 0.7;
  display: block;
  line-height: 1.2;
}

.chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2001;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 100px));
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeSlideUp 0.25s ease;
}
.chat-panel.open { display: flex; }

.chat-header {
  background: var(--black);
  color: var(--white);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
}
.chat-header h3 { font-size: 0.9375rem; font-weight: 700; }
.chat-header span { font-size: 0.7rem; opacity: 0.7; display: flex; align-items: center; gap: 0.3rem; }
.chat-header span::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #4CAF50;
  border-radius: 50%;
}
.chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}
.chat-close:hover { background: rgba(255,255,255,.2); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  animation: fadeSlideUp 0.2s ease;
}
.chat-msg.bot {
  background: var(--white);
  color: var(--gray-900);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.chat-msg.user {
  background: var(--red);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.15rem 0.75rem;
  background: var(--gray-100);
}
.chat-quick button {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: border-color var(--transition), color var(--transition);
}
.chat-quick button:hover {
  border-color: var(--red);
  color: var(--red);
}

.chat-input-area {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  gap: 0.5rem;
}
.chat-input-area input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-size: 0.875rem;
}
.chat-input-area input:focus {
  outline: none;
  border-color: var(--red);
}
.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--red-dark); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-lead-form {
  padding: 1rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}
.chat-lead-form h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.chat-lead-form input,
.chat-lead-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}
.chat-lead-form textarea { min-height: 60px; resize: none; }
.chat-lead-form .btn { width: 100%; margin-top: 0.25rem; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== MISC ========== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.visually-hidden { position: absolute; left: -9999px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid,
  .projects-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-text { padding: 3rem 1.5rem; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 6px;
  }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .header-actions .btn { padding: 0.65rem 0.9rem; font-size: 0.75rem; }
  .util-bar { height: auto; padding: 0.5rem 0; font-size: 0.75rem; }
  .util-bar .container { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .feature-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services-grid,
  .projects-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .cta-band .btn-outline { margin-left: 0; margin-top: 0.65rem; display: inline-flex; }
  .form-wrap { padding: 1.5rem; }
  .chat-launcher { bottom: 16px; right: 16px; }
  .chat-panel { bottom: 16px; right: 16px; height: min(520px, calc(100vh - 80px)); }
}


/* Four-service home grid — roofing featured */
.services-grid-4 {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.service-card.featured {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(30,91,168,.12);
}
.service-card.featured .service-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}
.service-badge { display: none; }
.logo-link img.site-logo {
  height: 58px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  background: #fff;
}
@media (max-width: 1024px) {
  .services-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid-4 { grid-template-columns: 1fr; }
}
