/* ==========================================================================
   BUSINESS 6: CLINIC (PROHEALTH INSPIRED)
   ========================================================================== */

:root {
    --primary-blue: #1e40af;       /* Deep Medical Blue */
    --primary-dark: #1e3a8a;       /* Darker Blue for gradient */
    --accent-blue: #3b82f6;        /* Bright Blue for buttons/active states */
    --bg-white: #ffffff;
    --bg-soft: #f0f7ff;            /* Very light icy blue */
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo { color: var(--primary-blue); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(2rem, 3vw, 2.4rem); margin-bottom: 15px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
img { max-width: 100%; display: block; border-radius: 16px; }
a { text-decoration: none; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.bg-soft { background-color: var(--bg-soft); }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.eyebrow { color: var(--accent-blue); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.mt-2 { margin-top: 10px; }
.relative { position: relative; }
.border-top { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }

/* Banner */
.josef-preview-banner { background: var(--bg-soft); color: var(--text-main); text-align: center; padding: 8px; font-size: 13px; border-bottom: 1px solid var(--border); }

/* Navigation */
.clinic-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; position: absolute; width: 100%; top: 35px; z-index: 100; }
.logo { font-size: 1.8rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 8px; }
.logo span { font-weight: 400; }
.logo i { color: var(--accent-blue); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: white; }
.btn-primary { background: var(--accent-blue); color: white; padding: 12px 28px; border-radius: 8px; font-weight: 600; transition: background 0.3s; display: inline-block; border: none; cursor: pointer; }
.btn-primary:hover { background: #2563eb; }

/* 1. Hero Section (Deep Blue Split Background) */
.clinic-hero { position: relative; padding-top: 150px; padding-bottom: 100px; }
.hero-bg-split { position: absolute; top: 0; left: 0; width: 100%; height: 80%; background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue)); z-index: -1; border-bottom-right-radius: 100px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-text h1 { color: white; font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 20px; }
.hero-text p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 30px; max-width: 450px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-play { color: white; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.btn-play i { font-size: 1.5rem; }

.hero-image { position: relative; }
.floating-tag { position: absolute; top: 20px; right: -20px; background: white; padding: 15px 20px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 15px; }
.avatars { display: flex; }
.avatars img { width: 35px; height: 35px; border-radius: 50%; border: 2px solid white; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.tag-text strong { display: block; color: var(--primary-blue); font-size: 1.1rem; line-height: 1; }
.tag-text span { font-size: 0.75rem; color: var(--text-muted); }
.check-icon { color: var(--accent-blue); font-size: 1.2rem; }

/* Overlapping Stats Bar (Glassmorphism) */
.stats-bar { 
    display: flex; 
    justify-content: space-around; 
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(10px); 
    padding: 30px; 
    border-radius: 16px; 
    border: 1px solid rgba(255,255,255,0.2); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
    
    /* THE FIX: Restrict the width, push to the right, and lift slightly */
    max-width: 560px; 
    margin-left: auto; 
    margin-right: 0;
    margin-top: -60px; 
    position: relative; 
    z-index: 10; 
}
/* 2. About Section */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { font-size: 1.05rem; margin-bottom: 30px; }
.link-arrow { color: var(--accent-blue); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: gap 0.2s; }
.link-arrow:hover { gap: 10px; }
.about-image-wrapper { position: relative; }
.blob-shape { position: absolute; width: 100%; height: 100%; background: var(--bg-soft); top: 20px; left: -20px; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; z-index: -1; }

/* 3. Departments Grid */
.departments-section { padding: 100px 0; }
.section-header { margin-bottom: 50px; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.dept-card { background: white; border: 1px solid var(--border); padding: 40px 30px; border-radius: 12px; text-align: center; transition: all 0.3s; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.dept-card i { font-size: 2.5rem; color: var(--accent-blue); transition: color 0.3s; }
.dept-card h3 { font-size: 1.1rem; margin: 0; transition: color 0.3s; }
.dept-card:hover, .dept-card.active { background: var(--accent-blue); border-color: var(--accent-blue); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2); }
.dept-card:hover i, .dept-card.active i, .dept-card:hover h3, .dept-card.active h3 { color: white; }

/* 4. Awards */
.awards-section { padding: 80px 0; }
.award-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 40px; }
.award-item { text-align: center; }
.award-icon { width: 60px; height: 60px; background: var(--bg-soft); color: var(--primary-blue); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 15px auto; }
.award-item h4 { font-size: 1rem; }

/* 5. Appointment Banner */
.appointment-banner { padding: 0 0 100px 0; }
.appt-box { background: var(--primary-blue); border-radius: 20px; padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background-image: radial-gradient(circle at top right, var(--primary-dark), transparent); }
.appt-text h2 { color: white; }
.appt-text p { color: rgba(255,255,255,0.8); }
.appt-form-inline { display: flex; flex-direction: column; gap: 15px; }
.appt-form-inline input { padding: 15px; border-radius: 8px; border: none; outline: none; font-family: 'Outfit'; font-size: 1rem; }

/* 6. FAQ Section */
.faq-section { padding: 80px 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.faq-item { background: white; padding: 20px 30px; border-radius: 8px; margin-bottom: 15px; border: 1px solid var(--border); cursor: pointer; }
.faq-item h4 { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 1.05rem; }

/* 7. Footer */
.clinic-footer { padding: 60px 0 20px 0; }
.brand .logo { color: var(--primary-blue); }
.socials a { color: var(--text-muted); font-size: 1.3rem; margin-left: 15px; transition: color 0.2s; }
.socials a:hover { color: var(--accent-blue); }
.footer-links a { color: var(--text-muted); margin-left: 20px; font-size: 0.9rem; }

/* Animations */
.fade-in-up { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 992px) {
    .hide-mobile { display: none; }
    .clinic-nav .logo { color: var(--primary-blue); } /* Fix logo color on mobile without the blue bg */
    .hero-grid, .about-grid, .faq-grid, .appt-box { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .stats-bar { flex-direction: column; gap: 30px; margin-top: 20px; background: var(--primary-blue); }
    .hero-actions { justify-content: center; }
    .floating-tag { right: 10px; top: -20px; }
    .appt-box { padding: 30px; }
}