/* ==========================================================================
   COLOR PALETTE & CSS VARIABLES (LIGHT THEME)
   ========================================================================== */
:root {
    --bg-cream: #FAF8F5;
    --bg-ivory: #F3EFEA;
    --bg-card-light: #FFFFFF;
    
    --text-navy: #1A2536;
    --text-secondary-dark: #2C3E50;
    --text-secondary: #5A6A7E;
    
    --primary-gold: #B8860B; /* Deep goldenrod */
    --warm-gold: #D4AF37;
    --dark-gold: #8B6508;
    
    --border-gold-subtle: rgba(184, 134, 11, 0.3);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;
}

/* ==========================================================================
   BASE & TYPOGRAPHY
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-navy);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-name, .section-heading {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.text-navy { color: var(--text-navy) !important; }
.text-gold { color: var(--primary-gold) !important; }
.text-gold-dark { color: var(--dark-gold) !important; }
.text-secondary-dark { color: var(--text-secondary-dark) !important; }
.bg-cream { background-color: var(--bg-cream) !important; }
.bg-ivory { background-color: var(--bg-ivory) !important; }
.bg-card-light { background-color: var(--bg-card-light) !important; }
.border-gold-subtle { border: 1px solid var(--border-gold-subtle) !important; }

.section-padding {
    padding: 80px 0;
}

.section-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
}

.heading-line {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
}

.heading-line.mx-auto {
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.hover-gold:hover {
    color: var(--primary-gold) !important;
    transition: color 0.3s ease;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   IMAGE & CONTAINERS (STRICT ANTI-DISTORTION & ASPECT RATIO RULES)
   ========================================================================== */
.img-profile-fit {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
    border: 2px solid var(--border-gold-subtle);
}

.img-certificate-fit {
    max-width: 100%;
    height: 160px;
    object-fit: contain;
    background-color: rgba(240, 235, 225, 0.5);
    padding: 5px;
    border-radius: 4px;
}

.img-contain-fit {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.max-height-350 { max-height: 350px; }
.max-height-400 { max-height: 400px; }

.img-thumbnail-fit {
    object-fit: cover;
    border: 1px solid var(--primary-gold);
}

.gold-frame {
    position: relative;
    display: inline-block;
    padding: 8px;
    border: 1px solid var(--border-gold-subtle);
    border-radius: 8px;
    background-color: var(--bg-card-light);
    max-width: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-gold-fill {
    background: linear-gradient(135deg, var(--warm-gold), var(--primary-gold));
    color: #FFF !important;
    font-weight: 600;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.2);
}

.btn-gold-fill:hover {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 134, 11, 0.35);
}

.btn-gold-outline {
    background: #f3f3f3;
    color: var(--primary-gold) !important;
    border: 1.5px solid var(--primary-gold);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-gold-outline:hover {
    background: var(--primary-gold);
    color: #FFF !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   NAVBAR & FLOATING OVERLAPPING LOGO STYLES (ORIGINAL WEB PRESERVED)
   ========================================================================== */
.top-bar {
    background-color: #EFECE6;
    border-bottom: 1px solid var(--border-gold-subtle);
    font-size: 0.85rem;
}

.navbar {
   background-color: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gold-subtle);
    padding: 8px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: visible !important;
    min-height: 80px;
}

.navbar .container {
    overflow: visible !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1050;
}

/* Floating Large Circular Emblem - Exact desktop image scale */
.floating-logo-wrapper {
    position: relative;
    z-index: 1050;
}

.floating-logo-img {
    width: 210px;            /* Increased size for large desktop presentation */
    height: 210px;           /* Equal height to preserve perfect circular aspect ratio */
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--warm-gold);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    background-color: #FFF;
    position: absolute;
    top: -45px;              /* Dynamic vertical offset into hero section */
    left: 0;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.floating-logo-img:hover {
    transform: scale(1.03);  /* Subtle depth effect on hover */
}
/* Spacer element to push the brand name next to the absolute-positioned large logo */
.brand-spacer {
    width: 210px;            /* Matches the width of .floating-logo-img */
    height: 1px;
    flex-shrink: 0;
}
}

.brand-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFF, #FAF4E6);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.4rem;
    box-shadow: 0 3px 10px rgba(184, 134, 11, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
    z-index: 1040;
}

.brand-name {
    font-weight: 700;
    color: var(--text-navy);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.2;
}

.brand-tagline {
   font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.navbar-toggler {
    padding: 6px 12px;
    font-size: 1.25rem;
    border-radius: 6px;
    outline: none !important;
    box-shadow: none !important;
    z-index: 1060;
}

.nav-link {
    color: var(--text-navy) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-gold) !important;
}

/* ==========================================================================
   HERO SECTION & SUBTITLE VISIBILITY
   ========================================================================== */
