* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f0e8;
  color: #222;
}

header {
  padding: 24px;
  text-align: center;
  background: #263b2d;
  color: white;
}

nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  background: #d9e2d3;
}

nav a {
  color: #263b2d;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
}


.hero {
    position: relative;
    isolation: isolate;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 48px;
    overflow: hidden;
    color: white;
    border-radius: 12px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.7s ease;
}

    .hero-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1) );
    }

    .hero-slide.active {
        opacity: 1;
    }

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

.slide-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .slide-controls button {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
        font-size: 24px;
        background: white;
        color: #263b2d;
    }

@media (max-width: 600px) {
    .hero {
        min-height: 460px;
        padding: 24px;
    }
}

.eyebrow {
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: bold;
}

.hero h2 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    margin: 16px 0;
}

.hero-content > p:not(.eyebrow) {
    line-height: 1.7;
}

.hero-button {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 5px;
    background: #d9e2d3;
    color: #263b2d;
    text-decoration: none;
    font-weight: bold;
}

    .hero-button:hover {
        background: white;
    }

}

main {
    max-width: 1200px;
    margin: 70px auto;
    padding: 32px;
}

.hero {
    min-height: 600px;
    padding: 64px;
}

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

@media (max-width: 600px) {
    .hero {
        min-height: 460px;
        padding: 24px;
    }
}