/*
Theme Name: AIToolsChecked
Theme URI: https://aitoolschecked.com
Description: A premium, dark-mode, SEO-friendly, mobile-friendly custom WordPress theme for AI Tools Reviews, comparisons, and prompts.
Version: 1.1.0
Author: Antigravity
Author URI: https://aitoolschecked.com
Text Domain: aitoolschecked
*/

:root {
  --blue:       #1A6FD4;
  --blue-dark:  #0D4E9E;
  --blue-light: #3B8EE8;
  --green:      #2DB84B;
  --green-dark: #1E8F38;
  --navy:       #0A1628;
  --navy-mid:   #0F2040;
  --slate:      #1C2E4A;
  --text-main:  #E8EEF8;
  --text-muted: #8FA8C8;
  --text-dim:   #4D6A8A;
  --card-bg:    #0D1E33;
  --card-border:#1A2E4A;
  --glow-blue:  rgba(26,111,212,0.18);
  --glow-green: rgba(45,184,75,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── GRID DOTS BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(26,111,212,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(45,184,75,0.06) 0%, transparent 50%),
    radial-gradient(#1A2E4A 1px, transparent 1px);
  background-size: auto, auto, 32px 32px;
  pointer-events: none;
  z-index: 0;
}

* { position: relative; z-index: 1; }

/* ── NAVBAR ── */
/* Base nav styles moved to #site-nav in the responsive section below.
   This stub keeps old browsers happy. */
#site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 101; /* Ensure logo stays clickable above other nav elements */
}

/* Ensure the custom logo from WordPress doesn't bring its own margin/padding */
.nav-logo .custom-logo-link {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.logo-image-wrapper {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: #fff;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.logo-text span.ai  { color: var(--blue-light); }
.logo-text span.tools { color: var(--text-main); }
.logo-text span.chk  { color: var(--green); }
.logo-text span.com  { color: var(--text-dim); font-weight: 500; font-size: 13px; }

/* Standard WP Navigation Styling */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
  display: block;
}
.nav-links li a:hover { color: var(--text-main); }

/* ── DESKTOP SUB-MENU (Grid Style) ── */
@media (min-width: 1025px) {
  .nav-links ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    min-width: 400px;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 102;
  }
  
  .nav-links li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-links ul.sub-menu li a {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
  }

  .nav-links ul.sub-menu li a:hover {
    background: rgba(26,111,212,0.1);
    color: var(--blue-light);
  }
}

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.1);
  transition: opacity .2s !important;
  text-decoration: none;
}
.nav-cta:hover { opacity: 0.88; }

/* ── HERO ── */
.hero {
  padding: 90px 5% 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(26,111,212,0.12);
  border: 1px solid rgba(26,111,212,0.3);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: default;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.5px;
  max-width: 820px;
}

.hero h1 .highlight-blue { color: var(--blue-light); }
.hero h1 .highlight-green { color: var(--green); }

/* Signature element: scan-line underline on "Checked" */
.hero h1 .checked-word {
  position: relative;
  display: inline-block;
}
.hero h1 .checked-word::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue-light));
  border-radius: 2px;
  animation: scanline 2.5s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scanline {
  0%   { transform: scaleX(0); opacity: 0; }
  30%  { transform: scaleX(1); opacity: 1; }
  70%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; transform-origin: right; }
}

.hero p.sub {
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 560px;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   PREMIUM ANIMATIONS
══════════════════════════════════════ */

/* Floating ambient orbs behind hero */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
}
.hero::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,111,212,0.14) 0%, transparent 70%);
  top: -150px;
  left: -120px;
  animation: floatOrb1 9s ease-in-out infinite;
}
.hero::after {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(45,184,75,0.10) 0%, transparent 70%);
  bottom: -60px;
  right: -80px;
  animation: floatOrb2 12s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(50px,-40px) scale(1.1); }
  66%     { transform: translate(-25px,25px) scale(0.93); }
}
@keyframes floatOrb2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-40px,-50px) scale(1.12); }
}

