/**
 * Homepage Styles for Consumer Expert Review
 * Modern, responsive design system
 */

/* === RESET & BASE === */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}

.content-wrapper {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="white" stroke-opacity="0.1" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-section .subtitle {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  margin: 0 0 16px;
  opacity: 0.95;
  line-height: 1.4;
}

.hero-section .tagline {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.85;
  line-height: 1.6;
}

/* === STATS BAR === */
.stats-bar {
  background: white;
  padding: 32px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 0 16px;
}

.stat-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: inline-block;
}

.stat-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a202c;
}

.stat-item p {
  font-size: 14px;
  color: #718096;
  margin: 0;
  line-height: 1.5;
}

/* === SECTION CONTAINER === */
.section {
  padding: 80px 24px;
  width: 100%;
}

.section-header {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 1400px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 16px;
  color: #1a202c;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: clamp(15px, 2vw, 18px);
  color: #4a5568;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.7;
}

/* === FEATURED CATEGORIES === */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px;
  margin: 0 auto 24px;
  max-width: 1400px;
}

.featured-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.featured-card-header {
  height: 220px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}

.featured-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.featured-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a202c;
  line-height: 1.3;
}

.featured-card p {
  font-size: 15px;
  color: #4a5568;
  margin: 0 0 20px;
  line-height: 1.6;
  flex: 1;
}

.featured-card-cta {
  color: #0ea5e9;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.featured-card:hover .featured-card-cta {
  gap: 10px;
}

/* === PROCESS CAROUSEL === */
.process-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-card {
  position: absolute;
  width: 100%;
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.process-card.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.process-card-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  border: 4px solid white;
}

.process-card-icon {
  font-size: 72px;
  margin: 24px 0 20px;
  display: block;
}

.process-card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  margin: 24px auto 20px;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.process-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #1a202c;
  line-height: 1.2;
}

.process-card p {
  font-size: 17px;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.process-indicators {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator:hover {
  background: #94a3b8;
  transform: scale(1.1);
}

.indicator.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  width: 32px;
  border-radius: 6px;
  border-color: #0ea5e920;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .process-card {
    padding: 36px 28px;
  }

  .process-card-icon {
    font-size: 56px;
    margin: 20px 0 16px;
  }

  .process-card-image {
    max-width: 300px;
    margin: 20px auto 16px;
  }

  .process-card h3 {
    font-size: 24px;
  }

  .process-card p {
    font-size: 15px;
  }

  .process-carousel {
    min-height: 500px;
  }
}

@media (max-width: 480px) {
  .process-card {
    padding: 32px 24px;
  }

  .process-card-number {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .process-card-icon {
    font-size: 48px;
  }

  .process-card-image {
    max-width: 250px;
    margin: 16px auto 12px;
  }

  .process-card h3 {
    font-size: 22px;
  }

  .process-card p {
    font-size: 14px;
  }

  .process-carousel {
    min-height: 450px;
  }
}

/* === CATEGORY GRID === */
.category-section {
  background: white;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 968px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.category-icon {
  font-size: 42px;
  margin-bottom: 12px;
  display: block;
}

.category-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: #2d3748;
  line-height: 1.3;
}

/* === TRUST SECTION === */
.trust-section {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1e293b 100%);
  color: white;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.trust-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px;
  margin-top: 56px;
}

.trust-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.trust-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
}

.trust-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.trust-card p {
  font-size: 16px;
  opacity: 0.95;
  margin: 0;
  line-height: 1.7;
}

/* === CTA SECTION === */
.cta-section {
  background: white;
  padding: 64px 24px;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 16px;
  color: #1a202c;
}

.cta-section p {
  font-size: 18px;
  color: #4a5568;
  margin: 0 0 32px;
  line-height: 1.7;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

/* === ABOUT PAGE STYLES === */

.about-hero {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  text-align: center;
  padding: 80px 24px 60px;
}

.about-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
}

.about-hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.6;
}

.stats-section {
  background: white;
  padding: 48px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #0ea5e9;
  margin: 0 0 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

.content-section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 24px;
  color: #1a202c;
}

.content-section p {
  font-size: 17px;
  line-height: 1.8;
  color: #4a5568;
  margin: 0 0 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px;
  margin: 48px 0;
}

.value-card {
  background: #f7fafc;
  border-radius: 12px;
  padding: 32px 28px;
  border-left: 4px solid #0ea5e9;
}

.value-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a202c;
}

.value-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
}

.mission-box {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  margin: 80px auto;
}

.mission-box h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 20px;
  color: white;
}

.mission-box p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255,255,255,0.95);
}

.disclosure-section {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 24px 28px;
  border-radius: 8px;
  margin: 48px 0;
}

.disclosure-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclosure-section p {
  font-size: 15px;
  line-height: 1.7;
  color: #78350f;
  margin: 0;
}

/* === RESPONSIVE DESIGN === */

/* Tablet & smaller desktops */
@media (max-width: 768px) {
  .about-hero {
    padding: 60px 20px 40px;
  }

  .content-section {
    padding: 56px 20px;
  }

  .mission-box {
    padding: 40px 24px;
    margin: 56px auto;
  }

  .stats-row {
    gap: 32px;
  }
  .hero-section {
    padding: 60px 20px 50px;
  }

  .section {
    padding: 56px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .stats-container {
    gap: 24px;
  }

  .stat-item {
    padding: 0 8px;
  }

  .featured-grid {
    gap: 24px;
  }

  .featured-card-header {
    height: 180px;
    font-size: 56px;
  }

  .featured-card-body {
    padding: 24px;
  }

  .test-process {
    padding: 36px 24px;
  }

  .test-grid {
    gap: 32px;
    margin-top: 32px;
  }

  .trust-grid {
    gap: 32px;
    margin-top: 40px;
  }

  .trust-card {
    padding: 28px 20px;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }

  .cta-section {
    padding: 48px 20px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .test-grid {
    grid-template-columns: 1fr;
  }
}
