/* ================================================================
   AI GROWTH ACCELERATOR — MAIN STYLESHEET
   nagpuragency.io | v1.0.0
   ================================================================ */

/* ────────────────────────────────────────────────────────────────
   1. CSS VARIABLES
   ──────────────────────────────────────────────────────────────── */
:root {
    --dark:       #040c1f;
    --blue:       #0055ff;
    --blue-light: #4d9fff;
    --blue-pale:  #eff4ff;
    --text:       #1a202c;
    --text-mid:   #4a5568;
    --text-muted: #8fa8cc;
    --white:      #ffffff;
    --bg-light:   #f8faff;
    --border:     #e8f0fe;
    --green:      #25D366;
    --header-h:   72px;
    --radius:     10px;
    --shadow:     0 4px 24px rgba(0,0,0,0.08);
    --transition: all 0.22s ease;
}

/* ────────────────────────────────────────────────────────────────
   2. RESET & BASE
   ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

h1,h2,h3,h4,h5,h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
}

/* ────────────────────────────────────────────────────────────────
   3. UTILITY
   ──────────────────────────────────────────────────────────────── */
.aga-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hide WordPress page/post title on Elementor pages */
.elementor-page .entry-title,
.elementor-page .page-header,
.aga-page .entry-title,
.wp-block-post-title {
    display: none !important;
}

.elementor-page .entry-content,
.aga-page-content .entry-content,
.aga-page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

.site-main.aga-page-content {
    padding: 0;
}

/* ────────────────────────────────────────────────────────────────
   4. HEADER — DESKTOP
   ──────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--white);
    box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.06);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    gap: 16px;
}

/* Logo */
.site-branding { flex-shrink: 0; }

.site-name-link,
.custom-logo-link { display: flex; align-items: center; }

.site-name {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.4px;
    white-space: nowrap;
}

.custom-logo-link img {
    height: 48px;
    width: auto;
}

/* Navigation wrapper */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

/* Nav list */
.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
}

.nav-menu li { position: relative; }

/* Nav links */
.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    border-radius: 7px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-page-ancestor > a {
    background: var(--blue-pale);
    color: var(--blue);
}

/* Dropdown arrow */
.nav-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 2px;
    opacity: 0.6;
    transition: transform 0.2s;
}
.nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdowns */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    min-width: 210px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    flex-direction: column;
    gap: 2px;
    z-index: 9999;
}

.nav-menu li:hover > .sub-menu { display: flex; }

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu .sub-menu li a:hover {
    background: var(--blue-pale);
    color: var(--blue);
}

/* CTA Buttons in Nav */
.header-cta-call,
.header-cta-wa { margin-left: 6px !important; }

.header-cta-call > a,
.nav-menu li.header-cta-call > a {
    background: var(--dark) !important;
    color: var(--white) !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: var(--transition) !important;
}
.header-cta-call > a:hover {
    background: #1a2a4a !important;
    transform: translateY(-1px);
}

.header-cta-wa > a,
.nav-menu li.header-cta-wa > a {
    background: var(--green) !important;
    color: var(--white) !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: var(--transition) !important;
}
.header-cta-wa > a:hover {
    background: #1da851 !important;
    transform: translateY(-1px);
}

/* Never show dropdown arrow on CTA buttons */
.header-cta-call > a::after,
.header-cta-wa > a::after { display: none !important; }

/* Mobile toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    transition: var(--transition);
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
    width: 100%;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ────────────────────────────────────────────────────────────────
   5. MOBILE NAV DRAWER
   ──────────────────────────────────────────────────────────────── */
.mobile-nav {
    position: fixed;
    top: var(--header-h);
    right: -100%;
    width: min(320px, 88vw);
    height: calc(100vh - var(--header-h));
    background: var(--white);
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
    overflow-y: auto;
    z-index: 9998;
    transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
    padding-bottom: 32px;
}

.mobile-nav.open { right: 0; }

