/* ============================================
   TagNexus Analytics — WordPress Theme CSS
   ============================================ */
:root {
  --blue: #003366;
  --blue-dark: #002244;
  --blue-mid: #004488;
  --yellow: #FFD100;
  --yellow-dark: #E6BC00;
  --yellow-dim: rgba(255,209,0,0.15);
  --bg: #FFFFFF;
  --bg2: #F8FAFC;
  --bg3: #F1F5F9;
  --bg4: #E2E8F0;
  --border: rgba(0,51,102,0.08);
  --border-blue: rgba(0,51,102,0.2);
  --text: #003366;
  --text2: #335C85;
  --text3: #94A3B8;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,51,102,0.06);
  --shadow-md: 0 8px 24px rgba(0,51,102,0.08);
  --shadow-lg: 0 20px 48px rgba(0,51,102,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-y: scroll; }
body { background: var(--bg); color: var(--text2); font-family: var(--font-body); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }

/* ── NAV ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 5%; height: 72px; background: rgba(255,255,255,0.97); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 56px; width: auto; }
.site-logo-text { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--blue); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active, .nav-links .current-menu-item > a { color: var(--blue); }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ↓'; font-size: 11px; opacity: 0.5; display: inline-block; margin-left: 3px; }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: -16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; min-width: 260px; box-shadow: var(--shadow-lg); z-index: 200; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; animation: dropIn 0.15s ease; }
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.nav-dropdown-menu a { display: block; padding: 10px 14px; font-size: 13px; color: var(--text2); text-decoration: none; border-radius: var(--radius-sm); transition: all 0.15s; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--bg2); color: var(--blue); }
.nav-cta { background: var(--yellow) !important; color: var(--blue) !important; padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600 !important; transition: all 0.2s !important; }
.nav-cta:hover { background: var(--yellow-dark) !important; transform: translateY(-1px) !important; }

/* HAMBURGER */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--blue); border-radius: 2px; display: block; }
.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 20px 5%; z-index: 999; box-shadow: var(--shadow-lg); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 15px; color: var(--text2); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { color: var(--blue); }
.mobile-nav .mobile-cta { margin-top: 16px; display: inline-block; background: var(--yellow); color: var(--blue); padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; border-bottom: none; }

