/* ==========================================================================
   Sri Vaari Seva - Premium Stylesheet
   ========================================================================== */

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-marigold: #ff9933;
    --primary-marigold-dark: #e65c00;
    --secondary-gold: #d4af37;
    --secondary-gold-light: #f3e5ab;
    --temple-red: #800020; /* Deep Burgundy/Maroon */
    --kumkum-red: #990012; /* Vermillion */
    --bg-cream: #faf7f2;   /* Warm Divine Cream */
    --bg-white: #ffffff;
    --text-dark: #2a201c;  /* Deep Brown Charcoal */
    --text-light: #5c4e48;
    --text-muted: #8c7b73;
    --dark-footer: #150d0a;
    
    /* Layout & Styling Values */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --box-shadow-sm: 0 4px 10px rgba(42, 32, 28, 0.05);
    --box-shadow-md: 0 10px 30px rgba(42, 32, 28, 0.08);
    --box-shadow-lg: 0 20px 50px rgba(42, 32, 28, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

/* --- Grid & Flex Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* --- Buttons & UI Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-marigold), var(--primary-marigold-dark));
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(230, 92, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 92, 0, 0.5);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-marigold-dark);
    border: 2px solid var(--primary-marigold);
}

.btn-secondary:hover {
    background-color: var(--primary-marigold);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.btn-dark {
    background-color: var(--temple-red);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.2);
}

.btn-dark:hover {
    background-color: var(--kumkum-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(153, 0, 18, 0.3);
}

/* --- Floating Quick Contact Widgets --- */
.floating-widgets {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.float-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.5rem;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.float-whatsapp {
    background-color: #25d366;
}

.float-whatsapp:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #20ba5a;
}

.float-call {
    background-color: var(--primary-marigold-dark);
}

.float-call:hover {
    transform: scale(1.1) rotate(-15deg);
    background-color: var(--primary-marigold);
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid var(--secondary-gold-light);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--temple-red);
}

.logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-marigold), var(--temple-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.2rem;
    font-weight: 800;
    border: 2px solid var(--secondary-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-marigold-dark);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-marigold-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-cream);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--secondary-gold-light);
    color: var(--temple-red);
}

.phone-badge i {
    color: var(--primary-marigold-dark);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-align: center;
    padding: 120px 24px 80px;
    background-color: var(--text-dark);
    
    /* Glowing gold borders and shadows on the edges */
    border-top: 4px solid var(--secondary-gold);
    border-bottom: 4px solid var(--secondary-gold);
    box-shadow: inset 0 0 40px rgba(212, 175, 55, 0.45), 
                0 0 15px rgba(212, 175, 55, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero-triad.jpg');
    background-size: cover;
    background-position: center 15%; /* Shifted down slightly to ensure the crown of the deity is not cut off */
    opacity: 1;
    z-index: 1;
}

/* --- Falling Flower Petals --- */
.hero-flower-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.petal {
    position: absolute;
    background-color: var(--primary-marigold);
    border-radius: 150% 0 150% 50%;
    opacity: 0.8;
    pointer-events: none;
    transform-origin: center;
}

@keyframes fall {
    0% {
        top: -10%;
    }
    100% {
        top: 110%;
    }
}

@keyframes sway {
    0%, 100% {
        transform: rotate(0deg) translateX(0);
    }
    50% {
        transform: rotate(180deg) translateX(50px);
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Dark black opacity mask for high contrast text readability */
    opacity: 1;
    z-index: 2;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-gold);
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

/* --- Section Headers --- */
.section-tag {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-marigold-dark);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--temple-red);
    margin-bottom: 16px;
    font-weight: 800;
}

.section-desc {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

/* --- Section: Traditional Pujas (Split Layout) --- */
.split-section {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--secondary-gold-light);
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    border: 4px solid var(--bg-cream);
}

.split-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--secondary-gold);
    border-radius: calc(var(--border-radius-lg) - 4px);
    pointer-events: none;
    margin: 8px;
}

.split-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.split-image-container:hover .split-image {
    transform: scale(1.05);
}

.split-text {
    padding-right: 20px;
}

#astrologer .split-container {
    grid-template-areas: 
        "header image"
        "content image";
    align-items: start;
}

#astrologer .split-header {
    grid-area: header;
}

#astrologer .split-image-container {
    grid-area: image;
    align-self: center;
}

#astrologer .split-content-text {
    grid-area: content;
}

.split-text .section-title {
    text-align: left;
}

