/* EatAware - Main Stylesheet */
/* Educational content only. No medical services. */

:root {
  --soft-green: #7cb87c;
  --soft-green-light: #e8f5e8;
  --soft-green-dark: #5a9a5a;
  --text-dark: #2d3436;
  --text-muted: #636e72;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-light: #e0e0e0;
  --gradient-soft: linear-gradient(135deg, #f5f9f5 0%, #e8f5e8 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.35;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

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

a {
  color: var(--soft-green-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--soft-green);
  text-decoration: underline;
}

/* Header */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}

.site-header .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--soft-green-dark);
}

.site-header .navbar-brand:hover {
  color: var(--soft-green);
  text-decoration: none;
}

.site-header .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.site-header .nav-link:hover {
  color: var(--soft-green);
}

.navbar-toggler {
  border-color: var(--border-light);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(45, 52, 54, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main content offset for fixed header */
.main-content {
  padding-top: 80px;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-soft);
  padding: 4rem 0;
  border-radius: 0 0 1.5rem 1.5rem;
}

.hero-section h1 {
  color: var(--text-dark);
}

.hero-section p {
  font-size: 1.125rem;
  max-width: 600px;
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
}

.content-section:nth-child(even) {
  background-color: var(--bg-light);
}

.content-section.alt-bg {
  background: var(--gradient-soft);
}

/* Cards and Blocks */
.info-card {
  background-color: var(--bg-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  border: 1px solid var(--border-light);
}

.info-card h3 {
  color: var(--soft-green-dark);
  margin-bottom: 1rem;
}

/* Images */
.content-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Two Column Layout */
.two-col-section {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.two-col-section.reverse {
  flex-direction: row-reverse;
}

.two-col-text {
  flex: 1;
}

.two-col-image {
  flex: 1;
}

@media (max-width: 768px) {
  .two-col-section,
  .two-col-section.reverse {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Disclaimer Block */
.disclaimer-block {
  background: var(--gradient-soft);
  border-left: 4px solid var(--soft-green);
  padding: 1.5rem 2rem;
  border-radius: 0 1rem 1rem 0;
  margin: 2rem 0;
}

.disclaimer-block h3 {
  color: var(--soft-green-dark);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.disclaimer-block p {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.disclaimer-block p:last-child {
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

.faq-item {
  background-color: var(--bg-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

.faq-item h3 {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* Contact Form */
.contact-section {
  padding: 4rem 0;
}

.contact-form {
  background-color: var(--bg-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
}

.form-control {
  border-radius: 0.5rem;
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--soft-green);
  box-shadow: 0 0 0 3px rgba(124, 184, 124, 0.15);
  outline: none;
}

.btn-primary {
  background-color: var(--soft-green);
  border-color: var(--soft-green);
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--soft-green-dark);
  border-color: var(--soft-green-dark);
  transform: translateY(-1px);
}

.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(124, 184, 124, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--soft-green);
  color: var(--soft-green-dark);
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--soft-green);
  color: var(--bg-white);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: #b2bec3;
  padding: 3rem 0 1.5rem;
}

.site-footer h4 {
  color: var(--bg-white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer a {
  color: #b2bec3;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--soft-green-light);
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bg-white);
}

.footer-disclaimer {
  font-size: 0.875rem;
  color: #b2bec3;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 1rem;
  z-index: 1001;
  display: none;
}

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

.cookie-banner p {
  color: #dfe6e9;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.cookie-banner .btn {
  margin-top: 0.5rem;
}

/* Soft CTA */
.soft-cta {
  background: var(--gradient-soft);
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
}

.soft-cta h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.soft-cta p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* Page Header */
.page-header {
  background: var(--gradient-soft);
  padding: 3rem 0;
  text-align: center;
  border-radius: 0 0 1.5rem 1.5rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* Legal Pages */
.legal-content {
  padding: 3rem 0;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--soft-green-dark);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ul {
  color: var(--text-muted);
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* About Page */
.about-content {
  padding: 3rem 0;
}

.about-image {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact Page */
.contact-info {
  background-color: var(--bg-light);
  border-radius: 1rem;
  padding: 2rem;
}

.contact-info h3 {
  color: var(--soft-green-dark);
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info strong {
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 576px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .content-section {
    padding: 3rem 0;
  }
  
  .info-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .soft-cta {
    padding: 2rem 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--soft-green);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--soft-green);
  color: var(--bg-white);
  padding: 0.5rem 1rem;
  z-index: 1002;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}
