/* ============================================================
   custom.css - Milton Septic Pros
   Supplemental styles layered on top of Tailwind CSS
   ============================================================ */

/* Google Font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  color: #1a1a1a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ---- Lazy-load image fade-in ---- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].img-loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* ---- Header ---- */
#main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow 0.2s ease;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #E85D04;
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  background-color: #C4460A;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.35);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #1B4332;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid #1B4332;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  background-color: #1B4332;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #E85D04;
  color: #ffffff;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}
.btn-call:hover {
  background-color: #C4460A;
}

/* ---- Hero section ---- */
.hero-section {
  position: relative;
  background-color: #1B4332;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.92) 0%, rgba(27,67,50,0.70) 100%);
  z-index: 1;
}
.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

/* ---- Trust badge bar ---- */
.trust-bar {
  background-color: #2D6A4F;
}

/* ---- Service cards ---- */
.service-card {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ---- Section dividers ---- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2D6A4F;
  background-color: #D1FAE5;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

/* ---- FAQ accordion ---- */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover {
  color: #2D6A4F;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  color: #444;
  line-height: 1.7;
  font-size: 0.97rem;
}
.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1.25rem;
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #D1FAE5;
  color: #2D6A4F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.2s;
}
.faq-item.active .faq-icon {
  background-color: #2D6A4F;
  color: #fff;
  transform: rotate(45deg);
}

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
}

/* ---- Form styles ---- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: #2D6A4F;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

/* ---- Step numbers ---- */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #1B4332;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto 1rem;
}

/* ---- Map placeholder ---- */
.map-placeholder {
  background: #e5e7eb;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  gap: 0.75rem;
  color: #6b7280;
  border: 2px dashed #9ca3af;
}

/* ---- Footer ---- */
footer {
  background-color: #0d2b1f;
  color: #d1fae5;
}
footer a {
  color: #74c69d;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: #ffffff;
}

/* ---- Testimonial card ---- */
.testimonial-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-top: 4px solid #2D6A4F;
}
.testimonial-stars {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.85rem;
  color: #9ca3af;
}
.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #2D6A4F;
}

/* ---- Responsive helpers ---- */
@media (max-width: 640px) {
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  .hero-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ---- Sticky call bar on mobile ---- */
.mobile-sticky-call {
  display: none;
}
@media (max-width: 768px) {
  .mobile-sticky-call {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #E85D04;
    color: white;
    padding: 0.9rem 1rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
  }
  body {
    padding-bottom: 60px;
  }
}

/* ---- Prose/Content styles ---- */
.prose-content p {
  margin-bottom: 1.1rem;
  line-height: 1.8;
  color: #374151;
}
.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B4332;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2D6A4F;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.2rem;
}
.prose-content ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #374151;
  line-height: 1.7;
}
.prose-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2D6A4F;
  font-weight: 700;
}
