/* ============================================
   TagNexus Shared Styles — All Pages
   ============================================ */
: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;
}
*, *::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; overflow-y: scroll; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 5%; height: 70px; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--blue); text-decoration: none; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.nav-logo img { height: 65px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.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 { color: var(--blue); font-weight: 400; }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ↓'; font-size: 11px; opacity: 0.5; display: inline-block; width: 10px; margin-left: 4px; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; padding: 8px; min-width: 240px; box-shadow: 0 10px 30px rgba(0,51,102,0.08); z-index: 200; margin-top: 0px; pointer-events: auto; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 14px; font-size: 13px; color: var(--text2); text-decoration: none; border-radius: 6px; transition: background 0.15s, color 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: 6px; font-weight: 600 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--yellow-dark) !important; }

/* PAGE HERO */
.page-hero { padding: 140px 5% 80px; 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: 720px; }
.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, 54px); font-weight: 600; line-height: 1.2; letter-spacing: -1px; color: var(--blue); margin-bottom: 20px; }
.page-hero h1 .accent { color: var(--yellow-dark); }
.page-hero p { font-size: 18px; color: var(--text2); font-weight: 300; max-width: 580px; line-height: 1.7; margin-bottom: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.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 */
section { padding: 90px 5%; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; opacity: 0.6; }
h2 { font-family: var(--font-head); font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px; color: var(--blue); }
.section-desc { font-size: 17px; color: var(--text2); max-width: 520px; font-weight: 300; line-height: 1.7; 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 { color: rgba(255,255,255,0.45); }
.bg-blue h2 { color: #FFFFFF; }
.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: 6px; font-weight: 600; 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(-1px); }
.btn-secondary { background: transparent; color: var(--text); padding: 14px 32px; border-radius: 6px; font-weight: 400; font-size: 15px; text-decoration: none; border: 1px solid var(--border-blue); transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--bg2); }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* 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: 20px; }
.card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; padding: 36px; transition: all 0.25s; 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.3s; transform-origin: left; }
.card:hover { border-color: var(--border); transform: none; box-shadow: none; }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 48px; height: 48px; border-radius: 10px; 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: 22px; }
.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.7; font-weight: 300; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.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); }

/* CTA BANNER */
.cta-banner { background: var(--blue); border-radius: 16px; padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-banner h2 { color: #FFFFFF; margin-bottom: 10px; font-size: clamp(24px, 3vw, 38px); }
.cta-banner p { color: rgba(255,255,255,0.65); font-size: 16px; font-weight: 300; max-width: 480px; }

/* 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.6; }
.icon-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 9px; }

/* FOOTER */
footer { background: var(--blue); padding: 60px 5% 0; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: #FFFFFF; letter-spacing: -0.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-logo img { height: 65px; width: auto; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.45); max-width: 260px; line-height: 1.6; }
.footer-links-wrap { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-head); font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 10px; 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: 24px 0; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }

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

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .page-hero { padding: 120px 5% 60px; }
  section { padding: 60px 5%; }
  .cta-banner { padding: 40px 30px; }
}
