/* ------------------------------
   Base styles
------------------------------ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #222222;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}


/* ------------------------------
   Header and navigation
------------------------------ */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #dddddd;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    color: #222222;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #9a5a2e;
}


/* ------------------------------
   Hero section
------------------------------ */

.hero {
    display: flex;
    min-height: 680px;
    align-items: center;
    color: #ffffff;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("../images/main-page.png") center center / cover no-repeat;
}

.hero-content {
    max-width: 760px;
}

.hero h2 {
    margin: 0 0 20px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.05;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.hero p {
    max-width: 650px;
    margin: 0 0 30px;
    font-size: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}


/* ------------------------------
   Buttons
------------------------------ */

.button {
    display: inline-block;
    padding: 14px 24px;
    color: #ffffff;
    background: #9a5a2e;
    border: 2px solid #9a5a2e;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: #74401f;
    border-color: #74401f;
    transform: translateY(-2px);
}


/* ------------------------------
   General sections
------------------------------ */

.section {
    padding: 90px 0;
}

.section-alt {
    background: #f4f1eb;
}

.section h2 {
    margin: 0 0 35px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
}


/* ------------------------------
   Services
------------------------------ */

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

.service-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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

.service-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.service-card p {
    margin-bottom: 0;
    color: #555555;
}


/* ------------------------------
   Contact section
------------------------------ */

#contact a {
    color: #9a5a2e;
    font-weight: 700;
}


/* ------------------------------
   Footer
------------------------------ */

footer {
    padding: 35px 0;
    color: #ffffff;
    background: #1c1c1c;
}

footer p {
    margin: 0;
}


/* ------------------------------
   Tablet and mobile
------------------------------ */

@media (max-width: 850px) {
    .header-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .hero {
        min-height: 600px;
        background-position: center;
    }

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

@media (max-width: 600px) {
    header {
        position: relative;
    }

    .hero {
        min-height: 560px;
        padding: 70px 0;
    }

    .hero h2 {
        font-size: 2.6rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .section {
        padding: 65px 0;
    }

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