/* =========================================================
   Cape Coral Emergency Plumber — style.css
   Shared stylesheet for all pages
   ========================================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  --primary: #0A1F44;
  --primary-light: #0D2D5E;
  --accent: #FF6B00;
  --accent-dark: #CC5500;
  --accent-light: #FFF3EB;
  --white: #FFFFFF;
  --light-bg: #F4F7FB;
  --gray-100: #F9FAFB;
  --gray-200: #E5E7EB;
  --gray-500: #6B7280;
  --gray-800: #1F2937;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --success: #16A34A;
  --error: #DC2626;
  --border: #E5E7EB;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --transition: 0.25s ease;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

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

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

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

ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.section { padding: 48px 0; }
.section-alt { background: var(--light-bg); }
.section-dark { background: var(--primary); color: var(--white); }

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 12px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-dark .section-header p { color: rgba(255,255,255,0.8); }
.section-header .divider {
  width: 64px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ---------- BUTTONS ---------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: var(--white); }
.btn-secondary:active { transform: scale(0.98); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.15rem; }
.btn-footer { margin-top: 14px; }

/* ---------- TOP BAR ---------- */
.top-bar {
  background: var(--accent);
  color: var(--white);
  font-size: 0.82rem;
  display: none;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
}
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-left span { white-space: nowrap; }
.top-bar-phone { font-weight: 700; white-space: nowrap; }
.top-bar-phone:hover { text-decoration: underline; }

/* ---------- NAV ---------- */
.main-nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.main-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.8rem; line-height: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { color: var(--primary); font-size: 1.1rem; }
.logo-text span { color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
}
.nav-links > li > a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0;
  position: relative;
}
.nav-links > li > a:hover { color: var(--accent); }
.nav-links > li > a.active { color: var(--accent); }
.nav-links > li > a.active::after,
.nav-links > li > a:hover::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  min-width: 250px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 1001;
}
.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.92rem;
  color: var(--text);
}
.dropdown li a:hover { background: var(--accent-light); color: var(--accent-dark); }

.btn-call-nav {
  display: none;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn-call-nav:hover { background: var(--accent-dark); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 100%; height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 56px 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.05'%3E%3Cpath d='M0 30 L60 30 M30 0 L30 60 M0 0 L60 60 M60 0 L0 60'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,107,0,0.15);
  color: var(--accent);
  border: 1px solid rgba(255,107,0,0.4);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-heading {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-heading .accent { color: var(--accent); }
.hero-subheading {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 26px;
  max-width: 560px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }

/* Hero form card */
.hero-form-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-form-card h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.hero-form-card .form-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.hero-form-card .form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 14px;
}
.hero-form-card .form-note a { color: var(--accent); font-weight: 700; }

/* ---------- FORMS ---------- */
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--gray-800);
}
.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.18);
}
textarea.form-control { resize: vertical; min-height: 96px; }
.field-error {
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}
.form-field.has-error .form-control { border-color: var(--error); }
.form-field.has-error .field-error { display: block; }
.form-success {
  background: var(--success);
  color: var(--white);
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
}
.form-success span { font-size: 2rem; display: block; margin-bottom: 8px; }
.form-success.hidden { display: none; }
form.hidden { display: none; }

/* ---------- STATS BAR ---------- */
.stats-bar { background: var(--accent); color: var(--white); padding: 40px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  margin-top: 6px;
  opacity: 0.95;
}

/* ---------- SERVICE CARDS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
  border-top: 3px solid transparent;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}
.service-card .icon { font-size: 2.6rem; line-height: 1; margin-bottom: 14px; }
.service-card h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
.service-card .learn-more { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.service-card .learn-more:hover { color: var(--accent-dark); }

/* ---------- TWO COLUMN ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.two-col h2 { color: var(--primary); font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 18px; }
.two-col p { color: var(--text-muted); margin-bottom: 16px; }
.check-list { margin: 20px 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: "✅";
  position: absolute;
  left: 0; top: 0;
}
.img-wrap { position: relative; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--accent);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
}
.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  padding: 20px;
}

/* ---------- WHY CHOOSE / FEATURE CARDS ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
}
.feature-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-card h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- PROCESS ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px 24px;
  text-align: center;
}
.process-step .step-num {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.process-step .icon { font-size: 2.2rem; margin: 8px 0 12px; }
.process-step h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.testimonial-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
  position: relative;
}
.testimonial-card .quote-mark {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card .stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card .review-text { color: var(--text); font-size: 0.97rem; margin-bottom: 14px; font-style: italic; }
.testimonial-card .reviewer { font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.reviews-link { text-align: center; margin-top: 28px; }
.reviews-link a { color: var(--accent); font-weight: 600; }

/* ---------- AREA BADGES ---------- */
.area-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}
.area-badge {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  transition: all var(--transition);
}
.area-badge:hover { background: var(--accent); color: var(--white); }

.cta-box {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.cta-box p { font-size: 1.1rem; margin-bottom: 16px; font-weight: 500; }
.cta-box .btn-primary { background: var(--white); color: var(--accent-dark); }
.cta-box .btn-primary:hover { background: var(--primary); color: var(--white); }

/* ---------- FAQ ACCORDION ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  padding: 20px 0;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  position: relative;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { color: var(--text-muted); padding-bottom: 20px; font-size: 0.97rem; }
.faq-item.open .faq-answer { max-height: 600px; }

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 14px 0;
  background: var(--gray-100);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; color: var(--gray-500); }
.breadcrumbs .current { color: var(--accent); font-weight: 600; }

/* ---------- PAGE HERO (interior) ---------- */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.05'%3E%3Cpath d='M0 30 L60 30 M30 0 L30 60'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin-bottom: 14px; }
.page-hero h1 .accent { color: var(--accent); }
.page-hero p { font-size: 1.08rem; color: rgba(255,255,255,0.85); max-width: 640px; margin-bottom: 22px; }
.page-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.page-hero .hero-badges { color: rgba(255,255,255,0.9); }

/* ---------- CONTENT / PROSE ---------- */
.prose h2 { color: var(--primary); font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 32px 0 14px; }
.prose h3 { color: var(--primary); font-size: 1.2rem; margin: 22px 0 10px; }
.prose p { color: var(--text); margin-bottom: 16px; }
.prose ul.bullets { margin: 16px 0; }
.prose ul.bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text);
}
.prose ul.bullets li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}
.content-narrow { max-width: 820px; margin: 0 auto; }

