/* ========================================= */
/* 1. FONTS & CSS VARIABLES                  */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Playfair+Display:wght@500;700;800&display=swap');

:root {
    /* Vedic Theme Colors */
    --brand-gold: #D4AF37;       /* Antique Gold */
    --brand-maroon: #5C1616;     /* Deep Classic Maroon */
    --brand-saffron: #D97725;    /* Muted Saffron */
    --brand-parchment: #FDFBF7;  /* Warm off-white */
    --brand-dark: #1C1917;       /* Soft Black */
    
    /* Utility Colors */
    --text-main: #1C1917;
    --text-muted: #4b5563;
    --text-light: #9ca3af;

    /* Fonts */
    --font-sans: 'Lora', serif;
    --font-heading: 'Playfair Display', serif;
}

/* ========================================= */
/* 2. BASE RESETS & TYPOGRAPHY               */
/* ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--brand-parchment);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease;
}

ul {
    list-style: none;
}

/* ========================================= */
/* 3. LAYOUT UTILITIES                       */
/* ========================================= */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ========================================= */
/* 4. HEADER & NAVIGATION                    */
/* ========================================= */
.site-header {
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    color: var(--brand-maroon);
    font-size: 1.5rem;
    animation: spin-slow 12s linear infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--brand-maroon);
    letter-spacing: 0.025em;
}

.logo-text span {
    color: var(--brand-gold);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.desktop-nav a:hover {
    color: var(--brand-maroon);
}

.auth-buttons {
    display: none;
    align-items: center;
}

.btn-link {
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 1rem;
}

.btn-link:hover {
    color: var(--brand-maroon);
}

.btn-primary {
    background-color: var(--brand-maroon);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #4a0e17; /* Darker maroon */
}

.btn-danger {
    background-color: #991b1b; /* Dark Red */
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background-color: #7f1d1d;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-maroon);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: var(--brand-parchment);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.5rem 1rem 1rem 1rem;
    position: absolute;
    width: 100%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.show {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu a {
    font-weight: 600;
    color: var(--brand-dark);
    display: block;
    padding: 0.25rem 0;
}

.mobile-menu a:hover {
    color: var(--brand-maroon);
}

/* ========================================= */
/* 5. HERO SECTION                           */
/* ========================================= */
.hero-section {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--brand-gold) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 896px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--brand-maroon);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .gradient-text {
    background: linear-gradient(to right, var(--brand-maroon), var(--brand-saffron));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--brand-maroon);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.2s ease;
}

.hero-btn:hover {
    background-color: #4a0e17;
    transform: translateY(-4px);
}

/* ========================================= */
/* 6. SERVICES SECTION                       */
/* ========================================= */
.services-section {
    padding: 5rem 0;
    background-color: white;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
}

.section-divider {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--brand-gold);
    margin: 1rem auto 0;
    border-radius: 9999px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.service-card {
    background: rgba(253, 251, 247, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-card.highlight {
    border-color: rgba(212, 175, 55, 0.5);
    background-color: var(--brand-parchment);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--brand-gold);
    color: var(--brand-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid transparent;
}

.icon-maroon {
    background-color: rgba(92, 22, 22, 0.1);
    color: var(--brand-maroon);
    border-color: rgba(92, 22, 22, 0.2);
}

.icon-gold {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--brand-saffron);
    border-color: rgba(212, 175, 55, 0.4);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ========================================= */
/* 7. DESKTOP FOOTER                         */
/* ========================================= */
.site-footer {
    background-color: #1a1714;
    color: #d1d5db;
    padding: 3rem 0;
    border-top: 4px solid var(--brand-maroon);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-logo-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-group h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-parchment);
}

.footer-desc {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.7;
    max-width: 24rem;
}

.footer-heading {
    color: var(--brand-parchment);
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--brand-gold);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    padding-left: 1rem;
    padding-right: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.125rem;
}

.social-links a:hover {
    color: var(--brand-gold);
}

/* ========================================= */
/* 8. MEDIA QUERIES (DESKTOP / TABLET)       */
/* ========================================= */
@media (min-width: 640px) {
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.25rem; }
}

@media (min-width: 768px) {
    .desktop-nav { display: flex; }
    .auth-buttons { display: flex; }
    .mobile-menu-btn { display: none; }
    .mobile-menu { display: none !important; }

    .hero-title br { display: block; }

    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .service-card.highlight { transform: translateY(-1rem); }

    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-col-main { grid-column: span 2 / span 2; }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========================================= */
/* 9. MOBILE BOTTOM NAV BAR                  */
/* ========================================= */
@media (max-width: 767px) {
    body {
        padding-bottom: 64px;
    }
    .site-footer {
        display: none;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #1C1917; /* Soft Black */
    border-top: 3px solid var(--brand-gold);
    z-index: 200;
    align-items: stretch;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

@media (max-width: 767px) {
    .mobile-bottom-nav { display: flex; }
}

.mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-sans);
    padding: 6px 2px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.mbn-item:hover,
.mbn-item.active {
    color: var(--brand-gold);
    background: rgba(212, 175, 55, 0.08);
}

.mbn-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--brand-gold);
    border-radius: 0 0 2px 2px;
}

.mbn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mbn-label {
    font-size: 0.58rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ── More Menu Popup ── */
.mbn-more-menu {
    display: none;
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    background: #1C1917;
    border-top: 2px solid var(--brand-gold);
    border-radius: 1rem 1rem 0 0;
    z-index: 199;
    padding: 1rem;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.4);
    animation: mbnSlideUp 0.25s ease;
}

.mbn-more-menu.open {
    display: block;
}

@keyframes mbnSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.mbn-more-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--brand-parchment);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #374151;
}

.mbn-more-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s;
}

.mbn-more-close:hover { color: white; }

.mbn-more-links {
    list-style: none;
    margin-bottom: 1rem;
}

.mbn-more-links li {
    border-bottom: 1px solid #374151;
}

.mbn-more-links a {
    display: block;
    padding: 0.75rem 0.25rem;
    color: #d1d5db;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.mbn-more-links a:hover { color: var(--brand-gold); }

.mbn-more-social {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.mbn-more-social a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    transition: opacity 0.2s;
    color: white;
    text-decoration: none;
}

.mbn-more-social a:first-child { background: #1877f2; }
.mbn-more-social a:last-child  { background: #25d366; }
.mbn-more-social a:hover       { opacity: 0.85; }

/* ── Overlay ── */
.mbn-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 198;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mbn-overlay.show { display: block; }