/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #800000; /* Maroon */
    --accent-color: #ff9933; /* Saffron */
    --dark-bg: #1a1a1a;
    --light-bg: #fdfbf7;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(212, 175, 55, 0.15);
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 5px 0; /* Extremely compact padding */
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Clean border, no blur/shadow */
}

.site-header.header-scrolled {
    padding: 2px 0; /* Even more compact when scrolled */
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    background-color: #ffffff;
    border-bottom-color: transparent;
}

.brand-logo {
    max-height: 60px; /* Increased by ~15-20% for better visibility */
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

.header-scrolled .brand-logo {
    max-height: 50px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 400; /* Cleaner typography */
    padding: 8px 10px !important; /* Controlled compact gaps (~20px total space) */
    font-size: 14px; /* Slightly smaller text */
    transition: color 0.2s ease;
}

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

/* Premium Desktop Dropdown Hover */
@media (min-width: 992px) {
    .premium-dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s ease forwards;
    }
    .premium-dropdown > .dropdown-menu {
        display: none;
        margin-top: 0;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 25px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s;
    font-size: 14.5px;
}

.dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.1); /* Soft gold */
    color: var(--secondary-color);
    padding-left: 30px; /* Slight indent animation */
}

/* Offcanvas Mobile Menu */
.mobile-nav-list .nav-link {
    font-size: 18px;
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav-list .nav-link::after {
    display: none;
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Mobile Toggle overrides */
.navbar-toggler {
    border-color: rgba(128, 0, 0, 0.2);
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background: url('../images/hero-bg.jpg') center center/cover no-repeat;
    background-color: var(--dark-bg); /* Fallback */
    height: 700px;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-family: var(--font-body);
    font-weight: 300;
    margin-bottom: 40px;
    color: #ffffff;
}

.hero-btns .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    margin-right: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .hero-section {
        height: 600px;
        text-align: center;
    }
    .hero-overlay {
        background: rgba(26, 26, 26, 0.7);
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-btns .btn {
        margin-right: 0;
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-premium {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.2);
}

.btn-premium:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Custom Navbar Buttons */
.btn-puja-book {
    background-color: var(--secondary-color);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-puja-book:hover {
    background-color: #5a0000;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-contact-us {
    background-color: #222222;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-contact-us:hover {
    background-color: #000000;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Compact header button */
.header-contact-btn {
    padding: 6px 16px !important; /* Slightly reduced button padding */
    font-size: 13.5px !important; /* Slightly smaller font */
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none !important;
    box-shadow: none !important;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.header-contact-btn:hover {
    background-color: var(--secondary-color) !important;
    opacity: 0.9;
}

.btn-outline-premium {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-premium:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-cta:hover {
    background: linear-gradient(135deg, #b8860b, var(--primary-color));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.service-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-icon {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 3px solid #fff;
    z-index: 2;
}

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

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

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

.service-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
    border-top: 4px solid var(--secondary-color);
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-logo {
    max-height: 80px;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
}

.footer-about {
    line-height: 1.8;
}

.footer-widget h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 15px;
    font-size: 0.9rem;
}

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

/* ==========================================================================
   Floating Elements (WhatsApp & Call)
   ========================================================================== */
.floating-contact-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-btn-whatsapp {
    background-color: #25D366;
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-btn-call {
    background-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.floating-btn .tooltip-label {
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.floating-btn .tooltip-label::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}

.floating-btn:hover .tooltip-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .floating-contact-wrapper {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    .floating-btn .tooltip-label {
        display: none; /* Hide tooltip on mobile to avoid overlap */
    }
}

/* Common premium elements */
.premium-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
}

/* Bootstrap Overrides */
.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background-color: #b8860b; border-color: #b8860b; color: #fff; }
.btn-outline-primary { color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: var(--primary-color); color: #fff; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

