/* Scoped styles for home template component */
.home-template {
  /* Healthcare-focused color scheme with modern design system */
  --background: oklch(1 0 0);
  --foreground: oklch(0.25 0 0);
  --card: oklch(0.98 0.01 195);
  --card-foreground: oklch(0.35 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.25 0 0);
  --primary: oklch(0.35 0.08 195);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.55 0.15 65);
  --secondary-foreground: oklch(1 0 0);
  --muted: oklch(0.98 0 0);
  --muted-foreground: oklch(0.25 0 0);
  --accent: oklch(0.55 0.15 65);
  --accent-foreground: oklch(1 0 0);
  --destructive: oklch(0.55 0.22 25);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.92 0 0);
  --input: oklch(0.98 0 0);
  --ring: oklch(0.35 0.08 195 / 0.5);
  --radius: 0.5rem;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Reset and base styles scoped to home template */
.home-template * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Container */
.home-template .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
.home-template h1,
.home-template h2,
.home-template h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.home-template p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.home-template .text-primary {
  color: var(--primary);
}

.home-template .text-muted-foreground {
  color: var(--muted-foreground);
}

/* Hero Section */
.home-template .hero-section {
  padding: 3rem 0 5rem;
  background: linear-gradient(to bottom, var(--background), color-mix(in srgb, var(--muted) 30%, transparent));
  text-align: center;
}

.home-template .hero-content {
  max-width: 56rem;
  margin: 0 auto;
}

.home-template .hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background-color: color-mix(in srgb, var(--primary) 80%, transparent);
  color: var(--secondary-foreground);
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
}

.home-template .badge-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.home-template .hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.home-template .hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.home-template .hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.home-template .hero-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Button Styles */
.home-template .btn-primary,
.home-template .btn-secondary,
.home-template .btn-cta-primary,
.home-template .btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  border: none;
}

.home-template .btn-primary,
.home-template .btn-cta-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.home-template .btn-secondary {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.home-template .btn-cta-secondary {
  background-color: transparent;
  color: var(--primary-foreground);
  border: 1px solid color-mix(in srgb, var(--primary-foreground) 20%, transparent);
}

.home-template .btn-primary:hover,
.home-template .btn-cta-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home-template .btn-secondary:hover {
  background-color: color-mix(in srgb, var(--muted) 50%, transparent);
}

.home-template .btn-cta-secondary:hover {
  background-color: color-mix(in srgb, var(--primary-foreground) 10%, transparent);
}

.home-template .btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
}

/* Features Section */
.home-template .features-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.home-template .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.home-template .section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.home-template .section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.home-template .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.home-template .feature-card {
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease-in-out;
}

.home-template .feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.home-template .feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.home-template .feature-icon.primary {
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.home-template .feature-icon.accent {
  background-color: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.home-template .feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.home-template .feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.home-template .feature-description {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* Security Section */
.home-template .security-section {
  padding: 5rem 0;
  background-color: color-mix(in srgb, var(--muted) 30%, transparent);
}

.home-template .security-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
}

.home-template .security-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-template .security-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.home-template .security-icon {
  width: 2rem;
  height: 2rem;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.home-template .security-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.home-template .security-text h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.home-template .security-text p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.home-template .security-highlight {
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.home-template .highlight-icon {
  width: 4rem;
  height: 4rem;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.home-template .highlight-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.home-template .security-highlight h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-template .security-highlight p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.home-template .compliance-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: color-mix(in srgb, var(--secondary) 10%, transparent);
  color: var(--secondary-foreground);
  font-size: 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

/* Testimonials Section */
.home-template .testimonials-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.home-template .testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.home-template .testimonial-card {
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.home-template .rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.home-template .star {
  width: 1rem;
  height: 1rem;
  fill: var(--accent);
  color: var(--accent);
}

.home-template .testimonial-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--card-foreground);
}

.home-template .testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-template .author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.home-template .author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.home-template .author-title {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* CTA Section */
.home-template .cta-section {
  padding: 5rem 0;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.home-template .cta-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.home-template .cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.home-template .cta-description {
  font-size: 1.25rem;
  color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
  margin-bottom: 2rem;
}

.home-template .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* Responsive Design */

/* Small screens (480px and up) */
@media (min-width: 30em) {
  .home-template .container {
    padding: 0 1.5rem;
  }

  .home-template .hero-buttons,
  .home-template .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Medium screens (768px and up) */
@media (min-width: 48em) {
  .home-template .container {
    padding: 0 2rem;
  }

  .home-template .hero-section {
    padding: 5rem 0 8rem;
  }

  .home-template .hero-title {
    font-size: 2.75rem;
  }

  .home-template .section-title {
    font-size: 2.25rem;
  }

  .home-template .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-template .security-content {
    grid-template-columns: 1fr 1fr;
  }

  .home-template .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-template .cta-title {
    font-size: 2.25rem;
  }
}

/* Large screens (1024px and up) */
@media (min-width: 64em) {
  .home-template .hero-section {
    padding: 8rem 0;
  }

  .home-template .hero-title {
    font-size: 3.75rem;
  }

  .home-template .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-template .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large screens (1280px and up) */
@media (min-width: 80em) {
  .home-template .container {
    max-width: 1280px;
  }
}

/* Focus states for accessibility */
.home-template button:focus-visible,
.home-template a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .home-template * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .home-template {
    --border: oklch(0.5 0 0);
  }

  .home-template .feature-card,
  .home-template .testimonial-card,
  .home-template .security-highlight {
    border-width: 2px;
  }
}
