/*
Theme Name: AISEO Solutions
Theme URI: https://aiseosolution.com
Author: AI SEO Solutions Ltd
Author URI: https://aiseosolution.com
Description: A premium, ultra-modern, B2B-focused WordPress theme for AI SEO Solutions. Optimized for high performance, conversion, and authority.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: aiseo-solutions
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* ═ COLORS ═ */
  --bg-primary: #ffffff;
  --bg-secondary: #FAFAFA;
  --bg-dark: #000000;
  --bg-dark-alt: #111111;
  --bg-card: #ffffff;

  --text-dark: #000000;
  --text-body: #374151;
  --text-light: #f3f4f6;
  --text-muted: #6B7280; /* WCAG AA compliant — 5.9:1 contrast on white */
  
  --brand-primary: #2563EB; /* Vibrant Blue */
  --brand-primary-hover: #1D4ED8;
  --brand-accent: #000000; /* Stark black accents */
  
  --border-light: #E5E7EB;
  --border-dark: #333333;
  --border-solid: #000000; /* Used for sharp AISEO-style card borders */

  /* ═ TYPOGRAPHY ═ */
  --font-main: 'Inter', -apple-system, sans-serif;
  
  --fs-xs:   0.875rem;
  --fs-sm:   1rem;
  --fs-base: 1.125rem;
  --fs-md:   1.25rem;
  --fs-lg:   1.5rem;
  --fs-xl:   2rem;
  --fs-2xl:  3rem;
  --fs-3xl:  4rem;
  --fs-4xl:  4.5rem;
  --fs-hero: 5.5rem;
  
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;
  
  --lh-tight: 1.1;
  --lh-base:  1.6;

  /* ═ SPACING ═ */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;
  --sp-section: 8rem;

  /* ═ LAYOUT ═ */
  --container: 1300px;
  --container-narrow: 900px;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-none: 0px; /* Agency style often uses sharp edges */

  --transition: 0.2s ease-in-out;
}

/* ═ RESET ═ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: var(--lh-base);
  font-size: var(--fs-base);
}

/* ═ ACCESSIBILITY: SKIP LINK ═ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--brand-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

/* ═ UTILITIES ═ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  width: 100%;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--sp-section) 0; }
.section--dark { background-color: var(--bg-dark); color: var(--text-light); }
.section--dark h2, .section--dark h3 { color: #ffffff; }
.section--gray { background-color: var(--bg-secondary); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }

.text-center { text-align: center; }

/* ═ HEADER ═ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  z-index: 1000;
  padding: 1rem 0;
  transition: padding var(--transition), box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.95);
}

.site-header--dark {
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid var(--border-dark);
  color: #fff;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  color: var(--text-dark);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  transition: transform 0.3s ease;
}
.site-logo:hover {
  transform: scale(1.05);
}
.site-header--dark .site-logo { color: #fff; }

/* Enforce Strict Constraints on Raw Custom Logo Uploads */
.header-logo img.custom-logo {
  max-width: 240px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  display: block;
}
.main-nav ul {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
}
.main-nav li {
  display: flex;
  align-items: center;
}
.main-nav a {
  position: relative;
  color: var(--text-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  transition: color var(--transition);
}
.site-header--dark .main-nav a { color: var(--text-light); }

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0; 
  height: 2px;
  bottom: 0; 
  left: 50%;
  background-color: var(--brand-primary);
  transition: width 0.3s ease, left 0.3s ease;
}
.main-nav a:hover { 
  color: var(--text-dark); 
}
.site-header--dark .main-nav a:hover {
  color: var(--brand-primary);
}
.main-nav a:hover::after {
  width: 100%; 
  left: 0;
}

