html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 95px;
    background-color: #f7f7f4;
    color: #0b2d52;
}

/* Navigation */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 50px;
    box-sizing: border-box;

    background: #f7f7f4;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    z-index: 1000;
}


.nav-brand {
    font-size: 28px;
    font-weight: bold;
    color: #0b2d52;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #0b2d52;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: #5b8c4b;
}

/* Hero section */

.hero {
    min-height: auto;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    padding: 5px 30px 55px;
    box-sizing: border-box;
    text-align: center;
}

.logo {
    width: 500%;
    max-width: 80%;
    width: 650px;
    max-width: 80%;
    margin-bottom: -45px;

}

.hero h1 {
    margin: -15px 0 20px;
    color: #0b2d52;
    font-size: 64px;
}

.hero p:first-of-type {
    margin: 0 0 30px;
    color: #0b2d52;
    font-size: 28px;
    font-weight: 500;
}

.hero-text {
    max-width: 750px;
    margin: 0 auto;
    color: #3f4c5a;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.7;
}

/* Buttons */

.cta-button {
    display: inline-block;

    margin-top: 35px;
    padding: 18px 40px;

    background-color: #0b2d52;
    color: white;

    border-radius: 8px;
    text-decoration: none;

    font-size: 20px;
    font-weight: bold;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.cta-button:hover {
    background-color: #5b8c4b;
    transform: translateY(-2px);
}

/* Services */

.services {
    padding: 50px 50px 90px;
    background-color: white;
}

.services h2 {
    margin: 0 0 60px;
    color: #0b2d52;
    font-size: 38px;
    text-align: center;
}

.service-grid {
    display: flex;
    gap: 30px;

    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    flex: 1;

    padding: 30px;
    background-color: #f7f7f4;

    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(11, 45, 82, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(11, 45, 82, 0.12);
}

.service-card h3 {
    margin-top: 0;
    color: #0b2d52;
}

.service-card p {
    color: #5b6770;
    line-height: 1.6;
}

/* About section */

.about {
    padding: 45px 30px 40px;
    text-align: center;
}

.about h2 {
    margin: 0 0 45px;
    color: #0b2d52;
    font-size: 42px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-photo {
    margin: 0 auto 40px;
}

.headshot {
    display: block;

    width: 330px;
    max-width: 100%;
    height: auto;

    margin: 0 auto 30px;

    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about h3 {
    margin: 0 0 20px;
    color: #0b2d52;
    font-size: 34px;
}

.about p {
    max-width: 700px;
    margin: 18px auto;

    color: #3f4c5a;

    font-size: 18px;
    font-weight: 500;
    line-height: 1.8;
}

/* Contact section */

.contact {
    padding: 35px 30px 100px;
    background-color: white;
    text-align: center;
}

.contact h2 {
    margin: 0 0 20px;
    color: #0b2d52;
    font-size: 42px;
}

.contact-intro {
    max-width: 650px;
    margin: 0 auto 50px;

    color: #0b2d52;

    font-size: 18px;
    line-height: 1.8;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 45px;

    background-color: #f7f7f4;

    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(11, 45, 82, 0.08);
}

.contact-box p {
    margin: 18px 0;

    color: #0b2d52;
    font-size: 20px;
}

/* Mobile layout */

@media (max-width: 750px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .nav-links {
        gap: 18px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p:first-of-type {
        font-size: 23px;
    }

    .hero-text {
        font-size: 19px;
    }

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

    .services {
        padding-right: 25px;
        padding-left: 25px;
    }
}

.footer {
    padding: 35px 30px;
    background-color: #0b2d52;
    color: white;
    text-align: center;
}

.footer p {
    margin: 0 0 18px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-links a:hover {
    color: #a8c79b;
}