/* Core keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes floatBadge {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-6px); }
}
@keyframes shimmerBg {
  0%   { background-position: -300% center; }
  100% { background-position: 300% center; }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(26,111,212,0); }
  50%     { box-shadow: 0 0 24px 4px rgba(26,111,212,0.22); }
}

/* ── Hero element entrance — staggered ── */
.hero .hero-badge  {
  animation:
    fadeInDown 0.65s cubic-bezier(.22,1,.36,1) both 0.1s,
    floatBadge 4s ease-in-out infinite 1.2s;
}
.hero h1           { animation: fadeInUp 0.8s  cubic-bezier(.22,1,.36,1) both 0.28s; }
.hero p.sub        { animation: fadeInUp 0.8s  cubic-bezier(.22,1,.36,1) both 0.44s; }
.hero .search-wrap { animation: fadeInUp 0.8s  cubic-bezier(.22,1,.36,1) both 0.58s; }
.hero .hero-stats  { animation: fadeInUp 0.8s  cubic-bezier(.22,1,.36,1) both 0.72s; }

/* Badge shimmer on hover */
.hero-badge:hover {
  background: linear-gradient(
    90deg,
    rgba(26,111,212,0.08) 0%,
    rgba(59,142,232,0.28) 40%,
    rgba(45,184,75,0.18) 60%,
    rgba(26,111,212,0.08) 100%
  );
  background-size: 300% auto;
  animation: floatBadge 4s ease-in-out infinite,
             shimmerBg 2s linear infinite;
  border-color: rgba(59,142,232,0.55);
  transition: border-color 0.3s;
}

/* Search bar glow on focus */
.search-bar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.15), 0 4px 24px rgba(26,111,212,0.12);
  animation: glowPulse 2s ease-in-out infinite;
}

/* Stats count-up feel */
.stat .num {
  animation: scaleIn 0.6s cubic-bezier(.22,1,.36,1) both;
}
.hero-stats .stat:nth-child(1) .num { animation-delay: 0.8s; }
.hero-stats .stat:nth-child(2) .num { animation-delay: 0.95s; }
.hero-stats .stat:nth-child(3) .num { animation-delay: 1.1s; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1),
              transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered card reveals */
.cards-grid .tool-card:nth-child(1) { transition-delay: 0.04s; }
.cards-grid .tool-card:nth-child(2) { transition-delay: 0.11s; }
.cards-grid .tool-card:nth-child(3) { transition-delay: 0.18s; }
.cards-grid .tool-card:nth-child(4) { transition-delay: 0.25s; }
.cards-grid .tool-card:nth-child(5) { transition-delay: 0.32s; }
.cards-grid .tool-card:nth-child(6) { transition-delay: 0.39s; }

/* How-grid stagger */
.how-grid .how-card:nth-child(1) { transition-delay: 0.04s; }
.how-grid .how-card:nth-child(2) { transition-delay: 0.14s; }
.how-grid .how-card:nth-child(3) { transition-delay: 0.24s; }
.how-grid .how-card:nth-child(4) { transition-delay: 0.34s; }

/* Category pill stagger */
.categories .cat-pill:nth-child(1) { transition-delay: 0.04s; }
.categories .cat-pill:nth-child(2) { transition-delay: 0.10s; }
.categories .cat-pill:nth-child(3) { transition-delay: 0.16s; }
.categories .cat-pill:nth-child(4) { transition-delay: 0.22s; }
.categories .cat-pill:nth-child(5) { transition-delay: 0.28s; }
.categories .cat-pill:nth-child(6) { transition-delay: 0.34s; }

