/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #d32f2f;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #b71c1c;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #d32f2f;
  letter-spacing: -0.5px;
}

.logo:hover {
  color: #b71c1c;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #d32f2f;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  /* Added background image for hero section */
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/hero-joint-health.jpg");
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  text-align: center;
}

.hero-content h1 {
  /* Changed color to white for better contrast on image background */
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  /* Changed color to white for better contrast on image background */
  font-size: 1.25rem;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #d32f2f;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
}

.page-header-warning {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-gray {
  background-color: #f9f9f9;
}

.section-newsletter {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #fff;
}

.text-center {
  text-align: center;
}

/* Typography */
h2 {
  font-size: 2.25rem;
  color: #333;
  margin-bottom: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.75rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: #444;
}

.highlight-text {
  background-color: #fff3e0;
  padding: 1.5rem;
  border-left: 4px solid #d32f2f;
  margin: 1.5rem 0;
}

/* Grids */
.intro-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.care-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Cards */
.care-card,
.value-card,
.info-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.care-card:hover,
.value-card:hover,
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.care-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-item {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.benefit-number {
  font-size: 3rem;
  font-weight: 700;
  color: #d32f2f;
  margin-bottom: 1rem;
}

/* Lists */
.benefits-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.benefits-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: #555;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d32f2f;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Images */
.intro-image img,
.about-image img,
.product-image img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* Boxes */
.mission-box,
.disclaimer-box,
.info-box,
.newsletter-box,
.thank-you-box {
  background-color: #fff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.warning-box {
  background-color: #ffebee;
  border: 3px solid #d32f2f;
  padding: 2.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.warning-box h2 {
  color: #d32f2f;
  margin-bottom: 1rem;
}

.warning-text {
  font-size: 1.3rem;
  color: #b71c1c;
  line-height: 1.8;
}

.warning-box-large {
  background-color: #ffebee;
  border: 4px solid #d32f2f;
  padding: 3rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
}

.warning-text-large {
  font-size: 1.5rem;
  color: #b71c1c;
  line-height: 1.8;
}

.disclaimer-small {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
  margin-top: 1rem;
}

/* Warning Section */
.warning-section {
  background-color: #fff;
}

/* Forms */
.newsletter-form,
.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #d32f2f;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}

.section-newsletter .newsletter-box {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.section-newsletter h2,
.section-newsletter p {
  color: #fff;
}

.section-newsletter .form-input {
  background-color: rgba(255, 255, 255, 0.9);
}

.section-newsletter .checkbox-group label {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #d32f2f;
  color: #fff;
}

.btn-primary:hover {
  background-color: #b71c1c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
  background-color: #757575;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #616161;
  color: #fff;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Contact Page */
.contact-info h2 {
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  font-size: 1.25rem;
  color: #d32f2f;
  margin-bottom: 0.5rem;
}

.contact-form-box {
  background-color: #f9f9f9;
  padding: 2.5rem;
  border-radius: 8px;
}

/* Thank You Page */
.thank-you-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.thank-you-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #4caf50;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 2rem;
}

.thank-you-info {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: left;
}

.thank-you-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Legal Content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

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

.legal-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

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

.legal-content strong {
  color: #333;
}

.legal-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.cookie-table {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-table th,
.cookie-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.cookie-table th {
  background-color: #f5f5f5;
  color: #333;
  font-weight: 600;
}

.link-primary {
  color: #d32f2f;
  font-weight: 600;
  text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: #fff;
  padding: 1.5rem;
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: none;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  margin: 0;
  color: #fff;
}

.cookie-content a {
  color: #fff;
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #212121;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col p {
  color: #bbb;
  font-size: 0.95rem;
}

.footer-col a {
  color: #bbb;
}

.footer-col a:hover {
  color: #d32f2f;
}

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

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

.footer-bottom {
  border-top: 1px solid #424242;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: #888;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .intro-grid,
  .about-grid,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .care-grid,
  .values-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .thank-you-actions {
    flex-direction: column;
  }

  .thank-you-actions .btn {
    width: 100%;
  }
}
