/* Reset and Base Styles */
:root {
    --color-brand-primary: #40746c;
    --color-brand-primary-dark: #2f5852;
    --color-brand-neutral: #9d9d9c;
    --color-surface: #ffffff;
    --color-surface-soft: #f2f5f4;
    --color-text: #263230;
    --color-border: #ccd5d3;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--color-brand-primary-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--color-surface);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.logo-image {
    display: block;
    height: 46px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-surface);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--color-brand-neutral);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-surface);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(64, 116, 108, 0.86) 0%, rgba(47, 88, 82, 0.9) 100%), 
                url('assets/physiotherapy.jpg') center/cover no-repeat;
    color: var(--color-surface);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-surface);
    color: var(--color-brand-primary-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-brand-primary-dark);
}

.bg-light {
    background: var(--color-surface-soft);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    display: block;
}

.team-member h3 {
    color: var(--color-brand-primary-dark);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #65716f;
}

/* Treatments Section */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.treatment-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.treatment-card h3 {
    color: var(--color-brand-primary);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-info a {
    color: var(--color-brand-primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.hours {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-surface-soft);
    border-radius: 8px;
}

.hours h4 {
    color: var(--color-brand-primary-dark);
    margin-bottom: 0.5rem;
}

.vcard-qr {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-surface-soft);
    border-radius: 8px;
    text-align: center;
}

.vcard-qr h4 {
    color: var(--color-brand-primary-dark);
    margin-bottom: 0.5rem;
}

.vcard-qr p {
    margin-bottom: 1rem;
    color: #65716f;
}

.vcard-qr img {
    width: 180px;
    height: 180px;
}

.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-brand-primary);
}

.contact-form input.error,
.contact-form textarea.error,
.contact-form select.error {
    border-color: #e74c3c;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    min-height: 1.2em;
}

.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form .btn {
    width: 100%;
    background: var(--color-brand-primary);
    color: var(--color-surface);
}

/* Footer */
footer {
    background: var(--color-brand-primary-dark);
    color: var(--color-surface);
    padding: 2rem 0;
}

footer .container {
    text-align: left;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.footer-collab {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.75rem;
    font-size: 1rem;
}

.footer-collab-link {
    display: inline-flex;
    align-items: center;
}

.footer-collab-logo {
    height: 76px;
    width: auto;
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .logo-image {
        height: 38px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-brand-primary-dark);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        padding: 0.75rem 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-grid,
    .treatments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }
}