/* ============================================================
   4 Seasons Mechanical — Shared Stylesheet
   Heating · Cooling · Plumbing · Electrical
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --blue-900: #0a1f44;
  --blue-800: #0f2c5c;
  --blue-700: #15468c;
  --blue-600: #1c5cb0;
  --blue-500: #2f7de0;
  --blue-400: #5b9bec;
  --blue-100: #eaf2fc;

  --red-800: #6e0f1c;
  --red-700: #931a26;
  --red-600: #c21f2f;
  --red-500: #e0293b;
  --red-100: #fdeaec;

  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #101826;
  --text-muted: #57677d;
  --border: #e3e9f1;
  --shadow: 0 10px 30px rgba(15, 44, 92, 0.08);

  --accent-gradient: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
  --accent-gradient-red: linear-gradient(135deg, var(--red-700) 0%, var(--red-500) 100%);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-h: 84px;
}

[data-theme="dark"] {
  --bg: #070d18;
  --bg-alt: #0c1524;
  --surface: #0e1a2c;
  --text: #eef2f8;
  --text-muted: #9fb0c7;
  --border: #1c2c42;
  --blue-100: #122845;
  --red-100: #2b141a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

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

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
[data-theme="dark"] .eyebrow { color: var(--blue-400); }
.eyebrow.red { color: var(--red-600); }
[data-theme="dark"] .eyebrow.red { color: var(--red-500); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 1.05rem;
}

.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 70, 140, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21, 70, 140, 0.45); }
.btn-secondary {
  background: var(--accent-gradient-red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(194, 31, 47, 0.35);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(194, 31, 47, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
[data-theme="dark"] .btn-ghost:hover { color: var(--blue-400); }

/* ── Header ──────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
#header.scrolled {
  background: var(--surface);
  box-shadow: 0 2px 20px rgba(10, 25, 55, 0.08);
  height: 72px;
}
[data-theme="dark"] #header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.5); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; border-radius: 4px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  line-height: 1.1;
  color: var(--text);
}
.logo-text span { display: block; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--red-600); font-family: var(--font-body); font-weight: 700; }

nav.main-nav { display: flex; align-items: center; gap: 6px; }
nav.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
nav.main-nav a:hover { color: var(--blue-600); background: var(--blue-100); }
[data-theme="dark"] nav.main-nav a:hover { color: var(--blue-400); }
nav.main-nav a.active { color: var(--blue-600); }
[data-theme="dark"] nav.main-nav a.active { color: var(--blue-400); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem;
  color: var(--text);
}
.header-phone svg { width: 18px; height: 18px; color: var(--red-600); }

.theme-toggle, .drawer-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text);
  transition: background 0.2s ease;
}
.theme-toggle:hover, .drawer-btn:hover { background: var(--blue-100); }
[data-theme="dark"] .theme-toggle:hover, [data-theme="dark"] .drawer-btn:hover { background: var(--blue-100); }
.drawer-btn svg { width: 22px; height: 22px; }

/* ── Drawer / Hamburger Sidebar ─────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 12, 22, 0.55);
  z-index: 950;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: var(--surface);
  z-index: 960;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.25);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid var(--border);
}
.drawer-logo { height: 40px; }
.drawer-close {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text);
  transition: background 0.2s ease;
}
.drawer-close:hover { background: var(--blue-100); }

.drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.drawer-section { margin-bottom: 32px; }
.drawer-sec-label {
  display: block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  padding: 14px 4px; font-size: 1.05rem; font-weight: 600;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
  color: var(--text);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.drawer-nav a:first-child { border-top: 1px solid var(--border); }
.drawer-nav a:hover { color: var(--blue-600); padding-left: 10px; }
[data-theme="dark"] .drawer-nav a:hover { color: var(--blue-400); }
.drawer-nav a.active { color: var(--red-600); }

.drawer-contact { display: flex; flex-direction: column; gap: 10px; }
.drawer-contact a, .drawer-contact span {
  font-size: 0.92rem; color: var(--text-muted); font-weight: 500;
}
.drawer-contact a:hover { color: var(--blue-600); }

.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--border); }
.drawer-theme-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border-radius: 8px; border: 1.5px solid var(--border);
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.drawer-theme-btn:hover { border-color: var(--blue-500); color: var(--blue-600); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 96px;
  background: var(--bg-alt);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(47,125,224,0.14), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(194,31,47,0.10), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badges { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 40px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero-badge-pill svg { width: 14px; height: 14px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero-title .accent { color: var(--blue-600); }
[data-theme="dark"] .hero-title .accent { color: var(--blue-400); }
.hero-title .accent-red { color: var(--red-600); }
.hero-lede { font-size: 1.12rem; color: var(--text-muted); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--blue-600); }
[data-theme="dark"] .hero-stat b { color: var(--blue-400); }
.hero-stat span { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-card svg.hero-illustration {
  width: 92%;
  height: auto;
  filter: drop-shadow(var(--shadow));
}

/* ── Service Icon Badges (mirrors logo badges) ───────────── */
.badge-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid currentColor;
  flex-shrink: 0;
}
.badge-icon svg { width: 26px; height: 26px; }
.badge-icon.blue { color: var(--blue-600); }
[data-theme="dark"] .badge-icon.blue { color: var(--blue-400); }
.badge-icon.red { color: var(--red-600); }

