/* ==========================================================================
   KoloroBecs Painting & Maintenance - GeneratePress Inspired AdSense-Ready Theme
   Ultra-Fast, Clean, SEO & Core Web Vitals Optimized
   ========================================================================== */

:root {
  --primary: #1e3a8a;       /* Deep Navy */
  --primary-light: #3b82f6; /* Paint Blue */
  --primary-dark: #172554;
  --accent: #f97316;        /* Energetic Orange/Amber for CTA */
  --accent-hover: #ea580c;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --max-w-content: 1200px;
  --max-w-article: 860px;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
}

body.mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* --- TOP ANNOUNCEMENT BAR --- */
.top-bar {
  background-color: var(--primary-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.top-bar-contact a {
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-contact a:hover {
  color: #fdba74;
  text-decoration: none;
}

/* --- MAIN HEADER --- */
.site-header {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.site-logo svg {
  width: 36px;
  height: 36px;
}

.site-logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
  height: 72px;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  display: flex;
  align-items: center;
  position: relative;
  height: 72px;
}

.nav-links > li > a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0 10px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links > li.is-open > a {
  color: var(--primary-light);
  text-decoration: none;
}

.nav-links > li > a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 3px 3px 0 0;
}

.nav-arrow {
  display: inline-block;
  font-size: 0.75rem;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

@media (min-width: 1025px) {
  .dropdown:hover .nav-arrow,
  .dropdown.is-open .nav-arrow {
    transform: rotate(180deg);
  }
}

.site-header ul,
.site-header ol,
.site-header li,
.main-nav ul,
.main-nav li,
.nav-links ul,
.nav-links li,
.dropdown-menu,
.dropdown-menu li,
.mega-menu,
.mega-menu ul,
.mega-menu li,
.mega-column,
.mega-column ul,
.mega-column li {
  list-style: none !important;
  list-style-type: none !important;
}

.site-header .container {
  position: relative;
}

/* --- SERVICES DROPDOWN --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 72px;
  left: 0;
  background: #ffffff !important;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.2);
  padding: 10px 0;
  min-width: 275px;
  max-height: calc(85vh - 72px);
  overflow-y: auto;
  display: none;
  z-index: 99999;
  list-style: none !important;
  margin: 0 !important;
}

/* Hover bridge */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
  background: transparent;
}

@media (min-width: 1025px) {
  .dropdown:hover > .dropdown-menu,
  .dropdown.is-open > .dropdown-menu {
    display: block !important;
  }
}

.dropdown-menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.dropdown-menu a {
  display: block;
  padding: 9px 20px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.35;
  text-decoration: none !important;
}

.dropdown-menu a:hover {
  background-color: var(--bg-subtle);
  color: var(--primary-light);
  padding-left: 24px;
}

/* --- MEGA MENU FOR GUIDES & REVIEWS --- */
.nav-links > li.dropdown-mega {
  position: static !important;
}

.mega-menu {
  position: absolute;
  top: 72px;
  left: 20px;
  right: 20px;
  width: calc(100% - 40px);
  max-width: var(--max-w-content);
  margin: 0 auto;
  background: #ffffff !important;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px 28px 20px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-height: calc(85vh - 72px);
  overflow-y: auto;
  z-index: 99999;
}

/* Hover bridge for mega menu */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  width: 100%;
  height: 14px;
  background: transparent;
}

@media (min-width: 1025px) {
  .dropdown-mega:hover .mega-menu,
  .dropdown-mega.is-open .mega-menu {
    display: grid !important;
  }
}

.mega-column {
  min-width: 0;
}

.mega-column h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}

.mega-column ul {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mega-column li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
}

.mega-column a {
  display: block;
  padding: 5px 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none !important;
  line-height: 1.35;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: normal;
  word-break: normal;
}

.mega-column a:hover {
  background-color: var(--bg-subtle);
  color: var(--primary-light);
  padding-left: 12px;
}

