:root {
    --brand-red: #b82e2f; 
    --brand-gray: #777777; 
    --text-color: #333333;
    --text-on-dark: #ffffff;
    --background-light: #ffffff;
    --border-color: #dddddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-light);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: #ffffff; 
    border-bottom: 3px solid var(--brand-red);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    max-height: 80px; 
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--brand-red);
}

.btn-appointment {
    background-color: var(--brand-red);
    color: var(--text-on-dark);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    background-color: #f1f1f1;
    text-align: center;
    padding: 4rem 20px;
    border-bottom: 4px solid var(--brand-gray);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--brand-red);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero .tagline {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000000;
    margin-top: 10px;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

h2 {
    color: var(--brand-gray);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--brand-red);
    display: inline-block;
    padding-bottom: 5px;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.review-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.review-stars { color: #f4b400; font-size: 1.2rem; margin-bottom: 10px; }
.review-author { font-weight: bold; margin-bottom: 5px; display: block; }
.review-text { font-style: italic; font-size: 0.95rem; color: #555; }

/* --- Dropdown Logic --- */

/* The container <li> */
.dropdown {
    position: relative;
    display: inline-block;
}

/* The hidden menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 3px solid var(--brand-red);
    border-radius: 0 0 8px 8px;
    text-align: left;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: var(--brand-gray);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f1f1;
}

/* Change color on hover */
.dropdown-content a:hover {
    background-color: #fceced;
    color: var(--brand-red);
}

/* Show the menu when hovering over the parent <li> */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Add a little arrow indicator */
.dropbtn::after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

/* Alternating layout for a professional look */
.team-member:nth-child(even) {
    flex-direction: row-reverse;
    background-color: #fcfcfc;
}

.team-member:nth-child(even) .team-bio {
    text-align: right;
}

.team-member:nth-child(even) .specialty-tags {
    justify-content: flex-end;
}

/* Mobile reset for alternating layout */
@media (max-width: 850px) {
    .team-member:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    .team-member:nth-child(even) .team-bio, 
    .team-member:nth-child(even) .specialty-tags {
        text-align: center;
        justify-content: center;
    }

/* Kadence PT Financing Page Styles */

.financing-section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.financing-info {
    flex: 1;
    min-width: 300px;
}

.financing-widget-container {
    flex: 1;
    min-width: 350px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Style for the 'Apply Now' Button we created earlier */
.apply-button {
    background-color: #005a87;
    color: white !important;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s ease;
    text-align: center;
}

.apply-button:hover {
    background-color: #004466;
}

}
footer {
    background-color: var(--brand-gray);
    color: var(--text-on-dark);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* --- Footer Side-by-Side Layout --- */
.site-footer {
    background-color: var(--brand-gray);
    color: white;
    padding: 60px 0 20px 0;
    margin-top: 60px;
}

.footer-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.footer-contact-info {
    flex: 1; /* Takes up left half */
}

.footer-contact-info p {
    margin: 5px 0;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.footer-map-container {
    flex: 1.2; /* Takes up slightly more space for the map */
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
    background: white;
    padding: 8px;
    border-radius: 4px;
}

.footer-directions-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--brand-red);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.footer-directions-btn:hover {
    background-color: #a31d23; /* Slightly darker red */
}

.footer-copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* Responsive: Stacks on top of each other on Mobile */
@media (max-width: 850px) {
    .footer-flex-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-map-container {
        width: 100%;
    }
}

<footer>
    <div class="container">
        <p>&copy; 2026 Kadence Physical Therapy LLC. | <a href="payment.html" style="color: white; text-decoration: underline;">Online Bill Pay</a></p>
    </div>
</footer>
