/* ============================================================
   North Seattle Plumbing Pros — styles.css
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --accent: #FF6F00;
  --accent-hover: #E65100;
  --text: #212121;
  --text-light: #555555;
  --light-bg: #F5F5F5;
  --white: #FFFFFF;
  --border: #DDDDDD;
  --shadow: 0 2px 8px rgba(0,0,0,0.12);
  --radius: 6px;
  --max-width: 1140px;
  --font-main: 'Segoe UI', Arial, Helvetica, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--primary-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  text-decoration: none;
}
.site-logo span { color: var(--accent); }
.header-phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
}
.header-phone:hover { color: #FFD54F; text-decoration: none; }

/* ---------- Nav ---------- */
.site-nav { background: var(--primary); }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-list > li > a:hover,
.nav-list > li > a:focus { background: var(--primary-dark); text-decoration: none; }
.nav-list li.has-dropdown:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-dark);
  min-width: 230px;
  z-index: 900;
  box-shadow: var(--shadow);
}
.dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--white);
  font-size: 0.88rem;
  text-decoration: none;
}
.dropdown a:hover { background: rgba(255,255,255,0.1); }

/* ---------- 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: 60px 20px;
}
.hero-content { max-width: 760px; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-placeholder h1 { font-size: 2.6rem; margin-bottom: 18px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero-placeholder p { font-size: 1.15rem; margin-bottom: 28px; opacity: 0.92; }
.hero-placeholder .hero-img-note {
  font-size: 0.78rem;
  opacity: 0.55;
  margin-top: 14px;
  font-style: italic;
}

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-hover); text-decoration: none; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); margin-left: 12px; }
.btn-outline:hover { background: var(--white); color: var(--primary-dark); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: var(--white); }

.phone-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  margin: 8px 0;
  transition: background 0.2s;
}
.phone-cta:hover { background: var(--accent-hover); text-decoration: none; color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--light-bg); }
.section-title { font-size: 2rem; color: var(--primary-dark); margin-bottom: 12px; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; margin-bottom: 40px; }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.14); }
.service-icon { font-size: 2.6rem; margin-bottom: 14px; }
.service-card h3 { color: var(--primary-dark); margin-bottom: 10px; }
.service-card p { font-size: 0.93rem; color: var(--text-light); margin-bottom: 16px; }
.service-card a { color: var(--accent); font-weight: 700; font-size: 0.92rem; }
.service-card a:hover { color: var(--accent-hover); }

/* ---------- Features / Trust ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.feature-item { text-align: center; padding: 20px; }
.feature-icon { font-size: 2.4rem; margin-bottom: 12px; }
.feature-item h3 { color: var(--primary-dark); margin-bottom: 8px; }
.feature-item p { font-size: 0.92rem; color: var(--text-light); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  padding: 48px 20px;
  text-align: center;
}
.cta-band h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-band p { font-size: 1.05rem; margin-bottom: 24px; opacity: 0.92; }
.cta-band .btn-white { background: var(--white); color: var(--accent); font-weight: 800; }
.cta-band .btn-white:hover { background: #FFF8E1; text-decoration: none; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.testimonial-card {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 10px; }
.testimonial-card p { font-size: 0.93rem; color: var(--text); font-style: italic; margin-bottom: 12px; }
.reviewer-name { font-weight: 700; color: var(--primary-dark); font-size: 0.9rem; }
.reviewer-location { font-size: 0.82rem; color: var(--text-light); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  background: var(--white);
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  position: relative;
  font-size: 1rem;
}
.faq-question::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); }
.faq-answer {
  padding: 0 20px 18px;
  background: var(--light-bg);
  font-size: 0.94rem;
  color: var(--text-light);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: var(--text-light); }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--text-light); }

/* ---------- Page Hero (interior) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 56px 20px;
  text-align: center;
}
.page-hero h1 { font-size: 2.1rem; margin-bottom: 14px; }
.page-hero p { font-size: 1.05rem; opacity: 0.9; max-width: 680px; margin: 0 auto 22px; }

/* ---------- Content Layout ---------- */
.content-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.service-content h2 { color: var(--primary-dark); margin: 32px 0 12px; }
.service-content h3 { color: var(--primary); margin: 24px 0 10px; }
.service-content ul { list-style: disc; padding-left: 24px; margin-bottom: 1rem; }
.service-content ul li { margin-bottom: 6px; }

/* ---------- Inline CTA Box ---------- */
.inline-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  margin: 40px 0;
}
.inline-cta h3 { margin-bottom: 10px; font-size: 1.4rem; }
.inline-cta p { margin-bottom: 18px; opacity: 0.9; }

/* ---------- Service Area Box ---------- */
.service-area-box {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}
.service-area-box h3 { color: var(--primary-dark); margin-bottom: 12px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.area-tag {
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-phone { font-size: 1.3rem; font-weight: 800; color: var(--accent); display: block; margin: 8px 0; text-decoration: none; }
.footer-phone:hover { color: #FFD54F; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2rem; }
  .hero-placeholder h1 { font-size: 2.1rem; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-list { flex-direction: column; }
  .nav-list > li > a { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero-placeholder { min-height: 380px; }
  .hero-placeholder h1 { font-size: 1.7rem; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.5rem; }
  .btn-outline { margin-left: 0; margin-top: 10px; display: block; }
  .dropdown { position: static; display: none !important; }
}


/* 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;
}