/* 
   Physiotherapy Website - Main Styles
   Theme: Modern, Aesthetic, Professional
   Colors: Deep Teal, Soft Sage, Coral, Off-white
*/

:root {
    --primary-color: #008080;
    /* Deep Teal */
    --secondary-color: #9CAF88;
    /* Soft Sage Green */
    --accent-color: #E07A5F;
    /* Coral/Terracotta */
    --bg-light: #F4F1DE;
    /* Off-white/Cream */
    --text-dark: #333333;
    /* Dark Charcoal */
    --text-light: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: color var(--transition-speed);
}

/* Navigation */
.navbar {
    background-color: rgb(255 255 255 / 95%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    font-weight: bold;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin-left: 1.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-custom:hover {
    background-color: #006666;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
    color: var(--text-light);
}

.btn-accent-custom {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accent-custom:hover {
    background-color: #d06045;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 122, 95, 0.4);
    color: var(--text-light);
}

.btn-lang-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-right: 1rem;
    transition: all 0.3s;
}

.btn-lang-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    /* Almost full screen */
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f5e9 100%);
}

.hero-content {
    z-index: 2;
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    /* Animated in JS */
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #555;
    opacity: 0;
    /* Animated in JS */
    transform: translateY(30px);
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
    opacity: 0;
    /* Animated in JS */
    transform: translateX(50px);
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Preview */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-title.text-start::after {
    margin-left: 0;
}

.section-title.text-end::after {
    margin-right: 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About Preview */
.about-preview {
    background-color: white;
}

.about-img {
    border-radius: 15px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: block;
    color: white;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.social-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: white;
}

/* Animations Classes */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-right {
    animation: fadeInRight 1s ease forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        height: auto;
        padding-top: 120px;
        padding-bottom: 50px;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image-wrapper {
        transform: translateY(30px) !important;
        opacity: 1 !important; /* Ensure visibility on mobile if animation fails */
    }

    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-top: 10px;
        text-align: center;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-item.ms-lg-3, .nav-item.ms-lg-2 {
        display: flex;
        justify-content: center;
        margin-top: 0.5rem !important;
    }

    .btn-lang-custom {
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .floating-actions {
        bottom: 20px;
        right: 20px;
        transform: scale(0.9);
        transform-origin: bottom right;
    }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
}

.float-whatsapp {
    background-color: #25D366;
}

.float-call {
    background-color: #008080;
}