/* ============================================
   INDEX PAGE - Specific Styles
   (Hero, Services, Medicare, Features,
    Testimonials, Stats)
   ============================================ */


/* ============================================
   Section - Hero
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 1080px;
  background: var(--color-white);
  overflow: clip;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1440px;
  height: 800px;
  background: var(--color-midnight-96-tint);
  border-bottom-left-radius: 160px;
  border-bottom-right-radius: 160px;
}

.hero__content {
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  width: 668px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  text-align: center;
  z-index: 2;
}

.hero__title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-oblivion-primary);
}

.hero__subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-oblivion-primary);
  max-width: 480px;
}

/* Search Box */
.hero__search {
  position: absolute;
  top: 396px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-oblivion-80-shade);
  border-radius: var(--radius-md);
  box-shadow: 0px 2px 11.6px 0px rgba(0, 0, 0, 0.12);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  z-index: 3;
}

.hero__search-label {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--color-oblivion-primary);
}

.hero__search-form {
  display: flex;
  gap: var(--spacing-xs);
  align-items: flex-start;
}

.hero__search-input-wrapper {
  width: 320px;
}

.hero__search-input {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  width: 100%;
  height: 48px;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--color-hedgehog-80-tint);
  border: 1px solid var(--color-hedgehog-20-shade);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.hero__search-input:focus-within {
  border-color: var(--color-midnight-primary);
}

.hero__search-input-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
}

.hero__search-field {
  border: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-oblivion-primary);
  outline: none;
  width: 100%;
  line-height: normal;
}

.hero__search-field::placeholder {
  color: var(--color-hedgehog-40-shade);
}

/* Hero Images - 1440px coordinate system matching Figma */
.hero__images {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1440px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__image-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center image - tallest, positioned highest */
.hero__image-card--center {
  width: 400px;
  height: 386px;
  left: 50%;
  transform: translateX(-50%);
  top: 613px;
}

/* Left image */
.hero__image-card--left {
  width: 400px;
  height: 320px;
  left: 96px;
  top: 640px;
}

/* Right image */
.hero__image-card--right {
  width: 400px;
  height: 320px;
  left: 944px;
  top: 640px;
}

/* Far-left - partially offscreen, blurred/faded */
.hero__image-card--far-left {
  width: 192px;
  height: 192px;
  left: -120px;
  top: 680px;
  opacity: 0.34;
}

/* Far-right - partially offscreen, blurred/faded */
.hero__image-card--far-right {
  width: 192px;
  height: 192px;
  left: 1368px;
  top: 680px;
  opacity: 0.34;
}


/* ============================================
   Section - Services (Our Services)
   ============================================ */
.services {
  width: 100%;
  background: var(--color-services-bg);
  padding: var(--spacing-6xl) var(--spacing-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3xl);
}

.services__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  max-width: 668px;
  text-align: center;
}

.services__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 480px;
}

.services__description {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  max-width: 480px;
}

.services__cards {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  justify-content: center;
  width: 1130px;
  max-width: 100%;
}

.service-card {
  background: var(--color-white);
  border-radius: 22.228px;
  overflow: hidden;
  padding: 10px 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.service-card--featured {
  width: 438px;
}

.service-card--standard {
  width: 322px;
}

/* Image container - colored background visible as fallback, clipped rounded */
.service-card__image {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #C43B3B;
}

.service-card--standard .service-card__image {
  height: 235px;
  border-radius: 14px;
}

.service-card--featured .service-card__image {
  height: 305px;
  border-radius: 13px;
}

.service-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  padding: 20px 12px 16px;
  width: 100%;
}

.service-card__action {
  padding: 0 12px;
  width: 100%;
}

/* Button fills full card width */
.service-card__btn {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.service-card__btn .btn {
  display: flex;
  flex: 1;
  width: 100%;
  justify-content: center;
  font-family: var(--font-secondary);
  gap: 0;
}


/* ============================================
   Section - Medicare
   ============================================ */
.medicare {
  width: 100%;
  background: var(--color-midnight-96-tint);
  padding: var(--spacing-6xl) var(--spacing-3xl);
}

.medicare__container {
  background: var(--color-karimun-60-shade);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-3xl);
  overflow: hidden;
}

.medicare__content {
  width: 508px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xl);
}

.medicare__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.medicare__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-hedgehog-primary);
  width: 100%;
}

.medicare__description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-hedgehog-primary);
  width: 100%;
}

.medicare__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.medicare__list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.medicare__list-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.medicare__list-icon img {
  width: 100%;
  height: 100%;
}

.medicare__list-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-hedgehog-primary);
}