.mega-menu-footer {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.mega-menu-footer a {
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
}

.mega-menu-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Custom Scrollbars */
.mega-menu::-webkit-scrollbar,
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.mega-menu::-webkit-scrollbar-thumb,
.dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(249, 115, 22, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #ffffff;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: #fdba74;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 28px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 30px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2e8f0;
}

.hero-feature-item svg {
  color: #4ade80;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hero Quick Quote Card */
.hero-card {
  background: #ffffff;
  color: var(--text-main);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.hero-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Form Submission Status Alerts */
.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-top: 14px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.form-status.success {
  display: block;
  background-color: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  font-weight: 500;
}

.form-status.error {
  display: block;
  background-color: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- TRUST BADGES BAR --- */
.trust-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

/* --- SECTION STYLES --- */
.section {
  padding: 64px 0;
}

.section-muted {
  background-color: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: #eff6ff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary-light);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-light);
}

.service-link:hover {
  gap: 10px;
}

/* --- ARTICLES / BLOG GUIDES GRID --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-thumb {
  height: 200px;
  background: #1e293b;
  position: relative;
  overflow: hidden;
}

.article-thumb img, .article-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.article-tag {
  background: #eff6ff;
  color: var(--primary-light);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.article-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.article-card h3 a {
  color: inherit;
}

.article-card h3 a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- ARTICLE PAGE TEMPLATE (GeneratePress Style) --- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 40px 0 60px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.article-layout > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.article-content {
  background: #ffffff;
  padding: 40px 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.breadcrumb span,
.breadcrumb a {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.article-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.article-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 16px;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.author-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.article-body-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}

.article-body-text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 36px 0 16px;
  line-height: 1.3;
}

.article-body-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 28px 0 12px;
}

.article-body-text p {
  margin-bottom: 20px;
}

.article-body-text ul, .article-body-text ol {
  margin: 0 0 24px 24px;
}

.article-body-text li {
  margin-bottom: 8px;
}

/* Callout Boxes (Quick Verdict, Tips) */
.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-light);
  background: #f0f7ff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.callout p {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.callout div[style*="margin-top"],
.callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.callout-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-tip {
  border-left-color: #10b981;
  background: #ecfdf5;
}

.callout-tip .callout-title {
  color: #065f46;
}

.callout-verdict {
  border-left-color: var(--accent);
  background: #fff7ed;
}

.callout-verdict .callout-title {
  color: #9a3412;
}

/* Table of Contents */
.toc-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.toc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: var(--text-main);
  font-size: 0.92rem;
  display: block;
}

.toc-list a:hover {
  color: var(--primary-light);
}

/* Data Comparison Tables */
.table-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.data-table {
  min-width: 520px;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th, .data-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.data-table th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: var(--primary-dark);
}

.data-table tr:nth-child(even) td {
  background-color: #fafbfc;
}

.badge-winner {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
}

/* FAQ Accordion */
.faq-group {
  margin: 32px 0;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

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

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  border-bottom: 2px solid #eff6ff;
  padding-bottom: 8px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
}

.sidebar-list li {
  margin-bottom: 12px;
}

.sidebar-list a {
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 500;
  display: block;
}

.sidebar-list a:hover {
  color: var(--primary-light);
}

/* --- AUTHORITY FOOTER (Matches lawnboosters rr-authority-overlay) --- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-company strong {
  display: block;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-company p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-contact a {
  color: #fdba74;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* --- HELPER CLASSES FOR CLEAN RESPONSIVE LAYOUTS --- */
.page-container {
  padding-top: 48px;
  padding-bottom: 48px;
}

.contact-container {
  padding-top: 48px;
  padding-bottom: 48px;
}

.contact-layout {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1200px) {
  .nav-links {
    gap: 8px;
  }
  .nav-links > li > a {
    font-size: 0.86rem;
    padding: 0 6px;
  }
}

@media (max-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
    background: #ffffff;
  }
  .site-header .container {
    position: static;
  }
  .header-wrapper {
    height: 64px;
    position: static;
  }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary);
    cursor: pointer;
    width: 46px;
    height: 46px;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    z-index: 10002;
    transition: all 0.2s ease;
  }
  .mobile-toggle:hover,
  .mobile-toggle:focus,
  .mobile-toggle.is-active {
    background-color: var(--bg-subtle);
    color: var(--primary-light);
    border-color: var(--primary-light);
  }

  /* Backdrop Overlay for smooth, reliable mobile close */
  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10000;
  }
  body.mobile-nav-open .mobile-nav-backdrop {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 16px 20px 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
    gap: 12px;
    z-index: 10001;
  }
  .main-nav.active {
    display: flex !important;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0;
    width: 100%;
  }
  .nav-links > li {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links > li > a {
    padding: 13px 8px;
    height: auto;
    min-height: 48px;
    font-size: 0.98rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .nav-links > li > a.active::after {
    display: none;
  }

  /* Mobile Services Dropdown */
  .dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-light);
    background: var(--bg-subtle);
    margin: 4px 0 12px;
    padding: 6px 0;
    border-radius: var(--radius-sm);
    display: none;
    max-height: none;
    min-width: 0;
    width: 100%;
  }
  .dropdown.mobile-open > .dropdown-menu {
    display: block !important;
  }
  .dropdown.mobile-open .nav-arrow {
    transform: rotate(180deg);
  }
  .dropdown-menu::before {
    display: none;
  }
  .dropdown-menu a {
    padding: 9px 16px;
    font-size: 0.88rem;
    white-space: normal;
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  /* Mobile Mega Menu */
  .nav-links > li.dropdown-mega {
    position: relative !important;
    width: 100%;
  }
  .mega-menu {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border: 1px solid var(--border-color) !important;
    border-left: 3px solid var(--accent) !important;
    background: var(--bg-subtle) !important;
    margin: 4px 0 12px !important;
    padding: 16px !important;
    border-radius: var(--radius-sm) !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-height: none !important;
  }
  .mega-menu::before {
    display: none !important;
  }
  .dropdown-mega.mobile-open .mega-menu {
    display: grid !important;
  }
  .dropdown-mega.mobile-open .nav-arrow {
    transform: rotate(180deg);
  }
  .mega-column h4 {
    font-size: 0.84rem;
    margin-bottom: 8px;
    padding-bottom: 4px;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
  }
  .mega-column a {
    padding: 8px 10px;
    font-size: 0.88rem;
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  .mega-menu-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
  }

  .main-nav .btn {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .article-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 32px;
    box-sizing: border-box !important;
  }
  .article-layout > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .article-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
  }
  .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .contact-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 28px;
    box-sizing: border-box !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .section-desc {
    font-size: 0.98rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .article-content {
    padding: 24px 18px;
  }
  .article-title {
    font-size: 1.75rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-legal-links {
    justify-content: center;
    gap: 8px 16px;
  }
  .page-container,
  .contact-container {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .service-areas-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .site-footer {
    padding: 40px 0 24px;
  }
}

@media (max-width: 576px) {
  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-features {
    flex-direction: column;
    gap: 10px;
  }
  .hero-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  .hero-card h3 {
    font-size: 1.15rem;
  }
  .trust-bar {
    padding: 16px 0;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
  }
  .trust-item {
    font-size: 0.82rem;
    gap: 8px;
    text-align: left;
    justify-content: flex-start;
  }
  .trust-item svg {
    width: 22px;
    height: 22px;
  }
  .data-table th, .data-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .callout div[style*="margin-top"],
  .callout-actions {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .callout div[style*="margin-top"] .btn,
  .callout-actions .btn {
    width: 100% !important;
    margin-left: 0 !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .top-bar {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .top-bar .container {
    justify-content: center;
    text-align: center;
    gap: 4px;
  }
  .top-bar-badge {
    display: none;
  }
  .site-logo {
    font-size: 1.2rem;
    gap: 8px;
  }
  .site-logo svg {
    width: 30px;
    height: 30px;
  }
  .section {
    padding: 38px 0;
  }
  .hero {
    padding: 36px 0 44px;
  }
  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }
  .hero-sub {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .section-desc {
    font-size: 0.92rem;
  }
  .section-header {
    margin-bottom: 30px;
  }
  .article-content {
    padding: 18px 14px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .article-title {
    font-size: 1.35rem;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .article-body-text {
    font-size: 0.96rem;
    line-height: 1.7;
  }
  .article-body-text h2 {
    font-size: 1.3rem;
    margin: 26px 0 12px;
  }
  .article-body-text h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
  }
  .article-body-text ul,
  .article-body-text ol {
    margin: 0 0 20px 18px;
  }
  .callout {
    padding: 16px 14px;
    margin: 20px 0;
  }
  .toc-box {
    padding: 16px 14px;
    margin: 20px 0;
  }
  .faq-question {
    padding: 14px 14px;
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 0 14px 14px;
    font-size: 0.9rem;
  }
  .sidebar-widget {
    padding: 18px 14px;
  }
  .service-card {
    padding: 20px 16px;
  }
  .service-card h3 {
    font-size: 1.15rem;
  }
  .article-body {
    padding: 18px 16px;
  }
  .article-card h3 {
    font-size: 1.1rem;
  }
  .article-thumb {
    height: 180px;
  }
  .footer-company strong {
    font-size: 1.3rem;
  }
  .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
}

/* Article Featured Banner Image */
.article-featured-image {
  margin: 0 0 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0f172a;
}

.article-featured-image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* Inline Form Submission Feedback */
.form-feedback {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-feedback-success {
  padding: 12px 14px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback-error {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}


