@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

:root {
    --grey: #101010;
    --green: #00c856;
    --font-heading: 'Titillium Web', sans-serif;
    --font-body: 'Noto Serif', serif;
    font-size: 16px; /* Base font size for rem units */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-heading);
    text-align: center;
    background-color: #f9f9f9; /* Light background for better contrast */
    color: var(--grey);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

p {
    font-family: var(--font-body);
}

.navbar {
    background-color: var(--grey);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar h1 {
    font-size: 1.5rem;
    margin: 0;
}

.navbar p {
    color: var(--green);
    font-size: 1rem;
    margin: 0;
}

.navbar img {
    height: 3.75rem; /* 60px */
    margin-right: 1rem;
}

#nowrap {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--green);
}

#services, #price, #contact {
    scroll-margin-top: 5rem; /* Offset for sticky navbar height */
}

#services {
    position: relative;
    background-color: rgba(0, 0, 0, 0.384);
    color: white;
    padding: 3rem 1rem 4rem;
    overflow: hidden;
}

#leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8; /* Slightly reduced opacity for better text readability */
}

#services h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

#services h3 {
    color: var(--green);
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

#services p {
    font-size: 1.25rem;
    padding: 0 1.5rem;
}

#servicesflex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.servicebox {
    background-color: var(--grey);
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 20rem; /* 320px approx */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.servicebox:hover {
    transform: translateY(-5px);
}

#price {
    padding: 3rem 1rem;
    background-color: white;
}

#price h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#subparaprice {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

#pricing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.3125rem;
    cursor: pointer;
    background-color: var(--grey);
    color: var(--green);
    font-size: 1.125rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid transparent;
}

.button:hover {
    background-color: var(--green);
    color: var(--grey);
}

.button.selected {
    background-color: var(--green);
    color: var(--grey);
    border-color: var(--green);
}

#pricepara {
    font-size: 1.75rem;
    font-weight: 600;
    background-color: var(--green);
    color: var(--grey);
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.3125rem;
}

.smallerparagraph {
    font-size: 0.9375rem;
    color: #666;
}

#contact {
    background-color: var(--grey);
    color: white;
    padding: 3rem 1rem;
}

#contact h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#contact p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

form {
    max-width: 40rem; /* 640px */
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--grey);
    border: 1px solid white;
    border-radius: 0.3125rem;
    color: white;
    font-size: 1rem;
    font-family: var(--font-body);
}

textarea {
    resize: vertical;
    min-height: 6.25rem;
}

button {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--green);
    color: var(--grey);
    border: none;
    border-radius: 0.3125rem;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: var(--font-heading);
}

button:hover {
    background-color: #009e47; /* Slightly darker green for hover */
}

#footer {
    background-color: grey;
    color: black;
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
}

#footer a {
    color: black;
    text-decoration: none;
    margin: 0 0.625rem;
}

/* Media Queries for Responsiveness */

@media (max-width: 1024px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links a {
        font-size: 1.125rem;
        margin-left: 1rem;
    }

    #services h2 {
        font-size: 2.5rem;
    }

    .servicebox {
        max-width: 18rem;
    }

    #price h2 {
        font-size: 2.5rem;
    }

    #contact h2 {
        font-size: 2.5rem;
    }

    form {
        max-width: 35rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        justify-content: center;
    }

    .nav-links {
        display: none; /* Hide navigation links on smaller screens */
    }

    #nowrap {
        justify-content: center;
    }

    #servicesflex {
        flex-direction: column;
        align-items: center;
    }

    .servicebox {
        width: 90%;
        max-width: none;
    }

    #pricing {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 90%;
        text-align: center;
    }

    #contact p {
        text-align: center;
    }

    form {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px; /* Smaller base font for very small screens */
    }

    .navbar img {
        height: 2.5rem;
    }

    .navbar h1 {
        font-size: 1.25rem;
    }

    .navbar p {
        font-size: 0.875rem;
    }

    #services h2 {
        font-size: 2rem;
    }

    #services h3 {
        font-size: 1.5rem;
    }

    #services p {
        font-size: 1rem;
    }

    #price h2 {
        font-size: 2rem;
    }

    #subparaprice {
        font-size: 1rem;
    }

    #pricepara {
        font-size: 1.5rem;
    }

    #contact h2 {
        font-size: 2rem;
    }

    #contact p {
        font-size: 1rem;
    }

    button {
        font-size: 1rem;
    }
}