/* =========================================================
   Coldsweep — Main Stylesheet
   Dark industrial theme with icy blue accent palette
   ========================================================= */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #08090d;
  --bg-secondary:  #0f1117;
  --bg-card:       #13151e;
  --bg-card-hover: #1a1d2a;
  --border:        rgba(255,255,255,0.07);
  --accent:        #29c5e6;
  --accent-dim:    rgba(41,197,230,0.12);
  --accent-glow:   rgba(41,197,230,0.25);
  --text-primary:  #f0f4f8;
  --text-secondary:#8fa3b8;
  --text-muted:    #4d6275;
  --white:         #ffffff;
  --gradient-hero: linear-gradient(135deg, #08090d 0%, #0d1520 60%, #091620 100%);
  --font-sans:     'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

p { color: var(--text-secondary); line-height: 1.75; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1440px;
}

.section {
  padding: 96px 0;
}

.section--sm {
  padding: 64px 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn--primary:hover {
  background: #3dd6f5;
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-weight: 600;
}
.btn--ghost:hover { color: var(--white); }
.btn--ghost svg { transition: transform var(--transition); }
.btn--ghost:hover svg { transform: translateX(4px); }

/* ── Section Labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.75;
}

/* ── Header / Nav ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo span { color: var(--accent); }

/* Site logo image */
.site-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active { color: var(--white); }

/* Dropdown menus — display is controlled entirely by JS (main.js) */
.nav-links li {
  position: relative;
}

.nav-links li > ul,
.nav-links li > ul.sub-menu {
  /* JS sets display:none on load and toggles on hover */
  position: absolute;
  top: 100%;      /* flush to bottom of li — no gap for mouse to cross */
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 6px 6px; /* top padding provides visual breathing room */
  list-style: none;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 200;
  flex-direction: column;
  gap: 2px;
}

/* Third-level dropdowns */
.nav-links li > ul li > ul {
  top: 0;
  left: 100%;
}

.nav-links li > ul li > a {
  padding: 9px 14px;
  font-size: 0.875rem;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--text-secondary);
}

.nav-links li > ul li > a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Dropdown arrow indicator */
.nav-links li:has(ul) > a::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 6px;
  margin-left: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238fa3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-phone:hover { color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99;
  flex-direction: column;
  padding: 96px 32px 48px;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--white); }

.mobile-nav ul {
  list-style: none;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
}

.mobile-nav ul a {
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: none;
  color: var(--text-muted);
}
.mobile-nav ul a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,197,230,0.12) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,197,230,0.06) 0%, transparent 70%);
  bottom: -100px;
  left: 10%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(41,197,230,0.06);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-title .accent { color: var(--accent); }

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Clients / Logos ── */
.clients-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.clients-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  text-align: center;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 40px;
}

.client-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity var(--transition), color var(--transition);
  white-space: nowrap;
}
.client-name:hover { opacity: 1; color: var(--text-secondary); }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
  margin-bottom: 0;
}

.service-card {
  background: var(--bg-card);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  background: var(--bg-card-hover);
}
.service-card:hover .service-card-arrow { transform: translate(3px, -3px); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(41,197,230,0.2);
}
.service-icon svg { color: var(--accent); }

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.service-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.service-card-arrow {
  color: var(--accent);
  transition: transform var(--transition);
  margin-top: auto;
  align-self: flex-start;
}

/* ── Feature Strip ── */
.features-strip {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── About / Split Section ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-image {
  position: relative;
}

.split-image-main {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.split-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  backdrop-filter: blur(8px);
}

.badge-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.badge-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.split-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.split-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.split-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.split-bullets li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid rgba(41,197,230,0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2329c5e6'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  margin-top: 2px;
}

/* ── Testimonial / CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #091a2a 0%, #0a1520 50%, #050a12 100%);
  border: 1px solid rgba(41,197,230,0.15);
  border-radius: var(--radius-lg);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(41,197,230,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner-sub {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 40px;
  position: relative;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ── Recognition Strip ── */
.recognition-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.recognition-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.recognition-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(41,197,230,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.recognition-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
}

.recognition-text span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.recognition-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Footer ── */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  transition: color var(--transition);
}
.footer-phone:hover { color: var(--accent); }

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--white); }

/* ── Contact Form ── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* WordPress comment/search form resets */
.wpcf7-form .form-group { width: 100%; }

/* ── Inner Page Hero ── */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, rgba(41,197,230,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 580px;
}

/* ── Blog / Archive ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
  text-decoration: none;
  color: inherit;
}
.post-card:hover { border-color: rgba(41,197,230,0.3); }

.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  object-fit: cover;
}

.post-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.post-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.post-card-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.post-card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

/* ── Single Post ── */
.post-content {
  max-width: 760px;
  margin: 0 auto;
}

.post-content h1, .post-content h2, .post-content h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.post-content p { margin-bottom: 1.5em; }

.post-content ul, .post-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.post-content li { color: var(--text-secondary); margin-bottom: 0.5em; }

.post-content img {
  border-radius: var(--radius);
  margin: 2em 0;
  width: 100%;
}

.post-content a { color: var(--accent); }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── WPBakery Page Builder compatibility ── */

/* Force dark backgrounds — override WPBakery's white defaults */
.vc_row,
.vc_section,
.vc_row-fluid,
.wpb_row,
.wpb_content_element,
.vc_column-inner,
.vc_column_container,
.wpb_wrapper {
  background-color: transparent !important;
  color: var(--text-secondary) !important;
}

