/* ============================================================
   common.css — Agarwal Mayank & Company
   Shared styles: navbar, footer, WA float, popup, article content
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: #333; background: #f5f7fa; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 10px 50px;
}
.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.ca-logo { height: 70px; width: auto; }
.navbar-text { display: flex; flex-direction: column; }
.navbar-logo { font-size: 1.3rem; font-weight: 700; color: #1B3A4B; line-height: 1.2; }
.navbar-logo span { color: #1ABCAA; }
.navbar-subtitle { font-size: 0.75rem; color: #666; font-weight: 500; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover,
.nav-links a.nav-active { color: #1ABCAA; }

/* ── ARTICLES NAV HIGHLIGHT ───────────────────────────────── */
.nav-articles-link {
    background: linear-gradient(135deg, #1ABCAA, #128c7e);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}
.nav-articles-link::before {
    content: '✦ ';
    font-size: 0.65rem;
}
.nav-articles-link:hover {
    background: linear-gradient(135deg, #128c7e, #bf360c) !important;
    color: #fff !important;
    transform: none;
}
/* Mobile: full-width pill inside the open menu */
@media (max-width: 968px) {
    .nav-articles-link {
        display: inline-flex;
        padding: 8px 20px;
    }
}
.burger-menu { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.burger-menu span { width: 25px; height: 3px; background: #1B3A4B; transition: all 0.3s ease; }
.burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }

/* ── WHATSAPP FLOAT ───────────────────────────────────────── */
.wa-float {
    position: fixed; width: 60px; height: 60px;
    bottom: 30px; right: 30px;
    background: #25D366; border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999; display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s;
}
.wa-float:hover { background: #20BA5A; transform: scale(1.1); }
.wa-float svg { width: 34px; height: 34px; fill: white; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: #1B3A4B; color: white; padding: 60px 50px 30px; }
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 50px; margin-bottom: 40px;
}
.footer-section h3 { font-size: 1.3rem; margin-bottom: 20px; font-weight: 600; }
.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    display: block; margin-bottom: 10px; transition: color 0.3s;
}
.footer-section a:hover { color: #1ABCAA; }
.footer-bottom {
    text-align: center; padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6); font-size: 0.85rem;
}

/* ── ARTICLE PAGE — HERO ──────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #1B3A4B 0%, #0f2030 100%);
    padding: 120px 50px 60px;
    text-align: center;
}
.tag {
    display: inline-block; background: #1ABCAA; color: white;
    font-size: 0.78rem; font-weight: 600; padding: 5px 15px;
    border-radius: 50px; margin-bottom: 15px; letter-spacing: 1px;
}
.hero h1 { color: white; font-size: 2rem; font-weight: 800; max-width: 800px; margin: 0 auto 15px; line-height: 1.3; }
.meta { color: rgba(255,255,255,0.75); font-size: 0.85rem; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ── ARTICLE PAGE — CONTENT ───────────────────────────────── */
.container { max-width: 800px; margin: 0 auto; padding: 40px 30px; }
.back-link { margin-bottom: 22px; }
.back-link a { color: #1B3A4B; text-decoration: none; font-size: 0.88rem; font-weight: 500; }

.toc {
    background: white; border-radius: 12px; padding: 22px 28px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08); margin-bottom: 35px;
    border-left: 4px solid #1ABCAA;
}
.toc h3 { color: #1B3A4B; font-size: 0.95rem; margin-bottom: 12px; font-weight: 700; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 7px; }
.toc a { color: #1B3A4B; text-decoration: none; font-size: 0.88rem; }
.toc a:hover { color: #1ABCAA; }

.content {
    background: white; border-radius: 12px; padding: 35px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}
.content h2 {
    color: #1B3A4B; font-size: 1.25rem; font-weight: 700;
    margin: 30px 0 12px; padding-top: 18px;
    border-top: 1px solid #f0f2ff;
}
.content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content h3 { color: #0f2030; font-size: 1rem; font-weight: 600; margin: 16px 0 8px; }
.content p { color: #555; line-height: 1.8; margin-bottom: 12px; font-size: 0.93rem; }
.content ul, .content ol { padding-left: 22px; margin-bottom: 12px; }
.content li { color: #555; line-height: 1.75; margin-bottom: 5px; font-size: 0.93rem; }
.content strong { color: #333; }

.box {
    background: #f0f4ff; border-radius: 10px;
    padding: 18px 22px; margin: 18px 0; border-left: 4px solid #1B3A4B;
}
.box p { margin: 0; color: #333; font-size: 0.9rem; }
.warn { background: #fff3e0; border-left: 4px solid #1ABCAA; }

.table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.table th { background: #1B3A4B; color: white; padding: 10px 14px; text-align: left; font-size: 0.83rem; }
.table td { padding: 9px 14px; border-bottom: 1px solid #e8ecff; font-size: 0.83rem; color: #555; }
.table tr:hover td { background: #f8f9ff; }

.cta {
    background: linear-gradient(135deg, #1B3A4B, #0f2030);
    border-radius: 12px; padding: 28px; text-align: center; margin: 30px 0;
}
.cta h3 { color: white; font-size: 1.15rem; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 16px; font-size: 0.88rem; }
.cta a {
    display: inline-block; background: #1ABCAA; color: white;
    padding: 11px 28px; border-radius: 50px; font-weight: 700;
    text-decoration: none; font-size: 0.9rem;
}
.cta a:hover { background: #128c7e; }

.mini-cta {
    background: #f0f4ff; border-radius: 10px; padding: 16px 20px;
    margin: 20px 0; text-align: center; border: 1px solid #c5cae9;
}
.mini-cta p { margin: 0 0 10px; color: #333; font-size: 0.88rem; font-weight: 500; }
.mini-cta a {
    display: inline-block; background: #1B3A4B; color: white;
    padding: 8px 22px; border-radius: 50px; font-weight: 600;
    text-decoration: none; font-size: 0.85rem;
}

.disc {
    background: #fff3e0; border-radius: 10px;
    padding: 18px 22px; margin: 25px 0; border-left: 4px solid #1ABCAA;
}
.disc p { margin: 0; color: #555; font-size: 0.82rem; font-style: italic; line-height: 1.6; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px; left: -100%;
        width: 100%; height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 30px; gap: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { left: 0; }
    .burger-menu { display: flex; }
    .navbar { padding: 10px 30px; }
    .ca-logo { height: 55px; }
    .footer { padding: 40px 20px 25px; }
    .footer-content { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 768px) {
    .hero { padding: 95px 20px 38px; }
    .hero h1 { font-size: 1.5rem; }
    .container { padding: 25px 15px; }
    .content { padding: 22px 18px; }
    .navbar { padding: 10px 20px; }
}
@media (max-width: 480px) {
    .navbar { padding: 10px 15px; }
}


/* ═══ ADD TO END OF common.css ═══ */

/* Desktop nav button */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1ABCAA;
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 20px;
    border-radius: 50px;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.nav-cta-btn:hover { background: #128c7e; transform: translateY(-1px); color: #fff !important; }
.navbar-actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 768px) { .nav-cta-btn { display: none; } }

/* Mobile floating pill — bottom-left, mirrors WhatsApp at bottom-right */
.mobile-cta-pill { display: none; }
@media (max-width: 768px) {
    .mobile-cta-pill {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 999;
        align-items: center;
        gap: 7px;
        background: #1ABCAA;
        color: #fff !important;
        text-decoration: none !important;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        font-size: 0.78rem;
        padding: 0 14px;
        height: 50px;
        border-radius: 25px;
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.45);
        white-space: nowrap;
    }
}


/* ============================================================
   SHARED ANIMATIONS — used across all pages
   ============================================================ */

/* ── Scroll reveal base ── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-left  { transform: translateX(-32px); }
.reveal.reveal-right { transform: translateX(32px); }
.reveal.visible      { opacity: 1; transform: none; }

/* ── Staggered children ── */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger > *:nth-child(1)  { transition-delay: 0.00s; }
.reveal-stagger > *:nth-child(2)  { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3)  { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4)  { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(5)  { transition-delay: 0.32s; }
.reveal-stagger > *:nth-child(6)  { transition-delay: 0.40s; }
.reveal-stagger > *:nth-child(7)  { transition-delay: 0.28s; }
.reveal-stagger > *:nth-child(8)  { transition-delay: 0.30s; }
.reveal-stagger > *:nth-child(9)  { transition-delay: 0.30s; }
.reveal-stagger > *:nth-child(10) { transition-delay: 0.30s; }
.reveal-stagger > *:nth-child(11) { transition-delay: 0.30s; }
.reveal-stagger > *:nth-child(12) { transition-delay: 0.30s; }
.reveal-stagger.visible > * { opacity: 1; transform: none; }

/* ── Navbar scroll shadow ── */
.navbar { transition: box-shadow 0.3s ease !important; }
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.13) !important; }

/* ── Nav link underline slide ── */
.nav-links a:not(.nav-articles-link) { position: relative; }
.nav-links a:not(.nav-articles-link)::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: #1ABCAA;
    transition: width 0.25s ease;
}
.nav-links a:not(.nav-articles-link):hover::after { width: 100%; }

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ── Individual article page animations ── */
@keyframes articleHeroUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero section entrance */
.hero .tag      { animation: articleHeroUp 0.55s ease both 0.1s; }
.hero h1        { animation: articleHeroUp 0.6s  ease both 0.25s; }
.hero .meta     { animation: articleHeroUp 0.55s ease both 0.4s; }

/* Content blocks scroll-reveal — assigned via JS in common.js */

/* back-link and toc: no animation — load instantly */
/* CTA / mini-cta hover */
.cta a, .mini-cta a {
    transition: background 0.2s ease, transform 0.2s ease !important;
}
.cta a:hover, .mini-cta a:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .hero .tag, .hero h1, .hero .meta,
    .back-link, .toc, .content {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ═══ ARTICLE PAGE CLASS ALIASES ═══
   Maps article-specific class names → shared styles.
   ════════════════════════════════════════════════════════ */

/* Hero section */
.article-hero         { background: linear-gradient(135deg, #1B3A4B 0%, #0f2030 100%); padding: 120px 50px 60px; text-align: center; }
.article-tag          { display: inline-block; background: #1ABCAA; color: white; font-size: 0.78rem; font-weight: 600; padding: 5px 15px; border-radius: 50px; margin-bottom: 15px; letter-spacing: 1px; }
.article-hero h1      { color: white; font-size: 2rem; font-weight: 800; max-width: 800px; margin: 0 auto 15px; line-height: 1.3; }
.article-meta         { color: rgba(255,255,255,0.75); font-size: 0.85rem; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* Article body wrapper */
.article-container    { max-width: 800px; margin: 0 auto; padding: 40px 30px; }

/* Article content card — NO opacity/transform here; JS handles reveal */
.article-content {
    background: white; border-radius: 12px; padding: 35px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}
.article-content h2 {
    color: #1B3A4B; font-size: 1.25rem; font-weight: 700;
    margin: 30px 0 12px; padding-top: 18px;
    border-top: 1px solid #f0f2ff;
}
.article-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-content h3 { color: #0f2030; font-size: 1rem; font-weight: 600; margin: 16px 0 8px; }
.article-content p  { color: #555; line-height: 1.8; margin-bottom: 12px; font-size: 0.93rem; }
.article-content ul,
.article-content ol  { padding-left: 22px; margin-bottom: 12px; }
.article-content li  { color: #555; line-height: 1.75; margin-bottom: 5px; font-size: 0.93rem; }
.article-content strong { color: #333; }

/* Info / highlight box */
.highlight-box {
    background: #f0f4ff; border-radius: 10px;
    padding: 18px 22px; margin: 18px 0; border-left: 4px solid #1B3A4B;
}
.highlight-box p { margin: 0; color: #333; font-size: 0.9rem; }

/* CTA box */
.cta-box {
    background: linear-gradient(135deg, #1B3A4B, #0f2030);
    border-radius: 12px; padding: 28px; text-align: center; margin: 30px 0;
}
.cta-box h3 { color: white; font-size: 1.15rem; margin-bottom: 8px; }
.cta-box p  { color: rgba(255,255,255,0.85); margin-bottom: 16px; font-size: 0.88rem; }

/* CTA button */
.cta-btn {
    display: inline-block; background: #1ABCAA; color: white;
    padding: 11px 28px; border-radius: 50px; font-weight: 700;
    text-decoration: none; font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease;
}
.cta-btn:hover { background: #128c7e; transform: translateY(-2px); }

/* Disclaimer box */
.disclaimer-box {
    background: #fff3e0; border-radius: 10px;
    padding: 18px 22px; margin: 25px 0; border-left: 4px solid #1ABCAA;
}
.disclaimer-box p { margin: 0; color: #555; font-size: 0.82rem; font-style: italic; line-height: 1.6; }

/* WhatsApp float alias for article pages */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px;
    bottom: 20px; right: 20px;
    background: #25D366; border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 998; display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s;
}
.whatsapp-float:hover { background: #20BA5A; transform: scale(1.1); }
.whatsapp-float svg  { width: 34px; height: 34px; fill: white; }

/* Responsive */
@media (max-width: 768px) {
    .article-hero       { padding: 95px 20px 38px; }
    .article-hero h1    { font-size: 1.5rem; }
    .article-container  { padding: 25px 15px; }
    .article-content    { padding: 22px 18px; }
}