/* ── ENHANCED CARD HOVER ── */

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(26,111,212,0.35);
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26,111,212,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--card-border);
  transition: border-color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--blue);
  background: rgba(26,111,212,0.08);
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.stat {
  text-align: center;
}
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}
.stat .num span { color: var(--green); }
.stat .lbl {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── SEARCH BAR ── */
.search-wrap {
  width: 100%;
  max-width: 580px;
}

.search-bar {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.15);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  color: var(--text-main);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.search-bar input::placeholder { color: var(--text-dim); }

.search-bar button {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border: none;
  color: #fff;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity .2s;
}
.search-bar button:hover { opacity: 0.88; }

/* ── SECTION WRAPPER ── */
.section {
  padding: 72px 5%;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue-light);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 40px;
  max-width: 520px;
}

/* ── CATEGORY PILLS ── */
.categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  text-decoration: none;
  transition: all .2s;
}
.cat-pill:hover, .cat-pill.active {
  background: rgba(26,111,212,0.12);
  border-color: var(--blue);
  color: var(--text-main);
}
.cat-pill .cat-icon { font-size: 15px; }

/* ── TOOL CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color .25s, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform-style: preserve-3d;
  will-change: transform;
}
.tool-card:hover {
  border-color: rgba(26,111,212,0.6);
  box-shadow: 0 8px 32px rgba(26,111,212,0.18), 0 0 0 1px rgba(26,111,212,0.12);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.card-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 100px;
}
.badge-green  { background: rgba(45,184,75,0.15);  color: var(--green); border: 1px solid rgba(45,184,75,0.25); }
.badge-blue   { background: rgba(26,111,212,0.15); color: var(--blue-light); border: 1px solid rgba(26,111,212,0.25); }
.badge-orange { background: rgba(255,150,50,0.12); color: #FF9A3C; border: 1px solid rgba(255,150,50,0.25); }
.badge-purple { background: rgba(140,80,220,0.12); color: #B07EEA; border: 1px solid rgba(140,80,220,0.2); }

.tool-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.tool-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}

.stars {
  display: flex;
  gap: 2px;
  align-items: center;
}
.star { color: #F5A623; font-size: 13px; }
.stars .score {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-left: 5px;
}

.read-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.tool-card:hover .read-btn { gap: 7px; }

/* ── COMPARISON TABLE ── */
.comp-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow-x: auto;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
}

.comp-table thead tr {
  background: rgba(26,111,212,0.08);
  border-bottom: 1px solid var(--card-border);
}

.comp-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

.comp-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
}

.comp-table tbody tr:last-child td { border-bottom: none; }

.comp-table tbody tr:hover { background: rgba(26,111,212,0.05); }

.tool-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-label .mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.tool-label .tname {
  font-weight: 600;
  font-size: 14px;
}

.check { color: var(--green); font-size: 16px; }
.cross { color: #E74C4C; font-size: 16px; }
.partial { color: #F5A623; font-size: 16px; }

.winner-row td { background: rgba(45,184,75,0.05); }

/* ── HOW IT WORKS ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.how-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px;
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: rgba(26,111,212,0.18);
  line-height: 1;
  margin-bottom: 12px;
}

.how-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.how-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── NEWSLETTER ── */
.newsletter {
  background: linear-gradient(135deg, var(--navy-mid), rgba(26,111,212,0.12));
  border: 1px solid rgba(26,111,212,0.2);
  border-radius: 20px;
  padding: 56px 5%;
  text-align: center;
  margin: 0 5% 72px;
}

.newsletter h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.newsletter p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.nl-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.nl-form input {
  flex: 1;
  min-width: 220px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 13px 18px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s;
}
.nl-form input:focus { border-color: var(--blue); }
.nl-form input::placeholder { color: var(--text-dim); }

.nl-form button {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 20px rgba(45,184,75,0.3);
  transition: opacity .2s;
}
.nl-form button:hover { opacity: 0.88; }

/* ── FOOTER ── */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--card-border);
  padding: 48px 5% 28px;
}

.footer-top {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text-main); }

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

