/* Garbage Disposal Repair – Ross Township PA
   Clean, mobile-first, local-service stylesheet */

:root {
  --primary: #1a5f7a;
  --primary-dark: #0f3d4d;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --text: #222;
  --text-light: #555;
  --bg: #f8f9fa;
  --white: #fff;
  --border: #e0e0e0;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --max-width: 1100px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  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: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  white-space: nowrap;
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: 0.2s;
}

.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.main-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

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

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

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

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #0f3d4d 0%, #1a5f7a 100%);
  color: var(--white);
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.35rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

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

.hero-visual {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ========== SECTIONS ========== */
section { padding: 3.25rem 0; }

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

h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
  line-height: 1.3;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

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

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

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

.problem-card h3 { margin-bottom: 0.4rem; }
.problem-card p { color: var(--text-light); font-size: 0.98rem; }

/* Service list */
.service-list {
  list-style: none;
  margin: 1.5rem 0;
}

.service-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

/* Area tags */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.75rem;
}

.area-tag {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Process steps */
.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  position: relative;
  padding-left: 3.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

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

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

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  cursor: default;
}

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

/* CTA band */
.cta-band {
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}

.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 32rem; margin-left: auto; margin-right: auto; }

/* ========== FOOTER ========== */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.95rem;
}

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

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.footer-grid a { color: #aaa; }
.footer-grid a:hover { color: var(--white); }

.footer-phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent) !important;
  display: inline-block;
  margin-top: 0.3rem;
}

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

/* ========== CONTACT PAGE ========== */
.contact-hero {
  background: var(--primary-dark);
  color: white;
  padding: 2.5rem 0;
  text-align: center;
}

.contact-hero h1 { color: white; margin-bottom: 0.5rem; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto;
}

.contact-card p { margin-bottom: 0.75rem; }
.contact-card .label { font-weight: 600; color: var(--text-light); font-size: 0.9rem; }

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

.mobile-call-bar a {
  color: white;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  display: block;
}

/* 404 */
.page-404 {
  text-align: center;
  padding: 5rem 1.25rem;
}

.page-404 h1 { font-size: 3rem; color: var(--primary); margin-bottom: 0.5rem; }

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .header-phone { display: block; }
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0;
  }

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

  .main-nav a { padding: 0; }

  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .hero { padding: 4rem 0; }

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

@media (min-width: 900px) {
  .problem-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Show sticky bar only on small screens */
@media (max-width: 767px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 60px; } /* space for sticky bar */
}
