/* 
   Shree Dakshinmukhaya Hanuman Mandir - Official Website 
   Design System & Main Stylesheet
   Strictly Non-Commercial & Informational
*/

:root {
    --primary-saffron: #FF9933;
    --primary-maroon: #7A1E1E;
    --accent-gold: #D4AF37;
    --bg-warm-white: #FFFBF0;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;

    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;

    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-warm-white);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-maroon);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-maroon);
    transition: color 0.3s ease;
}

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

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-maroon);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-saffron);
    color: var(--white);
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-maroon);
    font-weight: 700;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a.active {
    color: var(--primary-maroon);
}

.menu-toggle {
    display: none;
}

#language-toggle {
    /* Base styles */
    background-color: transparent;
    border: 1px solid var(--primary-maroon);
    color: var(--primary-maroon);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

#language-toggle:hover {
    background-color: var(--primary-maroon);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    #language-toggle {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-saffron);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* Daily Darshan Section */
.darshan-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--primary-saffron);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.darshan-times {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.time-slot h4 {
    color: var(--primary-maroon);
    margin-bottom: 5px;
}

/* Common Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-maroon);
}

.section-title p {
    color: var(--text-muted);
}

/* Quote Section */
.quote-section {
    background-color: var(--primary-maroon);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #2b1b1b;
    color: #e0e0e0;
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-saffron);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdbdbd;
}

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

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compliance Badge (Internal Use) */
.compliance-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        /* Revert to wrap to safely handle overflow if needed, or control heights */
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .logo {
        flex: 1 1 auto;
        /* Grow and shrink but keep basis */
        min-width: 50%;
        /* Give it at least half width to start */
        margin-right: 10px;
    }

    .logo-text {
        font-size: 0.85rem;
        line-height: 1.2;
        /* Ensure text behaves normally */
        white-space: normal;
        display: block;
        /* revert webkit box if it causes issues */
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        background: none;
        border: none;
        color: var(--primary-maroon);
        flex-shrink: 0;
        order: 2;
        /* Put menu button next */
    }

    #language-toggle {
        margin: 0;
        order: 2;
        /* Group with menu toggle visually */
        width: auto;
        font-size: 0.8rem;
        padding: 4px 8px;
        background-color: transparent;
        border: 1px solid var(--primary-maroon);
        flex-shrink: 0;
        margin-right: 10px;
        /* Space between lang and generic menu toggle */
    }

    nav {
        width: 100%;
        order: 3;
        /* Menu dropdown always last */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-top: 10px;
    }

    /* ... existing animation ... */
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Cleanup layout for Desktop */
@media (min-width: 769px) {
    .nav-container {
        /* Ensure gap between right-aligned items */
        gap: 20px;
    }

    .logo {
        order: 1;
        /* Push everything else to the right */
        margin-right: auto;
    }

    nav {
        order: 2;
        margin-left: 0;
        /* Reset */
    }

    #language-toggle {
        order: 3;
        margin-left: 0;
        /* Reset, handled by gap */
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}