:root {
    --primary-green: #156537;
    --secondary-green: #27ae60;
    --light-grey: #f5f5f5;
    --dark-grey: #535A5B;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: 50px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.2;
}

.logo-doctor {
    display: block;
    font-size: 1.0rem;
    color: var(--dark-grey);
    margin-top: -1px;
    font-weight: 500;
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--dark-grey);
    margin: 3px 0;
    transition: 0.4s;
}

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-dental.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

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

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-green);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--light-grey);
}

.services {
    padding: 4rem 5%;
    background-color: var(--light-grey);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    object-fit: cover;
}

.service-card-content {
    padding: 1rem;
}

.about {
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    gap: 40px;
}

.contact {
    background-color: var(--light-grey);
    padding: 4rem 5%;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.contact-details {
    flex: 1;
}

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

.contact-details a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.contact-map {
    flex: 1;
    max-width: 50%;
}

.contact-map img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-map img:hover {
    transform: scale(1.02);
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid var(--dark-grey);
    border-radius: 5px;
}

.team-photos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.team-photos img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

footer {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 1rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
}


.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

.social-links img {
    width: 100%;
    height: 100%;
}

.service-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background-color: rgba(0, 0, 0, 0.6);
}

.service-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.service-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.service-features li {
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

.service-details {
    padding: 4rem 5%;
    background-color: var(--light-grey);
}

.service-details .container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-description {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.service-text {
    flex: 1;
}

.service-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.service-text ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

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

.service-image {
    flex: 1;
    align-self: flex-start;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        flex-direction: column;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-form {
        width: 100%;
    }

    .service-description {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
        z-index: 10;
        background-color: var(--white);
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
}
