/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #1e3a5f;
  --blue-light: #2c5282;
  --blue-dark: #152a45;
  --yellow: #f6ad1b;
  --yellow-dark: #d49712;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* space for sticky CTA on mobile */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--yellow);
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
}

.btn:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--white);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--blue);
}

.btn-header {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=1400&q=80') center/cover no-repeat;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-content > p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trust-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.85;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-badges svg {
  color: var(--yellow);
}

/* === Emergency Banner === */
.emergency-banner {
  background: #dc2626;
  color: var(--white);
  padding: 16px 0;
}

.emergency-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.emergency-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.emergency-text strong {
  font-size: 1.05rem;
}

.emergency-text span {
  opacity: 0.9;
  font-size: 0.95rem;
}

.btn-emergency {
  background: var(--white);
  color: #dc2626;
  border-color: var(--white);
  padding: 10px 24px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-emergency:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
}

/* === Services === */
.services {
  padding: 80px 0;
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: #eff6ff;
  color: var(--blue);
  border-radius: 12px;
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--blue);
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* === About === */
.about {
  padding: 80px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.about-list {
  list-style: none;
}

.about-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--gray-700);
}

.about-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.stat {
  background: var(--gray-50);
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--gray-200);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
}

.stat-label {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* === Testimonials === */
.testimonials {
  padding: 80px 0;
  background: var(--gray-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: none;
}

.stars {
  color: var(--yellow);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.testimonial p {
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial cite {
  color: var(--gray-600);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}

/* === Service Area === */
.service-area {
  padding: 64px 0;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.area-tags span {
  padding: 8px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 40px;
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* === FAQ === */
.faq {
  padding: 64px 0;
  background: var(--gray-50);
}

.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-900);
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gray-400);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 0 20px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* === Contact === */
.contact {
  padding: 80px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--gray-50);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

.form-note {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-top: 12px;
}

.contact-info {
  padding: 32px 0;
}

.contact-info h3 {
  margin-bottom: 12px;
  color: var(--blue);
}

.contact-phone {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 8px;
}

.contact-phone:hover {
  color: var(--blue-light);
}

.contact-info > p {
  color: var(--gray-600);
  margin-bottom: 24px;
}

.contact-details {
  margin-bottom: 24px;
}

.contact-details p {
  color: var(--gray-700);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-trust span {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
}

/* === Footer === */
.footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-brand .logo-icon {
  font-size: 1.5rem;
}

.footer-brand .logo-text {
  font-weight: 800;
  font-size: 1.2rem;
}

.footer-brand p {
  opacity: 0.7;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  opacity: 0.5;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

/* === Sticky Mobile CTA === */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  padding: 10px 16px;
  gap: 10px;
}

.sticky-cta-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  flex: 1;
}

.sticky-cta-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--yellow);
  color: var(--gray-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  flex: 1;
}

/* === Responsive === */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-header {
    display: none;
  }

  .sticky-cta {
    display: flex;
  }

  .hero {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .emergency-inner {
    flex-direction: column;
    text-align: center;
  }

  .emergency-text {
    justify-content: center;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  h2 {
    font-size: 1.6rem;
  }

  .area-tags {
    gap: 8px;
  }

  .area-tags span {
    font-size: 0.85rem;
    padding: 6px 14px;
  }
}

@media (min-width: 769px) {
  .sticky-cta {
    display: none !important;
  }
}

/* === Chat Widget === */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  margin-left: auto;
}

.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--yellow);
  color: var(--gray-900);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

.chat-window {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 370px;
  max-height: 520px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.chat-header {
  padding: 16px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-header-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-header-status {
  font-size: 0.75rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}

.chat-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 0 4px;
}

.chat-close:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 320px;
  background: var(--gray-50);
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
  animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.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,0.06);
}

.chat-msg-user {
  background: var(--blue);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  padding: 12px 18px;
}

.chat-typing span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gray-400);
  border-radius: 50%;
  margin: 0 2px;
  animation: chatTyping 1.4s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-quick-replies {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.chat-quick-replies:empty {
  display: none;
}

.chat-reply-btn {
  padding: 8px 14px;
  border: 1px solid var(--blue);
  border-radius: 20px;
  background: transparent;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.chat-reply-btn:hover {
  background: var(--blue);
  color: var(--white);
}

@media (max-width: 768px) {
  .chat-widget {
    bottom: 76px;
    right: 12px;
  }

  .chat-window {
    width: calc(100vw - 24px);
    right: -8px;
    max-height: 440px;
    bottom: 68px;
  }

  .chat-messages {
    max-height: 260px;
  }
}
