/* =========================================
   GURJAR HOSPITAL - CUSTOM STYLES
   ========================================= */

/* --- CSS Variables --- */
:root {
    /* Color Palette */
    --primary-color: #0d8a8a; /* Medical Teal */
    --primary-light: #2bcbcb;
    --primary-dark: #075e5e;
    --secondary-color: #f15a24; /* Vibrant Orange for CTA */
    
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #ffffff;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects & Transitions */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 30px -5px rgba(13, 138, 138, 0.15);
    
    --border-radius: 16px;
    --border-radius-sm: 8px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.section {
    padding: 100px 0;
}

.section-bg {
    background-color: var(--bg-light);
}

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

/* --- Typography Utilities --- */
.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 16px 0;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(13, 138, 138, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 10px 20px -5px rgba(13, 138, 138, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(13, 138, 138, 0.5);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 10px 20px -5px rgba(241, 90, 36, 0.4);
}

.btn-secondary:hover {
    background-color: #d1491a;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(241, 90, 36, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo span {
    color: var(--text-muted);
    font-weight: 400;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0fdfd 0%, #ffffff 100%);
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,138,138,0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    margin: 20px 0;
}

.hero-title span {
    color: var(--primary-color);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(13, 138, 138, 0.2);
    z-index: -1;
    transform: rotate(-2deg);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    aspect-ratio: 4/3;
    max-height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(13, 138, 138, 0.25);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image img {
    transform: scale(1.05);
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
}

.overlay-card {
    position: absolute;
    bottom: -30px;
    right: -20px;
    z-index: 2;
}

.hero-glass-card:hover {
    transform: translateY(-5px);
}

/* Mobile-only hospital image - hidden on desktop */
.hero-hospital-mobile {
    display: none;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    background: #e0f6f6;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.stat-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Quick About (Features) --- */
.quick-about {
    margin-top: -80px;
    z-index: 10;
    position: relative;
    padding-bottom: 80px;
}

.feature-box {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-box.active, .feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--primary-color);
}

.feature-box.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.feature-box.active h3, .feature-box.active p {
    color: var(--text-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(13, 138, 138, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    transition: var(--transition);
}

.feature-box.active .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.feature-box h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Services Section --- */
.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Doctors Section --- */
.doctor-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.doctor-img {
    height: 250px;
    background: linear-gradient(135deg, #e0f6f6 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder i {
    font-size: 5rem;
    color: var(--primary-light);
}

.doctor-info {
    padding: 24px;
}

.doctor-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 6px;
}

.degrees {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Contact Section --- */
.contact-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info-wrapper {
    padding: 60px;
}

.contact-info-wrapper h2 {
    font-size: 2.2rem;
    margin: 16px 0 24px;
}

.contact-info-wrapper h2 span {
    color: var(--primary-color);
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(13, 138, 138, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.contact-item p, .contact-item a {
    color: var(--text-muted);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-map {
    min-height: 400px;
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
}

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

.footer-logo {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-logo span {
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
    max-width: 400px;
}

.footer-links h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        visibility: hidden;
    }
    
    .nav-links.show {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        visibility: visible;
    }
    
    .nav-link {
        display: block;
        padding: 12px 24px;
    }
    
    .nav-actions .btn {
        display: none; /* Hide emergency btn on small phones to save space */
    }
    
    .hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-top: 30px;
    }

    /* Hide all hospital images on mobile */
    .hero-image,
    .hero-image-wrapper,
    .hero-hospital-mobile {
        display: none !important;
    }
    
    .quick-about {
        margin-top: 20px;
        padding-bottom: 60px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-info-wrapper {
        padding: 40px 20px;
    }
}
