:root {
  --color-bg: #f5f8f3;
  --color-moss: #5a7b5e;
  --color-sage: #c2d4b8;
  --color-blue: #8ea2b5;
  --color-white: #ffffff;
  --color-text: #2a2a2a;
}

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Nunito:wght@300;400;500;700&display=swap');

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

html, body {
  height: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
}

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: var(--color-text);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
}

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

a:hover {
  color: var(--color-blue);
}

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 60px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 30px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-sage);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1560px;
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
}

.logo {
  font-family: 'Merriweather', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-moss);
  cursor: pointer;
}

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

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

nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .header-container {
    padding-left: 30px;
    padding-right: 30px;
  }

  nav ul {
    gap: 1.25rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1.25rem;
  }
}

/* Sections */
section {
  padding: 180px 0;
}

@media (max-width: 768px) {
  section {
    padding: 100px 0;
  }
}

/* Hero */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  padding: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(90, 123, 94, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 80px;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: 400px;
  }

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

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(90, 123, 94, 0.1);
  background-color: #f9fdf8;
}

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

/* Image styling */
.section-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.img-wrapper {
  text-align: center;
  margin: 2rem 0;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 3rem 0;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col.reverse {
    direction: ltr;
  }
}

/* FAQ */
.faq-item {
  background-color: var(--color-white);
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  background-color: var(--color-sage);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-question:hover {
  background-color: var(--color-moss);
  color: var(--color-white);
}

.faq-toggle {
  display: inline-block;
  width: 20px;
  text-align: center;
}

.faq-answer {
  padding: 1.5rem;
  display: none;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-sage);
  line-height: 1.6;
}

.faq-answer.active {
  display: block;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-white);
}

table thead {
  background-color: var(--color-sage);
}

table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}

table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-sage);
}

table tbody tr:hover {
  background-color: #f9fdf8;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-sage);
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-moss);
  box-shadow: 0 0 8px rgba(194, 212, 184, 0.5);
  background-color: #fafbf9;
}

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

button, .btn {
  padding: 0.75rem 2rem;
  background-color: var(--color-moss);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

button:hover, .btn:hover {
  background-color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 123, 94, 0.2);
}

/* Footer */
footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-content {
    padding: 0 30px;
    grid-template-columns: 1fr;
  }
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-section a {
  color: var(--color-sage);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(194, 212, 184, 0.3);
  padding-top: 1.5rem;
  max-width: 1560px;
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .footer-bottom {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: var(--color-white);
  margin: 50px auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  float: right;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--color-moss);
}

@media (max-width: 768px) {
  .modal-content {
    margin: 20px;
    padding: 1.5rem;
    max-height: 90vh;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.3s ease;
}

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

.cookie-content {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .cookie-content {
    padding: 0 30px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    padding: 1rem;
  }
}

.cookie-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-buttons .btn-accept {
  background-color: var(--color-moss);
  color: var(--color-white);
}

.cookie-buttons .btn-accept:hover {
  background-color: var(--color-blue);
}

.cookie-buttons .btn-decline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.cookie-buttons .btn-decline:hover {
  background-color: var(--color-white);
  color: var(--color-text);
}

.cookie-buttons .btn-more {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.cookie-buttons .btn-more:hover {
  background-color: var(--color-white);
  color: var(--color-text);
}

/* Thank You Message */
.thank-you-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  text-align: center;
  max-width: 400px;
  animation: slideDown 0.3s ease;
}

.thank-you-message.show {
  display: block;
}

.thank-you-message h2 {
  color: var(--color-moss);
  margin-top: 0;
}

.thank-you-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1999;
}

.thank-you-overlay.show {
  display: block;
}

/* Disclaimer */
.disclaimer {
  background-color: var(--color-sage);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-moss);
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-disclaimer {
  background-color: #fff3cd;
  color: #856404;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-left: 4px solid #ffc107;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

/* Alternate backgrounds */
.bg-light {
  background-color: var(--color-bg);
}

.bg-white {
  background-color: var(--color-white);
}