/* ═ SERVICES MEGA MENU ═ */
.has-mega { position: relative; }
.has-mega > a { display: inline-flex; align-items: center; gap: 4px; }
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: rgba(15, 15, 25, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  padding: 0;
  padding-top: 8px;
  z-index: 9999;
  overflow: visible;
}
/* Invisible hover bridge — prevents dropdown from closing when mouse travels to it */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 28px;
}
@media (max-width: 900px) {
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
  }
  .mega-menu__col:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 1rem; margin-bottom: 1rem; }
  .mega-menu__col { padding: 0.5rem; }
}
@media (min-width: 769px) {
  .has-mega:hover > .mega-menu { display: grid; }
}
.has-mega.is-open > .mega-menu { display: grid; }
.mega-menu__col {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-menu__col:first-child { border-right: 1px solid rgba(255,255,255,0.06); }
.mega-menu__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}
.mega-menu__item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.mega-menu__item:hover { background: rgba(255,255,255,0.06); }
.mega-menu__item::after { display: none !important; }
.mega-menu__item strong {
  font-size: 0.825rem;
  font-weight: 600;
  color: #f0f0f0;
  display: block;
}
.mega-menu__item span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.mega-menu__item:hover strong { color: var(--brand-primary); }
.mega-menu__cta {
  margin-top: auto;
  padding: 1rem 0.5rem 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mega-menu__cta p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin: 0 0 0.5rem;
}
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.mega-menu .btn--primary,
.mega-menu .btn--sm {
  color: #fff !important;
}

/* ═ MOBILE MENU TOGGLE ═ */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.mobile-menu-toggle .hamburger, 
.mobile-menu-toggle .hamburger::before, 
.mobile-menu-toggle .hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease-in-out;
}
.site-header--dark .mobile-menu-toggle .hamburger,
.site-header--dark .mobile-menu-toggle .hamburger::before,
.site-header--dark .mobile-menu-toggle .hamburger::after {
  background-color: #fff;
}
.mobile-menu-toggle::before { display: none; }
.mobile-menu-toggle .hamburger::before { transform: translateY(-8px); }
.mobile-menu-toggle .hamburger::after { transform: translateY(6px); }

.mobile-menu-toggle[aria-expanded="true"] .hamburger { background-color: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(0) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-2px) rotate(-45deg); }

/* ═ MEGA MENU DROPDOWN ═ */
.has-mega-menu {
  position: static !important; /* Forces dropdown drop to screen edge */
}
.aiseo-mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: var(--sp-lg) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}
.has-mega-menu:hover .aiseo-mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-service-link {
  display: flex !important;
  flex-direction: column;
  padding: 1rem !important;
  background: var(--bg-secondary);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.mega-service-link:hover {
  background: #fff;
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  color: inherit !important;
}
.mega-service-link strong {
  font-size: var(--fs-base);
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.mega-service-link span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}
.mega-service-link::after { display: none !important; }

.mega-posts-grid { gap: var(--sp-md); }
.mega-post-card {
  padding: 1rem;
  border-left: 2px solid var(--border-light);
  transition: border-color 0.2s ease;
}
.mega-post-card:hover {
  border-color: var(--brand-primary);
}

/* ═ BUTTONS ═ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--text-dark);
  color: #fff;
  border: 2px solid var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  background: transparent;
  color: var(--text-dark);
}
.btn--primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn--primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--text-dark);
}
.btn--outline:hover {
  background: var(--text-dark);
  color: #fff;
}

/* ═ HERO SECTION ═ */
.hero {
  padding: 12rem 0 8rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: linear-gradient(var(--border-light) 1px, transparent 1px), 
                    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-label {
  display: inline-block;
  font-weight: var(--fw-bold);
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-md);
  font-size: var(--fs-sm);
}
.hero h1 {
  margin-bottom: var(--sp-md);
}
.hero p {
  font-size: var(--fs-lg);
  color: var(--text-body);
  max-width: 700px;
  margin-bottom: var(--sp-lg);
}
.hero-actions {
  display: flex;
  gap: var(--sp-sm);
}

/* ═ SECTIONS ═ */
.section-header {
  margin-bottom: var(--sp-xl);
  max-width: 800px;
}
.section-header h2 {
  margin-bottom: var(--sp-sm);
}
.section-header p {
  font-size: var(--fs-lg);
  color: var(--text-body);
}
.section--dark .section-header p { color: var(--text-muted); }

/* ═ CARDS (Agency Style) ═ */
.card {
  padding: var(--sp-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--text-dark); box-shadow: 4px 4px 0 var(--text-dark); transform: translate(-2px, -2px); }

.card-icon {
  width: 48px; height: 48px;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-md);
  border-radius: var(--radius-sm);
}
.card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-sm);
}
.card p {
  color: var(--text-body);
  margin-bottom: var(--sp-sm);
  flex-grow: 1;
}

