/*
Theme Name: Shiv Shahi Elite Light
Author: Antigravity AI
Description: The ultimate multispeciality hospital theme. Light, modern, and highly visible.
Version: 5.0
*/

:root {
    /* Refined Premium Palette */
    --primary: #002D5B;
    /* Deeper Trust Navy */
    --accent: #19B98D;
    /* Sophisticated Teal */
    --bg-body: #FFFFFF;
    --bg-surface: #F9FBFF;
    --text-main: #0B1323;
    --text-muted: #5E6982;
    --border-light: #F0F4F8;
    --border-main: #E2EAF1;
    --shadow-soft: 0 10px 40px -10px rgba(0, 45, 91, 0.05);
    --shadow-hover: 0 20px 50px -12px rgba(0, 45, 91, 0.1);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

h1,
h2,
h3,
.serif {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

button,
a,
.sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    padding: 16px 40px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 45, 91, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    top: 12px;
    width: 95%;
    padding: 12px 40px;
    background: rgba(255, 255, 255, 0.9);
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1rem, 4vw, 1.3rem);
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-emergency {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
}

.status-light {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    box-shadow: 0 0 10px #25D366;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.btn-nav {
    background: var(--accent);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

/* Phone icon button — visible on mobile only */
.btn-nav-icon {
    display: none;
    background: var(--accent);
    color: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-nav-icon:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    margin-left: 8px;
    transition: color 0.3s;
    padding: 8px;
}

.mobile-menu-toggle:hover {
    color: var(--accent);
}

/* Hidden by default, shown only on mobile via media query */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    font-weight: 400;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--accent);
}

.footer-logo {
    justify-content: center;
    margin-inline: auto;
}

/* --- Trust Ribbon --- */
.trust-ribbon {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.ribbon-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-val {
    display: block;
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.7;
}

/* --- Testimonials --- */
.flex-side {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.map-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid var(--border-main);
    margin-top: 32px;
    font-weight: 700;
    font-size: 0.9rem;
}

.map-badge i {
    color: #EA4335;
}

.testimonials-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 40px 20px;
    margin: -40px -20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 400px;
    background: white;
    padding: 48px;
    border-radius: 40px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(0, 45, 91, 0.03);
    transition: 0.4s;
}

.review-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.stars {
    color: #FFB800;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.review-card p {
    font-size: 1.25rem;
    font-family: 'Instrument Serif', serif;
    color: var(--primary);
    margin-bottom: 32px;
    font-style: italic;
}

.reviewer {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: var(--accent);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 110vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #F0F9FF 0%, #FFFFFF 100%);
    padding-top: 120px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 8vw, 80px);
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #F0FDF4;
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(2.8rem, 6.5vw, 6rem);
    line-height: 1;
    color: var(--primary);
    margin-bottom: 32px;
    max-width: 850px;
}

.hero h1 span {
    color: var(--accent);
    display: inline;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-img-box {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
}

.hero-img-box img {
    width: 100%;
    border-radius: 80px 80px 240px 80px;
    box-shadow: 0 60px 120px -30px rgba(0, 45, 91, 0.12);
    border: 1px solid var(--border-main);
}

/* --- Sections --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    max-width: 800px;
    margin-bottom: 100px;
}

.section-header span {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 0.95;
    color: var(--primary);
}

/* --- Bento Grid Refined --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(400px, auto);
    gap: 24px;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 56px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-card:hover {
    background: #FFFFFF;
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-12px);
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-card.tall {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: flex-start;
}

.bento-card h3 {
    font-size: 3.2rem;
    line-height: 0.9;
    margin-bottom: 20px;
    color: var(--primary);
}

.bento-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 320px;
}

.bento-icon {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 45, 91, 0.03);
}

/* --- Excellence Interaction --- */
.excellence-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
    margin-bottom: 100px;
}

.excellence-row.rev {
    direction: rtl;
}

.excellence-row.rev * {
    direction: ltr;
}

.excellence-img {
    border-radius: 80px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    aspect-ratio: 4/5;
}

.excellence-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.excellence-row:hover .excellence-img img {
    transform: scale(1.1);
}

