/*
Theme Name: DrainFix Plumbing
Theme URI: https://www.drainfixplumbing.co.za
Author: DrainFix
Author URI: https://www.drainfixplumbing.co.za
Description: Professional WordPress theme for DrainFix Plumbing & Jetting — Gauteng's trusted emergency plumber. Includes location page template for all 18 service areas.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: drainfix
*/

/* ============================================================
   DRAINFIX THEME — Core Styles
   ============================================================ */

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

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #dc2626; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b91c1c; }

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ============================================================
   TOP BAR
   ============================================================ */
.drainfix-topbar {
  background: linear-gradient(to right, #b91c1c, #dc2626);
  color: #fff;
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.drainfix-topbar a { color: #fff; font-weight: 700; }
.drainfix-topbar a:hover { text-decoration: underline; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.drainfix-nav {
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.drainfix-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.drainfix-nav .nav-logo img { height: 56px; width: auto; }
.drainfix-nav .nav-links { display: flex; gap: 32px; list-style: none; }
.drainfix-nav .nav-links a {
  color: #374151;
  font-weight: 500;
  transition: color 0.2s;
}
.drainfix-nav .nav-links a:hover { color: #dc2626; }
.drainfix-nav .nav-cta { display: flex; gap: 12px; align-items: center; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #22c55e; color: #fff;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px; transition: background 0.2s;
}
.btn-whatsapp:hover { background: #16a34a; }
.btn-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: #dc2626; color: #fff;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px; transition: background 0.2s;
}
.btn-call:hover { background: #b91c1c; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-mobile { display: none; }

@media (max-width: 768px) {
  .drainfix-nav .nav-links,
  .drainfix-nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile.open {
    display: flex; flex-direction: column; gap: 16px;
    padding: 16px 24px; border-top: 1px solid #f3f4f6;
    background: #fff;
  }
  .nav-mobile a {
    color: #374151; font-weight: 500; padding: 8px 0;
    border-bottom: 1px solid #f9fafb;
  }
  .nav-mobile .btn-call {
    justify-content: center; padding: 12px; font-size: 16px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.drainfix-hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #7f1d1d 100%);
  color: #fff;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.drainfix-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 40px 40px;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(220,38,38,0.2); border: 1px solid rgba(220,38,38,0.4);
  border-radius: 9999px; padding: 6px 16px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  color: #fca5a5;
}
.hero-badge .dot {
  width: 8px; height: 8px; background: #4ade80; border-radius: 50%;
}
.hero-title { font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-title span { color: #f87171; }
.hero-desc { color: #d1d5db; font-size: 18px; margin-bottom: 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #dc2626; color: #fff;
  padding: 16px 32px; border-radius: 12px;
  font-weight: 700; font-size: 18px;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(220,38,38,0.4);
}
.btn-hero-primary:hover { background: #b91c1c; transform: scale(1.03); }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3);
  color: #fff; padding: 16px 32px; border-radius: 12px;
  font-weight: 600; font-size: 16px; transition: all 0.2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: #9ca3af; }
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-image { text-align: center; }
.hero-image img { max-height: 380px; width: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-title { font-size: 36px; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.drainfix-trustbar {
  background: #dc2626; color: #fff;
  padding: 16px 24px;
}
.trustbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  font-size: 14px; font-weight: 600;
}
.trustbar-inner span { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.section { padding: 80px 24px; }
.section-white { background: #fff; }
.section-gray { background: #f9fafb; }
.section-dark { background: #111827; color: #fff; }
.section-red { background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: #fee2e2; color: #dc2626;
  padding: 4px 16px; border-radius: 9999px;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.section-title {
  font-size: 32px; font-weight: 800; color: #111827; margin-bottom: 16px;
}
.section-dark .section-title,
.section-red .section-title { color: #fff; }
.section-subtitle { color: #6b7280; font-size: 16px; margin-bottom: 48px; }
.section-center { text-align: center; }

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 32px 24px; text-align: center;
}
.stat-value { font-size: 42px; font-weight: 800; color: #f87171; margin-bottom: 8px; }
.stat-label { color: #9ca3af; font-size: 14px; }

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-card {
  background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s; border: 1px solid #f3f4f6;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}
.service-icon {
  width: 52px; height: 52px; background: #fee2e2; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 24px;
}
.service-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #111827; }
.service-desc { font-size: 14px; color: #6b7280; margin-bottom: 12px; }
.service-price { font-size: 13px; font-weight: 700; color: #dc2626; }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================================================
   AREAS / CITIES
   ============================================================ */
.cities-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.city-card {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #f3f4f6;
  transition: all 0.3s;
}
.city-card:hover {
  border-color: #dc2626; transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(220,38,38,0.1);
}
.city-name {
  font-size: 17px; font-weight: 700; color: #111827;
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.city-name::before { content: '📍'; font-size: 16px; }
.city-suburbs { font-size: 13px; color: #6b7280; margin-bottom: 16px; line-height: 1.6; }
.city-link {
  font-size: 13px; font-weight: 700; color: #dc2626;
  display: inline-flex; align-items: center; gap: 4px;
}
.city-link:hover { text-decoration: underline; }

@media (max-width: 900px) { .cities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cities-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WORK GALLERY
   ============================================================ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-item {
  border-radius: 12px; overflow: hidden; aspect-ratio: 1;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }

@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.testimonial-card {
  background: #1f2937; border-radius: 16px; padding: 28px;
}
.testimonial-stars { color: #fbbf24; font-size: 18px; margin-bottom: 16px; }
.testimonial-text { color: #d1d5db; font-size: 15px; margin-bottom: 16px; line-height: 1.7; font-style: italic; }
.testimonial-author { font-weight: 700; color: #fff; }
.testimonial-location { color: #6b7280; font-size: 13px; }

@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ============================================================
   AFFILIATIONS
   ============================================================ */
.affiliations-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; align-items: center;
}
.affiliation-item { text-align: center; }
.affiliation-item img { height: 72px; width: auto; object-fit: contain; }
.affiliation-name { font-size: 13px; font-weight: 700; color: #374151; margin-top: 8px; }

/* ============================================================
   CONTACT / QUOTE FORM
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contact-info h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: #6b7280; margin-bottom: 32px; }
.contact-detail {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: #f9fafb; border-radius: 12px; margin-bottom: 12px;
}
.contact-detail-icon { font-size: 24px; }
.contact-detail-text strong { display: block; font-weight: 700; color: #111827; }
.contact-detail-text span { color: #6b7280; font-size: 14px; }

.quote-form {
  background: #fff; border-radius: 20px; padding: 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08); border: 1px solid #f3f4f6;
}
.quote-form h3 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 24px; }
.form-field { margin-bottom: 16px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 15px; font-family: inherit;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  width: 100%; background: #dc2626; color: #fff;
  padding: 16px; border: none; border-radius: 10px;
  font-size: 17px; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #b91c1c; }
.form-note { text-align: center; color: #9ca3af; font-size: 13px; margin-top: 12px; }
.form-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px;
  padding: 24px; text-align: center; display: none;
}
.form-success.show { display: block; }
.form-success h4 { color: #166534; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: #166534; }

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

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  text-align: center; padding: 80px 24px;
}
.cta-section h2 { font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 20px; color: rgba(255,255,255,0.85); margin-bottom: 40px; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #dc2626;
  padding: 20px 48px; border-radius: 16px;
  font-weight: 800; font-size: 22px; transition: all 0.2s;
}
.btn-cta:hover { background: #fef2f2; transform: scale(1.03); }

/* ============================================================
   PRICING TABLE
   ============================================================ */
.pricing-table {
  background: #fff5f5; border: 1px solid #fecaca; border-radius: 20px; padding: 36px;
  max-width: 600px; margin: 0 auto;
}
.pricing-table h3 { font-size: 22px; font-weight: 800; color: #dc2626; margin-bottom: 24px; }
.pricing-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid #fee2e2;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row span:first-child { color: #374151; }
.pricing-row span:last-child { font-weight: 700; color: #111827; }
.pricing-note { font-size: 13px; color: #9ca3af; margin-top: 16px; }

/* ============================================================
   LOCATION PAGE SPECIFIC
   ============================================================ */
.location-intro { max-width: 800px; margin: 0 auto; text-align: center; }
.location-intro h2 { font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.location-intro p { color: #6b7280; font-size: 16px; margin-bottom: 16px; }
.location-intro .highlight { font-size: 18px; font-weight: 700; color: #dc2626; }

.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.why-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: #f9fafb; border-radius: 12px;
}
.why-icon { color: #22c55e; font-size: 20px; flex-shrink: 0; }
.why-text { color: #374151; font-size: 15px; }

.areas-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.area-tag {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 9999px;
  padding: 8px 20px; color: #374151; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.area-tag::before { content: '📍'; font-size: 14px; }

@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.drainfix-footer {
  background: #111827; color: #9ca3af;
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #9ca3af; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #f87171; }
.footer-bottom {
  border-top: 1px solid #1f2937; padding-top: 32px; text-align: center; font-size: 13px;
}
.footer-bottom p { margin-bottom: 6px; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; background: #22c55e;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(34,197,94,0.4); z-index: 999;
  transition: transform 0.2s;
  font-size: 28px;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ============================================================
   WORDPRESS CONTENT AREA
   ============================================================ */
.wp-content { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.wp-content h1, .wp-content h2, .wp-content h3 { color: #111827; margin-bottom: 16px; }
.wp-content p { color: #6b7280; margin-bottom: 16px; }
