/* ============================================
   GopalJIVedic — Complete Design System
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --color-primary: #5D3A1A;
    --color-primary-dark: #3E2712;
    --color-primary-light: #8B5A2B;
    --color-accent-gold: #C4943B;
    --color-accent-gold-light: #D9B36A;
    --color-plum: #4A2545;
    --color-cream: #FDFBF7;
    --color-parchment: rgba(245, 239, 224, 0.4);
    --color-white: #FFFFFF;
    --color-dark: #1A1A1A;
    --color-text: #2C2C2C;
    --color-text-light: #555555;
    --color-border: #EDE4D0;

    --color-saffron: #FF9933;
    --color-vermilion: #B22222;
    --color-deep-brown: #3E2712;
    --color-gold: #D4AF37;
    --color-marigold: #E8A317;
    --color-offwhite: #FAF8F5;
    --color-cream-dark: #F0E6D3;
    --color-text-muted: #999999;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
    --font-ui: 'Montserrat', sans-serif;

    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-sacred: 0 15px 40px rgba(255, 153, 51, 0.12);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.3s ease;

    --radius-full: 50%;
    --radius-lg: 16px;
    --radius-md: 12px;
    --max-width: 1200px;
    --nav-height: 90px;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-deep-brown);
    background-color: var(--color-cream);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle parchment texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("https://www.transparenttextures.com/patterns/p6.png"),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    opacity: 0.5;
    pointer-events: none;
    z-index: -2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-vermilion);
}

.drop-cap::first-letter {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    float: left;
    line-height: 1;
    padding-right: 12px;
    padding-top: 4px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: radial-gradient(circle at center, var(--color-saffron) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.3;
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1;
}

.nav-logo-text span {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--color-accent-gold);
    display: block;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    padding: 10px 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* Hamburger Menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Consult Now button in nav */
.nav-consult-btn {
    border-radius: 50px !important;
    padding: 10px 22px !important;
    font-size: 11px !important;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-vermilion), #8B0000);
    color: white !important;
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(178, 34, 34, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent-gold);
    border: 2px solid var(--color-accent-gold);
}

.btn-outline:hover {
    background: var(--color-accent-gold);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, #B8860B 100%);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(196, 148, 59, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 148, 59, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
.pulse-diya {
    animation: diyaGlow 3s infinite ease-in-out;
}

@keyframes diyaGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(196, 148, 59, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(196, 148, 59, 0.7));
    }
}

/* ============================================
   SCROLL ANIMATIONS (Brave-Proof)
   ============================================ */
/* Default: Visible (ensures text shows if JS is blocked) */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only hide and animate if JavaScript is confirmed active */
body.js-ready .fade-in {
    opacity: 0;
    transform: translateY(40px);
}

body.js-ready .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SPECIAL FRAMES & FORMS
   ============================================ */
.panchang-frame {
    background-color: var(--color-white);
    border: 2px solid var(--color-gold);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sacred);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.panchang-frame::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--color-saffron);
    border-radius: 15px;
    pointer-events: none;
    opacity: 0.3;
}

.form-page-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    border: 1px solid var(--color-gold);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sacred);
    position: relative;
    padding: 20px;
}

.tally-container {
    padding: 10px;
}

.tally-placeholder {
    border: 2px dashed var(--color-gold);
    background-color: var(--color-cream);
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
    color: var(--color-gold);
}

