/*
 Theme Name:   Santosh Group
 Theme URI:    https://santoshgroup.com
 Description:  Custom WordPress theme for Santosh Group and Santosh Hospital websites. Features glass-morphism design with orange color scheme, Tailwind CSS integration, and custom Elementor widgets.
 Version:      1.0.0
 Author:       Santosh Healthcare
 Author URI:   https://santoshgroup.com
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  santosh-group
 Tags:         custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 Requires at least: 5.0
 Tested up to: 6.4
 Requires PHP: 7.4
*/

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

/* CSS Variables - Orange Theme */
:root {
    --primary: #fb7a1e;
    --primary-dark: #ea580c;
    --secondary: #fb923c;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-gradient-start: #f1f5f9;
    --bg-gradient-end: #dbeafe;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-morph-bg: rgba(255, 255, 255, 0.15);
    --glass-morph-border: rgba(255, 255, 255, 0.2);
    --radius-button: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { color: var(--text-light); font-size: 1rem; line-height: 1.75; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* Navigation */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--glass-morph-bg);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-morph-border);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 64px; padding: 0 1rem; max-width: 1280px; margin: 0 auto;
}
.site-logo img { height: 32px; width: auto; }
.main-navigation { display: flex; align-items: center; gap: 2rem; }
.main-navigation ul { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; }
.main-navigation a { color: var(--text-dark); font-weight: 500; transition: color var(--transition-fast); }
.main-navigation a:hover { color: var(--primary); }
.emergency-btn {
    display: inline-block; background: #dc2626; color: var(--white) !important;
    padding: 0.5rem 1.5rem; border-radius: var(--radius-button); font-weight: 600;
}
.emergency-btn:hover { background: #b91c1c !important; color: var(--white) !important; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 2rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius-button);
    border: none; cursor: pointer; transition: all var(--transition-normal); text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: scale(1.05); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--text-dark); }
.btn-white:hover { background: var(--bg-light); transform: scale(1.05); }
.btn-danger { background: #dc2626; color: var(--white); }
.btn-danger:hover { background: #b91c1c; }

/* Sections */
.section { padding: 5rem 0; }
.section-white { background: var(--white); }
.section-gradient { background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.25rem; max-width: 600px; margin: 0 auto; }

/* Hero Section */
.hero-section {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(251, 146, 60, 0.05) 100%);
}
.hero-content {
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 24px; padding: 3rem;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
.hero-title span { color: var(--primary); }
.hero-description { font-size: 1.25rem; color: var(--text-light); margin-bottom: 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Card Styles */
.card {
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 16px; padding: 1.5rem;
    transition: all var(--transition-normal);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.card-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon i { font-size: 1.5rem; color: var(--primary); }
.card-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-description { color: var(--text-light); }

/* Service Cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Doctor Cards */
.doctor-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); transition: all var(--transition-normal); }
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.doctor-card-image { width: 100%; height: 280px; object-fit: cover; }
.doctor-card-content { padding: 1.5rem; }
.doctor-card-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.doctor-card-specialty { color: var(--primary); font-weight: 500; margin-bottom: 0.75rem; }
.doctor-card-rating { display: flex; align-items: center; gap: 0.25rem; margin-bottom: 1rem; }
.rating-stars { color: #fbbf24; }
.rating-count { color: var(--text-light); font-size: 0.875rem; }

/* Department Grid */
.department-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.department-item {
    background: var(--white); border-radius: 16px; padding: 2rem; text-align: center;
    transition: all var(--transition-normal); border: 1px solid transparent;
}
.department-item:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.department-icon {
    width: 80px; height: 80px; margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); border-radius: 50%;
}
.department-icon i { font-size: 2rem; color: var(--white); }

/* Stats Section */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.stat-item {
    text-align: center; padding: 2rem;
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 16px;
}
.stat-number { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 1rem; color: var(--text-light); }

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px; padding: 4rem 2rem; text-align: center; color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); font-size: 1.25rem; margin-bottom: 2rem; }
.emergency-banner {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 16px; padding: 3rem 2rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; color: var(--white);
}
.emergency-banner h3 { color: var(--white); font-size: 1.75rem; }
.emergency-banner p { color: rgba(255, 255, 255, 0.9); }