.feature-list {
    list-style: none;
    margin-top: 32px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--primary-marigold);
    font-size: 1.2rem;
}

/* --- Section: Why Choose Us --- */
.why-choose-us {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--box-shadow-sm);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-marigold), var(--temple-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--secondary-gold-light);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary-marigold-dark);
    font-size: 1.8rem;
    border: 2px solid var(--secondary-gold-light);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-card-icon {
    background: linear-gradient(135deg, var(--primary-marigold), var(--primary-marigold-dark));
    color: var(--bg-white);
    border-color: transparent;
}

.feature-card h3 {
    font-size: 1.35rem;
    color: var(--temple-red);
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Section: Services Grid --- */
.services-section {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    z-index: 5;
    border-color: var(--secondary-gold);
    box-shadow: var(--box-shadow-lg), 0 10px 25px rgba(212, 175, 55, 0.25);
}

.service-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--temple-red);
    color: var(--bg-white);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid var(--secondary-gold);
    text-transform: uppercase;
}

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

.service-title {
    font-size: 1.4rem;
    color: var(--temple-red);
    margin-bottom: 12px;
}

.service-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bg-cream);
    padding-top: 20px;
    margin-bottom: 24px;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-meta i {
    color: var(--primary-marigold);
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-marigold-dark);
}

.service-btn {
    width: 100%;
}

/* --- Section: Call to Action Banner --- */
.cta-banner {
    position: relative;
    background: linear-gradient(135deg, var(--temple-red) 0%, var(--kumkum-red) 100%);
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    border-top: 4px solid var(--secondary-gold);
    border-bottom: 4px solid var(--secondary-gold);
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--secondary-gold-light);
}

.cta-desc {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Section: Photo Gallery --- */
.gallery-section {
    background-color: var(--bg-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 15px 0;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    border: 3px solid var(--bg-white);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 13, 10, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Keep all images centered and aligned */
    transition: var(--transition-smooth);
}

.gallery-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: var(--bg-white);
    z-index: 3;
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-5px); /* Gentler scale to prevent grid overlaps */
    z-index: 10;
    box-shadow: var(--box-shadow-lg);
    border-color: var(--secondary-gold);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay-text {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section: FAQ Accordion --- */
.faq-section {
    background-color: var(--bg-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-cream);
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--temple-red);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--primary-marigold-dark);
    transition: var(--transition-smooth);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background-color: var(--bg-white);
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-light);
    font-size: 0.95rem;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    padding-top: 20px;
}

.faq-item.active {
    border-color: var(--secondary-gold);
    box-shadow: var(--box-shadow-sm);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* --- Footer --- */
footer {
    background-color: var(--dark-footer);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 30px;
    border-top: 5px solid var(--primary-marigold);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--secondary-gold-light);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-marigold);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary-gold);
}

.footer-about p {
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background-color: var(--primary-marigold-dark);
    border-color: transparent;
    transform: translateY(-3px);
}

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

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

.footer-links a:hover {
    color: var(--primary-marigold);
    padding-left: 5px;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.contact-info-list i {
    color: var(--primary-marigold);
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-info-list a {
    transition: var(--transition-smooth);
    color: inherit;
}

.contact-info-list a:hover {
    color: var(--primary-marigold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Interactive Booking Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(21, 13, 10, 0.85);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    background-color: var(--bg-white);
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    border: 3px solid var(--secondary-gold-light);
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition-smooth);
    z-index: 10001;
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--temple-red) 0%, var(--kumkum-red) 100%);
    color: var(--bg-white);
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--secondary-gold);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-gold-light);
}

.modal-close {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    background-color: var(--bg-cream);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-marigold-dark);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.booking-summary {
    background-color: var(--bg-cream);
    border: 1px dashed var(--secondary-gold);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-details h5 {
    color: var(--temple-red);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.summary-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-cost {
    text-align: right;
}

.summary-cost span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.summary-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-marigold-dark);
}

.btn-submit {
    width: 100%;
}

/* --- Interactive Image Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    z-index: 11001;
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--border-radius-sm);
    border: 3px solid var(--secondary-gold-light);
    box-shadow: var(--box-shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--primary-marigold);
    transform: scale(1.1);
}

/* --- Scroll Animations & Keyframes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .features-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .split-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    #astrologer .split-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "image"
            "content";
    }
    .split-image {
        height: 350px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        box-shadow: var(--box-shadow-md);
    }
    .nav-menu.active {
        left: 0;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-actions {
        display: none; /* Hide phone/action btn on small mobile nav bar */
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    .features-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
