/* ============================================================
   BD Septic Services — bdsepticgh.com
   Main Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --green:       #1a6b3a;
  --green-dark:  #0f4524;
  --green-light: #e8f5ee;
  --amber:       #f5a623;
  --amber-dark:  #c8850d;
  --white:       #ffffff;
  --off-white:   #f8faf9;
  --dark:        #1a1a2e;
  --grey:        #4a5568;
  --grey-light:  #e2e8f0;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --radius:      8px;
  --transition:  0.25s ease;
  --max-width:   1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
p  { color: var(--grey); }

/* ---------- Utility ---------- */
.container   { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section     { padding: 72px 0; }
.section-alt { background: var(--off-white); }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-green  { color: var(--green); }
.badge       { display: inline-block; background: var(--green-light); color: var(--green); font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.section-header { margin-bottom: 48px; }
.section-header p { max-width: 600px; margin: 12px auto 0; font-size: 1.05rem; }
.divider { width: 56px; height: 4px; background: var(--amber); border-radius: 2px; margin: 16px auto; }
.divider-left { margin: 16px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
}
.btn-primary   { background: var(--amber); color: var(--dark); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,166,35,0.4); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--dark); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.top-bar a { color: var(--amber); font-weight: 600; }
.top-bar a:hover { text-decoration: underline; }
.top-bar-left, .top-bar-right { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; max-width: var(--max-width); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 46px; height: 46px; background: var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.logo-img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: block; }
.logo-text strong { display: block; font-size: 1.1rem; color: var(--dark); line-height: 1.2; }
.logo-text span   { font-size: 0.75rem; color: var(--grey); }

.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius);
  font-weight: 500; font-size: 0.95rem; color: var(--dark);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--green-light); color: var(--green); }
.nav-cta { margin-left: 8px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all var(--transition); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #2d8a52 100%);
  color: var(--white);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); color: var(--amber); font-size: 0.8rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.2); }
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h1 span { color: var(--amber); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.trust-item .icon { font-size: 1.1rem; }
.hero-image-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-placeholder { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; padding: 20px; }
.hero-image-placeholder .big-icon { font-size: 4rem; display: block; margin-bottom: 8px; }

/* ---------- Stats Bar ---------- */
.stats-bar { background: var(--dark); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-item strong { display: block; font-size: 2rem; font-weight: 800; color: var(--amber); line-height: 1; }
.stat-item span   { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 4px; display: block; }

/* ---------- Services Overview ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white); border-radius: 12px;
  padding: 28px; border: 1px solid var(--grey-light);
  transition: all var(--transition); cursor: default;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--green); }
.service-icon { font-size: 2.2rem; margin-bottom: 16px; }
.service-card h3 { margin-bottom: 10px; color: var(--dark); }
.service-card p { font-size: 0.92rem; }
.service-card a.learn-more { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; font-size: 0.9rem; margin-top: 14px; transition: gap var(--transition); }
.service-card a.learn-more:hover { gap: 10px; }

/* ---------- Why Choose Us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-image {
  background: var(--green-light);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.why-image img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { text-align: center; color: var(--green); font-size: 0.95rem; font-weight: 600; padding: 20px; display: none; }
.img-placeholder .big-icon { font-size: 3.5rem; display: block; margin-bottom: 8px; }
.why-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.why-point { display: flex; gap: 12px; align-items: flex-start; }
.why-point .check { width: 28px; height: 28px; background: var(--green); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; }
.why-point h4 { font-size: 0.95rem; margin-bottom: 2px; }
.why-point p  { font-size: 0.85rem; }

/* ---------- Process Steps ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-steps::before {
  content: '';
  position: absolute; top: 32px; left: 10%; right: 10%; height: 2px;
  background: var(--grey-light); z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 64px; height: 64px; background: var(--green); color: var(--white);
  border-radius: 50%; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--green);
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p  { font-size: 0.88rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: 12px; padding: 28px;
  border: 1px solid var(--grey-light); position: relative;
}
.testimonial-card::before { content: '"'; font-size: 5rem; color: var(--green-light); position: absolute; top: -10px; left: 20px; line-height: 1; font-family: Georgia, serif; }
.stars { color: var(--amber); font-size: 1rem; margin-bottom: 14px; }
.testimonial-card blockquote { font-style: italic; color: var(--grey); font-size: 0.95rem; margin-bottom: 18px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar { width: 42px; height: 42px; background: var(--green); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.reviewer-info strong { display: block; font-size: 0.9rem; }
.reviewer-info span   { font-size: 0.8rem; color: var(--grey); }

/* ---------- Service Areas ---------- */
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.area-tag { background: var(--green-light); color: var(--green); padding: 8px 18px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white); text-align: center; padding: 72px 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-phones { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.cta-phone-item { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--green); display: inline-block; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--amber); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; align-items: flex-start; }
.footer-contact-item .fc-icon { font-size: 1rem; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
.footer-bottom a { color: var(--amber); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white); padding: 56px 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,0.8); margin-top: 8px; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; margin-bottom: 12px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--amber); }

/* ---------- Services Detail Page ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--grey-light); }
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-img { background: var(--green-light); border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.service-list { margin-top: 16px; }
.service-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--grey-light); font-size: 0.95rem; }
.service-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ---------- Contact Page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info-card { background: var(--green); color: var(--white); border-radius: 12px; padding: 36px; }
.contact-info-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.contact-info-item .ci-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-item h4 { color: var(--white); font-size: 0.9rem; opacity: 0.8; font-weight: 500; margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a { color: var(--white); font-size: 1rem; font-weight: 600; }
.contact-form-wrap { background: var(--white); border-radius: 12px; padding: 36px; border: 1px solid var(--grey-light); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--grey-light);
  border-radius: var(--radius); font-size: 0.95rem; font-family: inherit;
  transition: border-color var(--transition); background: var(--off-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--green); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- About Page ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card { text-align: center; }
.team-photo { width: 120px; height: 120px; background: var(--green-light); border-radius: 50%; margin: 0 auto 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-card span { font-size: 0.85rem; color: var(--green); font-weight: 500; }

/* ---------- Emergency Banner ---------- */
.emergency-bar {
  background: #c62828; color: var(--white); text-align: center;
  padding: 14px 0; font-weight: 600;
}
.emergency-bar a { color: var(--amber); font-size: 1.1rem; }

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.floating-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all var(--transition);
}
.floating-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.floating-call { background: var(--green); color: var(--white); }
.floating-wa   { background: #25D366; color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { display: none; }
  .why-points { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { direction: ltr; }
  .service-detail-img { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 20px; border-top: 1px solid var(--grey-light); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .top-bar .container { justify-content: center; }
  .top-bar-right { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .floating-cta { bottom: 16px; right: 16px; }
}