@media (max-width: 600px) {
    .panchang-frame {
        padding: 10px;
    }

    .panchang-frame::before {
        display: none;
    }

    .form-page-container {
        padding: 15px;
        border-radius: 12px;
    }

    .tally-container {
        padding: 0;
    }
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.garland-strip {
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    background-image: radial-gradient(circle at center, var(--color-marigold) 3px, transparent 4px);
    background-size: 40px 80px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.garland-left {
    left: 20px;
}

.garland-right {
    right: 20px;
}

.corner-ornament {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 2px solid var(--color-gold);
    border-radius: 5px;
    opacity: 0.2;
}

.top-left {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #4A2545 0%, #2A1428 100%);
    padding: 140px 20px 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    margin: 0 auto 30px;
    border: 2px solid var(--color-accent-gold);
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    filter: sepia(0.15) contrast(1.05);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 18px;
    color: var(--color-accent-gold-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-desc {
    font-family: var(--font-accent);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    font-style: italic;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-white {
    background-color: #FFFFFF;
}

.section-parchment {
    background-color: var(--color-cream);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-label {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-saffron);
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 40px;
    color: var(--color-vermilion);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   SERVICE CARDS (Homepage)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 45px 35px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    border-radius: var(--radius-md);
}

.service-card:hover {
    border-color: var(--color-accent-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.service-card-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.service-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
}

.service-card .btn {
    margin-top: 20px;
    font-size: 10px;
    padding: 10px 25px;
}

/* ============================================
   MISSION SECTION (Homepage)
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-cream-dark), var(--color-cream));
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mission-text h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    color: var(--color-plum);
    margin-bottom: 20px;
    line-height: 1.3;
}

.mission-text p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 35px 28px;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 60px;
    color: var(--color-plum);
    opacity: 0.15;
    line-height: 1;
    position: absolute;
    top: 15px;
    left: 25px;
}

.testimonial-text {
    font-family: var(--font-accent);
    font-size: 17px;
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    padding-top: 20px;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-plum);
}

.testimonial-stars {
    color: var(--color-accent-gold);
    font-size: 14px;
    margin-top: 6px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-plum);
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--color-text-light);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, #1a0a2e 0%, #0d051a 100%);
    color: rgba(255, 255, 255, 0.5);
    padding: 50px 30px 30px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-accent-gold);
    margin-bottom: 5px;
}

.footer-location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 25px;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-accent-gold);
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 20px;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
    fill: white;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 500;
    color: var(--color-plum);
    margin-bottom: 8px;
}

.page-hero-sub {
    font-family: var(--font-accent);
    font-size: 18px;
    color: var(--color-accent-gold);
    font-style: italic;
}

.about-photo-wrapper {
    position: relative;
}

.about-photo {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-cream-dark), var(--color-cream));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--color-border);
    overflow: hidden;
    object-fit: cover;
}

.about-text h2,
.about-text-content h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--color-plum);
    margin-bottom: 10px;
}

.about-text .serving-since {
    font-family: var(--font-accent);
    font-size: 16px;
    color: var(--color-accent-gold);
    font-style: italic;
    margin-bottom: 20px;
}

.about-text p,
.about-text-content p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.credentials-list {
    list-style: none;
    margin-bottom: 30px;
}

.credentials-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 15px;
    color: var(--color-text);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.credentials-list li:last-child {
    border-bottom: none;
}

.credentials-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-accent-gold);
    font-size: 12px;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 50px 0;
    border-bottom: 1px solid var(--color-border);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block.reverse {
    direction: rtl;
}

.service-block.reverse>* {
    direction: ltr;
}

.service-block-image {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-cream-dark), var(--color-cream));
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.service-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-block-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    color: var(--color-plum);
    margin-bottom: 16px;
}

.service-block-content p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ============================================
   PANCHANG PAGE
   ============================================ */
.panchang-wrapper {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
    min-height: 100vh;
    background: var(--color-offwhite);
}

.panchang-iframe-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.panchang-iframe-container iframe {
    width: 100%;
    min-height: 900px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-panel h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-plum);
    margin-bottom: 15px;
}

.contact-info-panel>p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.detail-item .icon {
    font-size: 24px;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    font-size: 14px;
    color: var(--color-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

.detail-item a {
    color: var(--color-vermilion);
    font-weight: 600;
}

.detail-item a:hover {
    color: var(--color-accent-gold);
}

.hours-box {
    background: var(--color-cream);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.hours-box h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-plum);
    margin-bottom: 8px;
}

.hours-box p {
    font-size: 14px;
    color: var(--color-text-light);
}

.contact-form-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.contact-info-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-card);
    margin-bottom: 25px;
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-plum);
    margin-bottom: 10px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
}

.contact-info-card a {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-info-card a:hover {
    color: var(--color-accent-gold);
}

.contact-form-area {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.contact-form-area h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-plum);
    margin-bottom: 25px;
}

.tally-placeholder {
    width: 100%;
    min-height: 500px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
    padding: 20px;
    background: var(--color-offwhite);
}

.map-container,
.map-section {
    width: 100%;
    overflow: hidden;
}

.map-section iframe {
    width: 100%;
    border: none;
    display: block;
}

.map-container {
    height: 350px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}



/* ============================================
   RESPONSIVE — TABLET (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {

    /* Mobile nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--color-primary-dark) 0%, #3a1e0d 100%);
        flex-direction: column;
        padding: 100px 30px 40px;
        gap: 5px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 15px;
        padding: 12px 20px;
        width: 100%;
        text-align: left;
        color: rgba(255, 255, 255, 0.85);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--color-accent-gold);
    }

    .nav-consult-btn {
        margin-top: 15px;
        text-align: center !important;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Change hamburger color for visibility */
    .nav-hamburger span {
        background: var(--color-primary);
    }

    /* Layout adjustments */
    .hero {
        padding: 120px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-photo {
        width: 140px;
        height: 140px;
    }

    .hero-subtitle {
        font-size: 15px;
        letter-spacing: 3px;
    }

    .hero-desc {
        font-size: 17px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-block.reverse {
        direction: ltr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .section-desc {
        font-size: 16px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    /* Garland strips hidden on tablet+ mobile */
    .garland-strip {
        display: none;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 600px)
   ============================================ */
@media (max-width: 600px) {
    :root {
        --nav-height: 65px;
    }

    body {
        font-size: 15px;
    }

    /* Disable heavy animations on mobile for performance */
    .pulse-diya {
        animation: none !important;
    }

    /* Reduce body::before complexity */
    body::before {
        opacity: 0.3;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-logo-text {
        font-size: 18px;
    }

    .container {
        padding: 0 15px;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: 100px 15px 50px;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 13px;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .hero-photo {
        width: 110px;
        height: 110px;
        margin-bottom: 20px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    /* Announcement bar */
    .announcement-bar {
        font-size: 11px;
        padding: 8px 15px;
        letter-spacing: 0.5px;
    }

    body.has-announcement .navbar {
        top: 34px;
    }

    /* Section sizes */
    .section {
        padding: 45px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-desc {
        font-size: 15px;
    }

    .section-label {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .page-hero h1 {
        font-size: 26px;
    }

    .page-hero {
        padding-top: calc(var(--nav-height) + 30px);
        padding-bottom: 30px;
    }

    /* Service cards */
    .service-card {
        padding: 30px 25px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card-icon {
        font-size: 30px;
    }

    /* Service block */
    .service-block-image {
        height: 220px;
    }

    .service-block-content h2 {
        font-size: 24px;
    }

    .service-block {
        padding: 30px 0;
    }

    /* About */
    .about-photo {
        max-width: 250px;
    }

    .mission-image {
        height: 250px;
    }

    .mission-text h2 {
        font-size: 26px;
    }

    /* Buttons */
    .btn {
        padding: 13px 28px;
        font-size: 11px;
    }

    /* Footer */
    .footer {
        padding: 35px 20px 25px;
    }

    .footer-logo {
        font-size: 20px;
    }

    /* WhatsApp float smaller on mobile */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }



    /* Contact */
    .contact-form-card {
        padding: 20px;
    }

    .contact-info-card {
        padding: 25px;
    }

    .hours-box {
        padding: 15px 20px;
    }

    /* Drop cap smaller on mobile */
    .drop-cap::first-letter {
        font-size: 3rem;
        padding-right: 8px;
    }
}



/* ============================================
   PERFORMANCE: Reduce motion for users who prefer it
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   FESTIVAL POPUP STYLES & DECORATIONS
   ============================================ */
.festival-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.festival-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 10, 46, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.festival-modal-content {
    position: relative;
    max-width: 550px;
    width: 100%;
    animation: popupFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 2100;
}

@keyframes popupFadeUp {
    from { opacity: 0; transform: translateY(40px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.festival-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: white;
    border: none;
    color: var(--color-vermilion);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.festival-modal-close:hover {
    background: var(--color-saffron);
    color: white;
    transform: rotate(90deg);
}

.festival-modal-frame {
    background: var(--color-white);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), var(--shadow-sacred);
    position: relative;
    border: 4px solid var(--color-gold);
}

.festival-modal-frame img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.festival-text-card {
    background: linear-gradient(135deg, #FFF8E7 0%, #F5DEB3 100%);
    padding: 50px 30px;
    text-align: center;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.festival-text-card h2 {
    color: var(--color-vermilion);
    font-size: 32px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
}

.festival-text-card p {
    color: var(--color-deep-brown);
    font-size: 19px;
    line-height: 1.6;
    font-weight: 500;
}

.festival-text-card .shri-ram {
    font-size: 38px;
    color: var(--color-saffron);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

/* Corner Ornaments */
.frame-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-vermilion);
    z-index: 2;
    pointer-events: none;
}

.frame-corner.tc { top: -8px; left: -8px; border-right: none; border-bottom: none; border-radius: 12px 0 0 0; }
.frame-corner.tr { top: -8px; right: -8px; border-left: none; border-bottom: none; border-radius: 0 12px 0 0; }
.frame-corner.bl { bottom: -8px; left: -8px; border-right: none; border-top: none; border-radius: 0 0 0 12px; }
.frame-corner.br { bottom: -8px; right: -8px; border-left: none; border-top: none; border-radius: 0 0 12px 0; }

/* ============================================
   PREMIUM PHP FORM SYSTEM
   ============================================ */
.vedic-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-cream);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-deep-brown);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 4px rgba(196, 148, 59, 0.1);
    background: #fff;
}

.form-group input[type="file"] {
    padding: 10px;
    background: rgba(196, 148, 59, 0.05);
    border: 1px dashed var(--color-accent-gold);
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    background: var(--color-accent-gold);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}

.submit-container {
    margin-top: 10px;
    text-align: center;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
    font-weight: 600;
}

.form-status.success {
    display: block;
    background: #e6ffed;
    color: #22863a;
    border: 1px solid #34d058;
}

.form-status.error {
    display: block;
    background: #ffeef0;
    color: #cb2431;
    border: 1px solid #f97583;
}

/* Specific styling for Matchmaking (Two Columns) */
.match-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    margin-bottom: 20px;
}

.match-form-grid::after {
    content: "ॐ";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: var(--color-accent-gold);
    opacity: 0.2;
}

@media (max-width: 900px) {
    .match-form-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .match-form-grid::after { display: none; }
}

.partner-box {
    padding: 25px;
    background: rgba(245, 239, 224, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 15px;
}

.partner-box h4 {
    margin-bottom: 20px;
    color: var(--color-vermilion);
    border-bottom: 1px solid var(--color-accent-gold);
    padding-bottom: 8px;
    display: inline-block;
}
