/* =====================================================
   FILE PATH: public/css/app.css
   PURPOSE  : Global styles — used on every page
   FONTS    : Tiro Devanagari Marathi (Marathi text)
              Baloo 2 (headings)
              Nunito (body/UI)
===================================================== */

/* ── CSS VARIABLES (Brand Colors) ─────────────────── */
:root {
    --saffron:      #C8520A;
    --gold:         #E8961A;
    --maroon:       #7A1F1F;
    --maroon-dark:  #4A0808;
    --cream:        #FFFBF6;
    --peach:        #FFF3EA;
    --light-gold:   #FEF0CC;
    --light-orange: #FFE8D4;
    --light-pink:   #FFF0F4;
    --light-green:  #F0FAF0;
    --border:       #F0D5B8;
    --text-dark:    #3D1A00;
    --text-mid:     #7A3A10;
    --text-soft:    #B05520;
    --white:        #FFFFFF;

    /* Fonts */
    --font-marathi: 'Tiro Devanagari Marathi', serif;
    --font-display: 'Baloo 2', cursive;
    --font-body:    'Nunito', sans-serif;

    /* Spacing */
    --section-pad: 40px 0;
    --radius-card: 16px;
    --radius-btn:  24px;
}

/* ── BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Marathi text class */
.mar { font-family: var(--font-marathi); }
.display-font { font-family: var(--font-display); }

/* ── ANNOUNCEMENT BAR ─────────────────────────────── */
.announcement-bar {
    background: var(--maroon);
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 16px;
    gap: 16px;
}

.ann-scroll-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ann-scroll-inner {
    display: inline-flex;
    gap: 48px;
    animation: tickerScroll 30s linear infinite;
}

.ann-item {
    color: rgba(255,255,255,.80);
    font-size: 11px;
    font-family: var(--font-marathi);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.ann-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.ann-links {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.ann-links a {
    color: rgba(255,255,255,.65);
    font-size: 10.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.ann-links a:hover { color: var(--gold); }

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── NAVBAR ───────────────────────────────────────── */
.main-navbar {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 8px 0;
    transition: box-shadow 0.3s;
    z-index: 999;
}

.main-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(122, 31, 31, 0.10);
}

/* Logo */
.nav-logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2.5px solid var(--gold);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--light-gold);
}
.nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Brand text */
.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
/* Navbar brand — "विश्वमंगल" maroon + "मराठी फाऊंडेशन" saffron */
.nav-title-mar {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    /* Two-tone: first word maroon, second+third saffron */
}
.nav-title-mar .nav-word-1 {
    color: var(--maroon);
    font-family: 'Tiro Devanagari Marathi', serif;
    font-weight: 700;
}
.nav-title-mar .nav-word-2 {
    color: var(--saffron);
    font-family: 'Tiro Devanagari Marathi', serif;
    font-weight: 700;
}
.nav-title-eng {
    font-size: 10px;
    color: var(--text-soft);
}

/* Nav links */
.main-navbar .nav-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-mid);
    padding: 7px 10px !important;
    border-radius: 20px;
    font-family: var(--font-marathi);
    transition: all 0.2s;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    background: var(--light-orange);
    color: var(--saffron);
}

/* Membership CTA button in navbar */
.btn-membership {
    background: var(--maroon);
    color: var(--white) !important;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 18px !important;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: background 0.2s;
    font-family: var(--font-marathi);
}
.btn-membership:hover { background: var(--maroon-dark); }

/* Mobile hamburger */
.navbar-toggler {
    border: 2px solid var(--border);
    border-radius: 8px;
}
.navbar-toggler:focus { box-shadow: none; }

/* ── SECTION SHARED STYLES ────────────────────────── */
.section-tag {
    display: inline-block;
    background: var(--light-orange);
    color: var(--saffron);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 10px;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.section-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--maroon);
    margin-bottom: 4px;
    line-height: 1.25;
}

.section-sub {
    font-family: var(--font-marathi);
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 28px;
    line-height: 1.8;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn-primary-vmf {
    background: var(--maroon);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    border: none;
    padding: 12px 26px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-marathi);
    transition: background 0.2s, transform 0.15s;
}
.btn-primary-vmf:hover {
    background: var(--maroon-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-vmf {
    background: var(--white);
    color: var(--maroon);
    font-size: 13px;
    font-weight: 800;
    border: 2.5px solid var(--maroon);
    padding: 10px 22px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-marathi);
    transition: all 0.2s;
}
.btn-outline-vmf:hover {
    background: var(--maroon);
    color: var(--white);
}

.btn-gold-vmf {
    background: var(--gold);
    color: var(--maroon);
    font-size: 14px;
    font-weight: 800;
    border: none;
    padding: 13px 32px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-marathi);
    transition: all 0.2s;
}
.btn-gold-vmf:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── CARDS ────────────────────────────────────────── */
.vmf-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.vmf-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* ── FOOTER ───────────────────────────────────────── */
.site-footer {
    background: #1A0808;
    padding: 40px 0 16px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}
.footer-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-name-mar {
    display: block;
    font-family: var(--font-marathi);
    font-size: 13px;
    color: var(--light-gold);
    font-weight: 700;
}
.footer-name-eng {
    font-size: 9.5px;
    color: rgba(255,255,255,.4);
}
.footer-tagline {
    font-family: var(--font-marathi);
    font-size: 11.5px;
    color: rgba(255,255,255,.45);
    line-height: 1.8;
    margin-bottom: 6px;
}
.footer-founder {
    font-family: var(--font-marathi);
    font-size: 11px;
    color: rgba(255,255,255,.35);
    margin-bottom: 0;
}

.footer-col-title {
    color: rgba(255,255,255,.5);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    font-family: var(--font-marathi);
    font-size: 12px;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    margin-bottom: 7px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bar {
    border-top: 0.5px solid rgba(255,255,255,.08);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bar p {
    font-size: 10px;
    color: rgba(255,255,255,.25);
    margin: 0;
    font-family: var(--font-marathi);
}

/* ── WHATSAPP FLOATING BUTTON ─────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.wa-btn {
    width: 54px;
    height: 54px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s;
    animation: waPulse 2.5s infinite;
}
.wa-btn:hover { transform: scale(1.1); }

.wa-icon {
    font-size: 26px;
    color: white;
}

.wa-tooltip {
    background: #25D366;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    white-space: nowrap;
    font-family: var(--font-marathi);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.35); }
    50%       { box-shadow: 0 4px 28px rgba(37,211,102,.60); }
}

/* ── STATS STRIP ──────────────────────────────────── */
.stats-strip {
    background: var(--white);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-box {
    padding: 14px 12px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat-box:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--saffron);
    line-height: 1;
}
.stat-unit {
    font-size: 14px;
    color: var(--gold);
    font-weight: 700;
}
.stat-label {
    font-family: var(--font-marathi);
    font-size: 11.5px;
    color: var(--text-soft);
    margin-top: 4px;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-row   { grid-template-columns: repeat(2, 1fr); }
    .ann-links   { display: none; }
}

@media (max-width: 576px) {
    .footer-grid    { grid-template-columns: 1fr; }
    .stats-row      { grid-template-columns: repeat(2, 1fr); }
    .section-title  { font-size: 22px; }
    .nav-title-mar  { font-size: 12px; }
    .nav-logo-circle { width: 40px; height: 40px; }
}