/* ── PAGE HERO ── */
.page-hero { padding: 148px 5% 90px; background: var(--bg2); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,51,102,0.025) 1px,transparent 1px),linear-gradient(90deg,rgba(0,51,102,0.025) 1px,transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 60% at 50% 50%,black 30%,transparent 80%); }
.page-hero-content { position: relative; z-index: 1; max-width: 760px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text3); margin-bottom: 20px; }
.breadcrumb a { color: var(--text3); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { opacity: 0.4; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(36px,4.2vw,56px); font-weight: 600; line-height: 1.15; letter-spacing: -1.5px; color: var(--blue); margin-bottom: 20px; }
.page-hero h1 .accent, .accent { color: var(--yellow-dark); }
.page-hero p { font-size: 18px; color: var(--text2); font-weight: 300; max-width: 600px; line-height: 1.75; margin-bottom: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hero-tag { font-size: 12px; padding: 5px 12px; border-radius: 100px; background: rgba(0,51,102,0.06); color: var(--blue); font-weight: 500; border: 1px solid rgba(0,51,102,0.14); }

/* ── SECTIONS ── */
.site-content { padding-top: 72px; }
section { padding: 96px 5%; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--yellow-dark); flex-shrink: 0; }
h2 { font-family: var(--font-head); font-size: clamp(30px,3.8vw,50px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.12; margin-bottom: 20px; color: var(--blue); }
h3 { font-family: var(--font-head); }
.section-desc { font-size: 17px; color: var(--text2); max-width: 540px; font-weight: 300; line-height: 1.75; margin-bottom: 56px; }
.bg2 { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bg-blue { background: var(--blue); }
.bg-blue .section-label, .bg-blue .section-label::before { color: rgba(255,209,0,0.8); background: rgba(255,209,0,0.8); }
.bg-blue h2 { color: #fff; }
.bg-blue .section-desc { color: rgba(255,255,255,0.6); }

/* ── BUTTONS ── */
.btn-primary { background: var(--yellow); color: var(--blue); padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font-family: var(--font-body); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,209,0,0.25); color: var(--blue); }
.btn-secondary { background: transparent; color: var(--blue); padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 500; font-size: 15px; text-decoration: none; border: 1.5px solid var(--border-blue); transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-secondary:hover { border-color: var(--blue); background: var(--bg2); transform: translateY(-1px); color: var(--blue); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; padding: 13px 28px; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; text-decoration: none; border: 1px solid rgba(255,255,255,0.2); transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-ghost:hover { background: rgba(255,255,255,0.18); color: #fff; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ── CARDS ── */
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 20px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(auto-fit,minmax(340px,1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; transition: all 0.3s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--blue),var(--blue-mid)); transform: scaleX(0); transition: transform 0.35s; transform-origin: left; }
.card:hover { border-color: rgba(0,51,102,0.18); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: rgba(0,51,102,0.05); border: 1px solid rgba(0,51,102,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.card-icon svg { width: 22px; height: 22px; stroke: var(--blue); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--blue); letter-spacing: -0.3px; }
.card p { font-size: 14px; color: var(--text2); line-height: 1.75; font-weight: 300; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag { font-size: 11px; padding: 4px 10px; border-radius: 100px; background: var(--bg2); color: var(--blue); font-weight: 500; border: 1px solid var(--border-blue); }

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-item { background: #fff; padding: 32px 28px; text-align: center; transition: background 0.2s; }
.stat-item:hover { background: var(--bg2); }
.stat-num { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: var(--blue); letter-spacing: -1.5px; line-height: 1; margin-bottom: 8px; display: block; }
.stat-label { font-size: 13px; color: var(--text2); font-weight: 400; line-height: 1.4; }

/* ── PROOF BAR ── */
.proof-bar { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 5%; }
.proof-bar-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; justify-content: center; }
.proof-bar-label { font-size: 12px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; }
.proof-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.proof-logo { opacity: 0.45; transition: all 0.3s; filter: grayscale(100%); max-height: 32px; width: auto; }
.proof-logo:hover { opacity: 1; filter: none; }
.proof-divider { width: 1px; height: 32px; background: var(--border); }

/* ── CTA BANNER ── */
.cta-banner { background: var(--blue); border-radius: var(--radius-lg); padding: 64px 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -80px; right: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,209,0,0.06); pointer-events: none; }
.cta-banner h2 { color: #fff; margin-bottom: 10px; font-size: clamp(22px,2.8vw,36px); }
.cta-banner p { color: rgba(255,255,255,0.65); font-size: 16px; font-weight: 300; max-width: 480px; line-height: 1.7; }

/* ── ICON LIST ── */
.icon-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.icon-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text2); font-weight: 300; line-height: 1.65; }
.icon-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-dark); flex-shrink: 0; margin-top: 9px; }

/* ── PROBLEM CARDS ── */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }
.problem-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; border-left: 3px solid #E53E3E; transition: all 0.25s; }
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.problem-icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(229,62,62,0.06); border: 1px solid rgba(229,62,62,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.problem-icon svg { width: 18px; height: 18px; stroke: #E53E3E; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.problem-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.problem-card p { font-size: 13px; color: var(--text2); line-height: 1.7; font-weight: 300; }
.problem-card .solution { font-size: 12px; color: #10B981; font-weight: 600; margin-top: 12px; }

/* ── TESTIMONIAL ── */
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; position: relative; transition: all 0.3s; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before { content: '"'; font-family: Georgia,serif; font-size: 80px; color: var(--yellow); line-height: 0.8; position: absolute; top: 28px; left: 36px; opacity: 0.3; }
.testimonial-text { font-size: 16px; color: var(--text2); font-weight: 300; line-height: 1.75; font-style: italic; margin-bottom: 28px; padding-top: 40px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--border-blue); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--blue); flex-shrink: 0; }
.testimonial-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--blue); }
.testimonial-role { font-size: 13px; color: var(--text3); }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars span { color: var(--yellow); font-size: 16px; }

/* ── FAQ ── */
.faq-grid { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; cursor: pointer; transition: all 0.2s; }
.faq-item:hover { border-color: var(--border-blue); }
.faq-item.open { border-color: var(--blue); }
.faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.faq-q h4 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--blue); line-height: 1.4; margin: 0; }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.25s; }
.faq-icon svg { width: 12px; height: 12px; stroke: var(--blue); stroke-width: 2.5; fill: none; stroke-linecap: round; transition: transform 0.25s; }
.faq-item.open .faq-icon { background: var(--blue); border-color: var(--blue); }
.faq-item.open .faq-icon svg { stroke: #fff; transform: rotate(45deg); }
.faq-a { font-size: 14px; color: var(--text2); font-weight: 300; line-height: 1.75; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-a { max-height: 400px; padding-top: 16px; }

/* ── PROCESS ── */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 2px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); overflow: hidden; }
.process-step { padding: 44px 36px; background: var(--blue); transition: background 0.25s; }
.process-step:hover { background: var(--blue-mid); }
.process-step-num { font-family: var(--font-head); font-size: 56px; font-weight: 800; color: rgba(255,255,255,0.07); line-height: 1; margin-bottom: 24px; letter-spacing: -2px; }
.process-step-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(255,209,0,0.12); border: 1px solid rgba(255,209,0,0.25); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.process-step-icon svg { width: 22px; height: 22px; stroke: var(--yellow); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.process-step h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.process-step p { font-size: 13px; color: rgba(255,255,255,0.58); line-height: 1.7; font-weight: 300; }

/* ── FOOTER ── */
.site-footer { background: #020D1A; padding: 72px 5% 0; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { max-width: 300px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; }
.footer-logo img { height: 48px; width: auto; }
.footer-logo-text { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: #fff; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 0; }
.footer-links-wrap { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-head); font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 12px; transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px 0; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.25); margin: 0; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

/* ── WORDPRESS SPECIFIC ── */
.wp-block-image { margin: 0; }
.aligncenter { text-align: center; }
.entry-content h2, .entry-content h3 { margin-bottom: 16px; }
.entry-content p { margin-bottom: 20px; color: var(--text2); font-weight: 300; line-height: 1.75; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero { padding: 120px 5% 60px; }
  section { padding: 64px 5%; }
  .cta-banner { padding: 40px 32px; }
  .footer-links-wrap { gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .proof-bar-inner { gap: 24px; }
  .proof-divider { display: none; }
  .proof-logo { max-height: 26px; }
}
@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .cta-banner { text-align: center; justify-content: center; }
  .footer-top { flex-direction: column; }
}
