html, body {
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', serif;
  color: #333;
  background-color: #f5f4f1;
  line-height: 1.78;
}

:root {
  --primary-green: #5D7555;
  --accent-earth: #A67B5B;
  --slate-grey: #6B7280;
  --pale-parchment: #F0EDE8;
  --white: #ffffff;
  --light-grey: #f9f8f6;
  --border-grey: #e0dcd8;
}

* {
  box-sizing: border-box;
}

h1 {
  font-family: 'Georgia Pro', 'Georgia', serif;
  font-weight: bold;
  font-size: 3.2rem;
  color: var(--primary-green);
  margin: 40px 0 20px 0;
  line-height: 1.2;
}

h2 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--primary-green);
  margin: 60px 0 20px 0;
  line-height: 1.3;
}

h3 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--slate-grey);
  margin: 30px 0 15px 0;
}

p {
  font-size: 19px;
  line-height: 1.78;
  color: #555;
  margin: 0 0 20px 0;
}

a {
  color: var(--accent-earth);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-grey);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
  max-width: 1580px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Georgia Pro', 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-green);
  text-decoration: none;
  cursor: pointer;
}

.logo:hover {
  color: var(--accent-earth);
}

.nav {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--slate-grey);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.footer {
  background-color: var(--white);
  border-top: 1px solid var(--border-grey);
  padding: 60px 40px;
  margin-top: 140px;
  color: var(--slate-grey);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--primary-green);
  margin-bottom: 15px;
  font-size: 1rem;
}

.footer-section p {
  margin: 8px 0;
  font-size: 0.95rem;
}

.footer-section a {
  color: var(--accent-earth);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  border-top: 1px solid var(--border-grey);
  padding-top: 30px;
  text-align: center;
  color: var(--slate-grey);
  font-size: 0.9rem;
}

.hero {
  max-width: 1580px;
  margin: 0 auto;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/hero-ancient-tree.jpg');
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 140px;
  border-radius: 0;
}

.hero-content h1 {
  color: var(--pale-parchment);
  font-size: 3.5rem;
  margin: 0;
}

.hero-content p {
  color: var(--pale-parchment);
  font-size: 1.3rem;
  margin: 15px 0 0 0;
}

.section-bg-light {
  background-color: var(--light-grey);
  padding: 140px 40px;
  margin-bottom: 0;
}

.section-bg-white {
  background-color: var(--white);
  padding: 140px 40px;
  margin-bottom: 0;
}

.section-bg-parchment {
  background-color: var(--pale-parchment);
  padding: 140px 40px;
  margin-bottom: 0;
}

.content-width {
  max-width: 1280px;
  margin: 0 auto;
}

.card {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.card h3 {
  margin-top: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.card-image {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.half-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.half-section-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

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

.half-section.reverse :first-child {
  order: 2;
}

.half-section.reverse :last-child {
  order: 1;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--accent-earth);
  color: var(--white);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--primary-green);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-green);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--accent-earth);
}

.expandable {
  margin-bottom: 20px;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  overflow: hidden;
}

.expandable-header {
  background-color: var(--light-grey);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--primary-green);
  user-select: none;
  transition: background-color 0.3s ease;
}

.expandable-header:hover {
  background-color: #f0ebe5;
}

.expandable-icon {
  font-size: 1.2rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable.active .expandable-icon {
  transform: rotate(180deg);
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 20px;
}

.expandable.active .expandable-content {
  padding: 20px;
  max-height: 2000px;
}

.expandable-content p {
  margin: 10px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.blog-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  transform: translateY(-6px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 30px;
}

.blog-card h3 {
  margin-top: 0;
}

.blog-card p {
  color: var(--slate-grey);
  margin-bottom: 15px;
}

.blog-card a {
  display: inline-block;
  color: var(--accent-earth);
  font-weight: 500;
  transition: color 0.3s ease;
}

.blog-card a:hover {
  color: var(--primary-green);
}

form {
  max-width: 600px;
  margin: 40px 0;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-green);
  font-weight: 500;
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
  background-color: var(--white);
  transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-earth);
  box-shadow: 0 0 0 3px rgba(166, 123, 91, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.disclaimer {
  background-color: var(--pale-parchment);
  padding: 25px;
  border-left: 4px solid var(--accent-earth);
  border-radius: 4px;
  margin: 30px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate-grey);
}

.disclaimer strong {
  color: var(--primary-green);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top: 1px solid var(--border-grey);
  padding: 20px 40px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  z-index: 999;
  max-width: 100%;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--slate-grey);
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cookie-btn-accept {
  background-color: var(--accent-earth);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: var(--primary-green);
}

.cookie-btn-reject {
  background-color: var(--light-grey);
  color: var(--slate-grey);
  border: 1px solid var(--border-grey);
}

.cookie-btn-reject:hover {
  background-color: var(--border-grey);
}

.cookie-btn-learn {
  background-color: transparent;
  color: var(--accent-earth);
  text-decoration: underline;
  padding: 10px 0;
}

.cookie-btn-learn:hover {
  color: var(--primary-green);
}

.blog-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
}

.blog-article h1 {
  margin-bottom: 10px;
}

.blog-meta {
  color: var(--slate-grey);
  font-size: 0.95rem;
  margin-bottom: 40px;
  font-style: italic;
}

.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 40px 0;
}

.closing-section {
  background-color: var(--pale-parchment);
  padding: 100px 40px;
  text-align: center;
  margin-bottom: 60px;
}

.closing-section h2 {
  margin-top: 0;
}

.closing-section p {
  font-size: 1.1rem;
  color: var(--slate-grey);
  max-width: 800px;
  margin: 0 auto 30px;
}

.thank-you-page {
  text-align: center;
  padding: 100px 40px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.thank-you-page h1 {
  margin-bottom: 20px;
}

.thank-you-page p {
  font-size: 1.1rem;
  color: var(--slate-grey);
  margin-bottom: 40px;
  max-width: 600px;
}

.info-box {
  background-color: var(--pale-parchment);
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
  border-left: 4px solid var(--primary-green);
}

.info-box h3 {
  margin-top: 0;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav a {
    display: block;
    padding: 8px 0;
  }

  .hero {
    height: 350px;
    margin-bottom: 60px;
  }

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

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

  .half-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .half-section.reverse :first-child,
  .half-section.reverse :last-child {
    order: unset;
  }

  .container {
    padding: 0 20px;
  }

  .section-bg-light,
  .section-bg-white,
  .section-bg-parchment {
    padding: 60px 20px;
  }

  .footer {
    padding: 40px 20px;
    margin-top: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card {
    padding: 25px;
  }

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

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .hero {
    height: 250px;
    margin-bottom: 40px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 15px;
  }

  .section-bg-light,
  .section-bg-white,
  .section-bg-parchment {
    padding: 40px 15px;
  }

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

  .card {
    padding: 20px;
  }
}
