/* CSS Variables for Color System */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --background: #ffffff;
  --surface: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset and Base Styles */
* {
  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;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

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

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

/* Layout Components */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 15px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-link {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-link {
  background: none;
  color: var(--primary-color);
  padding: 8px 0;
  font-weight: 500;
}

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

/* Page Header */
.page-header {
  background: var(--surface);
  padding: 4rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

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

.page-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
  padding: 6rem 0;
  text-align: center;
}

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

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Grid Layouts */
.category-grid,
.steps-grid,
.topics-grid,
.ingredients-grid,
.benefits-grid,
.reviews-grid,
.products-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.topics-grid,
.ingredients-grid,
.benefits-grid,
.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Cards */
.category-card,
.topic-card,
.ingredient-card,
.benefit,
.review-card,
.product-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.2s ease;
}

.category-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-lg);
}

.category-card.large {
  padding: 3rem;
}

.category-icon,
.benefit-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.category-features,
.product-features {
  list-style: none;
  margin: 1.5rem 0;
}

.category-features li,
.product-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.category-features li::before,
.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-header {
  margin-bottom: 1rem;
}

.product-category {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.product-content {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.product-footer {
  margin-top: auto;
}

/* Steps */
.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

/* Reviews */
.stars {
  color: var(--warning);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.reviewer {
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Forms */
.contact-form-section,
.contact-section {
  padding: 4rem 0;
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-form,
.contact-form-container {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Contact Info */
.contact-details {
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.business-hours {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

/* Sections */
.categories,
.how-it-works,
.topics,
.ingredients,
.benefits,
.reviews,
.about-content,
.product-info,
.category-intro,
.products-grid-section,
.usage-guidelines,
.skincare-guidelines,
.faq-section {
  padding: 4rem 0;
}

.categories {
  background: var(--background);
}

.how-it-works {
  background: var(--surface);
}

.topics {
  background: var(--background);
}

.ingredients {
  background: var(--surface);
}

.benefits {
  background: var(--background);
}

.reviews {
  background: var(--surface);
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-balance {
  text-wrap: balance;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Content Sections */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.content-section,
.approach-section,
.commitment-section {
  margin-bottom: 3rem;
}

.values-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.value-item {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.approach-list {
  list-style: none;
  margin-top: 1rem;
}

.approach-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.approach-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* CTA Sections */
.cta-section {
  background: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

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

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary-color);
}

.cta-section .btn-primary:hover {
  background: var(--surface);
  color: var(--primary-color);
}

.cta-section .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-section .btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* Guidelines */
.guidelines-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.guideline-item {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Thank You Page */
.thank-you-section {
  padding: 6rem 0;
  text-align: center;
}

.thank-you-content {
  max-width: 800px;
  margin: 0 auto;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  color: var(--success);
  margin: 0 auto 2rem;
}

.message-summary {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  text-align: left;
}

.summary-details p {
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.next-steps {
  margin: 4rem 0;
}

.phone-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1rem 0;
}

.business-hours {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

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

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

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

.important-notice {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.important-notice h2 {
  color: #92400e;
  margin-top: 0;
}

.emergency-notice {
  background: #fee2e2;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.emergency-notice h2 {
  color: var(--error);
  margin-top: 0;
}

.cookie-management {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cookie-management ul {
  list-style: none;
  padding-left: 0;
}

.cookie-management li {
  margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-primary);
  color: white;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 -4px 6px var(--shadow);
}

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

.cookie-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Safety Notice */
.safety-notice {
  background: #fef3c7;
  border-top: 1px solid #f59e0b;
  padding: 2rem 0;
  text-align: center;
}

.notice-content p {
  margin: 0;
  color: #92400e;
  font-weight: 500;
}

.notice-content a {
  color: #92400e;
  text-decoration: underline;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: white;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header-content {
    padding: 0;
  }

  .nav {
    gap: 1rem;
  }

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

  .hero-content p {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

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

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

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

  .steps-grid,
  .topics-grid,
  .ingredients-grid,
  .benefits-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

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

  .guidelines-content,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons,
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary,
  .action-buttons .btn-primary,
  .action-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
  }

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

  .page-header {
    padding: 3rem 0 1.5rem;
  }

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

  .category-card,
  .product-card {
    padding: 1.5rem;
  }

  .category-card.large {
    padding: 2rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .message-summary {
    padding: 1.5rem;
  }
}
