/* PhysioVisit Website CSS - Inspired by PhysioCompany.nl */

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

/* Updated Color Scheme for Better Warmth and Contrast - Medical Friendly */
:root {
    --primary-warm-grey: #6D8299;
    --secondary-olive: #A3BFFA;
    --secondary-olive-hover: #87AFC7;
    --accent-terracotta: #D4A373;
    --accent-terracotta-hover: #B8865A;
    --text-dark: #2F2F2F;
    --text-light: #5A5A5A;
    --background-cream: #F5F1E9;
    --background-white: #FFFFFF;
    --border-warm: #6D8299;
    --shadow-warm: rgba(47, 47, 47, 0.1);
    --shadow-medium: rgba(47, 47, 47, 0.15);
    
    /* Legacy support - gradually phase out */
    --primary-blue: var(--primary-warm-grey);
    --primary-blue-hover: var(--accent-terracotta);
    --secondary-green: var(--secondary-olive);
    --background-light: var(--background-cream);
    --accent-orange: var(--accent-terracotta);
    --accent-orange-hover: var(--accent-terracotta-hover);
    --border-light: var(--border-warm);
    --shadow-light: var(--shadow-warm);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-cream);
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.6;
}

/* Custom Button Styles - PhysioCompany Style */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--secondary-olive);
    color: var(--text-dark);
    border: 2px solid var(--secondary-olive);
    border-radius: 8px;
    padding: 12px 24px;
    box-shadow: 0 2px 8px var(--shadow-warm);
}

