/* =========================
   Base / Reset
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --brand-blue-1: #1e3a8a;
  --brand-blue-2: #3730a3;
  --brand-blue-3: #1e40af;
  --accent: #fbbf24;
  --danger: #dc2626;
  --text: #1a202c;
  --muted: #6b7280;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
}

/* =========================
   Header (shared)
========================= */
.header {
  background: linear-gradient(135deg, var(--brand-blue-1) 0%, var(--brand-blue-2) 50%, var(--brand-blue-3) 100%);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3);
}
.header .container {
  max-width: 1400px;
  padding: 0 24px;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: #fbbf24;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.desktop-nav {
  display: flex;
}

.desktop-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  color: #fff;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.desktop-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

.desktop-nav a.active {
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent);
}

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

.emergency-badge {
  background: var(--danger);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.header-phone {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.header-phone:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--brand-blue-1) 0%, var(--brand-blue-2) 50%, var(--brand-blue-3) 100%);
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3);
  transform: translateY(-110%);
  transition: transform 0.25s ease;
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 16px 0;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  display: block;
  color: #fff;
  padding: 16px 24px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

/* =========================
   Hero (shared)
========================= */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 30%, #6366f1 70%, #8b5cf6 100%);
  color: #fff;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  margin-bottom: 32px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.hero-title {
  font-family: "Poppins", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}
.highlight {
  color: var(--accent);
  display: block;
}
.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 48px;
  opacity: 0.9;
  max-width: 800px;
  margin-inline: auto;
}

.cta-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--danger);
  color: #fff;
  padding: 24px 48px;
  border-radius: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 48px;
  transition: all .3s ease;
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.4);
}
.cta-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.6);
}
.cta-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.cta-subtext {
  font-size: .9rem;
  opacity: 0.9;
  font-weight: 400;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.feature-icon {
  font-size: 2rem;
}

/* =========================
   Emergency Banner
========================= */
.emergency-banner {
  background: var(--danger);
  color: #fff;
  padding: 16px 0;
  text-align: center;
}
.emergency-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.emergency-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}
.emergency-btn {
  background: #fff;
  color: var(--danger);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all .3s ease;
}
.emergency-btn:hover {
  transform: scale(1.05);
}

/* =========================
   Sections (shared)
========================= */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-badge {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.section-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* About */
.about {
  background: #f8fafc;
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b5563;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.stat-item {
  text-align: center;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 8px;
}
.stat-label {
  color: #6b7280;
  font-weight: 500;
}
.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}
.service-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all .3s ease;
  border: 2px solid transparent;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}
.service-card.featured {
  border-color: var(--danger);
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}
.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}
.service-icon.emergency {
  color: var(--danger);
}
.service-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}
.service-card p {
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.6;
}
.service-features {
  list-style: none;
  margin-bottom: 24px;
}
.service-features li {
  padding: 4px 0;
  color: #4b5563;
}
.service-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3b82f6;
  text-align: center;
  padding: 12px;
  background: #eff6ff;
  border-radius: 8px;
}

/* Why Choose */
.why-choose {
  background: #f8fafc;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.benefit-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all .3s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.benefit-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}
.benefit-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}
.benefit-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* FAQ */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.faq-question {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 24px;
  margin: 0;
  color: var(--text);
  cursor: pointer;
  transition: all .3s ease;
  border-bottom: 1px solid #e5e7eb;
}
.faq-question:hover {
  background: #f8fafc;
}
.faq-answer {
  padding: 0 24px 24px;
  color: #6b7280;
  line-height: 1.6;
  display: none;
}

/* Testimonials */
.testimonials {
  background: #f8fafc;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}
.testimonial-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.testimonial-text {
  font-style: italic;
  color: #4b5563;
  margin-bottom: 24px;
  line-height: 1.6;
}
.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.author-info strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}
.author-info span {
  color: #6b7280;
  font-size: .9rem;
}
.verified-badge {
  background: #10b981;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
}

/* Service Areas */
.service-areas {
  background: #fff;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.area-card {
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  transition: all .3s ease;
  border: 2px solid transparent;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.area-card.primary {
  background: linear-gradient(135deg, #3b82f6 0%, var(--brand-blue-3) 100%);
  color: #fff;
  border-color: var(--brand-blue-3);
}
.area-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}
.area-note {
  display: block;
  font-size: .9rem;
  opacity: 0.8;
  margin-top: 8px;
}

/* Contact */
.contact {
  background: var(--brand-blue-3);
  color: #fff;
}
.contact .section-badge {
  background: rgba(255, 255, 255, 0.2);
}
.contact .section-title {
  color: #fff;
}
.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}
.emergency-contact {
  text-align: center;
  margin-bottom: 48px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.emergency-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.emergency-phone {
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.contact-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.contact-card h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.contact-card a {
  color: #3b82f6;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-card p {
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #1a202c;
  color: #fff;
  padding: 48px 0 24px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.footer-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-licenses {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.license-badge {
  background: var(--accent);
  color: #1a202c;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-contact h4,
.footer-services h4,
.footer-areas h4,
.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contact-icon {
  font-size: 1.2rem;
  margin-top: 2px;
}

.footer-services nav,
.footer-areas nav,
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-emergency {
  display: flex;
  align-items: center;
  gap: 16px;
}

.emergency-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.emergency-text {
  font-size: 0.9rem;
  color: #9ca3af;
}

.emergency-phone {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
}
.skip-link:focus {
  top: 6px;
}
a:focus,
button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Keep sticky-header from covering anchors */
#main-content {
  scroll-margin-top: 84px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
  .brand {
    font-size: 1.05rem;
  }
  .primary-nav__list {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-cta {
    gap: 8px;
  }

  .header-phone {
    font-size: 1.05rem;
  }

  .emergency-badge {
    display: none;
  }
}
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }

  .logo-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .rating-badge {
    font-size: 0.8rem;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .emergency-info {
    align-items: center;
  }
}
@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 2rem;
  }

  .header-phone {
    font-size: 1rem;
  }

  .contact-card {
    padding: 24px;
  }
}

/* =========================
   Per-page optional hooks
   (use these classes on <body>)
========================= */
.home .hero::before {
  background-image: url("https://hebbkx1anhila5yf.public.blob.vercel-storage.com/plumber-service..jpg-1Ir5Rw1953ny3JEuWOWJ7fWMIRHyJs.jpeg");
}
.services .hero::before {
  background-image: url("/images/services-hero.jpg");
}
.about .hero::before {
  background-image: url("/images/about-hero.jpg");
}
.contact .hero::before {
  background-image: url("/images/contact-hero.jpg");
}
