/* Tankless Water Heater Repair — Warminster PA
   Premium, editorial, mobile-first static site */

:root {
  --bg: #F7F6F3;
  --bg-alt: #EEF0F2;
  --surface: #FFFFFF;
  --ink: #0F1419;
  --ink-muted: #4A5568;
  --ink-soft: #718096;
  --accent: #C47A4A;
  --accent-hover: #A8623A;
  --steel: #4A6FA5;
  --steel-soft: #6B8BB8;
  --border: #E2E5E9;
  --border-strong: #CBD2D9;
  --focus: #2B6CB0;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(15,20,25,0.06), 0 4px 12px rgba(15,20,25,0.04);
  --shadow-lg: 0 4px 24px rgba(15,20,25,0.08);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  z-index: 1000;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,246,243,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  flex-shrink: 0;
}
.logo span { display: block; font-weight: 500; font-size: 0.72rem; color: var(--ink-muted); letter-spacing: 0; }

.nav-desktop { display: none; }
.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
.nav-desktop a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: var(--radius);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-alt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  padding: 0 12px;
}
.btn-ghost:hover { color: var(--ink); }

.btn-call {
  background: var(--ink);
  color: #fff;
}
.btn-call:hover {
  background: #1a202c;
  color: #fff;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 20px; height: 20px; }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px 20px;
  overflow-y: auto;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a[aria-current="page"] { color: var(--accent); }
.nav-mobile .nav-phone {
  margin-top: 28px;
  display: block;
  text-align: center;
}

/* Main layout */
.main { min-height: 60vh; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}
.section-tight { padding: 40px 0; }
.section-alt { background: var(--bg-alt); }

/* Hero */
.hero {
  padding: 32px 0 48px;
  position: relative;
}
.hero-grid {
  display: grid;
  gap: 28px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}
.hero-label::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 36ch;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4/3;
  position: relative;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(15,20,25,0.75));
  color: #fff;
  font-size: 0.8rem;
}

/* Section headings */
.section-header {
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.section-header p {
  color: var(--ink-muted);
  max-width: 52ch;
  font-size: 1.02rem;
}

/* Cards / info blocks */
.info-grid {
  display: grid;
  gap: 16px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.info-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.info-card .card-meta {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Process steps */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 6px;
}
.step p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body {
  padding: 0 18px 18px;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.cta-band p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-primary {
  background: var(--accent);
}
.cta-band .btn-secondary {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.cta-band .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

/* Contact block */
.contact-grid {
  display: grid;
  gap: 24px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.contact-card .big {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-card a.big { color: var(--ink); }
.contact-card a.big:hover { color: var(--accent); }
.contact-card p { color: var(--ink-muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 10px; }
.footer-brand .logo span { color: rgba(255,255,255,0.55); }
.footer-brand p { max-width: 28ch; line-height: 1.5; }
.footer-nav h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-nav ul { list-style: none; }
.footer-nav a {
  color: rgba(255,255,255,0.65);
  display: block;
  padding: 5px 0;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* Sticky mobile call bar */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(15,20,25,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sticky-call .btn {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
}
body.has-sticky { padding-bottom: calc(68px + var(--safe-bottom)); }

/* Editorial split */
.split {
  display: grid;
  gap: 28px;
  align-items: center;
}
.split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/11;
  background: var(--bg-alt);
}
.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Utility */
.text-muted { color: var(--ink-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

/* Desktop */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: block; }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-grid.three { grid-template-columns: repeat(3, 1fr); }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .split.reverse .split-visual { order: 2; }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
}

@media (min-width: 1024px) {
  .header-inner { padding: 0 28px; }
  .container { padding: 0 28px; }
  .info-grid.three { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile sticky call visible only on small screens */
@media (max-width: 767px) {
  .sticky-call { display: block; }
  body.has-sticky { padding-bottom: calc(68px + var(--safe-bottom)); }
  .header-actions .btn-call-desktop { display: none; }
}

@media (min-width: 768px) {
  .header-actions .btn-call-desktop { display: inline-flex; }
}
