/*
Theme Name: Fibrosens Custom Theme
Description: Custom, highly optimized theme for Fibrosens Liver & Gastroenterology Center
Author: Fibrosens Team
Version: 1.0.0
*/

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

:root {
    /* Branding Colors */
    --primary-color: #c62828; /* Calmer, softer red */
    --secondary-color: #a01c1c; /* Darker red for hover states */
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    
    /* Typography */
    --text-dark: #2d3748;
    --text-muted: #4a5568;
    --font-family: 'Inter', sans-serif;
    
    /* Utilities */
    --transition-speed: 0.3s;
    --box-shadow: 0 10px 25px rgba(10, 66, 117, 0.08);
}

/* Preloader */
#fibrosens-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 8px rgba(13,39,87,0.15)); }
}

.preloader-logo {
    color: var(--primary-color);
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.loading-bar-container {
    width: 200px;
    height: 4px;
    background-color: #eee;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    position: absolute;
    left: -100%;
    animation: loading 2.2s infinite ease-in-out;
}

@keyframes loading {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* Base Styles */
body {
    font-family: var(--font-family);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-speed) ease;
}

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

/* Navigation Active State */
.current-menu-item > a,
.current_page_item > a {
    color: var(--primary-color) !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

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

/* Utilities */
.subheading-color {
    color: var(--primary-color); /* Kept primary for headings but secondary can be applied to specific elements */
}

.section-heading h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.heading-divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 0px; /* Alameda style */
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 180px 0 160px;
    background-color: var(--bg-light);
    /* Using male doctor picture with a cool dark overlay */
    background-image: linear-gradient(rgba(13, 39, 87, 0.7), rgba(13, 39, 87, 0.85)), url('hero-bg.jpg?v=1.2');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #f0f0f0;
}

/* About Section */
.about-section {
    padding: 90px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Services Grid */
.services-section {
    padding: 90px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 1px solid transparent;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.service-card:hover {
    background: var(--bg-white);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 66, 117, 0.12);
    border-color: #edf2f7;
    border-bottom: 4px solid var(--primary-color);
}

.service-icon-placeholder {
    width: 80px;
    height: 80px;
    background-color: rgba(59, 167, 225, 0.1); /* Secondary color with opacity */
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.service-card:hover .service-icon-placeholder {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-excerpt {
    flex-grow: 1;
}

.btn-link {
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
}

/* Booking Banner */
.booking-banner {
    background-color: var(--bg-light);
    padding: 40px 0;
    border-bottom: 1px solid #edf2f7;
}

.booking-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.booking-banner h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-dark);
}

/* Contact Section */
.contact-section {
    padding: 90px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.icon-wrapper {
    width: 45px;
    height: 45px;
    background-color: rgba(59, 167, 225, 0.1);
    color: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.phone-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.phone-link:hover {
    color: var(--secondary-color);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Floating Mobile Bar */
.floating-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 9999;
}

.float-btn {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.call-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.call-btn:hover {
    background-color: #a01c1c;
    color: #fff;
}

.whatsapp-btn {
    background-color: #25D366;
    color: #fff;
}

.whatsapp-btn:hover {
    background-color: #1ebe58;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 100px 0 80px;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .floating-mobile-bar.d-mobile-flex {
        display: flex;
    }
    
    /* Add padding to body so content isn't hidden behind fixed bar */
    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

/* Inner Page Headers */
.page-header {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center 20%;
    padding: 120px 0 100px;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
    position: relative;
    z-index: 1000;
}
.header-about { background-image: linear-gradient(rgba(13, 39, 87, 0.7), rgba(13, 39, 87, 0.85)), url('about-bg.png?v=1.2'); }
.header-services { background-image: linear-gradient(rgba(13, 39, 87, 0.7), rgba(13, 39, 87, 0.85)), url('services-bg.jpg?v=1.2'); }
.header-blog { background-image: linear-gradient(rgba(13, 39, 87, 0.7), rgba(13, 39, 87, 0.85)), url('blog-bg.jpg?v=1.2'); }
.header-contact { background-image: linear-gradient(rgba(13, 39, 87, 0.7), rgba(13, 39, 87, 0.85)), url('contact-bg.png?v=1.2'); }
.header-booking { background-image: linear-gradient(rgba(13, 39, 87, 0.7), rgba(13, 39, 87, 0.85)), url('booking-bg.jpg?v=1.2'); }
.page-header h1 {
    color: #fff;
    font-size: 3rem;
    margin: 0;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.team-member {
    text-align: center;
    background: transparent;
    padding: 40px 30px;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid transparent;
    border-bottom: 4px solid transparent;
    transition: all var(--transition-speed) ease;
}
.team-member:hover {
    background: var(--bg-white);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 66, 117, 0.12);
    border-color: #edf2f7;
    border-bottom: 4px solid var(--primary-color);
}
.team-member i.fa-user-md {
    font-size: 60px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.team-member h3 {
    margin-bottom: 5px;
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 0;
    box-shadow: var(--box-shadow);
    border: 1px solid #edf2f7;
    border-top: 4px solid var(--primary-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 1rem;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Calendar Styles */
.calendar-section { padding: 80px 0; }
.calendar-container { max-width: 800px; margin: 0 auto; background: var(--bg-white); padding: 30px; border-radius: 12px; box-shadow: var(--box-shadow); border: 1px solid #edf2f7; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-header h3 { margin: 0; font-size: 1.5rem; }
.calendar-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--primary-color); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; text-align: center; }
.calendar-day-name { font-weight: bold; color: var(--text-muted); padding: 10px 0; }
.calendar-day { padding: 15px; border-radius: 8px; border: 1px solid #edf2f7; cursor: default; transition: all 0.3s; color: #a0aec0; }
.calendar-day.available { background-color: #fff5f5; color: var(--primary-color); border-color: #fed7d7; cursor: pointer; font-weight: bold; }
.calendar-day.available:hover { background-color: #fed7d7; }
.calendar-day.selected { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.time-slots { margin-top: 30px; display: none; }
.time-slots.active { display: block; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; margin-top: 15px; }
.time-slot { padding: 12px; text-align: center; border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 6px; cursor: pointer; transition: 0.3s; font-weight: 600; }
.time-slot:hover, .time-slot.selected { background-color: var(--primary-color); color: #fff; }
.booking-form-container { margin-top: 30px; display: none; padding-top: 30px; border-top: 1px solid #edf2f7; }
.booking-form-container.active { display: block; }

/* Blog Styles */
.blog-section { padding: 80px 0; background-color: var(--bg-light); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.blog-card { background: var(--bg-white); border-radius: 0; overflow: hidden; box-shadow: var(--box-shadow); transition: 0.3s; border: 1px solid #edf2f7; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(10, 66, 117, 0.12); border-color: var(--primary-color); }
.blog-image { width: 100%; height: 240px; object-fit: cover; border-bottom: 3px solid var(--primary-color); }
.blog-content { padding: 30px; }
.blog-date { font-size: 0.9rem; color: var(--primary-color); margin-bottom: 15px; display: block; font-weight: 600; }
.blog-title { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-dark); line-height: 1.4; }
.blog-excerpt { color: var(--text-muted); margin-bottom: 25px; line-height: 1.7; }
/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    left: auto;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

/* Page Background Watermark Logo */
body::before {
    content: "";
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 650px);
    height: min(80vw, 650px);
    background-image: url('./logo.png?v=1.4');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08; /* Balanced elegance and visible watermark overlay */
    pointer-events: none; /* Make click-through and completely non-blocking */
    z-index: 99; /* Float above the white section backgrounds, but below headers and hero sections */
}
