:root {
  /* Color Palette - Eco Theme */
  --color-primary: #3A5F40;
  /* Forest Green */
  --color-primary-dark: #2A452F;
  --color-secondary: #9B7E4B;
  /* Earthy Gold */
  --color-bg: #F9F7F2;
  /* Soft Cream */
  --color-white: #FFFFFF;
  --color-text: #2C332E;
  /* Dark Green-Grey */
  --color-text-light: #6B7280;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing */
  --spacing-base: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Transitions */
  --transition-smooth: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-base);
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }
}

/* Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px rgba(58, 95, 64, 0.2);
}

.cta-button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(58, 95, 64, 0.3);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-smooth);
  background: rgba(249, 247, 242, 0.85);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 40px;
  border-radius: 5px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.nav {
  display: none;
  /* Hidden on mobile */
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    gap: 2rem;
  }

  .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s;
  }

  .nav-link:hover::after {
    width: 100%;
  }
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  position: relative;
  height: 90vh;
  /* Mobile view */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding-top: 60px;
  /* offset header */
}

.hero-title {
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* Features */
.section {
  padding: var(--spacing-xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 2rem;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.icon-box {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

/* Gallery */
.alt-bg {
  background-color: #EFECE6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
  }

  .item-1 {
    grid-column: span 2;
    grid-row: span 2;
  }

  .item-2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .item-3 {
    grid-column: span 1;
    grid-row: span 2;
  }

  .item-4 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  min-height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.hidden {
  display: none;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Testimonials */
.testimonials-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonial {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-secondary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.testimonial p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.testimonial cite {
  font-style: normal;
  font-weight: 500;
  color: var(--color-text-light);
}

/* Footer */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 4rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: row;
    align-items: center;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Mobile Sticky CTA */
.sticky-cta-mobile {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 999;
}

.cta-button.full-width {
  width: 100%;
  display: flex;
  padding: 1rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .sticky-cta-mobile {
    display: none;
  }
}