/* ==========================================
   VIREON INSIGHTS — GLOBAL STYLESHEET
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ------------------------------------------
   1. DESIGN TOKENS
------------------------------------------ */
:root {
    --bg-white: #FFFFFF;
    --bg-gray: #F8FAFC;
    --bg-nav: #E2E8F0;
    --bg-pill: #CBD5E1;

    --navy-900: #0F172A;
    --navy-dark: #0F172A;
    --navy-800: #1E293B;

    --text-dark: #0F172A;
    --text-gray: #475569;
    --text-muted: #64748B;
    --text-light: #F8FAFC;

    --accent-yellow: #FBBF24;
    --accent-yellow-hover: #D97706;
    --icon-bg: #FEF3C7;

    --border-light: #E2E8F0;
    --border-soft: #EEF2F7;

    --font-sans: 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.10);
    --shadow-yellow: 0 6px 18px rgba(251, 191, 36, 0.28);
}

/* ------------------------------------------
   2. RESET
------------------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-white);
    color: var(--text-gray);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: 0.3s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ------------------------------------------
   3. ANIMATIONS
------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: 0.8s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

@keyframes pulseChart { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.25); } }
@keyframes spinGear   { to { transform: rotate(180deg); } }
@keyframes floatDoc   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.icon-chart { animation: pulseChart 2.4s ease-in-out infinite; transform-origin: bottom; }
.icon-gear  { animation: spinGear 6s linear infinite; transform-origin: center; }
.icon-doc   { animation: floatDoc 2.8s ease-in-out infinite; }

/* ------------------------------------------
   4. BUTTONS
------------------------------------------ */
.btn-yellow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--accent-yellow); color: var(--navy-dark);
    padding: 0.85rem 1.8rem; border-radius: 8px;
    font-weight: 600; font-size: 1rem;
    transition: 0.3s var(--ease); cursor: pointer; border: none;
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: var(--shadow-yellow); }
.btn-yellow svg, .arrow-icon { transition: transform 0.3s var(--ease); }
.btn-yellow:hover svg,
.btn-hover-effect:hover .arrow-icon { transform: translateX(4px); }

/* ------------------------------------------
   5. NAVIGATION (image logo + tagline BELOW)
------------------------------------------ */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--bg-nav);
    z-index: 1000;
    height: 90px;
    display: flex; align-items: center;
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
nav.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }

