/* =============================================================================
   Maa Shatrupa Gau Ashram - Master Design System (css/styles.css)
   Pure Native CSS3 - High Performance, Zero Framework Dependencies
============================================================================= */

:root {
    /* Devotional Sacred Color Palette */
    --primary-saffron: #b45309;       /* Deep Sacred Saffron / Ochre */
    --primary-light: #f59e0b;         /* Glowing Amber Accent */
    --primary-dark: #78350f;          /* Earthy Dark Ochre */
    --accent-green: #15803d;          /* Go-Palak Forest Green */
    --accent-green-light: #22c55e;    /* Fresh Fodder Green */
    --bg-cream: #fffdf5;              /* Sacred Panchamrit Ivory Cream */
    --surface-white: #ffffff;
    --text-primary: #1c1917;          /* High Contrast Stone Charcoal */
    --text-muted: #57534e;            /* Subdued Muted Slate */
    --border-light: #e7e5e4;          /* Soft Card Borders */
    --alert-red: #dc2626;             /* Emergency Helpline & Badges */

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.75);
    --glass-shadow: 0 10px 30px rgba(180, 83, 9, 0.08);
    --glass-blur: blur(14px);

    /* Typography */
    --font-heading: 'Cinzel', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-hindi: 'Noto Sans Devanagari', 'Mangal', sans-serif;

    /* Geometry & Transitions */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: 200ms ease-in-out;
}

/* -----------------------------------------------------------------------------
   1. Base Reset & Typography
----------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--primary-dark);
}

/* Hindi Subheading Typography */
.hindi-text {
    font-family: var(--font-hindi);
}

/* -----------------------------------------------------------------------------
   2. Layout & Utility Containers
----------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 70px 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* Image Utility Classes */
.img-responsive {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.card-media-wrapper {
    position: relative;
    width: calc(100% + 48px);
    margin: -24px -24px 18px -24px;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-media-wrapper img,
.glass-card > .card-img,
.glass-card > div:first-child > .card-img {
    margin: -24px -24px 18px -24px;
    width: calc(100% + 48px);
    max-width: calc(100% + 48px);
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: transform 0.4s ease;
}

.glass-card:hover .card-media-wrapper img,
.glass-card:hover > .card-img {
    transform: scale(1.04);
}

.icon-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-full);
    margin: 0 auto 12px auto;
    display: block;
}

/* -----------------------------------------------------------------------------
   3. Unified Sacred Top Bar (Helpline, GPS SOS & Continuous Devotional Marquee)
----------------------------------------------------------------------------- */
.top-sacred-bar {
    background: linear-gradient(90deg, #991b1b 0%, #b45309 100%);
    color: #ffffff;
    padding: 7px 0;
    position: relative;
    z-index: 1001;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.top-bar-emergency-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.sacred-marquee-track {
    display: inline-block;
    animation: sacred-marquee 32s linear infinite;
    font-weight: 600;
    color: #fef3c7;
}

.sacred-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes sacred-marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.emergency-sos-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #991b1b;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    transition: transform var(--transition), box-shadow var(--transition);
}

.emergency-sos-badge:hover {
    transform: scale(1.04);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* -----------------------------------------------------------------------------
   4. Semantic Primary Navigation (Sticky & Elevated)
----------------------------------------------------------------------------- */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-sticky-action-bar {
    display: none;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.brand-titles h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-titles p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-saffron);
    transition: width var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-saffron);
}

/* Navigation Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    padding: 6px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1001;
    border: 1px solid var(--border-light);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .dropdown-menu li {
    width: 100%;
}

.nav-dropdown .dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.88rem;
    color: var(--text-primary);
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.nav-dropdown .dropdown-menu a::after {
    display: none;
}

.nav-dropdown .dropdown-menu a:hover {
    background: #fffdf5;
    color: var(--primary-saffron);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* -----------------------------------------------------------------------------
   5. Buttons & Interactive Controls
----------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-saffron), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.45);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-saffron);
    color: var(--primary-saffron);
}

.btn-outline:hover {
    background: var(--primary-saffron);
    color: #ffffff;
}

.btn-pulse {
    animation: cta-pulse 2.2s infinite;
}

@keyframes cta-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(180, 83, 9, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(180, 83, 9, 0); }
    100% { box-shadow: 0 0 0 0 rgba(180, 83, 9, 0); }
}

/* -----------------------------------------------------------------------------
   6. Glassmorphism Card System
----------------------------------------------------------------------------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(180, 83, 9, 0.14);
}

/* Badges */
.badge-tax {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-tag {
    background: #fef3c7;
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* -----------------------------------------------------------------------------
   7. Live Ticker (Infinite Marquee)
----------------------------------------------------------------------------- */
.live-ticker-wrap {
    background: #fffbeb;
    border-bottom: 1px solid #fef3c7;
    overflow: hidden;
    white-space: nowrap;
    padding: 9px 0;
    font-size: 0.88rem;
    position: relative;
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 40s linear infinite;
    color: var(--primary-dark);
    font-weight: 600;
}

.ticker-track:hover {
    animation-play-state: paused;
}

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

.ticker-separator {
    margin: 0 14px;
    color: var(--primary-saffron);
}

/* -----------------------------------------------------------------------------
   8. Campaign Progress Bars & Meters
----------------------------------------------------------------------------- */
.progress-container {
    width: 100%;
    background: #e7e5e4;
    height: 10px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 12px 0 6px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-green-light));
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------------------------------------------
   9. Fixed Seva Packages & Mission Cards
----------------------------------------------------------------------------- */
.mission-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: #fef3c7;
    color: var(--primary-saffron);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.package-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-saffron);
    margin: 10px 0;
}

/* -----------------------------------------------------------------------------
   10. Quick Donation Checkout Modal
----------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-dialog {
    background: var(--surface-white);
    width: 100%;
    max-width: 560px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-saffron));
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: #ffffff;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity var(--transition);
}

.modal-close-btn:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* Quick Amount Chips */
.amount-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 12px 0 18px 0;
}

.chip-btn {
    padding: 10px 0;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
}

.chip-btn.active, .chip-btn:hover {
    border-color: var(--primary-saffron);
    background: #fffbeb;
    color: var(--primary-saffron);
}

/* Form Controls */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-saffron);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error-alert {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

/* -----------------------------------------------------------------------------
   11. Skeleton Loaders
----------------------------------------------------------------------------- */
.skeleton-box {
    background: linear-gradient(90deg, #f5f5f4 25%, #e7e5e4 50%, #f5f5f4 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.4s infinite;
    border-radius: var(--radius-sm);
    height: 180px;
}

@keyframes skeleton-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* -----------------------------------------------------------------------------
   12. Footer Styling
----------------------------------------------------------------------------- */
.site-footer {
    background: #1c1917;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 40px;
    display: block;
    width: 100%;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-saffron);
    display: inline-block;
    padding-bottom: 4px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #44403c;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
    text-align: center;
    color: #a8a29e;
}

.footer-social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: transform var(--transition), opacity var(--transition);
}

.social-icon-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-icon-btn.facebook {
    background: #1877f2;
}

.social-icon-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon-btn.youtube {
    background: #ff0000;
}

/* -----------------------------------------------------------------------------
   13. Modular Responsive Stylesheet Delegation
   Detailed mobile responsive, drawer navigation, and touch rules are maintained
   in /css/mobile.css to ensure separation of concerns and zero CSS errors.
----------------------------------------------------------------------------- */

