/* ============================================
   Lifeline Hospital - CSS
   ============================================ */

:root {
    --primary: #0284c7; /* Medical Blue */
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --secondary: #0f172a; /* Slate Dark */
    --accent: #10b981; /* Success Green for Medical */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--secondary);
    font-weight: 700;
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emergency-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.pulse-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Navbar */
.navbar {
    background: var(--bg-white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand span {
    color: var(--secondary);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

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

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

.btn-white {
    background: white;
    color: var(--primary) !important;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary);
}

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

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.trust-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

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

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Departments */
.departments {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

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

.dept-card {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    border-radius: var(--radius);
    transition: 0.3s;
}

.dept-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.dept-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.dept-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.dept-card:hover h3 {
    color: var(--accent);
}

/* Hover Pop Animation */
.hover-pop {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.hover-pop:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    border-color: var(--accent) !important;
}

.dept-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
}

/* Specialists Section */
.specialists {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.doc-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.doc-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.doc-info {
    padding: 20px;
    text-align: center;
}

.doc-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.doc-spec {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

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

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.test-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    border-top: 4px solid var(--primary);
}

.test-stars {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.test-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
}

.test-card h4 {
    color: var(--primary);
    font-size: 1rem;
}

/* CTA Box */
.cta-section {
    padding: 0 0 100px;
}

.cta-box {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.cta-text h2 {
    color: white;
    margin-bottom: 10px;
    font-size: 2rem;
}

.cta-text p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #cbd5e1;
    padding: 80px 0 20px;
}

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

.footer-brand {
    color: white !important;
    margin-bottom: 20px;
}

.footer-brand span {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.social-links a:hover {
    background: var(--primary);
}

.footer h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact svg {
    color: var(--primary);
    width: 18px;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.appointment-form input, .appointment-form select {
    padding: 12px 15px;
    border-radius: var(--radius);
    border: none;
    font-family: var(--font-main);
    background: #1e293b;
    color: white;
}

.appointment-form input::placeholder {
    color: #94a3b8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .top-bar { display: none; }
    .hero-container, .dept-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .cta-box { flex-direction: column; text-align: center; gap: 30px; }
}
