/* ScalOorgan - Modern Health Tech CSS */

/* CSS Variables for consistent theming */
:root {
  /* Primary Colors - Health Tech Theme */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  
  /* Secondary Colors - Wellness Theme */
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #34d399;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Accent Colors */
  --accent-purple: #8b5cf6;
  --accent-teal: #14b8a6;
  --accent-orange: #f97316;
  
  /* Status Colors */
  --success-color: #22c55e;
  --warning-color: #eab308;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-700);
}

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

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

ul, ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
  color: var(--gray-700);
}

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

/* Container and Layout */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 44px;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  height: var(--header-height);
}

.navbar {
  height: 100%;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  margin-right: var(--space-3);
}

.nav-menu {
  display: none;
}

@media (min-width: 768px) {
  .nav-menu {
    display: block;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--space-8);
}

.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

/* Mobile Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 767px) {
  .nav-menu.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav-list {
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .nav-link {
    display: block;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
  }
}

/* Hero Section */
.hero {
  padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
  background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0.05;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-color) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: var(--text-5xl);
  }
}

.hero-text p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  color: var(--gray-600);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    gap: var(--space-6);
  }
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-device {
  max-width: 400px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.2));
}

/* Section Styles */
section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: var(--text-4xl);
  }
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background-color: var(--gray-50);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: 2fr 1fr;
  }
}

.about-features {
  list-style: none;
  padding: 0;
  margin-top: var(--space-6);
}

.about-features li {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-3);
  color: var(--gray-700);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.stat {
  text-align: center;
  padding: var(--space-6);
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.product-card {
  background-color: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  border: 2px solid transparent;
}

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

.product-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
}

.featured-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background-color: var(--primary-color);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.product-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.product-icon img {
  width: 80px;
  height: 80px;
}

.product-card h3 {
  text-align: center;
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.product-card p {
  text-align: center;
  margin-bottom: var(--space-6);
  color: var(--gray-600);
}

.product-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-6);
}

.product-features li {
  padding: var(--space-2) 0;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  font-size: var(--text-sm);
}

.product-features li:last-child {
  border-bottom: none;
}

.product-features li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: var(--space-3);
}

.product-price {
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-color);
}

/* Services Section */
.services {
  background-color: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.service-card {
  background-color: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.service-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.service-icon img {
  width: 60px;
  height: 60px;
}

.service-card h3 {
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.testimonial-card {
  background-color: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  font-family: serif;
}

.testimonial-content {
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.author-info h4 {
  color: var(--gray-900);
  margin-bottom: var(--space-1);
  font-size: var(--text-base);
}

.author-info span {
  color: var(--gray-500);
  font-size: var(--text-sm);
}

.rating {
  color: var(--warning-color);
  font-size: var(--text-lg);
}

/* Newsletter Section */
.newsletter {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.newsletter p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form-group {
    flex-direction: row;
  }
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-4);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-consent {
  text-align: left;
}

.newsletter-consent label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.newsletter-consent input[type="checkbox"] {
  margin-top: 2px;
}

.newsletter-consent a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

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

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-item {
  margin-bottom: var(--space-8);
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}

.contact-item p {
  margin-bottom: 0;
  color: var(--gray-700);
}

.contact-form {
  background-color: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  margin-bottom: var(--space-6);
  text-align: center;
  color: var(--gray-900);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form .form-group {
  margin-bottom: var(--space-4);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
}

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

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: white;
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-4);
}

.footer-logo-img {
  width: 120px;
  height: 40px;
  margin-right: var(--space-3);
  display: block;
}

.footer-logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
}

.footer-section p {
  color: var(--gray-300);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

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

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--gray-800);
  border-radius: var(--radius-lg);
  font-size: var(--text-lg);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-8);
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-400);
  margin: 0;
  font-size: var(--text-sm);
}

