/* ==========================================
   GLOBAL STYLES
   Base Site Rules
========================================== */


/* ---------- Reset ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background: var(--color-background);
    color: var(--color-text);
}


/* ---------- Elements ---------- */

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--font-title);
    color: var(--color-text);
}

h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 50px;
}


/* ---------- Layout ---------- */

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}


/* ---------- Header ---------- */

.header {
    background: rgba(255,255,255,.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-small);
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: var(--color-primary);
}

.menu {
    display: flex;
    gap: 35px;
}

.menu a {
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition-fast);
}

.menu a:hover {
    color: var(--color-primary);
}


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

.hero {
    height: 650px;
    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(
        90deg,
        rgba(45,25,15,.75),
        rgba(45,25,15,.35)
    );
}

.hero-content {
    max-width: 700px;
    color: var(--color-white);
}

.hero h1 {
    color: var(--color-white);
    font-size: 58px;
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero p {
    color: var(--color-white);
    font-size: 22px;
    margin-bottom: 35px;
}


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

.button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition-base);
}

.button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}


/* ---------- Cards ---------- */

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

.card {
    background: var(--color-white);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.card img {
    height: 240px;
}

.card h3 {
    padding: 20px 25px 10px;
    font-size: 26px;
}

.card p {
    padding: 0 25px 25px;
    color: var(--color-text-soft);
}


/* ---------- Situations ---------- */

.situations {
    background: var(--color-background-soft);
}


/* ---------- Map ---------- */

.map {
    overflow: hidden;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}


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

footer {
    padding: 50px 0;
    background: var(--color-dark);
    color: var(--color-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

footer h3 {
    color: var(--color-white);
}

footer p {
    color: #dfd2c8;
}


/* ---------- Responsive ---------- */

@media (max-width: 992px) {

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

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

}


@media (max-width: 768px) {

    .header-inner {
        height: auto;
        padding: 20px 0;
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        height: 550px;
    }

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

    .hero p {
        font-size: 18px;
    }

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

    .section {
        padding: 55px 0;
    }

    .footer-content {
        flex-direction: column;
    }

}


@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .logo {
        font-size: 22px;
    }

    .menu {
        flex-direction: column;
        align-items: center;
    }

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

}