@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --forest-900: #0d2818;
  --forest-800: #1a3d2e;
  --forest-700: #2d5a47;
  --forest-600: #3d7556;
  --moss: #6b8e6b;
  --creek: #4a7c7e;
  --wheat: #f5f1e8;
  --spacing: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--wheat);
  color: var(--forest-900);
  line-height: 1.6;
}

.container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background-color: var(--forest-900);
  color: var(--wheat);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--wheat);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--wheat);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--creek);
}

/* Hero Section */
.hero {
  position: relative;
  color: var(--wheat);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.hero-image.active {
  opacity: 1;
  animation: fadeInOut 16s ease-in-out infinite;
}

.hero-image:nth-child(2).active {
  animation-delay: 8s;
}

@keyframes fadeInOut {
  0% { opacity: 1; }
  43% { opacity: 1; }
  57% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 45rem;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--creek);
  color: var(--wheat);
}

.btn-primary:hover {
  background-color: var(--forest-800);
}

.btn-secondary {
  background-color: var(--forest-900);
  color: var(--wheat);
}

.btn-secondary:hover {
  background-color: var(--forest-700);
}

/* Sections */
section {
  padding: 3rem 1.5rem;
}

section h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--forest-900);
  font-weight: 700;
}

section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--forest-800);
  margin-top: 1.5rem;
  font-weight: 600;
}

section p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--forest-800);
  margin-bottom: 1rem;
}

section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

section li {
  margin-bottom: 0.5rem;
  color: var(--forest-800);
}

section a {
  color: var(--creek);
  font-weight: 600;
  text-decoration: none;
}

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

/* Alternating sections */
section:nth-child(even) {
  background-color: #f0f4f0;
}

/* Grid layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h3 {
  margin-top: 0;
  color: var(--creek);
}

/* Info box */
.info-box {
  background-color: var(--wheat);
  border-left: 4px solid var(--creek);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* Footer */
footer {
  background-color: var(--forest-900);
  color: var(--wheat);
  padding: 3rem 1.5rem;
  margin-top: 2rem;
}

footer p {
  color: var(--wheat);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--forest-700);
  padding-top: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.875rem;
}

/* Image Galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #f0f4f0;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13, 40, 24, 0.95), transparent);
  color: var(--wheat);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-overlay h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.gallery-item-overlay p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Masonry Gallery */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  auto-rows: 250px;
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  background-color: #f0f4f0;
}

.gallery-masonry-item:nth-child(3n) {
  grid-column: span 2;
}

.gallery-masonry-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.gallery-masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Full-width Hero with Image */
.hero-image-section {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-section img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 40, 24, 0.4);
  z-index: 1;
}

.hero-image-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--wheat);
  max-width: 600px;
}

.hero-image-content h2 {
  color: var(--wheat);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-image-content p {
  color: var(--wheat);
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Featured Image Section */
.featured-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

.featured-image {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  aspect-ratio: 4/3;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content h3 {
  color: var(--creek);
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  section h2 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .gallery,
  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .gallery-masonry-item:nth-child(3n) {
    grid-column: span 1;
  }

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

  .hero-image-section {
    height: 300px;
  }

  .hero-image-content h2 {
    font-size: 1.75rem;
  }
}
