/* ==========================================================================
   Plumbora - Modern Responsive Stylesheet
   ========================================================================== */

:root {
  --primary: #0284c7;         /* Radiant ocean blue */
  --primary-hover: #0369a1;
  --secondary: #0f172a;       /* Deep slate navy */
  --accent: #ea580c;          /* High-visibility alert orange */
  --accent-hover: #c2410c;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #09111e;
  --border: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.12);
  --transition: all 0.25s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-white { color: #ffffff !important; }
.text-light { color: var(--text-light) !important; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }

.section-padding {
  padding: 5.5rem 0;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-pill {
  display: inline-block;
  background: #e0f2fe;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.section-pill.accent-pill {
  background: rgba(234, 88, 12, 0.15);
  color: #fb923c;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* 1. Emergency Top Bar */
.emergency-bar {
  background: #dc2626;
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.88rem;
}
.emergency-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pulse-icon {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
.phone-link {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* 2. Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  z-index: 999;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: #e0f2fe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.25rem;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
}
.logo-text span {
  color: var(--primary);
}
.main-nav .nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--primary);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

/* 3. Hero Section */
.hero-section {
  background: linear-gradient(135deg, #07162c 0%, #032a5e 100%);
  color: #ffffff;
  padding: 4.5rem 0 5.5rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-badges .badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #bae6fd;
}
.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-subtext {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-trust-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.rating-stars {
  color: #fbbf24;
  display: flex;
  gap: 2px;
}

/* Quick Dispatch Form Card */
.hero-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
}
.card-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.card-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--bg-light);
  outline: none;
  transition: var(--transition);
}
.input-with-icon input:focus,
.input-with-icon select:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.form-footer-note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* 4. Metrics Bar */
.metrics-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.metric-item .metric-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.metric-item .metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 5. Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 60px;
  height: 60px;
  background: #e0f2fe;
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.service-points {
  list-style: none;
  margin-bottom: 1.5rem;
}
.service-points li {
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-points li i {
  color: #10b981;
}
.service-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}
.service-link:hover {
  color: var(--primary-hover);
  transform: translateX(4px);
}

/* 6. Why Choose Plumbora */
.why-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}
.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
}
.feature-card {
  display: flex;
  gap: 1rem;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.feature-card p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}
.callout-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.callout-tag {
  display: inline-block;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.callout-box h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.callout-box p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}
.operating-hours {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* 7. Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.testi-stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.testi-text {
  font-style: italic;
  color: var(--text-dark);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.author-info .avatar {
  width: 44px;
  height: 44px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.author-info h5 {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 2px;
}
.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 8. FAQ Section */
.faq-container {
  max-width: 820px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
}
.faq-question i {
  color: var(--primary);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #fafafa;
}
.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* 9. Footer */
.site-footer {
  background: #060b13;
  color: #94a3b8;
  padding-top: 4.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer-logo {
  margin-bottom: 1.2rem;
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 320px;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--primary);
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.footer-contact .call-box {
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}
.footer-contact .call-tag {
  display: block;
  font-size: 0.75rem;
  color: #fb923c;
  font-weight: 700;
  text-transform: uppercase;
}
.footer-contact .phone-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}
.footer-contact .address,
.footer-contact .license-info {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--secondary);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  z-index: 10000;
}
.toast.active {
  display: flex;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid, .why-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .features-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    display: none;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
