@charset "utf-8";

/* General page styles */
* {
    box-sizing: border-box;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    color: #384238;
    background-color: #f5f1e6;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Header styles */
header {
    text-align: center;
    background-color: #243f35;
    color: #ffffff;
    padding: 20px;
}

.banner {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 5px;
    text-shadow: 2px 3px 4px #111111;
}

header p {
    margin-top: 5px;
    color: #e4e9df;
}

/* Navigation styles */
nav {
    background-color: #3c5a46;
    margin-bottom: 30px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    flex: 1;
    text-align: center;
}

nav a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 10px;
    font-weight: bold;
    transition: background-color 0.5s ease-in 0.2s,
                color 0.5s ease-in 0.2s,
                font-size 0.5s ease;
}

nav a:hover,
nav a:focus {
    background-color: #d5b982;
    color: #243f35;
    font-size: 1.1em;
}

/* Main content */
main {
    margin-top: 70px;
    margin-bottom: 40px;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #294c38;
    border-bottom: 2px solid #c3a66b;
    padding-bottom: 8px;
}

h3 {
    color: #3c5a46;
}

p {
    margin-bottom: 15px;
}

a {
    color: #315d43;
}

a:hover {
    color: #8a642b;
}

/* Main page service columns */
.columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.service-card {
    background-color: #ffffff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.service-card h3 {
    margin-bottom: 10px;
}

/* Highlighted content */
.intro,
.highlight {
    background-color: #e7e3d5;
    padding: 25px;
    border-left: 5px solid #3c5a46;
    border-radius: 5px;
}

.highlight ul,
.highlight ol {
    padding-left: 30px;
}

/* Buttons */
.button,
button {
    display: inline-block;
    background-color: #3c5a46;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    margin-top: 10px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease,
                color 0.3s ease;
}

.button:hover,
button:hover {
    background-color: #d5b982;
    color: #243f35;
}

/* Pricing table */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    margin-top: 20px;
}

caption {
    font-weight: bold;
    padding: 12px;
    color: #294c38;
}

th,
td {
    border: 1px solid #c9c9b9;
    padding: 14px;
    text-align: left;
}

th {
    background-color: #3c5a46;
    color: #ffffff;
}

tbody tr:nth-child(even) {
    background-color: #e7e3d5;
}

/* Contact form */
.form-container {
    max-width: 850px;
    margin: 0 auto 40px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

fieldset {
    border: 1px solid #b8c2b5;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

legend {
    color: #294c38;
    font-weight: bold;
    padding: 0 8px;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #aab3a5;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    background-color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3c5a46;
    outline-offset: 2px;
}

textarea {
    resize: vertical;
}

.choice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.choice input {
    width: auto;
    margin: 0;
}

.choice label {
    margin: 0;
    font-weight: normal;
}

.reset-button {
    background-color: #777777;
}

/* Footer */
footer {
    background-color: #243f35;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer p {
    margin: 5px;
}

/* Tablet screens */
@media screen and (max-width: 900px) {
    body {
        width: 95%;
    }

    .columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    header h1 {
        font-size: 1.8em;
    }
}

/* Mobile screens */
@media screen and (max-width: 600px) {
    body {
        width: 100%;
    }

    header {
        padding: 12px;
    }

    .banner {
        height: 180px;
    }

    header h1 {
        font-size: 1.5em;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        padding: 12px;
    }

    main {
        padding: 0 15px;
        margin-top: 25px;
    }

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

    .service-card img{
        height: 220px;
    }

    .form-container {
        padding: 15px;
    }

    fieldset {
        padding: 12px;
    }

    th,
    td {
        padding: 9px;
        font-size: 0.9em;
    }

    .button,
    button {
        max-width: 100%;
    }
}