@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #ff7e27; /* Saffron */
    --secondary: #e54c00; /* Deep Saffron */
    --dark: #222222;
    --light: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border: #eeeeee;
    --radius: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container for PC */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   DESKTOP (PC) STYLES - BASE
========================================= */

/* App-like Header */
.app-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.brand span {
    font-size: 0.85rem;
    color: #666;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
}

.call-btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(255, 126, 39, 0.3);
    transition: transform 0.2s ease, background 0.2s;
}

.call-btn:hover {
    background: var(--secondary);
}

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

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    max-width: var(--max-width);
    margin: 20px auto;
    border-radius: var(--radius-lg);
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 50px 40px;
    color: var(--white);
}

.hero-overlay h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-overlay p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Trust Section (Pandit Ji) */
.trust-section {
    background: var(--white);
    max-width: var(--max-width);
    margin: 30px auto;
    padding: 30px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 25px;
    align-items: center;
}

.pandit-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
}

.trust-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.trust-content p {
    font-size: 1rem;
    color: #555;
    margin-top: 5px;
}

.badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

/* Split Section (Image Left, Text Right) */
.split-section {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.split-section img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.split-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

/* Stats Section */
.stats-container {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover, .stat-card:active {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--secondary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #fff3eb; /* Light Saffron */
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover .stat-icon, .stat-card:active .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: var(--white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.85rem;
    color: #666;
}

/* Services / Poojas Grid */
.section-title {
    max-width: var(--max-width);
    margin: 40px auto 20px;
    padding: 0 20px;
    font-size: 2rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto 50px;
    padding: 0 20px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card:active {
    transform: scale(0.98);
}

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

.service-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Details Page Specific */
.details-header {
    position: relative;
    height: 400px;
    max-width: var(--max-width);
    margin: 20px auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.details-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255,255,255,0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: background 0.2s;
}

.back-btn:hover {
    background: var(--white);
}

.content-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin: -60px auto 50px;
    position: relative;
    padding: 50px;
    box-shadow: var(--shadow);
}

.content-card h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.content-card h2 {
    font-size: 1.6rem;
    margin: 30px 0 15px;
    color: var(--primary);
}

.content-card ul, .content-card ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-card li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #444;
}

.content-card p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366; /* WhatsApp Green */
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.2s;
}

.floating-cta:hover {
    transform: scale(1.05);
}

.floating-cta svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

/* Hide App Bottom Nav on Desktop */
.bottom-nav {
    display: none;
}


/* Pandit Ji Section (Desktop) */
.pandit-section-1 {
    margin-top: 60px;
    margin-bottom: 20px;
    align-items: stretch;
}
.pandit-section-2 {
    margin-top: 20px;
    align-items: stretch;
}
.pandit-section-img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.pandit-section-img-top {
    object-position: top;
    min-height: 480px;
}
.pandit-text-list {
    margin: 15px 0 20px 20px;
    color: #444;
}
.pandit-text-list li {
    margin-bottom: 10px;
}
.hindi-list {
    font-style: italic;
}
.pandit-hindi-heading {
    color: #666;
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.pandit-hindi-text {
    color: #444;
    font-style: italic;
    margin-bottom: 15px;
}
.pandit-cta {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, background 0.2s ease;
}
.pandit-cta:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    color: var(--white);
}

/* =========================================
   TABLET & MOBILE STYLES (Max Width 768px)
========================================= */
@media (max-width: 768px) {
    
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }

    .app-header {
        padding: 15px 20px;
    }

    .desktop-nav {
        display: none;
    }

    .header-container {
        padding: 0 10px 0 0;
        gap: 8px;
    }

    .brand > div {
        gap: 6px !important;
    }

    .brand div div div {
        font-size: 1rem !important;
    }
    
    .brand img {
        width: 35px !important;
        height: 35px !important;
    }

    .call-btn {
        padding: 10px 12px;
        font-size: 0.75rem;
        gap: 5px;
        white-space: nowrap;
    }

    .call-btn svg {
        width: 14px;
        height: 14px;
    }

    .hero {
        height: 300px;
        margin: 0;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .hero-overlay {
        padding: 30px 20px;
    }

    .hero-overlay h2 {
        font-size: 1.8rem;
    }

    .hero-overlay p {
        font-size: 0.9rem;
    }

    .trust-section {
        margin: 20px;
        padding: 20px;
        flex-direction: row;
        gap: 15px;
    }

    .pandit-img {
        width: 80px;
        height: 80px;
        border: 3px solid var(--primary);
    }

    .trust-content h3 {
        font-size: 1.1rem;
    }

    .trust-content p {
        font-size: 0.8rem;
    }

    .badge {
        font-size: 0.7rem;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px auto;
    }

    .pandit-section-1 {
        margin-top: 30px;
        margin-bottom: 0px;
    }
    
    .pandit-section-2 {
        margin-top: 30px;
    }

    .pandit-section-img {
        height: auto;
        min-height: 0;
        max-height: 350px;
    }
    
    .pandit-section-img-top {
        min-height: 0;
    }

    .split-content h2 {
        font-size: 1.6rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        margin: 30px 20px 15px;
        padding: 0;
        font-size: 1.3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 20px 20px;
        padding: 0;
    }

    .service-img {
        height: 160px;
    }

    .service-info {
        padding: 15px 20px;
    }

    .service-info h3 {
        font-size: 1.1rem;
    }

    .service-info p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .details-header {
        height: 250px;
        margin: 0;
        border-radius: 0;
    }

    .back-btn {
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }

    .content-card {
        margin: -30px 0 0 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 30px 20px;
        min-height: calc(100vh - 220px);
    }

    .content-card h1 {
        font-size: 1.6rem;
    }

    .content-card h2 {
        font-size: 1.2rem;
    }

    .content-card li, .content-card p {
        font-size: 0.95rem;
    }

    .floating-cta {
        bottom: 80px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .floating-cta svg {
        width: 35px;
        height: 35px;
    }

    /* Show App Bottom Nav on Mobile */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        display: flex;
        justify-content: space-around;
        padding: 12px 0;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
        z-index: 100;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #888;
        font-size: 0.7rem;
        gap: 4px;
    }

    .nav-item.active {
        color: var(--primary);
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
    }
}
