/* Water Heater Replacement Southington CT - Static Site Styles */
/* Mobile-first, clean, professional local service design */

:root {
  --primary: #0b5ea8;
  --primary-dark: #084a86;
  --primary-light: #e8f1fa;
  --accent: #e67e22;
  --accent-dark: #d35400;
  --text: #1a1a1a;
  --text-muted: #555;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --border: #e2e8f0;
  --success: #27ae60;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: 1.85rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background 0.2s;
}

.phone-link:hover {
  background: var(--primary-dark);
}

.phone-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Navigation */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.main-nav.open {
  display: block;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.4rem 0;
}

.main-nav a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  padding: 2.5rem 0 3rem;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-lead {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

/* Problem cards */
.problems-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.problem-card h3 {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.problem-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Service overview */
.service-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.4rem;
}

/* CTA boxes */
.cta-box {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h2, .cta-box h3 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}

.cta-box .btn {
  background: #fff;
  color: var(--primary) !important;
}

.cta-box .btn:hover {
  background: var(--primary-light);
}

.cta-inline {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.cta-inline p {
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* Local area */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.area-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.faq-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Map / Location */
.map-section {
  text-align: center;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  max-height: 360px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.address-block {
  margin-top: 1rem;
  font-size: 1rem;
}

.address-block strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-col p, .footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  padding: 0.75rem 1rem;
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff !important;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none !important;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 3rem;
  color: var(--primary);
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

/* Desktop */
@media (min-width: 768px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.75rem; }

  .nav-toggle { display: none; }

  .main-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .problems-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hide mobile CTA on larger screens */
@media (min-width: 768px) {
  .mobile-cta { display: none !important; }
}

/* Show mobile CTA only on small screens when needed */
@media (max-width: 767px) {
  body {
    padding-bottom: 60px; /* space for sticky bar */
  }
  .mobile-cta {
    display: block;
  }
  .header-phone .phone-text {
    display: none;
  }
}