.btn-primary:hover {
    background-color: var(--secondary-olive-hover);
    color: var(--text-dark);
    border-color: var(--secondary-olive-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-accent {
    background-color: var(--accent-terracotta);
    color: var(--background-white);
    border: 2px solid var(--accent-terracotta);
    border-radius: 8px;
    padding: 12px 24px;
    box-shadow: 0 2px 8px var(--shadow-warm);
}

.btn-accent:hover {
    background-color: var(--accent-terracotta-hover);
    color: var(--background-white);
    border-color: var(--accent-terracotta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-outline-primary {
    color: var(--primary-warm-grey);
    border: 2px solid var(--primary-warm-grey);
    background-color: transparent;
    border-radius: 8px;
    padding: 12px 24px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-warm-grey);
    color: var(--background-white);
    border-color: var(--primary-warm-grey);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn i {
    margin-right: 8px;
}

/* Navigation - Clean PhysioCompany Style */
.navbar-custom {
    background-color: var(--background-white);
    box-shadow: 0 2px 20px var(--shadow-warm);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-warm);
}

.navbar-brand {
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 1.75rem;
    text-decoration: none;
}

.navbar-brand img {
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-terracotta);
    background-color: var(--background-cream);
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    background-color: var(--background-light);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section - PhysioCompany Inspired */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 200px;
    padding-bottom: 100px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    z-index: 2;
    position: relative;
    text-align: left;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* Service Cards - Modern Clean Style */
.service-card {
    background: var(--background-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 8px var(--shadow-warm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-warm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-terracotta), var(--secondary-olive));
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.service-card img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center center;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Benefits Lists */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.benefits-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-green);
    font-weight: bold;
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(46, 125, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Icon Boxes - Clean Professional Style */
.icon-box {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-warm-grey);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-warm);
}

.icon-circle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px var(--shadow-medium);
    background-color: var(--accent-terracotta);
}

.icon-circle.green {
    background-color: var(--secondary-olive);
    box-shadow: 0 4px 15px var(--shadow-warm);
}

.icon-circle.orange {
    background-color: var(--accent-terracotta);
    box-shadow: 0 4px 15px var(--shadow-warm);
}

/* Section Styling */
.section {
    padding: 5rem 0;
}

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

.section-alt {
    background-color: var(--background-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header .lead {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Forms - Clean Professional Style */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-light);
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--background-white);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    background-color: var(--background-white);
}

.form-select {
    border-radius: 8px;
    border: 2px solid var(--border-light);
    padding: 12px 16px;
    font-size: 16px;
    background-color: var(--background-white);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Testimonials - PhysioCompany Style */
.testimonial-card {
    background: var(--background-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-bottom: 2rem;
    position: relative;
    border-left: 4px solid var(--primary-blue);
}

.testimonial-card::before {
    content: """;
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-content {
    margin-left: 2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Team Photos - Professional Style */
.team-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.team-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

.team-photo img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-photo:hover img {
    transform: scale(1.05);
}

.team-photo-round {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-light);
}

.team-photo-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer - Clean Professional */
.footer-custom {
    background-color: var(--text-dark);
    color: var(--background-cream);
    padding: 4rem 0 2rem;
}

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

.footer-custom a {
    color: var(--background-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom a:hover {
    color: var(--accent-terracotta);
}

.footer-custom .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-warm-grey);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-custom .social-links a:hover {
    background-color: var(--accent-terracotta);
    transform: translateY(-3px);
}

/* FAQ Section */
.faq-item {
    background: var(--background-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--border-light);
}

.faq-question {
    background: var(--primary-blue);
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
}

.faq-question:hover {
    background: var(--primary-blue-hover);
}

.faq-question::after {
    content: '+';
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

/* Call to Action Sections */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-hover));
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
}

/* Price Calculator */
.price-calculator {
    background: var(--background-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 2px solid var(--border-light);
}

.price-display {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.price-display .amount {
    font-size: 2rem;
    font-weight: 700;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .icon-box {
        margin-bottom: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .team-photo {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

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

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Smooth animations */
* {
    scroll-behavior: smooth;
}

/* Additional utility classes for warm medical theme */
.text-primary-custom {
    color: var(--accent-terracotta) !important;
}

.text-secondary-custom {
    color: var(--secondary-olive) !important;
}

.bg-primary-custom {
    background-color: var(--primary-warm-grey) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-olive) !important;
}

.border-primary-custom {
    border-color: var(--border-warm) !important;
}

/* Bootstrap overrides for medical warm theme */
.text-primary {
    color: var(--accent-terracotta) !important;
}

.text-success {
    color: var(--secondary-olive) !important;
}

.btn-success {
    background-color: var(--secondary-olive);
    border-color: var(--secondary-olive);
    color: var(--text-dark);
}

.btn-success:hover {
    background-color: var(--secondary-olive-hover);
    border-color: var(--secondary-olive-hover);
}

/* Form controls with warm theme */
.form-control:focus {
    border-color: var(--accent-terracotta);
    box-shadow: 0 0 0 0.2rem rgba(212, 163, 115, 0.25);
}

.form-select:focus {
    border-color: var(--accent-terracotta);
    box-shadow: 0 0 0 0.2rem rgba(212, 163, 115, 0.25);
}

/* Alert components */
.alert-info {
    background-color: rgba(163, 191, 250, 0.1);
    border-color: var(--secondary-olive);
    color: var(--text-dark);
}

.alert-success {
    background-color: rgba(212, 163, 115, 0.1);
    border-color: var(--accent-terracotta);
    color: var(--text-dark);
}

/* Image loading and fallback styles */
img {
    transition: opacity 0.3s ease;
}

img[src=""] {
    display: none;
}

.img-fallback {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    min-height: 200px;
    border-radius: 8px;
}

.img-fallback::before {
    content: "📷 Afbeelding laden...";
    font-size: 16px;
    text-align: center;
}

/* Ensure hero images load properly */
.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Logo specific styles */
.navbar-brand img {
    max-width: 45px;
    height: auto;
}

/* Mission Banner Section */
.mission-banner {
    padding: 80px 0;
    position: relative;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
}

.mission-benefit {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.mission-benefit i {
    color: var(--accent-orange);
}

/* Service Image Containers */
.service-image-container {
    width: 100%;
    height: 480px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 24px;
    position: relative;
    background: white;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
    display: block;
}

.service-image:hover {
    transform: scale(1.05);
}

.service-content {
    flex-grow: 1;
    padding: 24px 0;
}

/* Choice Cards for Verhuur Page */
.choice-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.choice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.choice-image-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
}

.choice-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.choice-card:hover .choice-image {
    transform: scale(1.05);
}

.choice-content {
    padding: 30px;
}

.choice-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.choice-badge.green {
    background: var(--secondary-green);
}

.choice-badge.orange {
    background: var(--accent-orange);
}

.benefits-section h5 {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.pricing-info {
    background: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.pricing-info .d-flex {
    margin-bottom: 8px;
    font-size: 14px;
}

.pricing-info .d-flex:last-child {
    margin-bottom: 0;
}

/* Team Photo Containers */
.team-photo-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
}

.team-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-photo-round {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 20px var(--shadow-light);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
}

.team-photo-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 150px;
        padding-bottom: 80px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .mission-banner {
        background-attachment: scroll;
        padding: 60px 0;
    }
    
    .choice-card {
        margin-bottom: 30px;
    }
    
    .service-image-container {
        height: auto;
    }
    
    .choice-image-container {
        height: 220px;
    }
    
    .team-photo-round {
        width: 150px;
        height: 150px;
    }
}