/* General Styles & Typography */
:root {
    --primary-color: #007BFF;
    --secondary-color: #28a745;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #555;
    --bg-color: #fff;
    --border-color: #eee;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    transition: background-color 0.3s ease;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p { margin-bottom: 1em; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

.section-subtitle {
    font-size: 1.2em;
    color: #888;
    margin-bottom: 2rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: #fff;
}

/* Header & Navigation */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Sections */
section {
    padding: 4rem 0;
    text-align: center;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1600x900?text=Health+Hero') no-repeat center center/cover;
    color: #fff;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 0.5rem;
    color: #fff;
}

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

.page-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0;
}

.page-header h1 {
    color: #fff;
    font-size: 3em;
}

/* Services Grid */
.services-section {
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

.service-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
}
.about-section .container {
    max-width: 900px;
}
.about-section h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 1rem;
}

.clients-section .client-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.client-logos img {
    max-width: 150px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logos img:hover {
    opacity: 1;
}

/* News Section */
.news-section {
    background-color: var(--bg-color);
    padding: 4rem 2rem;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    text-align: left;
}

.news-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.8em;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.news-content h3 {
    font-size: 1.25em;
    margin-bottom: 0.5rem;
}

.news-content p {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 1rem;
}

.news-date {
    font-size: 0.8em;
    color: #aaa;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: auto;
    padding: 0 2rem;
    text-align: left;
}

.contact-form-column, .contact-info-column {
    padding: 2rem;
    border-radius: 10px;
    background: var(--light-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

.contact-form textarea {
    resize: vertical;
}

.contact-info p {
    margin: 0.5rem 0;
}

/* Call to Action */
.cta-section {
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 2rem;
}

.cta-content {
    max-width: 800px;
    margin: auto;
}

.cta-content h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-size: 1.2em;
    margin-bottom: 2rem;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: #fff;
    padding: 4rem 2rem 2rem;
    text-align: left;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
    border-bottom: 1px solid #444;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3, .footer-nav h3, .footer-social h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-nav ul, .footer-social ul {
    list-style: none;
}

.footer-nav ul li, .footer-social ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a, .footer-social ul li a {
    color: #ccc;
}

.footer-nav ul li a:hover, .footer-social ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9em;
    color: #888;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 1rem;
    }

    .main-nav {
        margin-top: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .main-nav ul li {
        margin-left: 0;
    }
    
    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}