.medicare__image {
  width: 740px;
  height: 440px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.medicare__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================
   Section - Features (Everything Your Family Needs)
   ============================================ */
.features {
  width: 100%;
  background: var(--color-white);
  padding: var(--spacing-6xl) var(--spacing-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3xl);
}

.features__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  max-width: 668px;
  text-align: center;
}

.features__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 480px;
}

.features__description {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  max-width: 480px;
}

.features__grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  max-width: 1130px;
  width: 100%;
}

.features__row {
  display: flex;
  gap: var(--spacing-xl);
}


/* ============================================
   Section - Testimonials
   ============================================ */
.testimonials {
  width: 100%;
  background: var(--color-midnight-96-tint);
  padding: var(--spacing-6xl) var(--spacing-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-6xl);
}

.testimonials__content {
  display: flex;
  gap: var(--spacing-6xl);
  align-items: center;
  width: 1360px;
  max-width: 100%;
}

.testimonials__intro {
  width: 381px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
}

.testimonials__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.testimonials__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  width: 100%;
}

.testimonials__description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  width: 100%;
}

/* Rating Summary */
.testimonials__rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--color-midnight-96-tint);
  border-radius: var(--radius-round);
  box-shadow: 0px 2px 11.6px 0px rgba(0, 0, 0, 0.12);
}

.testimonials__rating-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.testimonials__rating-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.testimonials__rating-stars {
  display: flex;
  gap: 4px;
  width: 116px;
  height: 20px;
  align-items: flex-start;
}

.testimonials__rating-stars img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.testimonials__rating-count {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

/* Testimonial Cards */
.testimonials__cards {
  display: flex;
  gap: var(--spacing-xl);
  width: 899px;
  flex-shrink: 0;
}

.testimonial-card {
  flex: 1 0 0;
  background: var(--color-karimun-60-shade);
  border: 1px solid var(--color-midnight-60-tint);
  border-radius: var(--radius-md);
  padding: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 320px;
}

.testimonial-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--spacing-md);
}

.testimonial-card__stars img {
  width: 20px;
  height: 20px;
}

.testimonial-card__quote {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-hedgehog-primary);
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: var(--spacing-md);
}

.testimonial-card__author-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-hedgehog-primary);
  letter-spacing: -0.3125px;
}

.testimonial-card__author-date {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-hedgehog-primary);
  letter-spacing: -0.1504px;
}


/* ============================================
   Responsive - Tablet (max-width: 1280px)
   ============================================ */
@media (max-width: 1280px) {
  .hero {
    height: auto;
    min-height: 900px;
    padding-bottom: 120px;
  }

  .hero__bg {
    width: 100%;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
  }

  .hero__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 668px;
    margin: 120px auto 0;
    padding: 0 var(--spacing-lg);
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__search {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: var(--spacing-3xl) auto 0;
    width: auto;
    max-width: 500px;
  }

  .hero__images {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    height: 400px;
    margin-top: var(--spacing-3xl);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-xl);
  }

  .hero__image-card {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }

  .hero__image-card--far-left,
  .hero__image-card--far-right {
    display: none;
  }

  .hero__image-card--center {
    width: 300px;
    height: 350px;
  }

  .hero__image-card--left,
  .hero__image-card--right {
    width: 280px;
    height: 300px;
  }

  .services__cards {
    flex-wrap: wrap;
  }

  .service-card--featured {
    width: 100%;
    max-width: 438px;
  }

  .medicare__container {
    flex-direction: column;
  }

  .medicare__content {
    width: 100%;
  }

  .medicare__image {
    width: 100%;
    height: 360px;
  }

  .testimonials__content {
    flex-direction: column;
    gap: var(--spacing-3xl);
    width: 100%;
  }

  .testimonials__intro {
    width: 100%;
    max-width: 600px;
  }

  .testimonials__cards {
    width: 100%;
  }

}


/* ============================================
   Responsive - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .hero__title {
    font-size: 40px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__search-form {
    flex-direction: column;
  }

  .hero__search-input-wrapper {
    width: 100%;
  }

  .hero__images {
    height: 280px;
  }

  .hero__image-card--left,
  .hero__image-card--right {
    display: none;
  }

  .hero__image-card--center {
    width: 280px;
    height: 280px;
  }

  .services__title,
  .features__title,
  .testimonials__title {
    font-size: 36px;
  }

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

  .service-card--featured,
  .service-card--standard {
    width: 100%;
    max-width: 400px;
  }

  .features__row {
    flex-direction: column;
  }

  .testimonials__cards {
    flex-direction: column;
  }

}
