/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #ff6b35;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --white: #fff;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* For fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* Header & Navigation */
.header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand .logo {
    max-height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    position: relative;
}

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

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

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

.contact-info a {
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 120px 0 100px;
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Why Choose Us */
.why-us {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.feature-box {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Clinics Preview */
.clinics-preview {
    padding: 80px 0;
}

.clinic-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.clinic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.clinic-logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.clinic-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.clinic-info {
    padding: 1.5rem;
}

.clinic-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonial-item {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    position: relative;
    padding: 0 1.5rem;
}

.testimonial-text:before,
.testimonial-text:after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text:before {
    content: '\f10d';
    left: 0;
    top: -10px;
}

.testimonial-text:after {
    content: '\f10e';
    right: 0;
    bottom: -20px;
}

.testimonial-author h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.testimonial-author p {
    color: var(--text-muted);
    margin-bottom: 0;
}

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

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-info h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.contact-info ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.contact-info ul li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
    color: var(--primary-color);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

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

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer .social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 10px;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-footer {
    border-top: none;
    padding: 0.5rem 1.5rem 1.5rem;
}

.modal-body {
    padding: 0 1.5rem 1.5rem;
}

/* Form Styles */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #e1e5ee;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.15);
}

textarea.form-control {
    min-height: 120px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p.lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 100px 0 80px;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}
