/* ==========================================
   Fizyoterapist Berre - Custom Styles
   ========================================== */

/* CSS Variables */
:root {
    --primary-color: #2E7D5E;
    --primary-dark: #1a5c42;
    --primary-light: #e8f5f0;
    --secondary-color: #4A90A4;
    --accent-color: #E8B86D;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --bg-light: #f8fafb;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Base Styles */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    padding-top: 76px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--text-dark);
}

/* Override Bootstrap Primary Color */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.bg-primary-soft {
    background-color: var(--primary-light) !important;
}

/* Focus Styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 94, 0.25);
    border-color: var(--primary-color);
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.25rem;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 76px);
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 50%, var(--primary-light) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle, rgba(46, 125, 94, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-image-wrapper {
    position: relative;
    padding: 2rem;
}

.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(46, 125, 94, 0.1) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.hero-image-placeholder {
    position: relative;
    z-index: 1;
    width: 350px;
    height: 350px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--primary-light);
}

/* Features Section */
.features-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid #eee;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* About Section */
.about-section {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-placeholder {
    width: 350px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 10%;
    background: var(--primary-color);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.experience-badge small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--white);
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.testimonial-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* Contact Section */
.contact-section {
    position: relative;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-wrapper {
    border: 1px solid #eee;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
}

.form-control-lg,
.form-select-lg {
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* Footer Styles */
.footer-section {
    position: relative;
}

.footer-links a {
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Utility Classes */
.rounded-4 {
    border-radius: var(--border-radius-lg) !important;
}

/* Smooth Scroll Offset for Fixed Navbar */
section[id] {
    scroll-margin-top: 100px;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .features-section {
        margin-top: 0;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }

    .nav-link::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .about-image-placeholder {
        width: 280px;
        height: 320px;
    }

    .experience-badge {
        right: 5%;
        bottom: 20px;
        padding: 1rem;
    }
}

/* ==========================================
   Service Detail Page Styles
   ========================================== */

/* Service Hero */
.service-hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 50%;
    height: 120%;
    background: radial-gradient(circle, rgba(46, 125, 94, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.service-icon-lg {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.service-hero-image {
    position: relative;
}

.service-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 350px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-light);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* Benefits & Techniques Lists */
.benefit-item,
.technique-item {
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-benefits .benefit-item,
.service-benefits .technique-item {
    background: transparent;
}

.benefit-item:hover,
.technique-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.benefit-icon,
.technique-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Conditions Section */
.condition-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.condition-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.condition-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Service CTA */
.service-cta {
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* Other Services */
.other-services .service-card {
    background: var(--white);
}

/* Service Contact */
.service-contact {
    background: var(--white);
}

/* Responsive */
@media (max-width: 991.98px) {
    .service-icon-lg {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .service-image-placeholder {
        max-width: 300px;
        height: 280px;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .service-hero {
        text-align: center;
    }

    .service-icon-lg {
        margin: 0 auto;
    }

    .service-hero .btn {
        width: 100%;
    }

    .breadcrumb {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer-section,
    .cta-section,
    .service-cta {
        display: none;
    }

    body {
        padding-top: 0;
    }
}
