:root {
  --color-ivory: #fffaf0;
  --color-saffron: #c85a17;
  --color-nutmeg: #8b5a2b;
  --font-serif: 'Merriweather', serif;
  --font-sans: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-ivory);
  color: #333;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #222;
}

h2 {
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: #333;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}

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

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

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-ivory);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 1.5rem 0;
}

header.scrolled {
  border-bottom-color: #e0d5c7;
  padding: 1rem 0;
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-saffron);
  text-decoration: none;
}

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

.nav-links a {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-saffron);
}

main {
  margin-top: 80px;
}

section {
  padding: 4rem 0;
}

.full-width-section {
  width: 100%;
  padding: 0;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 100px;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('images/hero-market.jpg') center/cover;
  background-attachment: fixed;
  color: white;
  text-align: center;
  padding: 12rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.hero p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.image-text-block {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

.image-text-block.reverse {
  flex-direction: row-reverse;
}

.image-text-block img {
  flex: 0 0 45%;
  border-radius: 8px;
  max-height: 400px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.image-text-block img:hover {
  transform: translateY(-8px);
}

.image-text-block .text-content {
  flex: 1;
  animation-delay: 0.2s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card:hover {
  border-color: var(--color-saffron);
  box-shadow: 0 8px 24px rgba(200, 90, 23, 0.15);
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: var(--color-saffron);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

table th {
  background-color: var(--color-saffron);
  color: white;
  padding: 1.2rem;
  text-align: left;
  font-family: var(--font-serif);
  font-weight: 600;
}

table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e0d5c7;
}

table tbody tr:nth-child(odd) {
  background-color: rgba(200, 90, 23, 0.05);
}

table tbody tr:hover {
  background-color: rgba(200, 90, 23, 0.1);
}

.btn {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 500;
  padding: 0.9rem 2rem;
  background-color: white;
  color: var(--color-saffron);
  border: 2px solid var(--color-saffron);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--color-saffron);
  color: white;
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--color-saffron);
  color: white;
  border-color: var(--color-saffron);
}

.btn-primary:hover {
  background-color: var(--color-nutmeg);
  border-color: var(--color-nutmeg);
}

.accordion {
  margin: 2rem 0;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid #e0d5c7;
  border-radius: 6px;
  overflow: hidden;
}

.accordion-header {
  background-color: #f9f6f1;
  padding: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  border-left: 4px solid transparent;
  font-family: var(--font-serif);
  font-weight: 600;
  color: #333;
}

.accordion-header:hover {
  background-color: #f3ede4;
  border-left-color: var(--color-saffron);
}

.accordion-header.active {
  background-color: var(--color-saffron);
  color: white;
  border-left-color: var(--color-nutmeg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
}

.accordion-content.show {
  max-height: 600px;
}

.accordion-body {
  padding: 1.5rem;
  line-height: 1.8;
  color: #555;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d0c5bb;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-saffron);
  box-shadow: 0 0 0 3px rgba(200, 90, 23, 0.1);
}

.form-disclaimer {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-style: italic;
  border-left: 3px solid var(--color-saffron);
  padding-left: 1rem;
}

footer {
  background-color: #2b2420;
  color: white;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 100px;
}

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

.footer-section h4 {
  color: var(--color-saffron);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-saffron);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

.educational-notice {
  background-color: #fef5e7;
  border-left: 4px solid var(--color-saffron);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.educational-notice p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

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

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

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

.modal-content {
  background-color: var(--color-ivory);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  width: 90%;
  animation: slideInDown 0.3s ease;
}

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

.modal-close {
  float: right;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-saffron);
  border: none;
  background: none;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 1;
}

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #2b2420;
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 999;
  animation: slideUp 0.4s ease;
}

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

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

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

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-serif);
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

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

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

.cookie-btn-reject {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

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

.quote-section {
  text-align: center;
  padding: 3rem 2rem;
  background-color: rgba(200, 90, 23, 0.08);
  margin: 2rem 0;
  border-radius: 8px;
}

.quote-section p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-nutmeg);
  margin: 0;
}

.closing-cta {
  text-align: center;
  padding: 2rem;
  margin: 3rem 0;
}

.closing-cta h2 {
  color: var(--color-saffron);
  margin-bottom: 1rem;
}

.closing-cta p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.success-message {
  display: none;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  animation: slideUp 0.3s ease;
}

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

.comparison-table {
  overflow-x: auto;
  margin: 2rem 0;
}

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

  .footer-container {
    padding: 0 1.5rem;
  }

  .header-container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero {
    padding: 6rem 1.5rem;
  }

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

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

  .image-text-block {
    flex-direction: column !important;
    gap: 1.5rem;
  }

  .image-text-block img {
    flex: 1 1 100%;
    max-height: 300px;
  }

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

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

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

  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

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

  table {
    font-size: 0.9rem;
  }

  table th, table td {
    padding: 0.8rem 0.5rem;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
}

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

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .footer-container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .hero {
    padding: 4rem 1rem;
    min-height: 300px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-links {
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .cookie-banner {
    padding: 1rem;
  }

  .cookie-text {
    font-size: 0.8rem;
  }

  .cookie-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
}