/* ═ PROCESS LIST ═ */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
}
.process-item {
  display: flex;
  border-top: 1px solid var(--border-light);
  padding: var(--sp-lg) 0;
}
.process-num {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  color: var(--border-light);
  width: 120px;
  line-height: 1;
}
.process-content h3 {
  margin-bottom: var(--sp-sm);
}

/* ═ FOOTER ═ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 0 0 var(--sp-sm);
}
.footer-cta-bar {
  border-top: 3px solid var(--brand-primary);
  padding: 1.5rem 0;
}
.footer-grid--5 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}
.footer-logo {
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  color: #fff;
  letter-spacing: -0.05em;
  margin-bottom: var(--sp-sm);
  display: block;
}
.footer-widget h4 {
  color: #fff;
  font-size: var(--fs-sm);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.footer-widget ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-widget a {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  transition: color 0.15s;
}
.footer-widget a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-md);
  color: rgba(255,255,255,0.3);
  font-size: var(--fs-sm);
}

/* ═ RESPONSIVE ═ */
@media (max-width: 1024px) {
  :root {
    --fs-hero: 4rem;
    --fs-3xl: 3rem;
    --sp-xl: 4rem;
    --sp-section: 6rem;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid--5 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --fs-hero: 2.8rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.3rem;
    --sp-section: 4rem;
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process-item { flex-direction: column; }
  .process-num { margin-bottom: var(--sp-sm); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .footer-grid--5 { grid-template-columns: 1fr; }
  
  /* Mobile Menu Styles */
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 998;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
  }
  .main-nav a:hover,
  .main-nav a:focus {
    color: var(--brand-primary);
  }
  /* Mobile mega-menu: scrollable dark dropdown */
  .has-mega > .mega-menu {
    display: none;
    position: static;
    transform: none;
    width: 100%;
    background: rgba(255,255,255,0.04);
    border-radius: 0;
    margin: 0;
    padding: 0.5rem 0 0.5rem 1rem;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--brand-primary);
  }
  .has-mega.is-open > .mega-menu {
    display: block;
  }
  .mega-menu__col {
    padding: 0.5rem 0;
    border: none !important;
  }
  .mega-menu__col:first-child {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .mega-menu__item {
    padding: 0.6rem 0.5rem;
    border-radius: 4px;
  }
  .mega-menu__item strong,
  .mega-menu__label {
    color: #fff;
    font-size: 0.95rem;
  }
  .mega-menu__item span {
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
  }
  .mega-menu__cta {
    background: rgba(37,99,235,0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
  }
  .mega-menu__cta p { color: rgba(255,255,255,0.7); }
  .mega-menu__cta .btn { width: 100%; color: #fff !important; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
  /* Keep hamburger above the fullscreen nav */
  .mobile-menu-toggle { z-index: 999; }
  .site-header { z-index: 1000; }
}

@media (max-width: 480px) {
  :root {
    --fs-hero: 2.2rem;
    --fs-3xl: 2rem;
  }
  .btn { padding: 0.8rem 1.2rem; font-size: 0.8rem; }
}

/* ═ ADVANCED SCROLL ANIMATIONS ═ */
.animate-on-scroll {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, visibility;
}

/* Fade Up effect */
.fade-up {
  transform: translateY(40px);
}

/* Fade in effect without translation */
.fade-in {
  transform: translateY(0);
}

/* Scale Up effect */
.scale-up {
  transform: scale(0.95);
}

/* When intersection observer fires, it adds .is-visible */
.animate-on-scroll.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Staggered children for grids */
.stagger-container.is-visible > .card,
.stagger-container.is-visible > .process-item,
.stagger-container.is-visible > div {
  animation: staggerFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.stagger-container.is-visible > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-container.is-visible > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-container.is-visible > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-container.is-visible > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-container.is-visible > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-container.is-visible > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═ BLOG LAYOUT & TABLE OF CONTENTS ═ */
.blog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-lg);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.toc-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.toc-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: var(--sp-md);
  position: relative;
}

.toc-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: var(--sp-md);
}

.toc-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-light);
}

.toc-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  background: var(--brand-primary);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s ease, opacity 0.3s ease;
}

.toc-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.toc-link {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.4;
  text-decoration: none;
}

.toc-link:hover {
  color: var(--text-dark);
}

.toc-link.active {
  color: var(--brand-primary);
  font-weight: var(--fw-bold);
  border-left-color: var(--brand-primary);
}

.toc-link--sub {
  padding-left: 1.75rem;
  font-size: 0.8rem;
}

