/* =========================================================================
   Professional Drainage Experts — styles.css
   Plain CSS, no build step. Mobile-first, high-contrast, senior-friendly.
   ========================================================================= */

:root {
  --color-primary: #0d4c73;
  --color-primary-dark: #073349;
  --color-primary-light: #e7f1f8;
  --color-accent: #e0651c;
  --color-accent-dark: #b84f13;
  --color-text: #1a1a1a;
  --color-text-light: #43494e;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8fb;
  --color-border: #d8e2e9;
  --color-success: #1c7c3c;
  --color-star: #f0a500;
  --max-width: 1180px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(13, 76, 115, 0.12);
  --shadow-lg: 0 8px 30px rgba(13, 76, 115, 0.18);
  font-size: 18px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: underline; }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; color: var(--color-primary-dark); font-weight: 800; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.5em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.section-alt { background: var(--color-bg-alt); }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-accent);
  color: #fff; padding: 12px 20px; z-index: 2000; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  border: 3px solid transparent;
  cursor: pointer;
  min-height: 56px;
  line-height: 1.2;
}
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--color-accent-dark); color: #fff; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--color-primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-light); }
.btn-lg { font-size: 1.2rem; padding: 18px 34px; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0; }

/* ---------- Top trust bar ---------- */
.top-bar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}
.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.top-bar a { color: #fff; text-decoration: none; }
.top-bar .top-bar-trust { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.top-bar .top-bar-call { font-weight: 800; white-space: nowrap; }
.top-bar .top-bar-call svg { vertical-align: -3px; margin-right: 4px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 900;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  line-height: 1.15;
}
.logo img { display: block; height: 52px; width: auto; }
.logo span { display: block; font-size: 0.62rem; letter-spacing: 0.08em; color: var(--color-accent); font-weight: 800; text-transform: uppercase; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone small { display: block; font-size: 0.6rem; font-weight: 700; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.06em; }

.main-nav { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 1rem;
  min-height: 48px;
}
.main-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.main-nav ul { list-style: none; margin: 0; padding: 10px 20px 20px; }
.main-nav li { margin: 0; border-top: 1px solid var(--color-border); }
.main-nav li:first-child { border-top: none; }
.main-nav a {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
}
.main-nav a[aria-current="page"] { color: var(--color-accent); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; position: static; border: none; box-shadow: none; }
  .main-nav ul { display: flex; gap: 26px; padding: 0; }
  .main-nav li { border-top: none; }
  .main-nav a { padding: 6px 2px; border-bottom: 3px solid transparent; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--color-accent); color: var(--color-primary-dark); }
}

/* ---------- Sticky mobile call bar ---------- */
.sticky-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 950;
  background: var(--color-accent);
  display: flex;
}
.sticky-call-bar a {
  flex: 1;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 16px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sticky-call-bar a.secondary { background: var(--color-primary-dark); }
body { padding-bottom: 68px; }
@media (min-width: 900px) {
  .sticky-call-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, #fff 100%);
  padding: 44px 0 48px;
}
.hero .container { display: grid; gap: 30px; }
.hero-eyebrow {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.hero h1 { font-size: 2.1rem; margin-bottom: 0.5em; }
.hero p.lead { font-size: 1.2rem; color: var(--color-text-light); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero-badges .badge { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.95rem; color: var(--color-primary-dark); }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero h1 { font-size: 2.7rem; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.service-card a.card-link { font-weight: 800; text-decoration: none; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 26px 0;
}
.trust-strip .grid { grid-template-columns: repeat(2, 1fr); text-align: center; gap: 18px; }
.trust-strip .stat-num { font-size: 1.8rem; font-weight: 900; color: #fff; }
.trust-strip .stat-label { font-size: 0.9rem; color: #cfe2ef; font-weight: 700; }
@media (min-width: 700px) { .trust-strip .grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-accent);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-outline { background: #fff; }

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border-left: 6px solid var(--color-accent); }
.stars { color: var(--color-star); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 8px; }
.testimonial .name { font-weight: 800; margin-top: 10px; }

/* ---------- Warning signs list ---------- */
.warning-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.warning-list li {
  background: #fff5ec;
  border: 1px solid #f3d3b4;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.warning-list .icon { font-size: 1.5rem; }

/* ---------- Tables (service areas) ---------- */
.city-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
.city-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.city-card a { text-decoration: none; color: inherit; }

/* ---------- Gallery ---------- */
.gallery-cat { margin-bottom: 48px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid figure { margin: 0; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-grid figcaption { font-size: 0.85rem; padding: 8px 10px; color: var(--color-text-light); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  color: var(--color-primary-dark);
  position: relative;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--color-accent);
}
.faq-question[aria-expanded="true"]::after { content: "\2212"; }
.faq-answer { display: none; padding-bottom: 20px; color: var(--color-text-light); }
.faq-answer.is-open { display: block; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 800; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-size: 1.05rem;
  padding: 14px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid var(--color-accent);
  border-color: var(--color-accent);
}
.form-note { font-size: 0.9rem; color: var(--color-text-light); }
.embed-placeholder {
  border: 3px dashed var(--color-accent);
  background: #fff7f0;
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--color-accent-dark);
  font-weight: 700;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.9rem; padding: 14px 0; color: var(--color-text-light); }
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "\203A"; margin-left: 6px; color: #99a; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #dce9f1;
  padding: 48px 0 30px;
  font-size: 0.95rem;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #dce9f1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; font-size: 0.85rem; color: #a9c2d1; }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge-pill {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 30px;
}
.two-col { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: center; } }
.step-list { list-style: none; padding: 0; counter-reset: step; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 54px;
  margin-bottom: 22px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  background: var(--color-accent);
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}

/* ---------- Owner spotlight (gallery "Our Team") ---------- */
.owner-spotlight { display: flex; flex-direction: column; align-items: center; gap: 22px; background: var(--color-primary-light); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; text-align: center; }
.owner-spotlight img { width: 200px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.owner-spotlight .owner-label { display: inline-block; background: var(--color-accent); color: #fff; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 14px; border-radius: 30px; margin-bottom: 10px; }
.owner-spotlight h3 { font-size: 1.6rem; margin-bottom: 0.2em; }
.owner-spotlight p { margin: 0; color: var(--color-text-light); }
.owner-spotlight p + p { margin-top: 0.8em; }
@media (min-width: 700px) { .owner-spotlight { flex-direction: row; text-align: left; gap: 32px; padding: 28px 32px; } }

/* ---------- Housecall Pro "Book Online" buttons ---------- */
.btn-sm { font-size: 0.95rem; padding: 10px 18px; min-height: 44px; border-radius: 8px; }
.header-book { white-space: nowrap; }
/* The Housecall Pro script restyles .hcp-button (blue pill); keep our brand button. */
.hcp-button.btn {
  background: var(--color-accent) !important;
  color: #fff !important;
  border: 3px solid transparent !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
}
.hcp-button.btn:hover, .hcp-button.btn:focus { background: var(--color-accent-dark) !important; }
/* Phones: the number is already in the top bar and the sticky call bar, so the header
   shows logo + Book Online + Menu (the three-way layout overflowed below ~440px). */
@media (max-width: 600px) {
  .header-phone { display: none; }
  .logo span { display: none; }
  .header-book { padding: 8px 14px; font-size: 0.9rem; min-height: 44px; }
}
/* Keep the header on one line at every desktop width (the container is capped at 1180px). */
@media (min-width: 900px) { .main-nav a { white-space: nowrap; } }
@media (min-width: 900px) {
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: 0.92rem; }
  .header-phone { font-size: 1.1rem; }
  .logo span { display: none; }
  .header-cta { gap: 10px; }
}
