* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #f7f8f5;
    line-height: 1.6;
}

header {
    height: 75px;
    padding: 0 8%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 22px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

nav a:hover,
nav a.active {
    color: #52734d;
}

.hero {
    min-height: 620px;
    padding: 80px 8%;
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(20, 30, 20, 0.75),
            rgba(20, 30, 20, 0.25)
        ),
        url("../images/panda-main.jpg") center / cover;
}

.hero-content {
    max-width: 650px;
    color: white;
}

.subtitle {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero h1,
.page-title h1 {
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero p {
    font-size: 19px;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    padding: 13px 25px;
    background: #ffffff;
    color: #273b27;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
}

.section {
    max-width: 1100px;
    margin: auto;
    padding: 80px 25px;
}

.section h2 {
    font-size: 38px;
    margin-bottom: 35px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    padding: 30px;
    background: white;
    border-radius: 18px;
    border: 1px solid #e6e8e3;
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-5px);
}

.icon {
    display: block;
    font-size: 40px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.fact-section {
    padding: 80px 10%;
    background: #dfe9d9;
}

.fact-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.fact-section p {
    max-width: 750px;
    font-size: 18px;
}

footer {
    padding: 30px;
    text-align: center;
    background: #20251f;
    color: white;
}

.page {
    min-height: calc(100vh - 75px);
}

.page-title {
    max-width: 1100px;
    margin: auto;
    padding: 100px 25px 70px;
}

.page-title h1 {
    font-size: 60px;
}

.page-title > p:last-child {
    max-width: 650px;
    font-size: 18px;
}

.info-grid {
    max-width: 1100px;
    margin: auto;
    padding: 0 25px 80px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.info-image {
    min-height: 420px;
    border-radius: 20px;

    background:
        url("../images/panda-bamboo.jpg") center / cover;
}

.info-text h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.info-text p {
    margin-bottom: 20px;
}

.food-list {
    display: grid;
    gap: 15px;
}

.food-list > div {
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
}

.food-list strong {
    font-size: 19px;
}

.facts {
    list-style: none;
    display: grid;
    gap: 12px;
}

.facts li {
    padding: 18px 22px;
    background: white;
    border-left: 4px solid #657e5d;
    border-radius: 6px;
}

.habitat-banner {
    min-height: 420px;
    padding: 70px 10%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: white;

    background:
        linear-gradient(
            rgba(20, 40, 20, 0.65),
            rgba(20, 40, 20, 0.65)
        ),
        url("../images/panda-habitat.jpg") center / cover;
}

.habitat-banner h2 {
    font-size: 50px;
    margin-bottom: 15px;
}

.habitat-banner p {
    max-width: 650px;
    font-size: 18px;
}

.location-box {
    display: flex;
    align-items: center;
    gap: 25px;

    padding: 30px;
    background: white;
    border-radius: 18px;
}

.location-box > span {
    font-size: 55px;
}

.protection {
    max-width: 1100px;
    margin: auto;
    padding: 80px 25px;
}

.protection h2 {
    font-size: 38px;
    margin-bottom: 40px;
}

.protection-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.protection-items > div {
    padding: 30px;
    background: #20251f;
    color: white;
    border-radius: 18px;
}

.protection-items b {
    font-size: 40px;
    color: #b7cbaa;
}

.protection-items h3 {
    font-size: 22px;
    margin: 15px 0;
}

@media (max-width: 800px) {

    header {
        height: auto;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 550px;
    }

    .cards,
    .protection-items,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .page-title h1 {
        font-size: 45px;
    }

    .habitat-banner h2 {
        font-size: 38px;
    }
}