/* ========================================
   Activa - Educational Vitamin Resource
   Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #43A047;
  --primary-dark: #2E7D32;
  --primary-light: #66BB6A;
  --text-dark: #212121;
  --text-medium: #424242;
  --text-light: #757575;
  --bg-white: #FFFFFF;
  --bg-light: #F5F5F5;
  --bg-section: #FAFAFA;
  --border-color: #E0E0E0;
  --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;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  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);
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

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

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

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

/* Header / Navbar */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.navbar-brand:hover {
  color: var(--primary-dark) !important;
}

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

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

/* Hero Section */
.hero-section {
  background-color: var(--bg-light);
  padding: 80px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

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

.hero-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Sections */
.section {
  padding: 80px 0;
}

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

.section-title {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.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);
}

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

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

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

/* Vitamin Grid */
.vitamin-item {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.vitamin-item:hover {
  box-shadow: var(--shadow-md);
}

.vitamin-item h4 {
  color: var(--primary-color);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* Infographic Section */
.infographic-section {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 80px 0;
}

.infographic-section h2,
.infographic-section h3 {
  color: var(--bg-white);
}

.infographic-section p {
  color: rgba(255,255,255,0.9);
}

.infographic-item {
  text-align: center;
  padding: 2rem 1rem;
}

.infographic-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

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

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

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

.timeline-year {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

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

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-question .icon {
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}

/* Study Cards */
.study-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  height: 100%;
}

.study-card .study-source {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.study-card h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

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

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

.cta-section p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

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

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

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
}

.contact-info {
  background-color: var(--bg-section);
  border-radius: 8px;
  padding: 2rem;
}

.contact-info-item {
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item h4 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

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

.footer p {
  color: rgba(255,255,255,0.7);
}

.footer a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

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

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

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

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

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

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

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

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

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

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

.cookie-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

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

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

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

/* Page Header */
.page-header {
  background-color: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

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

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

/* Policy Pages */
.policy-content {
  padding: 60px 0;
}

.policy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

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

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

.policy-content li {
  margin-bottom: 0.5rem;
  color: var(--text-medium);
}

/* About Page */
.about-content {
  padding: 60px 0;
}

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

.mission-box {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.mission-box h3 {
  color: var(--bg-white);
}

.mission-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero-section {
    padding: 40px 0;
    min-height: auto;
  }
  
  .hero-section h1 {
    font-size: 1.875rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .info-card {
    padding: 1.5rem;
  }
  
  .infographic-section {
    padding: 60px 0;
  }
  
  .infographic-number {
    font-size: 2.5rem;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
  
  .cookie-banner {
    padding: 1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons .btn {
    width: 100%;
  }
}

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

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

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Animation for elements */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