/* WPBakery CTA boxes — common culprit for white sections */
.vc_cta3-container,
.vc_cta3,
.vc_cta3 .vc_cta3-content,
.vc_cta3-actions {
  background: var(--bg-card) !important;
  background-color: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary) !important;
}
.vc_cta3 h2,
.vc_cta3 h3,
.vc_cta3 h4,
.vc_cta3 .vc_cta3_title {
  color: var(--text-primary) !important;
}

/* WPBakery icon boxes and content boxes */
.vc_icon_element-icon,
.wpb_content_element.vc_cta3-shape-rounded,
.vc_icon_element,
.vc_icon_element-inner {
  background-color: transparent !important;
}

/* Catch all WPBakery inline white backgrounds (all hex/rgb variants) */
[style*="background-color: #fff"],
[style*="background-color:#fff"],
[style*="background-color: #ffffff"],
[style*="background-color:#ffffff"],
[style*="background-color: #FFFFFF"],
[style*="background-color:#FFFFFF"],
[style*="background-color: white"],
[style*="background-color:white"],
[style*="background-color: rgb(255, 255, 255)"],
[style*="background-color: rgba(255, 255, 255"],
[style*="background: #fff"],
[style*="background: #ffffff"],
[style*="background: white"] {
  background-color: var(--bg-card) !important;
  background: var(--bg-card) !important;
}

/* Grid & layout */
.vc_row {
  margin-left: -15px;
  margin-right: -15px;
  display: flex;
  flex-wrap: wrap;
}
.vc_row::after { clear: both; content: ''; display: table; }
.vc_row.vc_row-no-padding .vc_column_container { padding: 0; }

.wpb_column,
.vc_column_inner {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.vc_col-sm-12 { flex: 0 0 100%; max-width: 100%; }
.vc_col-sm-6  { flex: 0 0 50%;  max-width: 50%; }
.vc_col-sm-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.vc_col-sm-3  { flex: 0 0 25%;  max-width: 25%; }
.vc_col-sm-8  { flex: 0 0 66.666%; max-width: 66.666%; }
.vc_col-sm-9  { flex: 0 0 75%;  max-width: 75%; }

/* Text & content */
.wpb_text_column,
.wpb_text_column p,
.wpb_text_column li,
.wpb_content_element,
.wpb_content_element p {
  color: var(--text-secondary);
}

.wpb_text_column h1,
.wpb_text_column h2,
.wpb_text_column h3,
.wpb_text_column h4,
.wpb_text_column h5,
.wpb_text_column h6 {
  color: var(--text-primary);
}

.wpb_text_column a { color: var(--accent); }
.wpb_text_column a:hover { color: var(--white); }

/* Sections & rows */
.vc_row-fluid { width: 100%; }
.wpb_column > .vc_column-inner { padding-top: 0; padding-bottom: 0; }
.vc_column_container > .vc_column-inner { padding: 0 15px; }
.vc_column-inner { box-sizing: border-box; }

/* Single image */
.wpb_single_image .vc_figure { display: block; }
.wpb_single_image img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Call to action boxes — target WPBakery's color/style classes, not just the base class */
.vc_cta3-container { margin-bottom: 20px; }
.vc_cta3,
.vc_cta3.vc_color-classic,
.vc_cta3.vc_color-white,
.vc_cta3.vc_color-grey,
.vc_cta3.vc_color-default,
.vc_cta3-style-classic,
.vc_cta3-style-outline,
.vc_cta3-style-custom {
  background: var(--bg-card) !important;
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 32px !important;
  color: var(--text-secondary) !important;
}
.vc_cta3 h2,
.vc_cta3 h3,
.vc_cta3 h4,
.vc_cta3 p,
.vc_cta3 li { color: var(--text-secondary) !important; }
.vc_cta3 h2,
.vc_cta3 .vc_cta3_title { color: var(--text-primary) !important; }
.vc_cta3 a { color: var(--accent) !important; }
.vc_cta3 a:hover { color: var(--white) !important; }

/* Separator */
.vc_separator .vc_sep_holder .vc_sep_line { border-color: var(--border); }

/* Button */
.vc_btn3 {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}
.vc_btn3-color-primary,
.vc_btn3-color-blue {
  background: var(--accent);
  color: var(--bg-primary);
}
.vc_btn3-color-primary:hover,
.vc_btn3-color-blue:hover {
  background: #3dd6f5;
  color: var(--bg-primary);
}

/* Tabs */
.vc_tta-tabs .vc_tta-tab > a {
  color: var(--text-secondary);
  background: var(--bg-card);
  border-color: var(--border);
}
.vc_tta-tabs .vc_tta-tab.vc_active > a {
  color: var(--accent);
  background: var(--bg-card-hover);
  border-color: var(--accent);
}
.vc_tta-panels .vc_tta-panel-body {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-secondary);
}

/* Accordion */
.vc_tta-accordion .vc_tta-panel-title > a {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}
.vc_tta-accordion .vc_tta-panel.vc_active .vc_tta-panel-title > a {
  background: var(--bg-card-hover);
  color: var(--accent);
}
.vc_tta-accordion .vc_tta-panel-body {
  background: var(--bg-secondary);
  border-color: var(--border);
}

/* Spacing helpers WPBakery adds */
.vc_custom_heading { color: var(--text-primary); }
.wpb_animate_when_almost_visible { opacity: 1 !important; }

@media (max-width: 768px) {
  .vc_col-sm-6,
  .vc_col-sm-4,
  .vc_col-sm-3,
  .vc_col-sm-8,
  .vc_col-sm-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ── WordPress admin bar ── */
.admin-bar #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #site-header {
    top: 46px;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 48px; }
  .split-image { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-cta .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 48px 24px; }
  .recognition-strip { flex-direction: column; align-items: flex-start; }
  .recognition-divider { width: 100%; height: 1px; }
  .footer-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
