/* Sump Pump Installation East Haven CT - Mobile-First Styles */
:root {
  --primary: #0d47a1;
  --primary-dark: #002171;
  --primary-light: #5472d3;
  --accent: #ff6f00;
  --accent-hover: #e65100;
  --text: #212121;
  --text-light: #616161;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e0e0e0;
  --success: #2e7d32;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1100px;
  --header-height: 70px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  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 {
  list-style: none;
}

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.25;
  max-width: 220px;
}

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

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.header-phone a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.header-phone a:hover {
  color: var(--accent);
  text-decoration: none;
}

.header-phone small {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Navigation */
.nav {
  background: var(--primary);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav a {
  color: #fff;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
}

.nav a:hover,
.nav a.active {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
  color: #fff;
  padding: 2.5rem 1rem 3rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

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

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

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

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

.btn-secondary:hover {
  background: #e3f2fd;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.btn-call {
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  padding: 1rem 1.6rem;
}

/* Sections */
.section {
  padding: 2.75rem 1rem;
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.section h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

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

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

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

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

.card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Problem / Solution list */
.problems {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.problem-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.problem-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #e3f2fd;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

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

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

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

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

.cta-inline a {
  font-weight: 600;
  color: var(--accent-hover);
}

/* Local area */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.area-tag {
  background: #e3f2fd;
  color: var(--primary-dark);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* FAQ */
.faq-list {
  margin-top: 1.25rem;
}

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

/* Map / Location */
.map-section {
  display: grid;
  gap: 1.5rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
  background: var(--bg-alt);
}

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

.location-info {
  background: var(--bg);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.location-info p {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: #1a237e;
  color: #c5cae9;
  padding: 2.5rem 1rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.footer a {
  color: #c5cae9;
}

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

.footer-phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff !important;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  text-align: center;
}

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

.sticky-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

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

/* Responsive */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .map-section { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1.3fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .nav-toggle { display: none; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav-inner { flex-direction: column; padding: 0.5rem 1rem 1rem; }
  .nav a { display: block; padding: 0.75rem 0.5rem; }
  .sticky-call { display: block; }
  body { padding-bottom: 60px; }
  .header-phone small { display: none; }
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1001;
}

.skip-link:focus {
  top: 0;
}
