/* site-specific color overrides for v2.5 */
:root {
  --color-accent:      #28a745;
  --color-accent-dark: #1e7e34;
  --color-accent-glow: rgba(40, 167, 69, 0.3);
}

/* ── Desktop nav links (class mismatch fix: HTML uses .nav-links, not .main-nav ul or .nav__links) ── */
.site-header {
  background: #0f172a !important;
  border-bottom: none !important;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px !important;
}
.logo {
  color: #fff !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo span { color: #28a745 !important; }
.nav-links {
  display: flex !important;
  align-items: center;
  gap: 28px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: #28a745; }
.header-phone {
  color: #fff !important;
  background: #28a745;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
}
.header-phone:hover { background: #1e7e34; }
.header-phone i { font-size: 0.95rem !important; }

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .header-phone { display: none !important; }
}

/* ── Inner-page hero (about / services / contact / blog) ── */
.page-hero, .inner-hero, .service-hero, .contact-hero, .blog-hero {
  background: linear-gradient(135deg, #0f172a 0%, #16213e 100%) !important;
  color: #fff !important;
  padding: 6rem 0 3rem !important;
  text-align: center !important;
}
.page-hero .container, .inner-hero .container,
.service-hero .container, .contact-hero .container, .blog-hero .container {
  max-width: 900px; margin: 0 auto; padding: 0 24px;
}
.page-hero h1, .inner-hero h1, .service-hero h1, .contact-hero h1, .blog-hero h1 {
  color: #fff !important;
  font-size: 2.5rem; font-weight: 800; line-height: 1.2;
  margin: 0 0 1rem; letter-spacing: -0.02em;
}
.page-hero p, .inner-hero p, .service-hero p, .contact-hero p, .blog-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem; line-height: 1.6;
  margin: 0 auto; max-width: 720px;
}
@media (max-width: 768px) {
  .page-hero, .inner-hero, .service-hero, .contact-hero, .blog-hero {
    padding: 5rem 0 2.5rem !important;
  }
  .page-hero h1, .inner-hero h1, .service-hero h1, .contact-hero h1, .blog-hero h1 {
    font-size: 1.875rem;
  }
}

/* ── Breadcrumb (used inside .page-hero) ── */
.breadcrumb { margin-bottom: 1rem; }
.breadcrumb ol, .breadcrumb ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.5rem; opacity: 0.6; }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: #28a745; }

/* ── Suppress orphan <img> placed between </header> and <main> in inner-page templates ── */
body > header + img,
body > .site-header + img,
.site-header ~ img:not([class]) {
  display: none !important;
}

/* ── Hamburger button ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(280px, 85vw);
  background: #0f172a;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1000;
  box-shadow: -4px 0 24px rgba(0,0,0,.4);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a:last-child {
  color: #28a745;
  border-bottom: none;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
}

/* Fixed header clearance */
.page-hero    { padding-top: 7rem; padding-bottom: 3rem; }
.service-hero { padding-top: 7rem; }
@media (max-width: 768px) {
  .page-hero    { padding-top: 6rem; padding-bottom: 2.5rem; }
  .service-hero { padding-top: 6rem; }
}

/* Mobile contact grid */
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-info-card,
  .contact-info-column,
  .contact-form-column { min-width: 0; max-width: 100%; }
  .contact-email-link,
  .contact-info-card a,
  .contact-info-card span { word-break: break-word; overflow-wrap: anywhere; }
}

/* Scrollable wide tables */
main table,
.content-container table,
.content-section table,
.blog-article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Content section (long-form SEO content below inner-page heroes) ── */
.content-section {
  background: #fff;
  padding: 3rem 0 3.5rem;
}
.content-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-section h2 {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}
.content-section h2:first-child { margin-top: 0; }
.content-section p { color: #374151; line-height: 1.7; margin-bottom: 1rem; }
.content-section ol,
.content-section ul { color: #374151; line-height: 1.7; margin-bottom: 1rem; padding-left: 1.6rem; }
.content-section li { margin-bottom: 0.5rem; }
.content-section .faq-item { margin-bottom: 1.25rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 1.25rem; }
.content-section .faq-item h3 { color: #0f172a; font-size: 1rem; font-weight: 700; margin: 0 0 0.4rem; }
.content-section .faq-item p { margin: 0; }
.content-section .cta-text { background: #f0f7f2; border-left: 4px solid #28a745; padding: 1rem 1.25rem; border-radius: 4px; font-weight: 600; color: #1e7e34; margin-top: 2rem; }

/* Restore list padding stripped by reset */
.svc-section ul,
.loc-section ul,
.blog-article-content ul,
.content-section ul,
.calc-content ul,
.faq-item ul { padding-left: 1.6rem; }
.svc-section li,
.loc-section li,
.blog-article-content li,
.content-section li,
.calc-content li { margin-bottom: 0.4rem; }

/* ── Inner-page body content wrappers (service / location / blog two-col layouts) ──
   These classes were built without matching CSS, so h2/h3 fell back to global
   clamp(1.6rem,4vw,2.4rem) = 2.4rem at desktop — causing oversized headings. */
.content-main h2,
.main-content h2,
.blog-content h2 {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.content-main h2:first-child,
.main-content h2:first-child,
.blog-content h2:first-child { margin-top: 0; }
.content-main h3,
.main-content h3,
.blog-content h3 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}
.content-main p,
.main-content p,
.blog-content p {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.content-main ul,
.content-main ol,
.main-content ul,
.main-content ol,
.blog-content ul,
.blog-content ol {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.6rem;
}
.content-main li,
.main-content li,
.blog-content li { margin-bottom: 0.4rem; }

/* Testimonial legibility */
.testimonial-card::before,
.testimonial-section .testimonial-quote::before { content: none !important; }
.testimonial-card__text {
  font-style: normal !important;
  color: rgba(241, 245, 249, 0.95) !important;
}
.testimonial-section h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 2.5rem;
}
.testimonial-section .testimonial-quote { font-style: normal !important; }
