/* ==========================================================================
   EmmBee.One — Shared Design System
   Colors: Deep Navy (#0a192f / #1C3F60), Gold (#D4AF37), White, WhatsApp Green (#25D366)
   Typography: Playfair Display (headings) + Inter (body)
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', sans-serif;
    background: #FAFAFA;
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}
h1, h2, h3, .font-serif { font-family: 'Playfair Display', serif; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* --- CSS Variables --- */
:root {
    --persian: #1C3F60;
    --persian-dark: #0a192f;
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --lightbg: #FAFAFA;
    --darktext: #111827;
    --whatsapp: #25D366;
    --whatsapp-hover: #1ebd5a;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    background: transparent;
}
.site-nav.scrolled {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo img {
    height: 2.5rem;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.15));
}
.nav-links {
    display: none;
    list-style: none;
    gap: 0.25rem;
}
.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}
.nav-btn-gold {
    background: var(--gold) !important;
    color: var(--persian-dark) !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    margin-left: 0.5rem;
    transition: var(--transition);
}
.nav-btn-gold:hover {
    background: #e6c040 !important;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}
.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}
.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--persian-dark);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(212,175,55,0.2);
    overflow-y: auto;
}
.nav-mobile.open { right: 0; }
.nav-mobile a {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--gold); padding-left: 0.5rem; }
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

@media (min-width: 768px) {
    .nav-logo img { height: 3rem; }
    .nav-links { display: flex; }
    .nav-hamburger { display: none; }
}
@media (min-width: 1024px) {
    .site-nav { padding: 1rem 3rem; }
    .nav-logo img { height: 3.5rem; }
    .nav-links a { font-size: 0.9rem; padding: 0.5rem 1.25rem; }
}

/* --- Floating WhatsApp Button --- */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.whatsapp-fab:hover {
    background: var(--whatsapp-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
.whatsapp-fab svg { width: 32px; height: 32px; }
.whatsapp-fab .fab-tooltip {
    position: absolute;
    right: 72px;
    background: white;
    color: var(--darktext);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}
.whatsapp-fab:hover .fab-tooltip { opacity: 1; visibility: visible; }

/* --- Shared Section Styles --- */
.section-padding { padding: 6rem 1rem; }
.section-padding-sm { padding: 4rem 1rem; }
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }
.container-lg { max-width: 1400px; margin: 0 auto; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .section-padding { padding: 6rem 2rem; }
    .section-title { font-size: 2.75rem; }
}

/* --- Gold Gradient Text --- */
.gold-gradient-text {
    background: linear-gradient(to right, #D4AF37, #F3E5AB, #D4AF37);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Glass Card --- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Sanskrit glow --- */
.sanskrit-glow { text-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }

/* --- Gradient border bottom --- */
.gradient-border { position: relative; }
.gradient-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gold);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 9999px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1;
}
.btn-gold {
    background: var(--gold);
    color: var(--persian-dark);
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    box-shadow: 0 0 30px rgba(212,175,55,0.4);
}
.btn-gold:hover { background: #e6c040; transform: scale(1.05); }
.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    box-shadow: 0 10px 30px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    box-shadow: 0 10px 40px rgba(37,211,102,0.4);
}
.btn-outline-whatsapp {
    background: transparent;
    color: var(--whatsapp);
    border: 2px solid var(--whatsapp);
    padding: 1rem 2rem;
    font-size: 1rem;
}
.btn-outline-whatsapp:hover {
    background: var(--whatsapp);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Map Embed --- */
.map-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}
.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}
@media (min-width: 768px) {
    .map-container iframe { height: 400px; }
}

/* --- Footer --- */
.site-footer {
    background: #0a111a;
    color: var(--gray-400);
    padding: 3rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}
.footer-brand span { 
    color: white;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    font-weight: 300;
    text-transform: uppercase;
}
.footer-brand .brand-emmbee { font-weight: 700; color: var(--gold); }
.footer-tagline { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.5rem; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}
.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact p { display: flex; align-items: center; gap: 0.75rem; }
.footer-contact svg { width: 1.25rem; height: 1.25rem; color: var(--gold); flex-shrink: 0; }
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-600);
    width: 100%;
}
@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* --- Page Hero (for inner pages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--persian-dark) 0%, var(--persian) 100%);
    padding: 7rem 1rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(212,175,55,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.page-hero .hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.page-hero .gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1.5rem auto 0;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .page-hero { padding: 8rem 2rem 5rem; }
    .page-hero h1 { font-size: 3.25rem; }
}

/* --- QR Code Styling --- */
.qr-code-wrap {
    background: white;
    border-radius: var(--radius);
    padding: 0.75rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.qr-code-wrap img { width: 100px; height: 100px; }
.qr-code-wrap .qr-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
}

/* On dark backgrounds */
.qr-code-wrap-dark {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
}
.qr-code-wrap-dark .qr-label { color: rgba(255,255,255,0.7); }

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--gold); }
.text-persian { color: var(--persian); }
.text-white { color: white; }
.bg-white { background: white; }
.bg-navy { background: var(--persian-dark); }
.bg-persian { background: var(--persian); }
.bg-light { background: var(--lightbg); }
.bg-gray-50 { background: var(--gray-50); }
.font-serif { font-family: 'Playfair Display', serif; }
.font-bold { font-weight: 700; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(37,211,102,0.3); }
    50% { box-shadow: 0 0 40px rgba(37,211,102,0.6); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.whatsapp-fab { animation: pulse-glow 3s ease-in-out infinite; }
