:root {
  --color-slate-gray: #708090;
  --color-deep-forest-green: #1b4332;
  --color-warm-ochre: #d4a574;
  --color-soft-ivory: #f5f1e8;
  --color-charcoal-black: #2c2c2c;
  --color-white: #ffffff;
  
  --base-unit: 24px;
  --radius: 4px;
  
  --font-serif: 'Lora', 'Merriweather', serif;
  --font-sans: 'Open Sans', 'Lato', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  color: var(--color-charcoal-black);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

h1 {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-deep-forest-green);
  line-height: 1.2;
  margin-bottom: calc(var(--base-unit) * 2);
  letter-spacing: -0.5px;
}

h2 {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-deep-forest-green);
  line-height: 1.3;
  margin-bottom: calc(var(--base-unit) * 1.5);
  margin-top: calc(var(--base-unit) * 1.5);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-charcoal-black);
  line-height: 1.4;
  margin-bottom: calc(var(--base-unit) * 1);
  margin-top: calc(var(--base-unit) * 1);
}

p {
  margin-bottom: calc(var(--base-unit) * 0.75);
  line-height: 1.6;
  color: var(--color-charcoal-black);
}

ul, ol {
  margin-left: calc(var(--base-unit) * 2);
  margin-bottom: calc(var(--base-unit) * 1);
}

li {
  margin-bottom: calc(var(--base-unit) * 0.5);
  line-height: 1.6;
}

a {
  color: var(--color-deep-forest-green);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: var(--color-warm-ochre);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  background-color: var(--color-slate-gray);
  color: var(--color-soft-ivory);
  padding: calc(var(--base-unit) * 1) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 calc(var(--base-unit));
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--color-soft-ivory);
}

header .logo a {
  color: var(--color-soft-ivory);
  text-decoration: none;
}

header .logo a:hover {
  color: var(--color-warm-ochre);
}

header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  gap: calc(var(--base-unit) * 2);
}

header nav a {
  color: var(--color-soft-ivory);
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  position: relative;
}

header nav a:hover,
header nav a.active {
  color: var(--color-warm-ochre);
}

header nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-deep-forest-green);
}

footer {
  background-color: var(--color-slate-gray);
  color: var(--color-soft-ivory);
  padding: calc(var(--base-unit) * 4) 0;
  margin-top: calc(var(--base-unit) * 8);
}

footer .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 calc(var(--base-unit));
}

footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--base-unit) * 3);
  margin-bottom: calc(var(--base-unit) * 3);
}

footer h4 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: calc(var(--base-unit));
  color: var(--color-soft-ivory);
}

footer p, footer a {
  font-size: 0.95rem;
  color: var(--color-soft-ivory);
  line-height: 1.8;
}

footer a:hover {
  color: var(--color-warm-ochre);
}

footer .footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.2);
  padding-top: calc(var(--base-unit) * 2);
  text-align: center;
  font-size: 0.9rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 calc(var(--base-unit));
}

.section {
  padding: calc(var(--base-unit) * 4) 0;
}

.section-full-width {
  width: 100%;
  padding: calc(var(--base-unit) * 4) 0;
}

.hero-block {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.hero-block .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  margin: 0 auto;
}

.hero-block h1 {
  color: var(--color-soft-ivory);
  font-size: 3.5rem;
  margin-bottom: calc(var(--base-unit));
}

.hero-block p {
  color: var(--color-soft-ivory);
  font-size: 1.25rem;
  line-height: 1.6;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--base-unit) * 3);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--base-unit) * 2);
}

.card {
  background-color: var(--color-soft-ivory);
  border: 1px solid #e0ddd0;
  border-radius: var(--radius);
  padding: calc(var(--base-unit) * 2);
  transition: all 0.3s ease-in-out;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: calc(var(--base-unit));
  border-radius: var(--radius);
}

.card h3 {
  color: var(--color-deep-forest-green);
  margin-top: 0;
}

.button {
  display: inline-block;
  background-color: var(--color-deep-forest-green);
  color: var(--color-soft-ivory);
  padding: calc(var(--base-unit) * 0.75) calc(var(--base-unit) * 2);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  text-decoration: none;
  font-size: 1rem;
}

.button:hover {
  background-color: #133a26;
}

.button-secondary {
  background-color: var(--color-warm-ochre);
  color: var(--color-charcoal-black);
}

.button-secondary:hover {
  background-color: #c79460;
}

.text-section {
  background-color: var(--color-white);
  padding: calc(var(--base-unit) * 3);
}

.bg-ivory {
  background-color: var(--color-soft-ivory);
  padding: calc(var(--base-unit) * 4) 0;
}

.accent-line {
  width: 60px;
  height: 3px;
  background-color: var(--color-warm-ochre);
  margin-bottom: calc(var(--base-unit) * 2);
}

form {
  max-width: 600px;
}

.form-group {
  margin-bottom: calc(var(--base-unit) * 1.5);
}

label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: calc(var(--base-unit) * 0.5);
  color: var(--color-charcoal-black);
}

input[type="email"],
textarea {
  width: 100%;
  padding: calc(var(--base-unit) * 0.75);
  border: 1px solid #d0c5b9;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-charcoal-black);
  transition: border-color 0.3s ease-in-out;
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-warm-ochre);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

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

.disclaimer {
  background-color: #fafaf8;
  border-left: 4px solid var(--color-warm-ochre);
  padding: calc(var(--base-unit) * 1.5);
  margin: calc(var(--base-unit) * 2) 0;
  font-size: 0.95rem;
  color: var(--color-charcoal-black);
  border-radius: var(--radius);
}

.context-note {
  background-color: var(--color-soft-ivory);
  border: 1px solid #e0ddd0;
  padding: calc(var(--base-unit) * 2);
  border-radius: var(--radius);
  margin: calc(var(--base-unit) * 2) 0;
  font-size: 0.95rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-charcoal-black);
  color: var(--color-soft-ivory);
  padding: calc(var(--base-unit) * 2);
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--base-unit) * 2);
}

.cookie-banner-content {
  flex: 1;
  font-size: 0.95rem;
}

.cookie-banner-buttons {
  display: flex;
  gap: calc(var(--base-unit));
  flex-shrink: 0;
}

.cookie-banner button {
  padding: calc(var(--base-unit) * 0.5) calc(var(--base-unit) * 1.5);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  font-weight: 600;
}

.cookie-banner .btn-accept {
  background-color: var(--color-deep-forest-green);
  color: var(--color-soft-ivory);
}

.cookie-banner .btn-accept:hover {
  background-color: #133a26;
}

.cookie-banner .btn-decline {
  background-color: transparent;
  color: var(--color-soft-ivory);
  border: 1px solid var(--color-soft-ivory);
}

.cookie-banner .btn-decline:hover {
  background-color: rgba(245, 241, 232, 0.1);
}

.cookie-banner .btn-learn {
  background-color: transparent;
  color: var(--color-soft-ivory);
  border: 1px solid var(--color-soft-ivory);
}

.cookie-banner .btn-learn:hover {
  background-color: rgba(245, 241, 232, 0.1);
}

.hidden {
  display: none !important;
}

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

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  header .container {
    flex-direction: column;
    gap: calc(var(--base-unit));
  }

  header nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--base-unit));
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-block {
    min-height: 350px;
  }

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

  .cookie-banner.show {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .cookie-banner-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner button {
    width: 100%;
  }
}