/* Cookie Banner & Modal */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 2px solid var(--primary-color);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.cookie-banner:not(.hidden) {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text h3 {
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.cookie-text p {
  color: var(--gray-600);
  margin: 0;
  font-size: var(--text-sm);
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .cookie-buttons {
    flex-direction: row;
  }
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cookie-modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background-color: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal h3 {
  margin-bottom: var(--space-6);
  text-align: center;
  color: var(--gray-900);
}

.cookie-category {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.cookie-category label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
}

.cookie-category p {
  margin-top: var(--space-2);
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.cookie-modal-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
}

/* Blog Styles */
.blog-hero {
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-12);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
}

.blog-hero-content h1 {
  color: white;
  margin-bottom: var(--space-4);
}

.blog-hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.blog-articles {
  padding: var(--space-20) 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.article-card {
  background-color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-8);
}

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

.article-card.featured {
  border: 2px solid var(--primary-color);
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .article-card {
    flex-direction: row;
  }
  
  .article-card.featured {
    flex-direction: column;
  }
}

.article-image {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  padding: var(--space-6);
}

.article-icon {
  width: 80px;
  height: 80px;
}

.article-content {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.article-category {
  background-color: var(--primary-color);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.article-date {
  color: var(--gray-500);
}

.article-content h2 {
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.article-content h2 a {
  color: var(--gray-900);
  text-decoration: none;
}

.article-content h2 a:hover {
  color: var(--primary-color);
}

.article-content p {
  color: var(--gray-600);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tag {
  background-color: var(--gray-100);
  color: var(--gray-700);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
}

/* Blog Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .blog-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}

.sidebar-widget {
  background-color: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  margin-bottom: var(--space-4);
  color: var(--gray-900);
  font-size: var(--text-lg);
}

.category-list,
.popular-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li,
.popular-posts li {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gray-100);
}

.category-list li:last-child,
.popular-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.category-list a,
.popular-posts a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.category-list a:hover,
.popular-posts a:hover {
  color: var(--primary-color);
}

.newsletter-widget {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.newsletter-widget h3 {
  color: white;
}

.newsletter-widget p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-newsletter-form input {
  padding: var(--space-3);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.sidebar-newsletter-form button {
  font-size: var(--text-sm);
  padding: var(--space-3);
}

/* Blog Article Page */
.blog-article {
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-20);
}

.article-header {
  max-width: 800px;
  margin: 0 auto var(--space-16);
  text-align: center;
}

.breadcrumb {
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--primary-color);
}

.reading-time {
  color: var(--gray-500);
}

.article-intro {
  font-size: var(--text-lg);
  color: var(--gray-600);
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: var(--space-12);
}

.content-section h2 {
  color: var(--gray-900);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--primary-color);
}

.content-section h3 {
  color: var(--gray-800);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.content-section h4 {
  color: var(--gray-800);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

/* Special Content Blocks */
.tech-features,
.sleep-phases,
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

@media (min-width: 768px) {
  .tech-features,
  .sleep-phases {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature,
.phase,
.metric {
  padding: var(--space-6);
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.feature h4,
.phase h4,
.metric h4 {
  color: var(--primary-color);
  margin-bottom: var(--space-3);
}

.case-study {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--secondary-color);
}

.case-study h4 {
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

.case-study p {
  margin-bottom: var(--space-3);
}

.case-study p strong {
  color: var(--gray-900);
}

/* Article Footer Elements */
.article-tags {
  margin: var(--space-12) 0;
  padding: var(--space-6);
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
}

.article-tags h3 {
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.article-share {
  margin: var(--space-8) 0;
  text-align: center;
}

.article-share h3 {
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.share-btn {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
}

.share-btn.facebook {
  background-color: #1877f2;
  color: white;
}

.share-btn.linkedin {
  background-color: #0a66c2;
  color: white;
}

.share-btn.twitter {
  background-color: #1da1f2;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-articles {
  margin: var(--space-16) 0;
}

.related-articles h3 {
  margin-bottom: var(--space-8);
  text-align: center;
  color: var(--gray-900);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.related-article {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.related-article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-article a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-article img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background-color: var(--gray-100);
  padding: var(--space-4);
  box-sizing: border-box;
}

.related-article h4 {
  padding: var(--space-4);
  margin: 0;
  font-size: var(--text-base);
  color: var(--gray-800);
}

/* Legal Pages */
.legal-page {
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-20);
}

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

.legal-content h1 {
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.last-updated {
  color: var(--gray-500);
  font-size: var(--text-sm);
  margin-bottom: var(--space-12);
  font-style: italic;
}

.legal-section {
  margin-bottom: var(--space-12);
}

.legal-section h2 {
  color: var(--primary-color);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gray-200);
}

.legal-section h3 {
  color: var(--gray-800);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.contact-info {
  background-color: var(--gray-50);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}

.cookie-table {
  overflow-x: auto;
  margin: var(--space-6) 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cookie-table th,
.cookie-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.cookie-table th {
  background-color: var(--gray-50);
  font-weight: 600;
  color: var(--gray-900);
}

.cookie-table td {
  color: var(--gray-700);
}

.cookie-settings {
  margin: var(--space-8) 0;
  text-align: center;
}

/* Thank You Page */
.thank-you {
  padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
  text-align: center;
}

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

.thank-you-icon {
  margin-bottom: var(--space-8);
}

.thank-you-description {
  font-size: var(--text-lg);
  color: var(--gray-600);
  margin-bottom: var(--space-12);
}

.thank-you-benefits,
.thank-you-actions {
  margin-bottom: var(--space-12);
  text-align: left;
}

.thank-you-benefits h2,
.thank-you-actions h2 {
  text-align: center;
  margin-bottom: var(--space-6);
  color: var(--gray-900);
}

.thank-you-benefits ul {
  list-style: none;
  padding: 0;
}

.thank-you-benefits li {
  padding: var(--space-3) 0;
  color: var(--gray-700);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 640px) {
  .action-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.thank-you-contact {
  margin-top: var(--space-12);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design Helpers */
@media (max-width: 639px) {
  .hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hidden-tablet {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hidden-desktop {
    display: none !important;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .cookie-modal,
  .newsletter,
  .share-buttons {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .blog-article {
    padding-top: 0;
  }
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-up {
  animation: slideInUp 0.5s ease-out;
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --gray-400: #666666;
    --gray-500: #555555;
    --gray-600: #444444;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