/* Warning signs list */
.warning-list { margin: 16px 0; }
.warning-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.warning-list li::before { content: "⚠️"; position: absolute; left: 0; }

/* ---------- EMERGENCY CALLOUT ---------- */
.emergency-callout {
  background: var(--accent-light);
  border: 2px solid var(--error);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 30px;
}
.emergency-callout strong { color: var(--error); font-size: 1.15rem; display: block; margin-bottom: 8px; }
.emergency-callout a.phone-big { color: var(--accent-dark); font-size: 1.5rem; font-weight: 700; }

/* ---------- EMERGENCY CTA BANNER ---------- */
.cta-banner {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-banner h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 10px; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 24px; opacity: 0.95; }
.cta-banner .btn-primary { background: var(--white); color: var(--accent-dark); }
.cta-banner .btn-primary:hover { background: var(--primary); color: var(--white); }
.cta-banner small { display: block; margin-top: 16px; opacity: 0.9; font-size: 0.9rem; }

/* ---------- BLOG CARDS ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card .blog-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.blog-card .blog-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 50px;
  color: var(--white);
}
.cat-emergency { background: var(--accent); }
.cat-maintenance { background: var(--primary-light); }
.cat-seasonal { background: var(--success); }
.blog-date { font-size: 0.8rem; color: var(--text-muted); }
.blog-card h2, .blog-card h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 10px; }
.blog-card:hover h2, .blog-card:hover h3 { color: var(--accent); }
.blog-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 16px; flex: 1; }
.blog-card .read-more { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.blog-card .read-time { font-size: 0.78rem; color: var(--gray-500); }

/* ---------- AREAS PAGE ---------- */
.area-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.area-section h2 { color: var(--primary); font-size: 1.5rem; margin-bottom: 12px; }
.area-section .zips { display: inline-block; background: var(--accent-light); color: var(--accent-dark); font-weight: 600; font-size: 0.82rem; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }
.area-section p { color: var(--text-muted); margin-bottom: 14px; }

/* ---------- TEAM CARDS ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
}
.team-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--white);
}
.team-card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 4px; }
.team-card .role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.team-card .cert { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- CERT BADGES ---------- */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cert-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ---------- CONTACT METHOD CARDS ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
}
.contact-card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.contact-card h3 { color: var(--primary); margin-bottom: 8px; }
.contact-card a { color: var(--accent); font-weight: 600; }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; max-width: 480px; margin: 0 auto; }
.hours-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--success); }

/* Map placeholder */
.map-placeholder {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  border-radius: var(--border-radius-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- RELATED SERVICES ---------- */
.related-services { background: var(--light-bg); }

/* ---------- 404 ---------- */
.error-page {
  text-align: center;
  padding: 80px 0;
  background: var(--primary);
  color: var(--white);
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-page .big-404 { font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; color: var(--accent); line-height: 1; }
.error-page h1 { font-size: 1.8rem; margin: 12px 0; }
.error-page p { color: rgba(255,255,255,0.85); margin-bottom: 26px; max-width: 520px; margin-left: auto; margin-right: auto; }
.error-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--primary); color: var(--white); }
.footer-top { padding: 56px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo span { font-size: 2rem; }
.footer-logo strong { display: block; font-size: 1.05rem; }
.footer-logo small { color: rgba(255,255,255,0.65); font-size: 0.78rem; }
.footer-col > p { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin-bottom: 16px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-badges span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
}
.footer-col h3 { font-size: 1.05rem; margin-bottom: 16px; color: var(--white); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact li { display: flex; flex-direction: column; margin-bottom: 14px; }
.footer-contact strong { font-size: 0.82rem; color: rgba(255,255,255,0.6); font-weight: 500; margin-bottom: 2px; }
.footer-contact a, .footer-contact span { color: var(--white); font-size: 0.95rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
}
.footer-bottom-inner { text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin-bottom: 6px; }
.footer-bottom a { color: rgba(255,255,255,0.8); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- MOBILE NAV PANEL ---------- */
@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 65px; left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
  }
  .nav-links.nav-open { transform: translateX(0); }
  .nav-links > li { border-bottom: 1px solid var(--border); }
  .nav-links > li > a { display: block; padding: 14px 4px; font-size: 1.05rem; }
  .nav-links > li > a.active::after,
  .nav-links > li > a:hover::after { display: none; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent-light);
    margin-left: 12px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease;
  }
  .has-dropdown.open > .dropdown { max-height: 400px; padding: 4px 0; }
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (min-width: 640px) {
  .section { padding: 64px 0; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .top-bar { display: block; }
  .section { padding: 80px 0; }
  .nav-links { display: flex; }
  .btn-call-nav { display: inline-flex; }
  .hamburger { display: none; }
  .footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .footer-bottom-inner p { margin-bottom: 0; }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .hero .container { grid-template-columns: 1.4fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col.reverse .img-wrap, .two-col.reverse .img-placeholder { order: -1; }
}

/* ---------- ACCESSIBILITY ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.skip-link {
  position: absolute;
  left: -999px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
}
.skip-link:focus { left: 8px; top: 8px; }