.nav-container {
    width: 100%; max-width: 1200px; margin: 0 auto;
    padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

/* ⭐ LOGO BLOCK — image on top, tagline FORCED below */
.logo {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center;
    gap: 4px;
    line-height: 1;
    transition: 0.3s var(--ease);
    text-decoration: none;
}
.logo:hover { transform: translateY(-1px); }
.logo-img {
    height: 38px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.logo-tagline {
    display: block;
    width: 100%;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

/* Pill-style nav links */
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links > a,
.dropdown > a {
    font-weight: 500; color: var(--navy-dark); font-size: 1rem;
    padding: 0.55rem 1.15rem; border-radius: 10px;
    transition: 0.25s var(--ease);
    display: inline-flex; align-items: center; gap: 0.3rem;
    position: relative;
}
.nav-links > a:hover,
.dropdown > a:hover { background: rgba(255, 255, 255, 0.6); }
.nav-links > a.active,
.dropdown.active > a {
    background: var(--bg-pill);
    color: var(--accent-yellow-hover);
    font-weight: 600;
}
.dropdown > a svg { transition: transform 0.3s var(--ease); }
.dropdown:hover > a svg { transform: rotate(180deg); }

/* Dropdown menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    position: absolute; top: calc(100% + 8px); left: 0;
    background-color: var(--bg-white);
    min-width: 260px;
    box-shadow: var(--shadow-md);
    border-radius: 14px;
    padding: 0.5rem 0;
    z-index: 1;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    border: 1px solid var(--border-soft);
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-content a {
    padding: 0.85rem 1.4rem;
    color: var(--navy-dark);
    font-size: 0.95rem; font-weight: 500;
    transition: 0.2s var(--ease);
    border-left: 2px solid transparent;
}
.dropdown-content a:hover {
    background-color: var(--bg-gray);
    color: var(--accent-yellow-hover);
    border-left-color: var(--accent-yellow);
    padding-left: 1.6rem;
}

/* Nav Book-a-Call button */
.btn-nav {
    background: var(--accent-yellow); color: var(--navy-dark);
    padding: 0.7rem 1.4rem; border-radius: 8px;
    font-weight: 600; font-size: 0.95rem;
    transition: 0.3s var(--ease); margin-left: 1rem;
}
.btn-nav:hover { background: var(--accent-yellow-hover); color: white; transform: translateY(-2px); box-shadow: var(--shadow-yellow); }

/* ------------------------------------------
   6. HAMBURGER + MOBILE MENU
------------------------------------------ */
.hamburger {
    display: none;
    width: 36px; height: 36px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    background: transparent; border: none; cursor: pointer;
    z-index: 1100;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--navy-dark); border-radius: 2px;
    transition: 0.3s var(--ease); transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed; top: 90px; left: 0; right: 0; bottom: 0;
    background: var(--bg-white);
    padding: 2rem;
    display: flex; flex-direction: column; gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 999;
    overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu > a,
.mobile-menu .m-group > a {
    font-size: 1.1rem; font-weight: 600;
    color: var(--navy-dark);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    display: block;
}
.mobile-menu > a.active,
.mobile-menu .m-group > a.active { color: var(--accent-yellow-hover); }
.mobile-menu .m-sub { padding-left: 1rem; }
.mobile-menu .m-sub a {
    display: block; padding: 0.7rem 0;
    color: var(--text-gray); font-size: 0.95rem; font-weight: 500;
}
.mobile-menu .m-sub a:hover { color: var(--accent-yellow-hover); }
.mobile-menu .mobile-cta {
    background: var(--accent-yellow); color: var(--navy-dark);
    border-radius: 8px; padding: 1rem; text-align: center;
    margin-top: 1.5rem; border-bottom: none; font-weight: 600;
}
body.menu-open { overflow: hidden; }

/* ------------------------------------------
   7. UTILITIES
------------------------------------------ */
.eyebrow {
    font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent-yellow-hover);
    margin-bottom: 0.75rem; display: block;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800; color: var(--navy-dark);
    line-height: 1.15; letter-spacing: -0.02em;
}
.section-sub {
    font-size: 1.1rem; color: var(--text-gray);
    max-width: 700px; margin-top: 1rem;
}

/* ------------------------------------------
   8. FOOTER (image logo + tagline below)
------------------------------------------ */
footer {
    background: var(--navy-dark); color: white;
    padding: 5rem 0 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem; margin-bottom: 4rem;
}

.footer-brand .logo { margin-bottom: 1.25rem; }
.footer-brand .logo-img {
    height: 44px;
}
.footer-brand .logo-tagline {
    color: var(--accent-yellow);
    font-weight: 600;
    margin-top: 6px;
}
.footer-brand p {
    color: #94A3B8; font-size: 0.9rem; line-height: 1.6; max-width: 280px;
}

.footer-heading {
    font-size: 1rem; font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 1.25rem;
    position: relative; padding-bottom: 0.5rem;
}
.footer-heading::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 24px; height: 2px; background: var(--accent-yellow);
    border-radius: 2px;
}

.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 0.75rem; }
.footer-links-list a {
    color: #CBD5E1; font-size: 0.9rem;
    position: relative; padding-left: 0;
    transition: padding 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-links-list a:hover { color: white; padding-left: 0.5rem; }
.footer-links-list a:hover::before {
    content: '›'; position: absolute; left: 0; color: var(--accent-yellow);
}

.contact-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    color: #CBD5E1; margin-bottom: 1.1rem; font-size: 0.9rem;
}
.contact-item svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; margin-top: 0.15rem; }
.contact-item a { color: #CBD5E1; }
.contact-item a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center;
    color: #64748B; font-size: 0.85rem;
}
.footer-bottom a { color: #64748B; }
.footer-bottom a:hover { color: white; }

/* ------------------------------------------
   9. RESPONSIVE
------------------------------------------ */
@media (max-width: 900px) {
    .nav-links, .btn-nav { display: none; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }
    nav { height: 76px; }
    .mobile-menu { top: 76px; }
    .logo-img { height: 30px; }
    .logo-tagline { font-size: 0.55rem; }
}