/* MindfulMenu Educational Website - Main Stylesheet */
:root {
  --primary: #2E8B57;
  --primary-dark: #1e5a3c;
  --primary-light: #5ca877;
  --background: #f9f7f4;
  --surface: #ffffff;
  --text-primary: #2d2d2d;
  --text-secondary: #666666;
  --border-color: #e8e3de;
  --accent-beige: #f5f1ed;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.28s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  line-height: 1.69;
  color: var(--text-primary);
  background-color: var(--background);
  margin: 0;
  padding: 0;
}

/* Typography */
h1 {
  font-size: 2.71rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.01rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Main Content */
main {
  margin-top: 80px;
  padding-bottom: 0;
}

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

.full-width {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Hero Section */
.hero {
  background-color: var(--accent-beige);
  padding: 4rem 2rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

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

.section:last-child {
  border-bottom: none;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.section-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-left {
  order: -1;
}

/* Alternating layout */
.section:nth-child(even) .image-left {
  order: 1;
}

/* Content Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-title {
  color: var(--primary);
  margin-bottom: 1rem;
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

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

/* CTA Buttons */
.cta-button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.cta-button:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
  color: white;
}

.cta-button-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-button-secondary:hover {
  background-color: var(--primary);
  color: white;
  text-decoration: none;
}

/* FAQ Section */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  background-color: var(--accent-beige);
  padding: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  user-select: none;
}

.faq-question:hover {
  background-color: #ede6df;
}

.faq-answer {
  padding: 1.5rem 1rem;
  background-color: var(--surface);
  border-left: 4px solid var(--primary);
  display: none;
}

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

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem 0;
}

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

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

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

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

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

/* Footer */
footer {
  background-color: var(--text-primary);
  color: #ffffff;
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}

footer a {
  color: var(--primary-light);
}

footer a:hover {
  color: #ffffff;
}

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

.footer-section h3 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: #cccccc;
  margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: #999999;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface);
  border-top: 2px solid var(--primary);
  padding: 1.5rem 2rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
}

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

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

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

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

.cookie-actions button {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

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

.cookie-accept:hover {
  background-color: var(--primary-dark);
}

.cookie-decline {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.cookie-decline:hover {
  background-color: #d4ccc3;
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: #fef5e7;
  border-left: 4px solid #f39c12;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
}

.disclaimer-box strong {
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav {
    gap: 1rem;
    flex-direction: column;
    width: 100%;
  }

  nav a {
    display: block;
  }

  main {
    margin-top: 120px;
  }

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

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

  h2 {
    font-size: 1.5rem;
  }

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

  .image-left,
  .section:nth-child(even) .image-left {
    order: 0;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 0;
  }

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

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

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

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

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

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .section {
    padding: 1.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  nav {
    gap: 0.75rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  main {
    margin-top: 100px;
  }
}
