/* 
* PhysioHealth Clinic - Custom CSS Styles
* This stylesheet contains custom styles for the physiotherapy clinic website
*/

/* ======= Base Styles ======= */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #4dabf7;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #20c997;
    --text-color: #212529;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
}

/* ======= Typography ======= */
.text-primary {
    color: var(--primary-color) !important;
}

.display-4 {
    font-weight: 700;
}

.lead {
    font-weight: 400;
}

/* ======= Buttons ======= */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-lg {
    padding: 0.8rem 2rem;
}

/* ======= Navbar ======= */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
}

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

/* ======= Hero Section ======= */
.hero-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.hero-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* ======= Features Section ======= */
.features-section {
    background-color: #f0f8ff;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======= Services Section ======= */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ======= Testimonials Section ======= */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ======= CTA Section ======= */
.cta-section {
    background-color: var(--primary-color);
}

/* ======= Footer ======= */
footer {
    background-color: var(--dark-color);
}

.social-links a {
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

.contact-info i {
    width: 20px;
}

/* ======= Page Headers ======= */
.page-header {
    padding: 3rem 0;
    background-color: #e7f5ff;
}

/* ======= About Page ======= */
.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ======= Services Page ======= */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    transition: background-color 0.3s ease;
}

.process-step:hover .step-number {
    background-color: #0b5ed7;
}

/* ======= Schedule Page ======= */
.schedule-info .table {
    margin-bottom: 0;
}

.schedule-info th, .schedule-info td {
    padding: 1rem;
}

/* ======= Contact Page ======= */
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-form-container {
    border-radius: var(--border-radius);
}

/* ======= Responsive Adjustments ======= */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin: 1rem 0;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .about-preview-section {
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        text-align: center;
    }
}

/* ======= Accessibility Improvements ======= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus {
    outline: 3px solid rgba(13, 110, 253, 0.25);
    outline-offset: 2px;
}

/* For high contrast mode */
@media screen and (forced-colors: active) {
    .btn {
        border: 2px solid;
    }
}

/* ======= Animations ======= */
.separator {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Fade-in animation for sections */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    animation: fadeIn 1s ease-out;
}


.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 10px; /* Adjust spacing between image and text */
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333; /* Choose a color for the text */
}


.gallery-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}

.gallery-overlay {
    position: relative;
}

.gallery-overlay::after {
    content: '+ View More';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay:hover::after {
    opacity: 1;
}