.footer-bottom p {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-bottom a { color: var(--blue-light); text-decoration: none; }

/* ── SINGLE ARTICLE/REVIEW PAGE ── */
.article-container {
  max-width: 1000px;
  margin: 40px auto 80px;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* Sidebar Toggle Logic */
body.sidebar-hidden-global .article-sidebar { display: none !important; }
body.sidebar-hidden-global .article-container { grid-template-columns: 1fr !important; }

@media (min-width: 1025px) {
  body.sidebar-hidden-pc .article-sidebar { display: none !important; }
  body.sidebar-hidden-pc .article-container { grid-template-columns: 1fr !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body.sidebar-hidden-tablet .article-sidebar { display: none !important; }
  body.sidebar-hidden-tablet .article-container { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  body.sidebar-hidden-mobile .article-sidebar { display: none !important; }
  body.sidebar-hidden-mobile .article-container { grid-template-columns: 1fr !important; }
}

.article-main {
  min-width: 0; /* prevent grid blowouts */
}

.article-header {
  margin-bottom: 30px;
}

.article-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-content {
  font-size: 16px;
  line-height: 1.7;
}

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

.article-content h2, .article-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 35px 0 15px;
  color: var(--text-main);
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget-review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-rating {
  text-align: center;
  background: rgba(26,111,212,0.08);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
}

.sidebar-rating .score-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.sidebar-rating .score-max {
  font-size: 16px;
  color: var(--text-muted);
}

.sidebar-rating .stars-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  color: #F5A623;
  font-size: 18px;
}

.sidebar-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 8px;
}

.sidebar-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-meta-item .lbl {
  color: var(--text-muted);
}

.sidebar-meta-item .val {
  font-weight: 600;
  color: var(--text-main);
}

/* ─────────────────────────────────────────────
   RESPONSIVE & MOBILE
───────────────────────────────────────────── */
@media (max-width: 860px) {
  .article-container {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    order: -1;
  }
}

/* ── HAMBURGER BUTTON ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}
.hamburger:hover {
  border-color: var(--blue);
  background: rgba(26,111,212,0.08);
}
.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform .3s, opacity .2s, width .2s;
  transform-origin: center;
}
/* Animated X when open */
.hamburger.is-active .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger-bar:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-active .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* nav layout for mobile */
#primary-nav {
  display: flex;
  align-items: center;
}

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

  #primary-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    padding: 0 5%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .35s ease, padding .25s ease, opacity .25s ease, visibility .35s ease;
    z-index: 99;
  }
  #primary-nav.nav-open {
    max-height: 1000px;
    padding: 16px 5% 24px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }
  #primary-nav .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  #primary-nav .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--card-border);
  }
  #primary-nav .nav-links li:last-child { border-bottom: none; }
  #primary-nav .nav-links li a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    color: var(--text-muted);
  }
  #primary-nav .nav-links li a:hover { color: var(--text-main); }
  
  /* Mobile Sub-menu (List Style) */
  #primary-nav .nav-links ul.sub-menu {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 10px;
    border-left: 2px solid var(--card-border);
    display: none; /* hidden by default */
  }
  #primary-nav .nav-links ul.sub-menu.submenu-open {
    display: block;
  }
  #primary-nav .nav-links ul.sub-menu li {
    border-bottom: none;
  }
  #primary-nav .nav-links ul.sub-menu li a {
    padding: 10px 0;
    font-size: 14px;
  }

  #primary-nav .nav-links .nav-cta {
    margin-top: 12px;
    display: inline-flex;
    padding: 10px 20px;
  }
}

