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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
    line-height: 1.7;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    padding: 40px 5%;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('https://images.unsplash.com/photo-1505118380757-91f5f5632de0?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
}

.hero-content {
    margin: auto 0;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Updated photo container to match position criteria */
.header-photo-container {
    margin: -10px 0 35px 0; 
    max-width: 250px; 
}

.clinical-headshot {
    width: 220px; 
    height: 220px; 
    object-fit: cover; 
    object-position: 60% 15%;
    border-radius: 50%; 
    border: 5px solid white; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 26px;
    background: #8ba8a1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
}

.section {
    padding: 80px 5%;
}

.container {
    max-width: 1150px;
    margin: auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.dark {
    background: #eef2f1;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.contact-box {
    background: white;
    padding: 35px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
}

footer {
    background: #161616;
    color: white;
    text-align: center;
    padding: 25px;
}

@media (max-width: 850px) {
    .hero {
        padding: 30px 20px;
    }
    
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-content {
        margin: 40px auto; 
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .header-photo-container {
        margin: 10px auto 30px auto;
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 50px 20px;
    }

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