/* Nutria - Educational Nutrition Website */
/* Main Stylesheet */

:root {
  --primary-color: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #C8E6C9;
  --text-dark: #212121;
  --text-medium: #616161;
  --text-light: #9E9E9E;
  --bg-white: #FFFFFF;
  --bg-light: #F5F5F5;
  --bg-section: #FAFAFA;
  --border-color: #E0E0E0;
}

/* Base Styles */
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: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.25rem;
}

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

h3 {
  font-size: 1.5rem;
}

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

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

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

/* Header / Navigation */
.navbar-custom {
  background-color: var(--bg-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
}

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

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

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

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary-color);
}

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

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

.hero-section p {
  font-size: 1.125rem;
  color: var(--text-medium);
}

.hero-image {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

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

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

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

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

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

.section-title p {
  max-width: 700px;
  margin: 1rem auto 0;
}

/* Content Cards */
.content-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.content-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.content-card img {
  border-radius: 6px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.content-card:hover img {
  transform: scale(1.03);
}

/* Info Block */
.info-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .info-block {
    flex-direction: row;
    align-items: center;
  }
  
  .info-block.reverse {
    flex-direction: row-reverse;
  }
  
  .info-block .info-image,
  .info-block .info-content {
    flex: 1;
  }
}

.info-block .info-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.info-block .info-image img:hover {
  transform: scale(1.02);
}

/* Infographic Section */
.infographic-section {
  background-color: var(--primary-light);
}

.infographic-section img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.faq-section .card-body {
  color: var(--text-medium);
  padding: 0 1.25rem 1.25rem;
}

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

.btn-detail {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* Contact Section */
.contact-section {
  background-color: var(--bg-section);
}

.contact-info {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  height: 100%;
}

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

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

.contact-form {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

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

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

.contact-form .btn-submit {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .btn-submit:hover {
  background-color: var(--primary-dark);
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  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 {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-medium);
}

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

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

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

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

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

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

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

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

.cookie-banner .btn-accept {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.cookie-banner .btn-decline {
  background-color: transparent;
  color: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

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

.cookie-banner .btn-decline:hover {
  border-color: var(--bg-white);
}

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

/* Policy Pages */
.policy-page {
  padding: 4rem 0;
}

.policy-page h1 {
  margin-bottom: 2rem;
}

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

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

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

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

/* About Page */
.about-hero {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

.about-content {
  padding: 4rem 0;
}

.about-image {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
}

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

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

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

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 3rem 0;
    text-align: center;
  }
  
  .navbar-custom .navbar-brand {
    font-size: 1.25rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
}
