/* ============================================================
   HBG Plumbing Services — Main Stylesheet
   Brand: Black #111111 | White #ffffff | Grey #f5f5f5
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a1a;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- CSS Variables ---------- */
:root {
  --navy:        #111111;
  --navy-light:  #1f1f1f;
  --gold:        #111111;
  --gold-dark:   #000000;
  --white:       #ffffff;
  --grey:        #f5f5f5;
  --grey-mid:    #e0e0e0;
  --text:        #1a1a1a;
  --text-light:  #555555;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --transition: 0.22s ease;
  --max-width: 1180px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); }
.section--dark { background: #111111; }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header p {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--text-light);
  font-size: 1.05rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

.flex-center { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-gold { color: var(--navy) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-phone { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-phone:hover { background: var(--navy-light); border-color: var(--navy-light); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  transition: all var(--transition);
}
.site-nav a:hover, .site-nav a.active {
  background: var(--grey);
  color: var(--navy);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  font-weight: 800;
  color: var(--navy);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-phone:hover { color: var(--text-light); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111111 60%, #1f1f1f 100%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 span { color: rgba(255,255,255,0.75); }

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.80);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.trust-item .tick {
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--navy);
  font-weight: 900;
  flex-shrink: 0;
}

.hero-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  min-width: 300px;
  max-width: 340px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.hero-card h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.1rem; }
.hero-card p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 20px; }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--navy);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-mid);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}
.service-card .icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 18px;
  transition: gap var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.service-card .card-link:hover { gap: 10px; }

/* ---------- Why Choose Us ---------- */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-item .fi-icon {
  width: 48px;
  height: 48px;
  background: var(--grey);
  border: 1px solid var(--grey-mid);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.feature-item h4 { margin-bottom: 4px; }
.feature-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--navy);
  padding: 52px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 28px; font-size: 1.05rem; }
.cta-band .flex-center { gap: 14px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--navy);
}
.testimonial-card .stars { color: #888; font-size: 1rem; margin-bottom: 12px; }
.testimonial-card blockquote { font-size: 0.95rem; color: var(--text); font-style: italic; margin-bottom: 16px; }
.testimonial-card .reviewer strong { font-size: 0.9rem; color: var(--navy); display: block; }
.testimonial-card .reviewer span { font-size: 0.8rem; color: var(--text-light); }

/* ---------- Service Area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.area-pill {
  background: var(--grey);
  border: 1px solid var(--grey-mid);
  border-radius: 40px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.area-pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ---------- Contact Form ---------- */
.form-section { background: var(--grey); }
.form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 44px 40px;
  box-shadow: var(--shadow);
  max-width: 680px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--grey-mid);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group.full { grid-column: 1 / -1; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 8px; }

/* ---------- Contact Info Cards ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 36px; }
.contact-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
}
.contact-card .cc-icon { font-size: 2rem; margin-bottom: 10px; }
.contact-card h4 { color: rgba(255,255,255,0.6); margin-bottom: 6px; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-card p, .contact-card a { font-size: 1rem; font-weight: 700; color: var(--white); }
.contact-card a:hover { color: rgba(255,255,255,0.7); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 52px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .lead { color: rgba(255,255,255,0.75); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb span { opacity: 0.5; }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--grey); }
.faq-question .faq-icon { font-size: 1.2rem; color: var(--navy); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f0f0f;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo-mark { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 18px; }
.footer-col h5 {
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.footer-contact-item .fci-icon { opacity: 0.5; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.85); }
.footer-contact-item a:hover { color: var(--white); }

.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.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Sticky Phone Bar (mobile) ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 12px 16px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: var(--radius);
  padding: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  /* Layout */
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 36px; }
  .container { padding: 0 16px; }

  /* Typography */
  .lead { font-size: 1.05rem; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 5.5vw, 2rem); }

  /* Top bar */
  .top-bar-left { display: none; }
  .top-bar { padding: 6px 0; }

  /* Header / Nav */
  .site-header { position: sticky; }
  .site-header .container { padding-top: 10px; padding-bottom: 10px; }
  .site-logo img { height: 42px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--grey-mid);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .site-nav.open a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--grey-mid);
    border-radius: 0;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .nav-phone { font-size: 0.9rem; }

  /* Buttons — larger touch targets */
  .btn { padding: 14px 22px; font-size: 0.97rem; }
  .btn-lg { padding: 16px 28px; font-size: 1.05rem; }
  .flex-center { gap: 12px; }
  .flex-center .btn { width: 100%; justify-content: center; max-width: 320px; }

  /* Hero */
  .hero { padding: 40px 0 36px; }
  .page-hero { padding: 36px 0 32px; }

  /* Stats bar */
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.9rem; }

  /* Service cards — ensure good touch targets */
  .service-card { padding: 24px 20px; }

  /* CTA band */
  .cta-band { padding: 48px 0; }
  .cta-band h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }

  /* Forms */
  .form-grid { grid-template-columns: 1fr; }
  input, select, textarea {
    font-size: 16px !important; /* prevents iOS auto-zoom on focus */
    padding: 13px 14px;
  }
  label { font-size: 0.9rem; }
  textarea { min-height: 120px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 40px 0 0; }

  /* Sticky call bar — more prominent */
  .sticky-cta { display: block; padding: 10px 12px; }
  .sticky-cta a {
    font-size: 1.1rem;
    padding: 15px;
    min-height: 52px;
    border-radius: var(--radius);
  }

  /* FAQ */
  .faq-question { padding: 16px 18px; font-size: 0.93rem; min-height: 56px; }
  .faq-answer { padding: 0 18px 16px; }

  /* Checklist spacing */
  .checklist li { padding: 8px 0 8px 28px; font-size: 0.97rem; }

  /* Add bottom padding so sticky bar doesn't overlap page content */
  body { padding-bottom: 72px; }
}

/* ---------- Misc Helpers ---------- */
.divider {
  width: 56px;
  height: 4px;
  background: var(--navy);
  border-radius: 2px;
  margin: 12px auto 0;
}
.divider-left { margin: 12px 0 0; }

.badge {
  display: inline-block;
  background: rgba(0,0,0,0.06);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
.badge-navy { background: var(--navy); color: var(--white); }

/* Checklist */
.checklist { list-style: none; }
.checklist li {
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 900;
}

/* Two-col content */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.content-split.reverse { direction: rtl; }
.content-split.reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .content-split { grid-template-columns: 1fr; gap: 36px; }
  .content-split.reverse { direction: ltr; }
}

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, #111111 0%, #1f1f1f 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  font-size: 4rem;
  color: rgba(255,255,255,0.15);
}
