/* Water Heater Replacement Somers CT - Modern Local Service Styles */
:root {
  --primary: #0d4f8b;
  --primary-dark: #083a66;
  --primary-light: #1a6bb5;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --text: #1a1a1a;
  --text-light: #4a4a4a;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --border: #e1e8ed;
  --success: #27ae60;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::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; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.logo span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-light); }

.nav { display: none; }
.nav ul { display: flex; gap: 28px; }
.nav a { font-weight: 500; color: var(--text); font-size: 0.95rem; }
.nav a:hover { color: var(--primary); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}
.phone-link:hover { background: var(--primary-dark); color: #fff !important; }
.phone-link svg { width: 18px; height: 18px; fill: currentColor; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.mobile-nav.active { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0d4f8b 0%, #1a6bb5 100%);
  color: #fff;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: cover;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff !important;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff !important; }
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); color: #fff !important; }
.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff !important; }

/* Sections */
section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 600px;
}

/* Problem / Service cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.card p { color: var(--text-light); font-size: 0.98rem; }
.card-icon {
  width: 48px;
  height: 48px;
  background: #e8f1f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

/* Content with image */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.content-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  max-height: 360px;
}
.content-text h2 { margin-bottom: 16px; }
.content-text p { margin-bottom: 14px; color: var(--text-light); }
.content-text ul { margin: 16px 0; }
.content-text li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-light);
}
.content-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* CTA Banner */
.cta-banner {
  background: var(--primary);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 1.6rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { font-size: 1.1rem; padding: 16px 32px; }

/* FAQ */
.faq-list { max-width: 800px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: none;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--primary); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-light);
}
.faq-item.open .faq-answer { display: block; }

/* Location / Map */
.map-section { background: var(--bg-alt); }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
  aspect-ratio: 16/9;
  max-height: 400px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Contact info blocks */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
.info-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.info-block h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.info-block p, .info-block a { color: var(--text-light); font-size: 1rem; }

/* Footer */
.footer {
  background: #0a2f52;
  color: #c8d6e5;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.footer p, .footer a { font-size: 0.95rem; color: #c8d6e5; }
.footer a:hover { color: #fff; }
.footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #8a9bb0;
}

/* Sticky mobile call bar */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  z-index: 999;
  padding: 12px 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.sticky-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.15rem;
}
.sticky-call svg { width: 22px; height: 22px; fill: #fff; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Responsive */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-inner { padding: 14px 0; }
  .hero { padding: 80px 0 90px; }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 767px) {
  .sticky-call { display: block; }
  body { padding-bottom: 64px; }
  .header-cta .phone-link span { display: none; }
  .header-cta .phone-link { padding: 10px 14px; }
}