.blog-content {
  min-width: 0;
}

.blog-body {
  line-height: 1.9;
  font-size: var(--fs-md);
  color: var(--text-body);
}

.blog-body h2 {
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border-light);
  font-size: var(--fs-2xl);
}

.blog-body h3 {
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-xl);
}

.blog-body p {
  margin-bottom: var(--sp-md);
}

.blog-body ul, .blog-body ol {
  margin-bottom: var(--sp-md);
  padding-left: var(--sp-md);
}

.blog-body li {
  margin-bottom: var(--sp-xs);
  list-style: disc;
}

.blog-body img {
  margin: var(--sp-md) 0;
  border: 1px solid var(--border-light);
}

.blog-body blockquote {
  border-left: 4px solid var(--brand-primary);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--bg-secondary);
  margin: var(--sp-md) 0;
  font-style: italic;
  color: var(--text-body);
}

.blog-body a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-body a:hover {
  color: var(--brand-primary-hover);
}

/* Universal content for standard pages */
.universal-content h2, .universal-content h3 { margin-top: var(--sp-lg); margin-bottom: var(--sp-sm); }
.universal-content p { margin-bottom: var(--sp-md); }
.universal-content ul, .universal-content ol { margin-bottom: var(--sp-md); padding-left: var(--sp-md); }
.universal-content li { margin-bottom: var(--sp-xs); list-style: disc; }
.universal-content img { margin: var(--sp-md) 0; }

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    position: relative;
    top: 0;
  }
}

/* ── LEAD MAGNET LANDING PAGE ── */
.lead-magnet-hero {
  padding: var(--sp-xxl) 0;
  background: var(--bg-dark);
  min-height: 100vh;
}
.lead-magnet-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}
.lead-magnet-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: var(--sp-md);
}
.lead-magnet-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--sp-sm);
}
.lead-magnet-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
  line-height: 1.6;
}
.lead-magnet-fear {
  background: rgba(255, 77, 77, 0.08);
  border-left: 4px solid #ff4d4d;
  padding: var(--sp-md) var(--sp-lg);
  border-radius: 0 8px 8px 0;
  margin-bottom: var(--sp-lg);
}
.lead-magnet-fear p {
  color: #ff9999;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.lead-magnet-ego {
  background: rgba(200, 170, 110, 0.08);
  border-left: 4px solid var(--accent);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: 0 8px 8px 0;
  margin: var(--sp-lg) 0;
}
.lead-magnet-ego p {
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.lead-magnet-content h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--sp-sm);
}
.lead-magnet-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-md) 0;
}
.lead-magnet-bullets li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.bullet-check {
  color: #4ade80;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.lead-magnet-proof-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.proof-stat {
  text-align: center;
}
.proof-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.proof-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
/* Form Card */
.lead-magnet-form-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: var(--sp-xl);
  position: sticky;
  top: 100px;
}
.lead-magnet-form-card h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.lead-magnet-form-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--sp-lg);
}
.form-group {
  margin-bottom: var(--sp-md);
}
.form-group label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.form-group input::placeholder {
  color: rgba(255,255,255,0.25);
}
.field-note {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}
.lead-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: var(--sp-sm);
}
.lead-submit-btn:hover {
  background: #d4b96e;
  transform: translateY(-1px);
}
.lead-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.lead-form-message {
  margin-top: var(--sp-md);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}
.lead-form-message.success {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.lead-form-message.error {
  background: rgba(255, 77, 77, 0.1);
  color: #ff9999;
  border: 1px solid rgba(255, 77, 77, 0.2);
}
.form-trust-signals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.form-trust-signals span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

@media (max-width: 992px) {
  .lead-magnet-grid {
    grid-template-columns: 1fr;
  }
  .lead-magnet-form-card {
    position: relative;
    top: 0;
    padding: var(--sp-md);
  }
  .lead-magnet-proof-bar {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }
}

/* ── GLOBAL CONVERSION FOOTER ── */
.global-conversion-footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: var(--sp-xxl) 0 var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08); /* separator from regular footer */
}
.global-conversion-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}
.global-conversion-footer h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--sp-sm);
}
.global-conversion-intro {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
  max-width: 550px;
}
.conversion-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-lg);
}
.conversion-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  line-height: 1.5;
}
.conversion-bullets li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  margin-top: -2px;
}
.conversion-jab-box {
  background: rgba(255,255,255,0.03);
  border-left: 4px solid var(--accent);
  padding: var(--sp-lg);
  border-radius: 0 12px 12px 0;
}
.conversion-jab-box h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--sp-xs);
}
.conversion-jab-box p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
}
.conversion-jab-box p strong {
  color: var(--white);
}
.global-conversion-footer .btn {
  font-size: 1rem;
  padding: 1.2rem 2.5rem;
  margin-top: var(--sp-md);
}