/* ── Service / Feature Cards ────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  font-size: 1.12rem; margin: 18px 0 10px;
}
.card p { color: var(--text-muted); font-size: 0.94rem; }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; color: var(--blue-600); }
[data-theme="dark"] .card a.card-link { color: var(--blue-400); }
.card.service-card-hub { border-top: 4px solid var(--blue-600); }
.card.service-card-hub.red { border-top-color: var(--red-600); }

/* ── Stats Strip (ticker) ───────────────────────────────── */
.stats-strip {
  background: var(--accent-gradient);
  padding: 40px 0;
  overflow: hidden;
}
.stats-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 100px;
  padding-left: 100px;
  animation: statsTicker 16s linear infinite;
}
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; white-space: nowrap; }
.stat-item b { font-family: var(--font-display); font-size: 2.1rem; color: #fff; }
.stat-item span { color: rgba(255,255,255,0.85); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
@keyframes statsTicker {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}
@media (prefers-reduced-motion: reduce) {
  .stats-track { animation: none; }
}

/* ── Home Builders Banner ───────────────────────────────── */
.builders-banner { background: var(--accent-gradient); padding: 96px 0; color: #fff; }
.builders-banner .eyebrow { color: rgba(255,255,255,0.85); }
.builders-banner .section-title { color: #fff; }
.builders-banner .section-sub { color: rgba(255,255,255,0.85); }
.builders-feature { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.builders-feature .badge-icon { color: #fff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); margin-bottom: 10px; }
.builders-feature h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 1.05rem; color: #fff; }
.builders-feature p { color: rgba(255,255,255,0.8); font-size: 0.92rem; max-width: 280px; }
.builders-banner .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.builders-banner .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.14); }

/* ── Process Steps ─────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 12px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-gradient); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 18px;
}
.step h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Testimonials ───────────────────────────────────────── */
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px; display: flex; flex-direction: column; gap: 16px;
}
.stars { display: flex; gap: 3px; color: var(--red-600); }
.stars svg { width: 16px; height: 16px; }
.testimonial-card p.quote { color: var(--text); font-size: 0.98rem; font-style: italic; }
.testimonial-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.testimonial-who b { display: block; font-size: 0.9rem; }
.testimonial-who span { font-size: 0.78rem; color: var(--text-muted); }

/* ── FAQ Accordion ──────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; text-align: left;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 1rem;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s ease; color: var(--blue-600); }
[data-theme="dark"] .faq-q svg { color: var(--blue-400); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--text-muted); max-width: 640px; }
.faq-item.open .faq-a { max-height: 240px; }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--accent-gradient);
  border-radius: 24px;
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  color: #fff;
  margin: 0 24px;
  max-width: 1180px;
  margin-inline: auto;
}
.cta-banner.red { background: var(--accent-gradient-red); }
.cta-banner h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-banner .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-banner .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 28px;
  margin-top: 96px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 42px; }
.footer-logo b { font-family: var(--font-display); text-transform: uppercase; color: #fff; font-size: 1.05rem; }
.footer-col h4 { color: #fff; font-family: var(--font-display); text-transform: uppercase; font-size: 0.9rem; margin-bottom: 18px; letter-spacing: 0.04em; }
.footer-col a, .footer-col span { display: block; margin-bottom: 12px; font-size: 0.88rem; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ── Quote Popup ────────────────────────────────────────── */
.quote-popup {
  position: fixed; bottom: 28px; right: 28px; z-index: 888;
  width: 330px;
  background: var(--accent-gradient);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 20px 50px rgba(21,70,140,0.45);
  transform: translateY(140px) scale(0.92);
  opacity: 0; pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
}
.quote-popup.popped { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.quote-popup.dismissed { transform: translateY(140px) scale(0.92); opacity: 0; pointer-events: none; }
.qp-dismiss {
  position: absolute; top: 12px; right: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
  transition: background 0.2s ease;
}
.qp-dismiss:hover { background: rgba(255,255,255,0.3); }
.qp-eyebrow { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.qp-headline { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.qp-sub { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 18px; }
.qp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red-600); color: #fff; padding: 11px 18px; border-radius: 8px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}
.qp-btn:hover { background: var(--red-700); transform: translateY(-1px); }
.qp-call { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.qp-call:hover { color: #fff; }

.quote-pill {
  position: fixed; bottom: 28px; right: 28px; z-index: 887;
  display: none; align-items: center; gap: 8px;
  background: var(--red-600); color: #fff; padding: 13px 22px; border-radius: 40px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(194,31,47,0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}
.quote-pill:hover { background: var(--red-700); transform: translateY(-2px); }

/* ── Chat Widget ────────────────────────────────────────── */
.chat-wrap { position: fixed; bottom: 28px; left: 28px; z-index: 889; }
.chat-btn {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 32px rgba(21,70,140,0.45);
  color: #fff; transition: transform 0.2s ease;
}
.chat-btn:hover { transform: scale(1.06); }
.chat-btn svg { width: 26px; height: 26px; }

.chat-panel {
  position: absolute; bottom: 78px; left: 0;
  width: 340px; max-height: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10,25,55,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  background: var(--accent-gradient); color: #fff;
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
}
.chat-head-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; }
.chat-head-dot { width: 9px; height: 9px; border-radius: 50%; background: #5be07a; box-shadow: 0 0 0 3px rgba(91,224,122,0.3); }
.chat-head-close { color: rgba(255,255,255,0.85); font-size: 1rem; }
.chat-head-close:hover { color: #fff; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 0.86rem; line-height: 1.45; }
.msg.bot { background: var(--bg-alt); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--blue-600); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input-row { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input { flex: 1; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); font-size: 0.86rem; }
.chat-input:focus { outline: none; border-color: var(--blue-500); }
.chat-send { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-gradient); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-send svg { width: 16px; height: 16px; }

.cb-bubble {
  position: absolute; bottom: 74px; left: 0;
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 14px; width: 220px;
  font-size: 0.82rem; box-shadow: var(--shadow);
  display: none; align-items: center; gap: 8px;
}
.cb-bubble.show { display: flex; }
.cb-bubble-x { color: var(--text-muted); font-size: 0.75rem; margin-left: auto; }

/* ── Contact Page ───────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 34px;
}
.contact-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 22px; height: 22px; color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }
[data-theme="dark"] .contact-row svg { color: var(--blue-400); }
.contact-row b { display: block; font-size: 0.92rem; margin-bottom: 3px; }
.contact-row span, .contact-row a { color: var(--text-muted); font-size: 0.88rem; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 14px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--bg-alt); color: var(--text); font-size: 0.92rem;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue-500); }
.form-field textarea { resize: vertical; min-height: 110px; }
.hidden-field { position: absolute; left: -9999px; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }
.form-success svg { width: 56px; height: 56px; color: var(--blue-600); margin: 0 auto 18px; }

.map-embed { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); margin-top: 24px; height: 280px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  .header-phone span { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto 24px; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .grid-4, .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .chat-panel, .cb-bubble { width: calc(100vw - 40px); }
  .quote-popup { width: calc(100vw - 40px); right: 20px; }
  .chat-wrap { left: 20px; }
}
