*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --primary-green: #228B22;
  --light-bg: #fafbf7;
  --text-dark: #2c3e50;
  --text-light: #5a6c7d;
  --border-color: #e0e8e0;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --transition: 0.24s ease-in-out;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

body {
  padding-top: 80px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-green);
  font-size: 1.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.navbar-brand:hover {
  opacity: 0.8;
}

.nav-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(34, 139, 34, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 300;
}

/* Main Container */
.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections */
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 2rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Two Column Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.section-image {
  width: 100%;
  height: auto;
  border-radius: 11px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  max-height: 400px;
  object-fit: cover;
}

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

/* Compound List */
.compounds-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.compound-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 11px;
  border-left: 4px solid var(--primary-green);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.compound-item:hover {
  box-shadow: var(--shadow-md);
}

.compound-item h4 {
  color: var(--primary-green);
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.compound-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background: var(--white);
  border-radius: 11px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-info h4 {
  color: var(--primary-green);
  margin: 0 0 0.5rem 0;
}

.product-info p {
  margin: 0;
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-item {
  background: var(--white);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  cursor: pointer;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '▼';
  font-size: 0.8rem;
  transition: var(--transition);
}

.faq-question.active::after {
  transform: rotate(-180deg);
}

.faq-answer {
  display: none;
  color: var(--text-light);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  line-height: 1.8;
}

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

/* Context Box */
.context-box {
  background: var(--white);
  border: 2px solid var(--primary-green);
  border-radius: 11px;
  padding: 2rem;
  margin: 2rem 0;
}

.context-box h4 {
  color: var(--primary-green);
  margin-top: 0;
}

/* Disclaimer */
.disclaimer {
  background: #f0f8f0;
  border: 2px solid var(--primary-green);
  border-radius: 11px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  font-weight: 600;
  color: var(--primary-green);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 11px;
  max-width: 500px;
  box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: 'Open Sans', sans-serif;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: #1a6b1a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 24px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 11px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
  background: none;
  border: none;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal h2 {
  margin-top: 0;
}

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

.cookie-banner.active {
  display: block;
}

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

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.cookie-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

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

.cookie-btn-primary:hover {
  background-color: #1a6b1a;
}

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

.cookie-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Success Message */
.success-message {
  display: none;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.success-message.active {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

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

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

  h2 {
    font-size: 1.8rem;
  }

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

  .compounds-list {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-buttons {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .cookie-content {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }

  .modal-content {
    margin: 1rem;
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .container-main {
    padding: 0 16px;
  }

  .navbar {
    padding: 0 16px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero {
    height: 400px;
  }

  .footer-section p {
    font-size: 0.9rem;
  }
}