.hero-section {
    min-height: calc(100vh - 70px);
    position: relative;
    overflow: hidden;
    background-color: var(--bg-ivory);
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(250, 248, 245, 0.15);
    z-index: 1;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid var(--primary-gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    letter-spacing: 0.5px;
    color: var(--text-navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hero-title {
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    font-weight: 800;
    color: var(--text-navy);
    text-shadow: 0 2px 4px rgba(255,255,255,0.9);
}

/* High Visibility Pill Badge */
.hero-subtitle-badge {
    display: inline-block;
    background-color: var(--text-navy);
    color: #F8E7A1;
    font-weight: 700;
    font-size: clamp(0.75rem, 2vw, 1.1rem);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1.5px solid var(--warm-gold);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    max-width: 100%;
    word-break: break-word;
}

.hero-description {
    max-width: 650px;
    font-style: italic;
    background: rgba(250, 248, 245, 0.88);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    color: var(--text-navy);
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-bottom-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to top, var(--bg-cream), transparent);
    z-index: 2;
}

/* ==========================================================================
   DOSHA NIVARAN SECTION (CARD UNIFORMITY)
   ========================================================================== */
.dosha-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dosha-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}

.dosha-img-wrapper {
    width: 65px;
    height: 65px;
    background-color: var(--bg-cream);
    border: 1.5px solid var(--border-gold-subtle);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dosha-icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   SERVICES & CARDS
   ========================================================================== */
.service-avatar-box {
    width: 70px;
    height: 70px;
    background: var(--bg-cream);
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-large {
    font-size: 1.8rem;
    color: var(--primary-gold);
}

.service-avatar-sm {
    width: 42px;
    height: 42px;
    background: var(--bg-cream);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.border-left-gold {
    border-left: 4px solid var(--primary-gold);
}

/* ==========================================================================
   CERTIFICATES GALLERY
   ========================================================================== */
.cert-card {
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08) !important;
}

.cert-img-box {
    background: var(--bg-ivory);
    border-radius: 4px;
    overflow: hidden;
}

.modal-cert-contain {
    max-height: 75vh;
    object-fit: contain;
}

/* ==========================================================================
   EXPERTISE & CONTACT
   ========================================================================== */
.expertise-icon {
    font-size: 2rem;
}

.expertise-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

.contact-icon-box {
    width: 38px;
    height: 38px;
    background: var(--bg-cream);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-input {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-gold-subtle);
    color: var(--text-navy);
}

.custom-input:focus {
    background-color: #FFF;
    border-color: var(--primary-gold);
    color: var(--text-navy);
    box-shadow: 0 0 0 0.25rem rgba(184, 134, 11, 0.15);
}

/* ==========================================================================
   FLOATING ACTION BUTTONS
   ========================================================================== */
.float-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.float-whatsapp:hover {
    color: #fff;
    transform: scale(1.1);
}

.float-scroll-top {
    position: fixed;
    bottom: 80px;
    right: 22px;
    width: 44px;
    height: 44px;
    background-color: var(--bg-card-light);
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.float-scroll-top:hover {
    background-color: var(--primary-gold);
    color: #FFF;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-section {
    border-top: 1px solid var(--border-gold-subtle);
}

.footer-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: url('img/transparent.png');
    background-repeat: repeat;
    opacity: 0.02;
    z-index: 1;
}

.social-btn {
    width: 36px;
    height: 36px;
    background-color: var(--bg-card-light);
    border: 1px solid var(--border-gold-subtle);
    color: var(--primary-gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--primary-gold);
    color: #FFF;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (FULL MOBILE FIX WITHOUT SHRINKING LOGO)
   ========================================================================== */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .navbar {
        min-height: auto;
        padding: 12px 0;
    }

    /* Keep Emblem large, repositioning relative to mobile viewports */
    .floating-logo-img {
       width: 140px;        /* Scaled proportionally for tablets/mobile header height */
        height: 140px;
        top: -20px;
    }

    .brand-spacer {
        width: 145px;
    }

    .brand-text {
        white-space: normal;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-tagline {
        font-size: 0.68rem;
    }

    /* Clean Drawer Menu Dropdown */
    .navbar-collapse {
        background-color: var(--bg-card-light);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid var(--border-gold-subtle);
        margin-top: 25px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

    .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 45px 0;
    }

    .hero-section {
        min-height: 80vh;
    }

    .img-certificate-fit {
        height: 120px;
    }

    .dosha-img-wrapper {
        width: 55px;
        height: 55px;
    }

    /* Preserves full emblem structure on smaller mobile screens */
    .floating-logo-img {
       width: 110px;        /* Optimized mobile fit preventing menu toggler collision */
        height: 110px;
        top: -12px;
    }

    .brand-spacer {
        width: 115px;
    }
}