/* =====================================================
   Vitalora - Educational Supplement Information Site
   Main Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
  --primary-color: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

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

/* Header / Navigation */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  padding: 4rem 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-title {
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Content Blocks */
.content-block {
  margin-bottom: 2rem;
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.content-image:hover {
  box-shadow: var(--shadow-md);
}

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

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

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

/* Cards */
.info-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Infographic Section */
.infographic-section {
  text-align: center;
}

.infographic-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* History Section */
.history-timeline {
  position: relative;
  padding-left: 2rem;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-left: -4.5px;
}

.timeline-year {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.125rem;
}

/* FAQ Section */
.faq-section .card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-section .card-header {
  background-color: var(--bg-white);
  border-bottom: none;
  padding: 0;
}

.faq-section .btn-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  display: block;
  transition: var(--transition);
}

.faq-section .btn-link:hover {
  color: var(--primary-color);
  background-color: var(--bg-light);
}

.faq-section .card-body {
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

/* Study Section */
.study-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.study-card:hover {
  box-shadow: var(--shadow-md);
}

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

.study-card-body {
  padding: 1.5rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--bg-light);
  padding: 3rem 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-link-primary {
  color: var(--primary-color);
  font-weight: 500;
  padding: 0;
  transition: var(--transition);
}

.btn-link-primary:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Contact Form */
.contact-form {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.contact-form .form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

.contact-info {
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

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

.footer h5 {
  color: var(--bg-white);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

.footer a {
  color: #adb5bd;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--bg-white);
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-dark);
  color: var(--bg-light);
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  display: none;
}

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

.cookie-banner p {
  margin-bottom: 1rem;
  color: #adb5bd;
}

.cookie-banner a {
  color: var(--primary-light);
}

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

.cookie-buttons .btn {
  padding: 0.5rem 1.25rem;
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.disclaimer-box h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.disclaimer-box p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Page Header */
.page-header {
  background-color: var(--bg-light);
  padding: 3rem 0;
  margin-bottom: 2rem;
}

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

.page-header p {
  color: var(--text-muted);
  margin-bottom: 0;
}

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

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

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

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

/* About Page */
.about-mission {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
}

.about-values {
  margin-top: 2rem;
}

.value-item {
  text-align: center;
  padding: 1.5rem;
}

.value-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  body {
    padding-top: 60px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .two-col-section {
    flex-direction: column;
  }
  
  .two-col-section.reverse {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero-section {
    padding: 2rem 0;
    min-height: auto;
  }
  
  .hero-content h1 {
    font-size: 1.875rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .info-card {
    padding: 1.25rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .cookie-banner {
    padding: 1rem;
  }
  
  .cookie-buttons {
    width: 100%;
  }
  
  .cookie-buttons .btn {
    flex: 1;
  }
}

@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 1.625rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .page-header {
    padding: 2rem 0;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.mb-section {
  margin-bottom: 4rem;
}

.img-rounded {
  border-radius: 12px;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .cookie-banner {
    display: none !important;
  }
  
  body {
    padding-top: 0;
  }
  
  .section {
    padding: 1rem 0;
  }
}
