/* ============================================================
   Downtown Seattle Plumbing Co — Main Stylesheet
   Primary: #1565C0 | Dark: #0D47A1 | Accent: #FF6F00
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --accent: #FF6F00;
  --accent-dark: #E65100;
  --text: #212121;
  --text-light: #555555;
  --light-bg: #F5F5F5;
  --white: #FFFFFF;
  --border: #DDDDDD;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.16);
  --radius: 6px;
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; }
section { padding: 60px 0; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- Sticky Header --- */
header {
  background: var(--primary-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-area { display: flex; flex-direction: column; }
.logo-area .biz-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}
.logo-area .tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.80);
  margin-top: 2px;
}
.header-phone a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.header-phone a:hover { color: #FFB300; }

/* --- Nav --- */
nav { background: var(--primary); }
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
nav a {
  display: inline-block;
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a.active { background: var(--accent); color: var(--white); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: var(--primary);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px 20px;
  width: 100%;
  text-align: left;
}
.nav-links { display: flex; flex-wrap: wrap; }

/* --- Hero --- */
.hero-placeholder {
  min-height: 500px;
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.hero-placeholder::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-content { position: relative; z-index: 1; max-width: 760px; }
.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-content h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; color: var(--white); }
.hero-content p { font-size: 1.15rem; margin-bottom: 28px; opacity: 0.92; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.hero-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  text-align: center;
}
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,111,0,0.40); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-lg { padding: 18px 40px; font-size: 1.15rem; }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

/* --- Phone CTA --- */
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.phone-cta:hover { background: var(--accent-dark); color: var(--white); box-shadow: 0 4px 16px rgba(255,111,0,0.40); }
.phone-cta::before { content: '📞'; font-size: 1rem; }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.trust-icon { color: var(--accent); font-size: 1rem; }

/* --- Section Headings --- */
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading p { color: var(--text-light); max-width: 640px; margin: 0 auto; }
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 16px;
}

/* --- Service Cards Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.service-icon { font-size: 2.4rem; margin-bottom: 14px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.service-card p { color: var(--text-light); font-size: 0.93rem; flex: 1; }
.service-card .card-cta { margin-top: 18px; }

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.why-icon { font-size: 1.8rem; flex-shrink: 0; }
.why-item h4 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* --- Testimonials --- */
.testimonials-section { background: var(--light-bg); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.stars { color: #FFB300; font-size: 1.1rem; margin-bottom: 10px; }
.testimonial-card p { font-style: italic; color: var(--text-light); font-size: 0.93rem; margin-bottom: 12px; }
.reviewer { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.reviewer span { font-weight: 400; color: var(--text-light); }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 8px; cursor: pointer; }
.faq-item p { color: var(--text-light); margin: 0; font-size: 0.95rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 28px; font-size: 1.05rem; }
.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumbs-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumbs-inner a { color: var(--primary); }
.breadcrumbs-inner a:hover { color: var(--accent); }
.breadcrumbs-inner span { margin: 0 6px; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { opacity: 0.88; max-width: 640px; margin: 0 auto 20px; }

/* --- Content Layout --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 80px;
}
.sidebar-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.sidebar-card h4 { margin-bottom: 14px; color: var(--primary-dark); font-size: 1rem; }
.sidebar-card ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--text); }
.sidebar-card ul li a:hover { color: var(--accent); }

/* --- Service Areas List --- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.area-tag {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--text);
  text-align: center;
}

/* --- Highlight Box --- */
.highlight-box {
  background: #E3F2FD;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.highlight-box.accent { background: #FFF3E0; border-left-color: var(--accent); }
.highlight-box p { margin: 0; font-size: 0.95rem; }

/* --- Checklist --- */
.checklist { margin: 16px 0; }
.checklist li {
  padding: 5px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Footer --- */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
}
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .biz-name { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.3px; }
footer ul li { margin-bottom: 7px; }
footer ul li a { color: rgba(255,255,255,0.78); font-size: 0.88rem; transition: color var(--transition); }
footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 20px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.70); }
.footer-bottom a:hover { color: var(--accent); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.bg-light { background: var(--light-bg); }
.bg-white { background: var(--white); }
.section-alt { background: var(--light-bg); }

/* --- Location Cards --- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.location-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.location-card .loc-icon { font-size: 2rem; margin-bottom: 10px; }
.location-card h3 { font-size: 1rem; margin-bottom: 6px; }
.location-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 14px; }

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--primary);
  color: var(--white);
}
.stat-item { padding: 30px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.88rem; opacity: 0.88; }

/* ============================================================
   MEDIA QUERIES — Mobile Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 40px 0; }
  .header-inner { padding: 12px 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: 1fr; }
  .hero-placeholder { min-height: 420px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Mobile Nav */
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; }
  .nav-links.open { display: flex; }
  nav a { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.10); }

  .hero-badges { flex-direction: column; align-items: center; }
  .cta-group { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 8px; }
  .logo-area .biz-name { font-size: 1.05rem; }
  .header-phone a { font-size: 1rem; }
}


/* Cloudflare Pages polish */
.hero-placeholder {
  background-image: linear-gradient(90deg, rgba(4, 18, 34, 0.84), rgba(9, 46, 82, 0.68)), url("assets/plumber-hero.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  isolation: isolate;
}
.hero-placeholder::before {
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 34%) !important;
  pointer-events: none;
}
.hero-label,
.hero-img-label,
.hero-img-note,
.hero-image-label {
  display: none !important;
}
.hero-content,
.hero-inner {
  z-index: 1;
}