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

:root {
    --primary-color: #2c5f8d;
    --secondary-color: #4a9fd8;
    --accent-color: #66bb6a;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
}

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

/* Hero Section */
#hero {
    background: linear-gradient(135deg, rgba(232, 244, 248, 0.45) 0%, rgba(245, 247, 250, 0.45) 50%, rgba(240, 232, 245, 0.45) 100%), url('../img/physiotherapy-template-design.jpg') center/cover no-repeat;
    color: var(--text-dark);
    min-height: 80vh; /* reduce height for quicker content access */
    display: flex;
    flex-direction: column;
    margin: 15px;
    border-radius: 15px;
}

nav {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.logo img {
    height: 300px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 900px;
    color: #001f3f;
}

.subheadline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.booking-note {
    font-size: 1.235rem;
    font-style: italic;
    margin-top: 10px;
    color: #ffffff;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #4a9fd8 0%, #ffffff 100%);
    color: #001f3f;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a8ec8 0%, #f0f0f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #006994 0%, #40e0d0 50%, #ffffff 100%);
    color: #001f3f;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #005580 0%, #30d0c0 50%, #f0f0f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* About Section */
#about {
    padding: 80px 20px;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    padding: 10px; /* spacing between image and border */
    border: 3px solid #ffffff; /* actual visible white border */
    background: transparent; /* remove fill so border is distinct */
    border-radius: 25px; /* match image radius */
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

/* Wrapper with inner border effect */
.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img {
    display: block;
    border-radius: 25px; /* match existing radius */
}

.image-wrapper::after {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    border: 3px solid #ffffff;
    border-radius: 21px; /* slightly smaller to sit inside */
    pointer-events: none;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.credentials {
    list-style: none;
    margin: 30px 0;
}

.credentials li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
}

.credentials li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.trust-line {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

/* Services Section */
#services {
    padding: 80px 20px;
    background: var(--bg-light);
}

#services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 1.5rem;
    background: #f7faf9;
}

.testimonials .container {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #4a9fd8 0%, #ffffff 100%);
    padding: 2rem 1.75rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: #083b5e; /* improved contrast over gradient */
    font-size: 0.95rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #e1ece8;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #314047;
    margin-bottom: 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: #1b7f82;
    margin-bottom: 0.25rem;
}

.testimonial-rating {
    font-size: 1.2rem;
    color: #ffc107;
    letter-spacing: 2px;
}

/* Why Choose Section */
#why-choose {
    padding: 80px 20px;
    background: var(--bg-light);
}

#why-choose h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.benefits-list {
    max-width: 700px;
    margin: 0;
    list-style: none;
}

.benefits-list li {
    font-size: 1.3rem;
    padding: 20px;
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    color: var(--text-dark);
}

.why-choose-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

/* Location Section */
#location {
    padding: 80px 20px;
    background: var(--white);
}

#location h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.location-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    margin-top: 30px;
}

.location-info h3:first-child {
    margin-top: 0;
}

.location-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.parking-info {
    margin-top: 30px;
    font-style: italic;
    color: var(--accent-color);
}

.location-map iframe {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Contact Section */
#contact {
    padding: 80px 20px;
    background: var(--bg-light);
}

#contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-methods {
    margin-top: 30px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-block;
    margin: 10px 0;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

/* Removed unused contact form styles (form not present) */

.contact-content-simple {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-center {
    text-align: center;
}

.contact-info-center p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-methods-center {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.contact-methods-center .contact-link {
    font-size: 1.4rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c5f8d 0%, #4a9fd8 50%, #8b7fbe 100%);
    color: var(--white);
    padding: 40px 20px 20px;
    text-align: center;
    margin: 15px;
    border-radius: 25px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto 20px;
    gap: 20px;
}

.footer-logo img {
    height: 160px;
    filter: brightness(0) invert(1);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 0.7;
}

.copyright,
.credit {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 10px;
}

.credit a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.credit a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Logo */
    .logo img {
        height: 200px;
    }
    
    .footer-logo img {
        height: 120px;
    }
    
    /* Hero Section */
    #hero {
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .subheadline {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .booking-note {
        font-size: 0.85rem;
        padding: 0 20px;
    }
    
    /* Sections */
    #about,
    #services,
    #testimonials,
    #why-choose,
    #location,
    #contact {
        padding: 50px 20px;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text h2,
    #services h2,
    #testimonials h2,
    #why-choose h2,
    #location h2,
    #contact h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .credentials li {
        font-size: 0.95rem;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* Testimonials Section */
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial {
        padding: 25px;
    }
    
    .quote {
        font-size: 1.1rem;
    }
    
    /* Benefits Section */
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .benefits-list li {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    /* Location Section */
    .location-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .location-info p {
        font-size: 1rem;
    }
    
    .location-map iframe {
        width: 100%;
        height: 300px;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info p,
    .contact-info-center p {
        font-size: 1.1rem;
    }
    
    .contact-link {
        font-size: 1.1rem;
    }
    
    .contact-methods-center .contact-link {
        font-size: 1.2rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 80px;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .subheadline {
        font-size: 1.1rem;
    }
    
    .about-text h2,
    #services h2,
    #testimonials h2,
    #why-choose h2,
    #location h2,
    #contact h2 {
        font-size: 1.7rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .benefits-list li {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Accessibility: Skip link styling */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    background: #ffffff;
    padding: 10px 15px;
    z-index: 1000;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}
