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

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --accent: #FF6B2C;
  --accent-light: #FF8F5E;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-800: #262626;
  --steel: #1a1a2e;
  --steel-light: #16213e;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

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

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-tag {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-light) !important; color: var(--white) !important; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,107,44,0.1);
  border: 1px solid rgba(255,107,44,0.3);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* FLOATING BADGE */
.floating-badge {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--steel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  width: 280px;
  display: none;
}

@media (min-width: 900px) {
  .floating-badge { display: block; }
}

.floating-badge-title {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.badge-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge-bar-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.badge-bar-label { color: var(--gray-400); }
.badge-bar-value { color: var(--white); font-weight: 600; }

.badge-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.75rem 0;
}

.badge-total {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

/* SECTIONS */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--gray-400);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.6;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--steel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(255,107,44,0.3);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,107,44,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* AREA SECTION */
.area-section {
  background: var(--steel);
  border-radius: 24px;
  padding: 3rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .area-section { grid-template-columns: 1fr; }
}

.area-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.city-tag {
  background: rgba(255,107,44,0.1);
  border: 1px solid rgba(255,107,44,0.2);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--accent-light);
}

.area-map-placeholder {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ESTIMATOR SECTION */
.estimator-section {
  background: var(--steel);
  border-radius: 24px;
  padding: 3rem;
  margin-top: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.estimator-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group select,
.form-group input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a3a3a3' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--accent);
}

.form-group select option {
  background: var(--steel);
  color: var(--white);
}

/* LEAD FORM */
.lead-form {
  margin-top: 1.5rem;
  display: none;
  gap: 1rem;
  align-items: end;
}

.lead-form.visible { display: flex; }

.lead-form input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  flex: 1;
  transition: border-color 0.2s;
}

.lead-form input:focus { border-color: var(--accent); }
.lead-form input::placeholder { color: var(--gray-600); }

/* RESULT */
.estimate-result {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(255,107,44,0.06);
  border: 1px solid rgba(255,107,44,0.2);
  border-radius: 16px;
  display: none;
}

.estimate-result.visible { display: block; }

.result-label {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.result-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.result-range {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.result-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.option-tag {
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* CTA SECTION */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--gray-400);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-phone {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1rem;
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.8rem;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero { padding: 6rem 1.5rem 3rem; }
  .hero h1 { letter-spacing: -1px; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3rem 1.5rem; }
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .estimator-form-grid { grid-template-columns: 1fr; }
  .lead-form { flex-direction: column; }
  .area-section { padding: 2rem; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeUp 0.6s ease forwards; }

/* ── CHAT WIDGET ──────────────────────────────────────────────────── */

#chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 44, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  border: none;
  color: var(--white);
}

#chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(255, 107, 44, 0.55);
}

#chat-bubble.chat-bubble-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}

#chat-bubble svg {
  width: 26px;
  height: 26px;
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--black);
  display: none;
}

/* Chat Window */
#chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 9998;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: var(--steel);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 560px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

#chat-window.chat-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--accent);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.chat-header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.chat-header-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1px;
}

#chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

#chat-close:hover { color: var(--white); }

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.chat-msg {
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-msg-user {
  background: var(--accent);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg-bot {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg-bot strong { color: var(--accent-light); }

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 20px 8px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Input area */
.chat-input-area {
  padding: 12px 16px 16px;
  background: var(--steel-light);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Quick action buttons */
.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.quick-btn {
  background: rgba(255,107,44,0.12);
  border: 1px solid rgba(255,107,44,0.25);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--accent-light);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.quick-btn:hover {
  background: rgba(255,107,44,0.22);
  border-color: rgba(255,107,44,0.4);
}

/* Input row */
.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

#chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--white);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

#chat-input::placeholder { color: var(--gray-600); }
#chat-input:focus { border-color: var(--accent); }
#chat-input:disabled { opacity: 0.5; cursor: not-allowed; }

#chat-send {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}

#chat-send:hover { background: var(--accent-light); transform: scale(1.05); }

/* Mobile responsive */
@media (max-width: 480px) {
  #chat-window {
    right: 12px;
    bottom: 88px;
    width: calc(100vw - 24px);
    max-height: 70vh;
  }
  #chat-bubble { bottom: 16px; right: 16px; }
}