/* --- CTA Premium --- */
.cta-container {
    background: var(--primary);
    border-radius: 80px;
    padding: 120px 80px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.cta-container h2 {
    font-size: 6rem;
    color: white;
    line-height: 0.85;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 24px 60px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
}

.btn-accent:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* --- Status Light --- */
.status-light {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 10px #25D366;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* --- Footer --- */
footer {
    padding: 120px 0 60px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
    margin-bottom: 100px;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    opacity: 0;
    /* Hidden until first mousemove */
}

@media (max-width: 1100px) {
    .nav-links {
        display: none !important;
    }

    .emergency-text {
        display: none !important;
    }

    .btn-nav {
        display: none !important;
    }

    .btn-nav-icon {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
    }

    .cursor {
        display: none !important;
    }

    nav {
        width: 95%;
        padding: 12px 24px;
        top: 12px;
        overflow: visible;
    }

    .hero h1 {
        font-size: clamp(3rem, 8vw, 5rem);
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-img-box {
        display: none;
    }

    .hero p {
        margin-inline: auto;
        max-width: 600px;
    }

    .flex-side {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-card.tall,
    .bento-card.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card {
        padding: 40px;
        border-radius: 40px;
        min-height: 350px;
        justify-content: center;
    }

    .bento-card h3 {
        font-size: 2.5rem;
    }

    .bento-img {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .footer-grid>div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-grid .logo {
        justify-content: center;
        width: fit-content;
    }

    .footer-grid p {
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .excellence-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .excellence-img {
        border-radius: 40px;
        aspect-ratio: 1.5;
        order: -1;
    }

    .excellence-row.rev .excellence-img {
        order: -1;
    }

    .ribbon-flex {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .stat-item {
        width: calc(50% - 20px);
    }

    .stat-val {
        font-size: 2.2rem;
    }

    .cta-container {
        padding: 60px 24px;
        border-radius: 40px;
    }

    .cta-container h2 {
        font-size: 2.5rem;
    }

    .nav-emergency span {
        display: none;
    }
}

@media (max-width: 480px) {
    .stat-item {
        width: 100%;
    }

    .hero-cta-group {
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 12px !important;
    }


    .btn {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .bento-card {
        padding: 30px;
        min-height: 300px;
    }

    .bento-card h3 {
        font-size: 2rem;
    }

    .logo img {
        height: 35px !important;
    }

    .nav-emergency {
        gap: 12px;
    }

    .nav-emergency .btn {
        width: auto;
        padding: 10px 16px;
        font-size: 0.65rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- Specialties & Doctors Global --- */
.page-header {
    padding: 180px 0 60px;
    background: radial-gradient(circle at top center, #F0F9FF 0%, #FFFFFF 100%);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--primary);
    margin-bottom: 16px;
}

/* --- Specialties Page Specific --- */
.specialty-section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-light);
    scroll-margin-top: 100px;
}

.specialty-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
    align-items: flex-start;
}

.spec-sidebar h2 {
    font-size: 4.5rem;
    color: var(--primary);
    line-height: 0.9;
    margin-bottom: 32px;
}

.spec-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-surface);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 32px;
}

.spec-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.doctor-list-simple {
    margin-top: 40px;
    background: var(--bg-surface);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--border-light);
}

.doctor-list-simple h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 800;
}

.doc-item-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-main);
}

.doc-item-row:last-child {
    border: none;
}

.doc-item-name {
    font-weight: 700;
    color: var(--primary);
}

.doc-item-qual {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Doctors Page Specific --- */
.filter-wrapper {
    position: sticky;
    top: 100px;
    z-index: 900;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-main);
    padding: 16px 0;
}

.filter-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    padding: 10px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 60px 0 100px;
}

.doctor-card {
    background: white;
    border-radius: 32px;
    padding: 28px;
    border: 1px solid var(--border-main);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 45, 91, 0.08);
}

.doctor-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: #F0F4F8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-svg {
    width: 40%;
    opacity: 0.2;
    color: var(--primary);
}

.doctor-info h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.doctor-info .role {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.doctor-info .quals {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    padding: 6px 10px;
    background: var(--border-light);
    border-radius: 6px;
    display: inline-block;
}

.doctor-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .specialty-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .spec-sidebar h2 {
        font-size: 3rem;
    }
}