/* style.css */
/* Warm earth-tone palette */
:root {
    --primary: #F65801; /* Deep Saffron */
    --primary-dark: #d84800; /* darker saffron for hover */
    --secondary: #d84315; /* deep terracotta/burnt amber accent */
    --background: #fdfcfb;
    --text: #333333;
    --header-bg: rgba(255, 255, 255, 0.98);
    --cta-bg: #d32f2f; /* donation red */
    --cta-hover: #b71c1c;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 0.75rem 0 0.5rem 0;
}
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.logo {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.logo-link {
    text-decoration: none;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    max-width: 100%;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-link:hover {
    opacity: 0.92;
}
.site-logo-img {
    height: 72px;
    width: auto;
    max-width: 95px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}
.logo-text {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.04);
    color: var(--primary);
}
.footer-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}
.nav {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}
.nav-link {
    text-decoration: none;
    color: var(--text);
    padding: 0.5rem 0.6rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--primary);
}
.cta-btn {
    background: var(--cta-bg);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.cta-btn:hover {
    background: var(--cta-hover);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: 80vh;
    background: url('swami-vivekananda-belur-math.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: auto;
}
.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}
.primary-btn { background: var(--primary); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.primary-btn:hover { background: var(--primary-dark); }
.secondary-btn { background: var(--secondary); color: #fff; }
.secondary-btn:hover { background: #e65100; }

/* Sections */
.section {
    padding: 4rem 0;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary);
}
.section-text {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

/* Grid Card Layouts */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1 1 300px;
}
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.icon-item {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.icon-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

/* Table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.legal-table th, .legal-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}
.legal-table th { background: var(--primary); color: #fff; }

/* Donate */
.donate .donate-message { max-width: 800px; margin: auto; text-align: center; }
.donate-btn { background: var(--cta-bg); color: #fff; margin-top: 1rem; }
.donate-btn:hover { background: var(--cta-hover); }
.bank-details h4 { margin-top: 1rem; }
.bank-details ul { list-style: none; padding-left: 0; }

/* Footer */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 2rem 0;
}
.footer-inner { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 1rem; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
}
.footer-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
}
.footer-address {
    width: 100%;
    margin: 0.25rem 0 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}
.footer-address i {
    color: #ffe082;
    margin-right: 0.35rem;
}
/* Footer Social & Map Links */
.footer-social-links {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    margin: 0.5rem 0 0.25rem 0;
    flex-wrap: wrap;
}
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.25s ease;
}
.footer-social-btn:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.footer-social-btn i {
    font-size: 1rem;
}
.footer-social-btn.facebook:hover {
    color: #1877f2;
}
.footer-social-btn.youtube:hover {
    color: #ff0000;
}
.footer-social-btn.maps:hover {
    color: #ea4335;
}

/* Visitor Counter Badge */
.visitor-counter-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.88rem;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    backdrop-filter: blur(4px);
    margin: 0.25rem 0.5rem;
}
.visitor-counter-badge .counter-icon {
    color: #ffe082;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}
.visitor-counter-badge .counter-label {
    font-weight: 500;
    margin-right: 0.5rem;
    letter-spacing: 0.3px;
}
.visitor-counter-badge .counter-number {
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 800;
    font-size: 0.98rem;
    color: #fff;
    background: #1a1a1a;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    border: 1px solid #333;
    letter-spacing: 1px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 900px) {
    .header-inner {
        justify-content: space-between;
    }
    .logo {
        padding-bottom: 0.4rem;
        margin-bottom: 0.4rem;
    }
    .logo-link {
        flex-direction: column;
        gap: 0.4rem;
    }
    .site-logo-img {
        height: 56px;
    }
    .logo-text {
        font-size: 1.35rem;
        line-height: 1.25;
    }
    .nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .nav.nav-open {
        display: block;
        padding: 0.75rem 0;
        border-top: 1px solid #eee;
    }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .cta-btn {
        order: 1;
        margin-left: 0;
    }
    .nav-toggle {
        display: block;
        order: 2;
    }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
}
/* Dropdown navigation styles */
.nav-list .dropdown {
    position: relative;
}
.nav-list .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--header-bg);
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}
.nav-list .dropdown-menu li {
    list-style: none;
}
.nav-list .dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}
.nav-list .dropdown:hover > .dropdown-menu {
    display: block;
}
/* Mobile adjustments: show dropdown on tap */
.nav-open .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    background: none;
    padding-left: 1rem;
}
.nav-open .dropdown > a::after {
    content: " ▼";
    float: right;
}
