/* Alliance Plumber Pros - Modern Home Service CSS */
:root {
  --navy: #0a2540;
  --navy-dark: #06182b;
  --green: #0d9488;
  --green-dark: #0f766e;
  --green-light: #14b8a6;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --red: #dc2626;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
}

*, *::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(--gray-800);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover { color: var(--green-dark); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

ul, ol { margin-bottom: 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

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

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  background: var(--navy-dark);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.header-main {
  padding: 0.875rem 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--green-light);
}

.logo:hover { color: var(--white); }

.nav {
  display: none;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--gray-100);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--green-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green);
  color: var(--white) !important;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.phone-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.phone-btn.large {
  padding: 0.9rem 1.75rem;
  font-size: 1.1rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--navy-dark);
  padding: 1rem 0;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  color: var(--gray-100);
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--green-light);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0c3a5e 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 1.85rem;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Trust bar */
.trust-bar {
  background: var(--gray-50);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  text-align: center;
}

.trust-item {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 500;
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* CTA Boxes */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #0c3a5e 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h2, .cta-box h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-box p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Content */
.content-block {
  max-width: 720px;
}

.content-block h2 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.content-block h3 {
  margin-top: 1.5rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--gray-50);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  background: var(--gray-100);
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--green);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: var(--gray-200);
  padding: 3rem 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: var(--gray-200);
  font-size: 0.9rem;
  display: block;
  padding: 0.3rem 0;
}

.footer-col a:hover {
  color: var(--green-light);
}

.footer-phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-light) !important;
  margin: 0.5rem 0;
}

.footer-disclosure {
  background: rgba(0,0,0,0.25);
  padding: 1.25rem 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray-200);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--gray-200);
  margin: 0 0.5rem;
}

/* Sticky mobile bar */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--green);
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.sticky-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.breadcrumbs a {
  color: var(--gray-600);
}

.breadcrumbs a:hover {
  color: var(--green);
}

/* Page header */
.page-header {
  background: var(--off-white);
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .lead {
  color: var(--gray-600);
  max-width: 640px;
}

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Service grid on homepage */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
}

.service-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.service-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

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

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--navy);
}

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

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

.error-page h1 {
  font-size: 4rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (min-width: 640px) {
  h1 { font-size: 2.25rem; }
  .hero h1 { font-size: 2.35rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: row; justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .sticky-call { display: none !important; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding-left: 0; padding-top: 3.5rem; text-align: center; }
  .step::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.75rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 4rem 0; }
}

/* Mobile sticky call bar */
@media (max-width: 767px) {
  .sticky-call { display: block; }
  body { padding-bottom: 60px; }
  .header-cta .phone-btn { padding: 0.55rem 0.9rem; font-size: 0.875rem; }
}
