:root {
  --deep-slate-blue: #2c3e50;
  --muted-sage-green: #7a9b8f;
  --soft-ochre: #c9a76a;
  --warm-grey: #a89a8a;
  --light-grey: #f5f3f0;
  --white: #ffffff;
}

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

html, body {
  font-family: 'Open Sans', 'Lato', sans-serif;
  color: var(--deep-slate-blue);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', 'Merriweather', serif;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--deep-slate-blue);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--deep-slate-blue);
}

header {
  background-color: var(--deep-slate-blue);
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Lora', serif;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--soft-ochre);
  border-bottom-color: var(--muted-sage-green);
}

main {
  margin-top: 80px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
  margin-bottom: 2rem;
}

.section-alt {
  background-color: var(--light-grey);
  margin-left: -2rem;
  margin-right: -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hero {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--deep-slate-blue) 0%, rgba(44, 62, 80, 0.9) 100%);
  color: var(--white);
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: -2rem;
  margin-right: -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  color: var(--light-grey);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

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

.row {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.row.reverse {
  flex-direction: row-reverse;
}

.col-6 {
  flex: 1;
  min-width: 0;
}

.col-12 {
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.img-reduced {
  max-width: 85%;
  margin: 0 auto;
}

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

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

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--soft-ochre);
  color: var(--deep-slate-blue);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--soft-ochre);
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #d9b880;
  border-color: var(--muted-sage-green);
  box-shadow: 0 2px 8px rgba(122, 155, 143, 0.2);
}

.btn:active {
  transform: scale(0.98);
}

footer {
  background-color: var(--deep-slate-blue);
  color: var(--white);
  margin-top: 6rem;
  padding: 3rem 0;
  border-top: 1px solid var(--warm-grey);
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.footer-section h3 {
  color: var(--soft-ochre);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  color: var(--light-grey);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--soft-ochre);
}

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

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

.disclaimer-block {
  background-color: var(--light-grey);
  padding: 2rem;
  border-left: 4px solid var(--muted-sage-green);
  margin: 2rem 0;
  border-radius: 4px;
}

.disclaimer-block p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--deep-slate-blue);
}

ul, ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--warm-grey);
  padding: 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--muted-sage-green);
}

.card h3 {
  color: var(--deep-slate-blue);
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #555;
}

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

.blog-card {
  background-color: var(--white);
  border: 1px solid var(--warm-grey);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.blog-card-content {
  padding: 1.5rem;
}

.blog-card h3 {
  color: var(--deep-slate-blue);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.blog-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

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

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

input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--warm-grey);
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--deep-slate-blue);
  transition: border-color 0.3s ease;
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--muted-sage-green);
  box-shadow: 0 0 0 3px rgba(122, 155, 143, 0.1);
}

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--deep-slate-blue);
  color: var(--white);
  padding: 1.5rem 2rem;
  z-index: 999;
  display: none;
}

.cookie-banner.show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  color: var(--light-grey);
  margin-bottom: 0;
  font-size: 0.95rem;
}

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

.cookie-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-btn-accept {
  background-color: var(--soft-ochre);
  color: var(--deep-slate-blue);
}

.cookie-btn-accept:hover {
  background-color: #d9b880;
}

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

.cookie-btn-decline:hover {
  background-color: rgba(201, 167, 106, 0.1);
}

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

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

.spacer {
  height: 3rem;
}

@media (max-width: 768px) {
  main {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

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

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero {
    padding: 5rem 1rem;
  }

  .row {
    flex-direction: column;
    gap: 2rem;
  }

  .row.reverse {
    flex-direction: column;
  }

  section {
    padding: 3rem 0;
  }

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

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

  .cookie-buttons {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }

  .spacer {
    height: 8rem;
  }
}
