/* VitaInfo - Main Stylesheet */
/* Mobile-first responsive design */

:root {
  --primary-color: #3A7BD5;
  --primary-dark: #2a5ba5;
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
}

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

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

h3 {
  font-size: 1.25rem;
}

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

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

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

/* Header & Navigation */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-soft);
  padding: 0.75rem 1rem;
}

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

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

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

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

/* Hero Section */
#hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(58, 123, 213, 0.85) 0%, rgba(42, 91, 165, 0.75) 100%);
}

#hero .container {
  position: relative;
  z-index: 1;
}

#hero h1 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

#hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* Section Styling */
section {
  padding: 3rem 0;
}

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

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

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Two-column Educational Layout */
.edu-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.edu-row.reverse {
  flex-direction: column;
}

.edu-content {
  flex: 1;
}

.edu-image {
  flex: 1;
}

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

/* Info Cards */
.info-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.info-card:hover {
  box-shadow: var(--shadow-medium);
}

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

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

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

#faq .card-header button {
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
}

#faq .card-header button:hover {
  color: var(--primary-color);
}

#faq .card-body {
  padding: 1rem 1.5rem;
  color: var(--text-light);
}

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

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

/* Contact Form */
#contact {
  background-color: var(--bg-light);
}

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

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

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.15);
  outline: none;
}

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

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

.form-success {
  display: none;
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 3rem 0 1.5rem;
}

footer h5 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

footer a:hover {
  color: #ffffff;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

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

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

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

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

.cookie-banner h5 {
  margin-bottom: 0.75rem;
}

.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

.cookie-buttons .btn {
  flex: 1;
  min-width: 120px;
}

.btn-outline-secondary {
  border-color: var(--border-color);
  color: var(--text-color);
}

.btn-outline-secondary:hover {
  background-color: var(--bg-light);
  border-color: var(--border-color);
  color: var(--text-color);
}

/* Modal / Popup Styling */
.modal-content {
  border-radius: 8px;
  border: none;
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-weight: 600;
  color: var(--text-color);
}

.modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p, .modal-body li {
  font-size: 0.9rem;
  color: var(--text-light);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

/* Soft CTA Section */
#cta {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 3rem 1.5rem;
}

#cta h2 {
  color: #ffffff;
}

#cta h2::after {
  background-color: rgba(255, 255, 255, 0.5);
  left: 50%;
  transform: translateX(-50%);
}

#cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Infographic styling */
.infographic {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.infographic-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.infographic-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.infographic-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(58, 123, 213, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.infographic-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.infographic-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Tablet and up */
@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  #hero {
    min-height: 70vh;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 4rem 0;
  }

  .edu-row {
    flex-direction: row;
    align-items: center;
  }

  .edu-row.reverse {
    flex-direction: row-reverse;
  }

  .cookie-banner {
    padding: 1.5rem 2rem;
  }

  .cookie-buttons {
    justify-content: flex-end;
  }

  .cookie-buttons .btn {
    flex: none;
  }
}

/* Desktop */
@media (min-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  #hero h1 {
    font-size: 3rem;
  }

  #hero p {
    font-size: 1.25rem;
  }

  section {
    padding: 5rem 0;
  }

  .edu-row {
    gap: 3rem;
  }
}