@media (max-width: 640px) {
  .hero { padding: 60px 5% 60px; }
  .hero-stats { gap: 24px; }
  .hero h1 { letter-spacing: -0.5px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .comp-table th:nth-child(n+4),
  .comp-table td:nth-child(n+4) { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .nl-form input, .nl-form button { width: 100%; min-width: 0; }
}

/* ─────────────────────────────────────────────
   SKIP LINK (Accessibility)
───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  z-index: 9999;
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top .1s, left .1s;
}
.skip-link:focus {
  top: 0;
  left: 0;
}

/* ─────────────────────────────────────────────
   BREADCRUMBS
───────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.breadcrumbs a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumbs a:hover { color: var(--blue-light); }
.bc-sep {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1;
}
.bc-current {
  color: var(--text-muted);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────
   WP PAGINATION
───────────────────────────────────────────── */
.wp-pagination,
.navigation.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
/* Override nav-links for pagination context only */
.navigation.pagination .nav-links {
  list-style: none;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: all .2s;
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--text-dim);
}

/* ─────────────────────────────────────────────
   404 & SEARCH EMPTY STATE
───────────────────────────────────────────── */
.not-found-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.not-found-box .nf-emoji {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
}
.not-found-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}
.not-found-box p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   COMMENTS
───────────────────────────────────────────── */
.comments-area {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--card-border);
}
.comments-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text-main);
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.comment-list ol { /* Nested replies */
  list-style: none;
  margin-top: 16px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-body {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: border-color .2s;
}
.comment-body:hover { border-color: rgba(26,111,212,0.35); }
.comment-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--card-border);
  flex-shrink: 0;
}
.comment-content-wrap { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.comment-author a, .comment-author b {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
}
.comment-date a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
}
.comment-date a:hover { color: var(--text-muted); }
.comment-text p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 8px; }
.comment-reply a {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-light);
  text-decoration: none;
  margin-top: 8px;
  display: inline-block;
  transition: color .2s;
}
.comment-reply a:hover { color: var(--text-main); }
.comment-awaiting-moderation {
  font-size: 12px;
  color: #F5A623;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 8px;
  display: inline-block;
}
/* Comment Reply Title */
.comment-reply-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}
/* WP Comment Form */
.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-form label { font-size: 13px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.12);
}
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-dim); }
.comment-form textarea { min-height: 130px; }
.comment-form .form-submit { margin-top: 4px; }
.comment-form .btn-primary {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}
.comment-notes { font-size: 13px; color: var(--text-dim); }
.comment-navigation {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.comment-navigation a { color: var(--blue-light); text-decoration: none; }
.no-comments {
  font-size: 14px;
  color: var(--text-dim);
  padding: 20px 0;
}

/* ─────────────────────────────────────────────
   FOOTER SOCIAL LINKS
───────────────────────────────────────────── */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-link {
  width: 32px;
  height: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  background: rgba(26,111,212,0.08);
}
.footer-logo-link { text-decoration: none; }

/* ─────────────────────────────────────────────
   ARTICLE CONTENT STYLING (post body)
───────────────────────────────────────────── */
.article-content a {
  color: var(--blue-light);
  text-decoration: underline;
  text-decoration-color: rgba(59,142,232,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s, color .2s;
}
.article-content a:hover {
  color: var(--text-main);
  text-decoration-color: var(--blue-light);
}
.article-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(26,111,212,0.06);
  border-radius: 0 10px 10px 0;
  color: var(--text-muted);
  font-style: italic;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  margin: 20px 0;
}
.article-content code {
  background: rgba(26,111,212,0.1);
  border: 1px solid rgba(26,111,212,0.2);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 13px;
  color: var(--blue-light);
  font-family: monospace;
}
.article-content pre {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.article-content table th {
  background: rgba(26,111,212,0.08);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-align: left;
}
.article-content table td {
  padding: 12px 16px;
  font-size: 14px;
  border-top: 1px solid var(--card-border);
  color: var(--text-main);
}
.article-content hr {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 36px 0;
}
.article-content li { margin-bottom: 6px; color: var(--text-muted); }
.article-content li::marker { color: var(--blue-light); }

/* ─────────────────────────────────────────────
   WP SEARCH FORM
───────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.12);
}
.search-form .search-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  color: var(--text-main);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.search-form .search-field::placeholder { color: var(--text-dim); }
.search-form .search-submit {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border: none;
  color: #fff;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity .2s;
}
.search-form .search-submit:hover { opacity: 0.88; }

/* ─────────────────────────────────────────────
   SCREEN READER ONLY (accessibility utility)
───────────────────────────────────────────── */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ─────────────────────────────────────────────
   FOCUS STYLES (keyboard nav)
───────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────
   CARD HOVER ANIMATION POLISH
───────────────────────────────────────────── */
.tool-card {
  will-change: transform;
  backface-visibility: hidden;
}
.how-card {
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.how-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,111,212,0.12);
}

/* ─────────────────────────────────────────────
   WP CORE ALIGNMENT CLASSES
───────────────────────────────────────────── */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 20px auto; text-align: center; }
.alignwide  { margin-left: -5%; margin-right: -5%; max-width: 110%; }
.alignfull  { margin-left: -5%; margin-right: -5%; max-width: 110%; }
@media (max-width: 640px) {
  .alignleft, .alignright { float: none; margin: 0 0 16px; }
  .alignwide, .alignfull  { margin-left: 0; margin-right: 0; max-width: 100%; }
}