@media (max-width: 900px) {
  .global-conversion-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
}

/* ── EXPANDABLE SEO LOCATIONS GRID ── */
.seo-locations-section {
  padding: var(--sp-xl) 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}
.seo-locations-section h2 {
  text-align: center;
  margin-bottom: var(--sp-sm);
  color: var(--text-dark);
}
.seo-locations-section > p,
.seo-locations-section .container > p {
  text-align: center;
  color: var(--text-body);
  margin-bottom: var(--sp-lg);
}
.seo-locations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--sp-md);
}
.seo-location-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}
.seo-location-link:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}
/* Hidden state for CSS sibling toggle */
.hidden-locations { display: none; }
#toggle-locations { display: none; }
.toggle-locations-label {
  display: inline-flex;
  margin: 0 auto;
  align-items: center;
  padding: 12px 24px;
  background: var(--text-dark);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-locations-label:hover { background: var(--brand-primary); }
#toggle-locations:checked ~ .hidden-locations { display: grid; }
#toggle-locations:checked ~ .toggle-locations-label { display: none; }

/* ── PREMIUM SVG ICONS ── */
.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--brand-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
  transition: var(--transition);
}
.card:hover .card-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.8));
}

/* ── WALL OF LOVE / DATA PROOF GRID ── */
.wall-of-love {
  position: relative;
  background: var(--bg-dark);
  padding: 8rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wall-background {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: 
    url('assets/img/gallery/project-1.png'), url('assets/img/gallery/traffic-1.png'),
    url('assets/img/gallery/project-2.png'), url('assets/img/gallery/traffic-2.png'),
    url('assets/img/gallery/project-3.png');
  background-size: 300px auto, 400px auto, 250px auto, 450px auto, 350px auto;
  background-position: 10% 20%, 80% 10%, 40% 60%, 90% 80%, 20% 90%;
  background-repeat: repeat;
  opacity: 0.08;
  filter: grayscale(100%) blur(2px);
  z-index: 0;
  transform: rotate(-5deg);
  animation: bgPan 100s linear infinite;
  pointer-events: none;
}
@keyframes bgPan {
  0% { transform: rotate(-5deg) translateY(0); }
  100% { transform: rotate(-5deg) translateY(-20%); }
}
.wall-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.wall-content h2 {
  font-size: var(--fs-4xl);
  color: #fff;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  margin-bottom: var(--sp-md);
}
.wall-content p {
  color: var(--text-muted);
  font-size: var(--fs-lg);
  font-weight: 500;
  margin-bottom: var(--sp-lg);
}

/* ── ANIMATED REVIEW MARQUEE ── */
.review-marquee-wrapper {
  background: var(--bg-dark);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  display: flex;
}
.review-marquee-wrapper::before,
.review-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 15vw;
  z-index: 2;
  pointer-events: none;
}
.review-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}
.review-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  animation: scrollMarquee 40s linear infinite;
  align-items: center;
  padding: 0 1rem;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee-item {
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  height: 180px; /* Force uniform height for the marquee row */
}
.marquee-item img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  background: #000;
}
.marquee-item:hover {
  opacity: 1;
  transform: scale(1.05);
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1rem)); }
}

/* ── PREMIUM REDESIGNED FOOTER ── */
.site-footer {
  background: #000000;
  color: #fff;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.footer-grid--5 {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}
@media(max-width: 1024px) { .footer-grid--5 { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media(max-width: 600px) { .footer-grid--5 { grid-template-columns: 1fr; gap: 2.5rem; } }

.footer-about .footer-logo {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -2px;
  display: inline-block;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-widget h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer-widget ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-widget ul li {
  margin-bottom: 0.85rem;
}
.footer-widget ul li a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
}
.footer-widget ul li a:hover {
  color: #60a5fa;
  transform: translateX(4px);
}
.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}
