:root {
  --color-slate-blue: #5A7D9A;
  --color-linen: #FAF5EF;
  --color-amber: #C19A6B;
  --color-sage: #98C1A9;
  --color-pale-slate: #f0f3f7;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 19px;
  line-height: 1.72;
  color: #333;
  background-color: #fff;
}

h1 {
  font-family: 'Avenir Next', 'Neue Haas Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 58px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-slate-blue);
  margin-bottom: 24px;
}

h2 {
  font-family: 'Avenir Next', 'Neue Haas Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-slate-blue);
  margin-bottom: 20px;
}

h3 {
  font-family: 'Avenir Next', 'Neue Haas Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--color-slate-blue);
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
}

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

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

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
  padding: 16px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-family: 'Avenir Next', 'Neue Haas Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-slate-blue);
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-slate-blue);
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-amber);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

body {
  padding-top: 70px;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  background-color: var(--color-linen);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1420px;
  width: 100%;
  padding: 80px 110px;
  text-align: center;
  color: white;
}

.hero-content h1 {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
}

.hero-content .subheadline {
  font-size: 22px;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
}

.section {
  max-width: 1420px;
  margin: 0 auto;
  padding: 80px 110px;
}

.full-bleed-section {
  width: 100%;
  padding: 80px 110px;
  margin: 0 0 0 0;
}

.full-bleed-section.linen {
  background-color: var(--color-linen);
}

.full-bleed-section.pale-slate {
  background-color: var(--color-pale-slate);
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.content-block.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

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

.content-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  max-height: 400px;
  object-fit: cover;
}

.habit-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.habit-card {
  background-color: white;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 28px;
  transition: all 0.45s ease;
  cursor: pointer;
}

.habit-card:hover {
  border-color: var(--color-amber);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(193, 154, 107, 0.15);
}

.habit-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-slate-blue);
}

.habit-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.accordion-item {
  border: 1px solid #e5e5e5;
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
}

.accordion-header {
  background-color: #f9f9f9;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  user-select: none;
}

.accordion-header:hover {
  background-color: #f0f0f0;
}

.accordion-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--color-slate-blue);
}

.accordion-arrow {
  font-size: 20px;
  transition: transform 0.45s ease;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 24px;
  background-color: white;
  border-top: 1px solid #e5e5e5;
  line-height: 1.72;
  color: #555;
}

.accordion-item.active .accordion-body {
  display: block;
  animation: slideDown 0.45s ease;
}

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

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.blog-card {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

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

.blog-card-content {
  padding: 28px;
}

.blog-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-slate-blue);
}

.blog-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 16px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-amber);
  font-weight: 500;
  transition: gap 0.3s ease;
}

.read-more-link:hover {
  gap: 12px;
}

.pill-button {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--color-linen), var(--color-amber));
  color: #333;
  border-radius: 32px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.pill-button:hover {
  background: linear-gradient(135deg, var(--color-amber), var(--color-sage));
  color: white;
  transform: translateY(-2px);
}

footer {
  background-color: var(--color-slate-blue);
  color: white;
  padding: 60px 110px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h3 {
  color: var(--color-linen);
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  line-height: 1.8;
  color: #e5e5e5;
}

.footer-section a {
  display: block;
  margin-bottom: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #e5e5e5;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-slate-blue);
  color: white;
  padding: 24px;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  line-height: 1.6;
}

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

.cookie-buttons {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cookie-btn.accept {
  background-color: var(--color-amber);
  color: #333;
}

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

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

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

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

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

.disclaimer {
  background-color: var(--color-pale-slate);
  border-left: 4px solid var(--color-amber);
  padding: 20px;
  border-radius: 4px;
  margin: 40px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.65s ease forwards;
}

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

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-slate-blue);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px rgba(193, 154, 107, 0.1);
}

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

.form-submit {
  padding: 14px 32px;
  background-color: var(--color-slate-blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: var(--color-amber);
  color: #333;
}

.thank-you-container {
  text-align: center;
  padding: 80px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-container h1 {
  margin-bottom: 16px;
}

.thank-you-container p {
  font-size: 18px;
  color: #666;
  margin-bottom: 32px;
}

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

  .nav-links {
    gap: 16px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  body {
    font-size: 16px;
  }

  .section,
  .full-bleed-section {
    padding: 40px 40px;
  }

  .hero-content {
    padding: 40px 40px;
  }

  .content-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-block.reverse {
    direction: ltr;
  }

  .habit-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .blog-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .section,
  .full-bleed-section {
    padding: 28px 20px;
  }

  .hero-content {
    padding: 28px 20px;
  }

  .habit-cards {
    grid-template-columns: 1fr;
  }

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