/* Reflectify Homepage - Clean 2025 Style Guide Implementation */
/* Using exact colors and typography from style guide */

/* Import Open Sans font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* Base styling with higher specificity to override all conflicts */
body.homepage-layout {
  background: linear-gradient(to bottom, #f7f6fd, #ffffff);
  color: #1f2937;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Container with max-width from style guide */
body.homepage-layout .homepage-main-wrapper .hero-gradient.home-page-content.py-5 .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* Hero gradient override */
body.homepage-layout .homepage-main-wrapper .hero-gradient.home-page-content.py-5 {
  background: linear-gradient(to bottom, #f7f6fd, #ffffff);
  min-height: 100vh;
  padding: 0;
}

/* Section spacing */
body.homepage-layout section {
  margin-bottom: 80px;
}

/* Typography following style guide exactly */
body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 h1.hero-title.mb-4 {
  color: #1f2937;
  font-family: 'Open Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: none;
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 p.hero-subtitle.mb-4 {
  color: #6b7280;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: none;
}

/* Value points styling */
body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .value-stack.mb-4 {
  margin: 2rem 0;
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .value-stack.mb-4 .value-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #1f2937;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .value-stack.mb-4 .value-item span {
  color: #1f2937;
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .value-stack.mb-4 .value-item i.fas {
  color: #a78bfa;
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

/* Free testing notice styling */
body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .free-testing-notice.mb-4 {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .free-testing-notice.mb-4 .notice-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .free-testing-notice.mb-4 .notice-content i.fas {
  color: #22c55e;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .free-testing-notice.mb-4 .notice-content .notice-text {
  color: #1f2937;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .free-testing-notice.mb-4 .notice-content .notice-text strong {
  color: #22c55e;
  font-weight: 700;
}

/* Button styling exactly from style guide */
body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .cta-section a.btn.btn-primary.btn-lg.mb-3,
body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .cta-section a.btn.btn-primary {
  background-color: #a78bfa;
  color: white;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  line-height: 1.6;
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .cta-section a.btn.btn-primary.btn-lg.mb-3:hover,
body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .cta-section a.btn.btn-primary:hover {
  background-color: #8b5cf6;
  color: white;
  text-decoration: none;
  transform: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Secondary link styling */
body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .cta-section a.btn.btn-link {
  color: #a78bfa;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .cta-section a.btn.btn-link:hover {
  color: #8b5cf6;
  text-decoration: underline;
}

/* Small text styling */
body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .cta-section .text-center small.text-muted {
  color: #6b7280;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Card styling for any cards that might appear */
body.homepage-layout .card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

/* Demo visual styling */
body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .hero-visual {
  text-align: center;
}

body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 .hero-visual .demo-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}

/* Override any remaining inherited styles */
body.homepage-layout * {
  box-sizing: border-box;
}

body.homepage-layout h1, 
body.homepage-layout h2, 
body.homepage-layout h3 {
  color: #1f2937;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
}

body.homepage-layout p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Open Sans', sans-serif;
}

/* Features Section Styling */
body.homepage-layout .container.py-5 {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

body.homepage-layout .features-section h2.section-title,
body.homepage-layout .testimonials h2.section-title {
  color: #1f2937;
  font-family: 'Open Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

body.homepage-layout .features-section p.section-subtitle,
body.homepage-layout .testimonials p.section-subtitle {
  color: #6b7280;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Step Cards Styling */
body.homepage-layout .step-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.homepage-layout .step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Create a title row with number, icon, and title inline */
body.homepage-layout .step-card .title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

body.homepage-layout .step-card .step-number {
  background-color: #a78bfa;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  flex-shrink: 0;
}

body.homepage-layout .step-card .step-icon {
  flex-shrink: 0;
}

body.homepage-layout .step-card .step-icon i {
  color: #a78bfa;
  font-size: 1.5rem;
}

body.homepage-layout .step-card h3.step-title {
  color: #1f2937;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

body.homepage-layout .step-card p.step-description {
  color: #6b7280;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Benefits Section Styling */
body.homepage-layout .benefits-section {
  background: linear-gradient(to bottom, #f7f6fd, #ffffff);
  padding: 80px 0;
}

body.homepage-layout .benefits-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

body.homepage-layout .benefit-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  text-align: center;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.homepage-layout .benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

body.homepage-layout .benefit-card .benefit-icon {
  margin-bottom: 1rem;
}

body.homepage-layout .benefit-card .benefit-icon i {
  color: #a78bfa;
  font-size: 2.5rem;
}

body.homepage-layout .benefit-card h4.benefit-title {
  color: #1f2937;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

body.homepage-layout .benefit-card p.benefit-text {
  color: #6b7280;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Final CTA Section */
body.homepage-layout .final-cta-section {
  padding: 80px 0;
}

body.homepage-layout .final-cta-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

body.homepage-layout .final-cta-section h2.final-cta-title {
  color: #1f2937;
  font-family: 'Open Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

body.homepage-layout .final-cta-section p.final-cta-subtitle {
  color: #6b7280;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

body.homepage-layout .trust-signals {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

body.homepage-layout .trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
}

body.homepage-layout .trust-item i {
  color: #a78bfa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 h1.hero-title.mb-4 {
    font-size: 1.875rem;
  }
  
  body.homepage-layout .homepage-main-wrapper .home-page-content .container .row .col-lg-6 p.hero-subtitle.mb-4 {
    font-size: 1.125rem;
  }
  
  body.homepage-layout .homepage-main-wrapper .hero-gradient.home-page-content.py-5 .container {
    padding: 40px 16px;
  }

  body.homepage-layout .container.py-5,
  body.homepage-layout .benefits-section .container,
  body.homepage-layout .final-cta-section .container {
    padding: 40px 16px;
  }

  body.homepage-layout .features-section h2.section-title,
  body.homepage-layout .testimonials h2.section-title,
  body.homepage-layout .final-cta-section h2.final-cta-title {
    font-size: 1.875rem;
  }

  body.homepage-layout .features-section p.section-subtitle,
  body.homepage-layout .testimonials p.section-subtitle,
  body.homepage-layout .final-cta-section p.final-cta-subtitle {
    font-size: 1.125rem;
  }

  body.homepage-layout .trust-signals {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}