/* ─────────────────────────────────────────────
   CUSTOM LOGO RESIZING (Issue #2 fix)
───────────────────────────────────────────── */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.custom-logo {
  max-height: 50px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}
@media (max-width: 768px) {
  .custom-logo {
    max-height: 40px !important;
  }
}

/* ─────────────────────────────────────────────
   GLOBAL HEADING STYLES & COLORS (Issue #5 fix)
───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.25em;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.25rem; letter-spacing: -0.03em; }
h2 { font-size: 1.85rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ─────────────────────────────────────────────
   GLOBAL BUTTON STYLES & COLORS (Issue #4 fix)
───────────────────────────────────────────── */
button,
.button,
.wp-block-button__link,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(26,111,212,0.25);
  transition: transform .2s, box-shadow .2s, opacity .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,111,212,0.35);
  opacity: 0.95;
}
button:active,
.button:active,
.wp-block-button__link:active,
input[type="submit"]:active {
  transform: translateY(0);
}

/* Hide stray text/content injected by plugins via wp_body_open before nav */
body > *:not(#wpadminbar):not(#site-nav):not(main):not(footer):not(.skip-link):not(script):not(noscript):not(style):first-of-type {
  display: none !important;
}

/* Ensure WordPress admin bar spacing is respected */
body.admin-bar #site-nav {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar #site-nav {
    top: 46px !important;
  }
}

/* Fix mobile dropdown nav position when admin bar is present */
@media screen and (max-width: 782px) {
  body.admin-bar #primary-nav {
    top: calc(70px + 46px) !important;
  }
}
@media screen and (min-width: 783px) and (max-width: 1024px) {
  body.admin-bar #primary-nav {
    top: calc(70px + 32px) !important;
  }
}

/* Fix tablet nav (769px - 1024px): hide desktop links, show hamburger */
@media (min-width: 769px) and (max-width: 1024px) {
  .hamburger { display: flex !important; }

  #primary-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    padding: 0 5%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .35s ease, padding .25s ease, opacity .25s ease, visibility .35s ease;
    z-index: 99;
  }

  #primary-nav.nav-open {
    max-height: 1000px;
    padding: 16px 5% 24px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }

  #primary-nav .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  #primary-nav .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--card-border);
  }

  #primary-nav .nav-links li:last-child { border-bottom: none; }

  #primary-nav .nav-links li a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    color: var(--text-muted);
  }

  #primary-nav .nav-links li a:hover { color: var(--text-main); }

  /* Tablet Sub-menu (List Style) */
  #primary-nav .nav-links ul.sub-menu {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 10px;
    border-left: 2px solid var(--card-border);
    display: none; /* hidden by default */
  }
  #primary-nav .nav-links ul.sub-menu.submenu-open {
    display: block;
  }
  #primary-nav .nav-links ul.sub-menu li {
    border-bottom: none;
  }
  #primary-nav .nav-links ul.sub-menu li a {
    padding: 10px 0;
    font-size: 14px;
  }

  #primary-nav .nav-links .nav-cta {
    margin-top: 12px;
    display: inline-flex;
    padding: 10px 20px;
  }
}