/* Contact Section */
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; }
.contact-icon {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); border-radius: 12px;
    color: var(--white); font-size: 1.25rem; flex-shrink: 0;
}
.contact-text h4 { margin-bottom: 0.25rem; }
.contact-text p { margin: 0; }
.contact-form { background: var(--white); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.875rem 1rem; border: 1px solid #e5e7eb; border-radius: var(--radius-button);
    font-size: 1rem; transition: border-color var(--transition-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

/* Footer */
.site-footer { background: var(--text-dark); color: var(--white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--white); font-size: 1.125rem; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { color: rgba(255, 255, 255, 0.8); transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.footer-bottom p { color: rgba(255, 255, 255, 0.6); }

/* ── Glass utility classes ──────────────────────────────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-morph {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Brand color overrides ──────────────────────────────────────────────────── */
/* Diagnostics: red primary */
.brand-diagnostics {
    --primary: #ed1823;
    --primary-dark: #b91c1c;
    --secondary: #3b82f6;
}
/* Hospital: keep orange (same as default) */
.brand-hospital {
    --primary: #fb7a1e;
    --primary-dark: #ea580c;
}

/* ── Diagnostics utility classes ──────────────────────────────────────────── */
.bg-diag-primary { background-color: #ed1823; }
.bg-diag-dark    { background-color: #b91c1c; }
.text-diag-primary { color: #ed1823; }
.hover\:bg-diag-dark:hover { background-color: #b91c1c; }
.border-diag-primary { border-color: #ed1823; }
.ring-diag-primary { --tw-ring-color: #ed1823; }

/* ── WordPress admin bar offset ─────────────────────────────────────────────── */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ── Mobile navigation ───────────────────────────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 999;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid #f3f4f6; }
.mobile-nav a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: #1f2937;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover { color: var(--primary); background: rgba(251, 122, 30, 0.05); }
.mobile-nav .emergency-btn { margin: 0.75rem 1.5rem; display: block; text-align: center; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: all 0.3s;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .main-navigation { display: none; }
    .menu-toggle { display: flex; }
}

/* ── Floating CTA button ─────────────────────────────────────────────────────── */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}
.floating-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
}
.floating-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); color: #fff; }
.floating-btn-primary { background: var(--primary); }
.floating-btn-emergency { background: #dc2626; }

/* ── Progress bars (department stats) ───────────────────────────────────────── */
.stat-bar-wrap { background: #e5e7eb; border-radius: 9999px; height: 8px; overflow: hidden; }
.stat-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0;
    transition: width 1s ease-out;
}

/* ── Filter active state (tests catalog) ────────────────────────────────────── */
.filter-tab-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.filter-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
    background: #fff;
    color: #6b7280;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }

/* ── Appointment step wizard ─────────────────────────────────────────────────── */
.step-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: default;
    white-space: nowrap;
}
.step-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.step-pill.completed {
    background: #dcfce7;
    color: #16a34a;
    border-color: #16a34a;
}
.step-pill.pending {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
}
.step-connector { flex: 1; height: 2px; background: #e5e7eb; min-width: 1rem; }
.step-connector.done { background: var(--primary); }

/* step-content visibility is managed by JS via Tailwind's .hidden class */

/* ── Modal / overlay ─────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.modal-box {
    background: #fff; border-radius: 20px; max-width: 560px; width: 100%;
    padding: 2rem; position: relative; box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    max-height: 90vh; overflow-y: auto;
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: #f3f4f6; border: none; border-radius: 50%;
    width: 32px; height: 32px; cursor: pointer; font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center; color: #6b7280;
}
.modal-close:hover { background: #e5e7eb; color: #1f2937; }

/* ── Tooltip ─────────────────────────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute; bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    background: #1f2937; color: #fff; font-size: 0.75rem; padding: 0.3rem 0.6rem;
    border-radius: 6px; white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity 0.2s; z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Scroll reveal (fade-up) ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Print ───────────────────────────────────────────────────────────────────── */
@media print {
    .site-header, .floating-cta, .mobile-nav { display: none !important; }
    body { background: #fff; }
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 120px 0 60px; }
    .hero-content { padding: 2rem 1.5rem; }
    .section { padding: 3rem 0; }
    .emergency-banner { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .floating-cta { bottom: 1rem; right: 1rem; }
    .floating-btn { padding: 0.625rem 1rem; font-size: 0.875rem; }
    .step-pill span.label { display: none; }
}
