/* Modern, Mobile-First CSS - Cohesive Spiritual Color Palette */

:root {
    /* Warm spiritual palette - saffron, terracotta, deep maroon */
    --saffron: #ff9933;
    --saffron-dark: #e88b2a;
    --maroon: #800020;
    --maroon-dark: #5c0018;
    --cream: #faf8f5;
    --cream-dark: #f0ebe3;
    --gold: #d4af37;
    --gold-light: #e8c547;
    --text-dark: #2c1810;
    --text-muted: #5c4a3d;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--maroon);
    padding-top: 56px;
}

/* Navigation - maroon to match palette */
.navbar {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%) !important;
    box-shadow: 0 2px 8px rgba(128, 0, 32, 0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light) !important;
}

/* Hero Section - warm gradient */
.hero-section {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 50%, #4a0012 100%);
    color: white;
    padding: 2rem 0;
}

.hero-section .lead,
.hero-section p {
    color: rgba(255, 255, 255, 0.95);
}

/* Hero title and sub */
.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Greeting text - subtle, not a headline */
.jai-greeting {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    font-style: italic;
}

/* Hero - centered layout */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-figure {
    margin: 0 auto;
    border: none;
    background: transparent;
    padding: 0;
    mix-blend-mode: lighten;
}

.hero-image {
    max-width: 640px;
    width: 85%;
    min-width: 280px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* Accent buttons - saffron/gold */
.btn-accent {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-outline-accent {
    border: 2px solid var(--gold);
    color: var(--gold-light);
    background: transparent;
}

.btn-outline-accent:hover {
    background: rgba(212, 175, 55, 0.2);
    color: white;
    border-color: var(--gold-light);
}

/* Small outline accent inside hero cards */
.hero-event .btn-outline-accent {
    border-color: rgba(212, 175, 55, 0.7);
    color: var(--gold-light);
    font-size: 0.85rem;
    padding: 0.3rem 0.9rem;
}

.hero-event .btn-outline-accent:hover {
    background: rgba(212, 175, 55, 0.15);
    color: white;
}

/* Side-by-side cards row */
.hero-cards {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cards .hero-event {
    flex: 1 1 260px;
    max-width: 420px;
    text-align: left;
    margin-top: 0;
}

/* Hero-embedded event block */
.hero-event {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(4px);
}

.hero-event-badge {
    display: inline-block;
    background: var(--saffron);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.hero-event-flyer-link {
    display: block;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-event-flyer {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    object-position: top;
}

.hero-event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.4rem;
}

.hero-event-desc {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.hero-event-meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.hero-event-meta a {
    color: var(--gold-light);
    text-decoration: none;
}

.hero-event-meta a:hover {
    color: white;
    text-decoration: underline;
}

.hero-event-prasad {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Navbar event highlight */
.nav-event {
    color: var(--gold-light) !important;
    font-weight: 600;
}

/* About Section */
#about .card {
    background: white;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.06);
}

#about .bi-check-circle-fill {
    color: var(--saffron);
}

/* Puja Material Cards */
#puja-lists .card {
    background: white;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.06);
}

#puja-lists .card-title i {
    color: var(--saffron);
}

#puja-lists .card:hover {
    border-color: rgba(255, 153, 51, 0.4);
}

/* Services Section */
#services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

#services .card {
    background: white;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.06);
}

.service-item {
    padding: 0.75rem 1rem;
    background: var(--cream);
    border-radius: 8px;
    border-left: 4px solid var(--saffron);
    transition: all 0.2s ease;
}

.service-item:hover {
    background: var(--cream-dark);
    border-left-color: var(--maroon);
}

/* Contact Section – prominent cards */
.contact-card {
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.08);
    border-top: 4px solid var(--saffron);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(128, 0, 32, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--saffron);
    display: block;
    margin-bottom: 0.75rem;
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.contact-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--maroon);
    text-decoration: none;
    word-break: break-word;
}

.contact-value:hover {
    color: var(--saffron-dark);
}

/* Puja List Pages */
.puja-list-container {
    max-width: 960px;
    margin: 0 auto;
}

.puja-list-figure {
    margin: 0;
}

.puja-list-figure img {
    width: 100%;
    height: auto;
}

.puja-page-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.puja-page-content {
    flex: 1 1 0;
    min-width: 0;
}

.puja-page-image {
    flex: 0 0 320px;
    width: 320px;
    position: sticky;
    top: 80px;
    align-items: flex-start;
    justify-content: center;
}

.puja-page-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.puja-list-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--cream);
    border-left: 4px solid var(--saffron);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.puja-list-item:hover {
    background: var(--cream-dark);
}

.puja-list-item strong {
    color: var(--maroon);
    margin-right: 0.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.12) !important;
}

/* Section backgrounds */
section {
    background: var(--cream);
}

section.bg-light {
    background: var(--cream-dark) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
    margin-top: 4rem;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.9);
}

footer a {
    color: var(--gold-light);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Headings */
h2 {
    color: var(--maroon);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .hero-image {
        width: 90%;
        min-width: 240px;
    }
    
    .hero-event {
        padding: 1.25rem 1rem;
    }
    
    .hero-event-flyer {
        max-height: 200px;
    }
    
    #services-list {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 56px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

@media print {
    .navbar,
    footer,
    .btn,
    .scroll-nav,
    .whatsapp-btn {
        display: none !important;
    }
    body {
        padding-top: 0;
    }
}

/* ── WhatsApp Floating Button ─────────────────────── */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
}

/* ── Scroll Up / Down Navigation ───────────────────── */
.scroll-nav {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.scroll-nav-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.scroll-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.scroll-nav-btn:active {
    transform: scale(0.95);
}
