/* Adult & home care page — builds on home.css + telehealth.css */

.hc-hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, #FFFFFF 100%);
}

.hc-accent {
  color: var(--blue-600);
}

/* ---------- Hero visual ---------- */

.hc-visual {
  position: relative;
  padding: 1.5rem;
}

.hc-visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.hc-note {
  position: absolute;
}

.hc-note--top {
  top: 0;
  right: 0;
}

.hc-note--bottom {
  left: 0;
  bottom: 0;
}

/* ---------- Who we help ---------- */

.hc-card {
  display: flex;
  flex-direction: column;
}

.hc-card p {
  margin-bottom: 1.25rem;
}

.hc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  color: var(--blue-600);
  font-weight: 700;
}

.hc-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.hc-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- Program tabs ---------- */

.hc-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hc-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  background: #FFFFFF;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--gray-600);
  font-weight: 700;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.hc-tab .icon {
  width: 18px;
  height: 18px;
}

.hc-tab:hover {
  border-color: var(--gray-300);
  color: var(--gray-900);
}

.hc-tab[aria-selected='true'] {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #FFFFFF;
}

.hc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #FFFFFF;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.hc-panel[hidden] {
  display: none;
}

.hc-panel:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
}

.hc-panel img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 16px;
}

.hc-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.625rem;
  letter-spacing: -0.015em;
}

.hc-checks {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.hc-checks li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--gray-700);
  font-weight: 500;
}

.hc-checks .icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--green-700);
}

/* ---------- What's included ---------- */

.hc-included {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hc-included li {
  padding: 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
  color: var(--gray-900);
  font-weight: 700;
  transition: box-shadow 0.2s, transform 0.2s;
}

.hc-included li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hc-included .care-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.hc-included .icon {
  width: 20px;
  height: 20px;
}

/* ---------- How it works ---------- */

.hc-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
  margin-inline: auto;
}

.hc-steps li {
  background: #FFFFFF;
}

/* ---------- FAQ ---------- */

.hc-faq-section {
  padding-top: 0;
}

.hc-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.75rem 1rem;
  max-width: 960px;
  margin-inline: auto;
}

.hc-faq details {
  background: #FFFFFF;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hc-faq details[open] {
  border-color: #A9C6FA;
  box-shadow: var(--shadow-sm);
}

.hc-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--gray-900);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.hc-faq summary::-webkit-details-marker {
  display: none;
}

.hc-faq summary::after {
  content: '';
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}

.hc-faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.hc-faq summary:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 12px;
}

.hc-faq details p {
  padding: 0 1.25rem 1.125rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hc-included {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hc-visual {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .hc-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hc-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-visual {
    padding: 1rem 0.5rem;
  }

  .hc-tab {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    padding-inline: 0.75rem;
  }
}
