/*
Theme Name: Sandhya Hospital Luxury
Theme URI: https://www.sandhyahospital.co.in
Author: Dr. Sunil Sharma
Author URI: https://www.sandhyahospital.co.in
Description: Official Ultra-Luxury, Glassmorphic Multi-Page Theme for Sandhya Hospital & Trauma Care, Nahar Block, Dhanapur, Chandauli. Features 24x7 emergency, Ayushman Bharat PM-JAY registration, specialized OPD & live appointment booking system.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sandhya-hospital
*/

/* Core styles loaded via enqueue or bundled below */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cabinet+Grotesk:wght@700;800;900&family=Hind:wght@400;600;700&display=swap');

:root {
    --bg-dark: #070d19;
    --bg-card: rgba(15, 23, 42, 0.75);
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --text-white: #ffffff;
    --text-slate: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', 'Hind', sans-serif; scroll-behavior: smooth; }
body {
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 10%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.08) 0px, transparent 60%);
    background-attachment: fixed;
}

.bg-mesh-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.45; }

/* Top Notice Bar */
.top-bar {
    background: linear-gradient(90deg, #0f172a, #0284c7, #0f172a);
    padding: 8px 6%; font-size: 13px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12); position: relative; z-index: 20;
}
.badge-ayushman {
    background: var(--accent-green); color: #fff; padding: 3px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 800; text-transform: uppercase; margin-right: 8px;
}
.top-call-link { color: #ffd166; text-decoration: none; font-weight: 700; margin-left: 15px; }

/* Main Header & Navbar */
.main-header {
    position: sticky; top: 0; z-index: 999;
    background: rgba(7, 13, 25, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 6%; display: flex; justify-content: space-between; align-items: center;
}
.logo-box { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-circle {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 20px; color: #fff; box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}
.logo-box h2 {
    font-size: 22px; font-weight: 800; font-family: 'Cabinet Grotesk', sans-serif;
    background: linear-gradient(135deg, #fff 40%, var(--accent-cyan) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-box p { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--accent-gold); text-transform: uppercase; }

.nav-bar { display: flex; gap: 26px; }
.nav-bar a {
    color: var(--text-slate); text-decoration: none; font-weight: 600; font-size: 14.5px;
    transition: 0.3s; position: relative; padding: 6px 0;
}
.nav-bar a:hover, .nav-bar a.active { color: #fff; }
.nav-bar a.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent-cyan); border-radius: 2px;
}

.header-cta { display: flex; gap: 12px; align-items: center; }
.btn {
    padding: 11px 24px; border-radius: 50px; font-weight: 700; font-size: 14px;
    text-decoration: none; color: #fff; transition: 0.3s; cursor: pointer;
    border: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5); }
.btn-emergency {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.btn-emergency:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(239, 68, 68, 0.7); }

/* Common Page Banner */
.page-banner {
    position: relative; z-index: 1; padding: 70px 6% 50px; text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.page-banner .pill-tag {
    display: inline-block; padding: 5px 16px; border-radius: 20px;
    background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
}
.page-banner h1 { font-size: 42px; font-weight: 900; font-family: 'Cabinet Grotesk', sans-serif; margin-bottom: 14px; }
.page-banner p { font-size: 16px; color: var(--text-slate); max-width: 700px; margin: auto; }

/* Sections & Containers */
.main-section { position: relative; z-index: 1; padding: 70px 6%; }
.container { max-width: 1200px; margin: auto; }

/* Glass Cards & Grids */
.glass-box {
    background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(20px);
    border: 1px solid var(--border-light); border-radius: 24px; padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); margin-bottom: 40px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #cbd5e1; margin-bottom: 8px; text-transform: uppercase; }
.form-control {
    width: 100%; padding: 13px 16px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(30, 41, 59, 0.7);
    color: #fff; font-size: 14.5px; outline: none; transition: 0.3s;
}
.form-control:focus { border-color: var(--accent-cyan); box-shadow: 0 0 15px rgba(6, 182, 212, 0.3); }

/* Department Cards */
.dept-card {
    background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; padding: 35px 28px; backdrop-filter: blur(15px); transition: 0.3s;
}
.dept-card:hover { transform: translateY(-8px); border-color: var(--accent-cyan); box-shadow: 0 15px 35px rgba(6, 182, 212, 0.25); }
.dept-icon { font-size: 40px; margin-bottom: 18px; }
.dept-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.dept-card p { font-size: 14.5px; color: var(--text-slate); line-height: 1.7; margin-bottom: 18px; }
.dept-card ul { list-style: none; font-size: 14px; color: #cbd5e1; margin-bottom: 20px; }
.dept-card ul li { padding: 4px 0; }
.dept-card ul li::before { content: "✓ "; color: var(--accent-green); font-weight: bold; }

/* Ayushman Special Box */
.ayushman-hero-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.12), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(52, 211, 153, 0.4); border-radius: 28px; padding: 50px;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
}

/* Footer */
.site-footer {
    background: #030712; border-top: 1px solid var(--border-light);
    padding: 70px 6% 30px; position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 50px; }
.footer-col h3, .footer-col h4 { font-size: 18px; margin-bottom: 20px; color: #fff; }
.footer-col p { font-size: 14px; color: var(--text-slate); line-height: 1.8; margin-bottom: 8px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-slate); text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--accent-cyan); padding-left: 6px; }
.admin-link { color: #38bdf8; text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 25px;
    display: flex; justify-content: space-between; font-size: 13.5px; color: #64748b;
}

/* Floating Actions */
.floating-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.floating-btn {
    width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 26px; text-decoration: none; box-shadow: 0 10px 25px rgba(0,0,0,0.5); transition: 0.3s;
}
.floating-btn.call { background: linear-gradient(135deg, #0284c7, #2563eb); color: #fff; }
.floating-btn.wa { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; }
.floating-btn:hover { transform: scale(1.12); }

/* ========================================================
   100% MOBILE RESPONSIVE FIX FOR SANDHYA HOSPITAL
   ======================================================== */

/* Prevent Horizontal Scrolling on Mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile Screen Breakpoint (Tablets & Phones) */
@media screen and (max-width: 768px) {
    /* 1. Top Notice Bar */
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 8px 12px;
        font-size: 11.5px;
    }
    .top-bar-right {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .top-call-link {
        margin-left: 0;
    }

    /* 2. Header & Logo Navigation */
    .main-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(7, 13, 25, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    }
    /* 3. Navigation Bar (Scrollable horizontally on mobile) */
    .nav-bar {
        display: flex !important;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        gap: 14px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-bar a {
        font-size: 13px;
        padding: 4px 8px;
        flex-shrink: 0;
    }

    /* 4. Action Buttons in Header */
    .header-cta {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }
    .header-cta .btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }

    /* 5. Hero Section */
    .main-section {
        padding: 30px 16px;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .main-section h1 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }
    .main-section p {
        font-size: 14px !important;
    }

    /* 6. Glass Box & Form Padding */
    .glass-box {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }
    .form-group label {
        font-size: 12px !important;
    }
    .form-control {
        padding: 10px 12px !important;
        font-size: 13.5px !important;
    }

    /* 7. Stats Bar Grid */
    .container .glass-box[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        padding: 20px 12px !important;
    }

    /* 8. Ayushman Hero Box */
    .ayushman-hero-box {
        padding: 20px 16px !important;
    }
    .ayushman-hero-box h2 {
        font-size: 22px !important;
    }

    /* 9. Doctor About Section */
    .glass-box.grid-2 {
        display: flex !important;
        flex-direction: column-reverse;
    }
    .glass-box.grid-2 img {
        width: 110px !important;
        height: 110px !important;
    }

    /* 10. Floating Call & WhatsApp Buttons */
    .floating-container {
        bottom: 18px;
        right: 18px;
        gap: 10px;
    }
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* 11. Footer Adjustments */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
}