.mobile-nav-inner { padding: 16px 0; }

/* Mobile menu items */
.mobile-nav-menu li a {
    display: block;
    padding: 13px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid #f3f4f6;
    transition: var(--transition);
}
.mobile-nav-menu li a:hover,
.mobile-nav-menu li.current-menu-item > a {
    color: var(--blue);
    background: var(--blue-pale);
}

/* Mobile sub-menus — always visible, indented */
.mobile-nav-menu .sub-menu {
    display: block !important;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: var(--bg-light);
}
.mobile-nav-menu .sub-menu li a {
    padding-left: 40px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
}

/* Mobile CTA buttons */
.mobile-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px 0;
}
.mobile-btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--dark);
    color: var(--white) !important;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}
.mobile-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--green);
    color: var(--white) !important;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}

/* Overlay behind mobile nav */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9990;
    backdrop-filter: blur(2px);
}
.nav-overlay.active { display: block; }

/* ────────────────────────────────────────────────────────────────
   6. FLOATING WHATSAPP BUTTON
   ──────────────────────────────────────────────────────────────── */
.floating-wa {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: var(--transition);
}
.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37,211,102,0.65);
}
.floating-wa svg { fill: var(--white); }

/* ────────────────────────────────────────────────────────────────
   7. FOOTER
   ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: var(--text-muted);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 32px 48px;
}

/* Brand */
.footer-site-name {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
}
.footer-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }

.footer-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 280px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-contact-item:hover { color: var(--blue-light); }
.fc-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Footer columns */
.footer-col-title {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
    display: block;
}
.footer-col ul li a:hover { color: var(--blue-light); }

/* Footer bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 32px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-copy {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #4a5568;
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #4a5568;
    transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--blue-light); }

/* ────────────────────────────────────────────────────────────────
   8. BLOG POST STYLES
   ──────────────────────────────────────────────────────────────── */
.aga-single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 24px;
}
.post-meta {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}
.post-meta a { color: var(--blue); }
.aga-single-post .entry-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 32px;
    display: block !important;
}
.post-thumbnail {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}
.aga-single-post .entry-content h2 {
    font-size: 24px;
    margin: 36px 0 16px;
}
.aga-single-post .entry-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 20px;
}
.aga-single-post .entry-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 20px;
}
.aga-single-post .entry-content ul li {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--text-mid);
    margin-bottom: 8px;
}

/* ────────────────────────────────────────────────────────────────
   9. ELEMENTOR OVERRIDES
   ──────────────────────────────────────────────────────────────── */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

/* Remove default top padding WP adds */
.elementor-page .site-main,
.elementor-page #content,
.elementor-page #primary {
    padding: 0 !important;
    margin: 0 !important;
}

/* ────────────────────────────────────────────────────────────────
   10. SCROLLBAR
   ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ────────────────────────────────────────────────────────────────
   11. RESPONSIVE — TABLET (max 1024px)
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

    .header-inner { padding: 0 20px; gap: 8px; }

    .nav-menu > li > a { padding: 7px 9px; font-size: 13px; }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        padding: 48px 24px 36px;
    }
}

/* ────────────────────────────────────────────────────────────────
   12. RESPONSIVE — MOBILE (max 768px)
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    :root { --header-h: 60px; }

    /* Header */
    .header-inner { padding: 0 16px; }

    /* Hide desktop nav */
    .main-navigation { display: none !important; }

    /* Show hamburger */
    .nav-toggle { display: flex !important; }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px 28px;
    }

    .footer-tagline { max-width: 100%; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
        gap: 8px;
    }

    /* Floating WA */
    .floating-wa {
        bottom: 20px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .floating-wa svg { width: 24px; height: 24px; }
}

/* ────────────────────────────────────────────────────────────────
   13. RESPONSIVE — SMALL MOBILE (max 480px)
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {

    .site-name { font-size: 17px; }

    .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

    .mobile-nav { width: 100%; }
}
