:root {
    --primary-blue: #005596; 
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --mih-orange: #f37021; 
    --text-color: #444;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.text-center { text-align: center; }
.mb-40 { margin-bottom: 40px; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img { height: 60px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; color: var(--dark-grey); font-size: 1rem; }
.nav-links a:hover { color: var(--primary-blue); }

.cta-btn {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
}
.cta-btn:hover { filter: brightness(90%); }
.btn-accent { background-color: var(--mih-orange); }

.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

.hero-carousel {
    position: relative;
    height: 80vh; 
    overflow: hidden;
    background-color: var(--dark-grey); 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.slide.active {
    opacity: 1; 
    z-index: 1;
}

.slide-1 {
    background-image: linear-gradient(rgba(0, 85, 150, 0.6), rgba(0, 63, 112, 0.8)), url('../images/hiking couple.png');
}

.slide-2 {
    background-image: linear-gradient(rgba(0, 85, 150, 0.6), rgba(0, 63, 112, 0.8)), url('../images/Peds Ortho.png');
}

.slide-3 {
    background-image: linear-gradient(rgba(0, 85, 150, 0.6), rgba(0, 63, 112, 0.8)), url('../images/side by side fab.png');
}

.slide-4 {
    background-image: linear-gradient(rgba(0, 85, 150, 0.6), rgba(0, 63, 112, 0.8)), url('../images/BE gym.png');
}

.slide-5 {
    background-image: linear-gradient(rgba(0, 85, 150, 0.6), rgba(0, 63, 112, 0.8)), url('../images/assisted walking edit.png');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 5px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: var(--white);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .carousel-btn { padding: 5px 10px; font-size: 1.5rem; }
}

.hero-content h1 { font-size: 3rem; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 1.25rem; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }

.about-section { padding: 80px 0; text-align: center; }
.section-title { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 10px; }
.section-subtitle { font-size: 1.1rem; color: #666; margin-bottom: 50px; font-style: italic; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--light-grey);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    border-top: 4px solid var(--primary-blue);
}
.feature-card h3 { margin-bottom: 15px; color: var(--dark-grey); }

.services-section { background-color: #f9f9f9; padding: 80px 0; }
.section-desc { text-align: center; max-width: 600px; margin: 0 auto 50px auto; }
.services-container { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }

.service-box {
    background: var(--white);
    flex: 1;
    min-width: 300px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    transition: transform 0.3s;
}
.service-box:hover { transform: translateY(-5px); }
.service-box h3 { color: var(--primary-blue); margin-bottom: 20px; font-size: 1.5rem; }
.service-box ul { list-style-type: disc; padding-left: 20px; }
.service-box li { margin-bottom: 10px; }

.locations-section { padding: 80px 0; }
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.location-card { border: 1px solid #ddd; padding: 25px; border-radius: 8px; text-align: center; }
.location-card h4 { color: var(--primary-blue); margin-bottom: 10px; font-size: 1.2rem; }
.location-card p { font-size: 0.95rem; color: #555; margin-bottom: 15px; }
.map-link { font-size: 0.9rem; color: var(--primary-blue); text-decoration: underline; }

.partnership-section {
    background-color: #f8f9fa; 
    padding: 80px 0; 
    border-top: 1px solid #eee;
}

.partnership-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 60px; 
    align-items: center; 
    max-width: 1000px;
    margin: 0 auto;
}

.partner-logo-box {
    display: flex;
    justify-content: center;
}

.partner-logo-box img {
    width: 100%;
    max-width: 450px; 
    height: auto;
    transition: transform 0.3s;
}

.partner-logo-box img:hover { transform: scale(1.02); }

.partner-text-box p {
    font-size: 1.15rem; 
    color: #555;
    line-height: 1.8;
}

footer { background-color: #1a1a1a; color: #bbb; padding: 60px 0 20px; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.contact-column h3 {
    color: var(--white); margin-bottom: 20px; font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-blue); display: inline-block; padding-bottom: 10px;
}
.contact-column p { margin-bottom: 12px; color: #ccc; font-size: 0.95rem; }
.contact-column strong { color: #fff; }

.logo-column { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logo-img { height: 150px; width: auto; margin-bottom: 15px; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8)); }
.partner-note { margin-top: 15px; font-size: 0.9rem; color: var(--mih-orange); }

.footer-divider { border: 0; border-top: 1px solid #333; margin: 40px 0; }
.copyright { text-align: center; font-size: 0.85rem; color: #888; }

@media (max-width: 768px) {
    .navbar { height: auto; padding: 15px 0; }
    .nav-links { display: none; flex-direction: column; width: 100%; text-align: center; margin-top: 20px; }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    
    .hero-content h1 { font-size: 2rem; }
    
    .contact-grid { text-align: center; }
    
    .partnership-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .partner-logo-box img {
        max-width: 300px; 
    }
}

#slow-underline {
    text-decoration: none; 
    position: relative;
    color: #0076bf; 
    

    
    background-image: linear-gradient(to right, #f15825, #f15825);
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: 0% 2px; 
    
    transition: background-size 0.8s ease, color 0.3s ease;
    padding-bottom: 2px; 
}

#slow-underline:hover {
    background-size: 100% 2px; 
    color: #f15825;
}

#slow-underline:active,
#slow-underline:visited {
    color: #0076bf;
}

.phoneNum {
    display: inline-block; 
    transition: all 0.2s ease;
}

.phoneNum:hover {
    font-weight: bold;
    text-decoration: underline;
}