/**
 * In-Home Care — scroll storytelling, dividers, testimonial + lead form
 * Scope: .trc-in-home-page .trc-ihc-story-main
 */

.trc-in-home-page .trc-ihc-story-main {
  background: #ffffff;
}

/* Soft curve between major bands */
.trc-in-home-page .trc-ihc-story-divider {
  display: block;
  height: clamp(36px, 5vw, 56px);
  margin: 0;
  border: 0;
  background: linear-gradient(
    180deg,
    rgba(116, 19, 29, 0.07) 0%,
    rgba(239, 36, 40, 0.05) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.trc-in-home-page .trc-ihc-story-divider--tight {
  height: clamp(24px, 3vw, 36px);
}

/* Hero */
.trc-in-home-page .trc-ihc-hero-wrap {
  padding-bottom: 0;
}

/* NDIS section: top breathing room + subtle top accent */
.trc-in-home-page .trc-ihc-steps-section {
  position: relative;
}

.trc-in-home-page .trc-ihc-steps-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116, 19, 29, 0.2), transparent);
  pointer-events: none;
}

/* ——— Success story + lead form ——— */
.trc-in-home-page .trc-ihc-story-cta {
  background: #ffffff;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.trc-in-home-page .trc-ihc-story-h2 {
  font-family: var(--trc-font-display, "Clash Display", system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: #ef2428;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.trc-in-home-page .trc-ihc-story-h3 {
  font-family: var(--trc-font-display, "Clash Display", system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: #ef2428;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.trc-in-home-page .trc-ihc-form-intro {
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.55;
}

/* Success stories carousel */
.trc-in-home-page .trc-ihc-testi-swiper {
  position: relative;
  padding-bottom: 2.35rem;
  overflow: hidden;
}

.trc-in-home-page .trc-ihc-testi-swiper .swiper-slide {
  height: auto;
}

.trc-in-home-page .trc-ihc-testi-pagination.swiper-pagination {
  bottom: 0;
  line-height: 1;
}

.trc-in-home-page .trc-ihc-testi-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #74131d;
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.trc-in-home-page .trc-ihc-testi-pagination .swiper-pagination-bullet-active {
  background: #ef2428;
  opacity: 1;
  transform: scale(1.15);
}

.trc-in-home-page .trc-ihc-testimonial {
  margin: 0;
  background: linear-gradient(145deg, var(--trc-ihc-primary, #74131d) 0%, #5c0f17 100%);
  border-radius: clamp(20px, 3vw, 28px);
  padding: 1.25rem 1.35rem 1.15rem;
  box-shadow: 0 12px 32px -14px rgba(116, 19, 29, 0.42);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.trc-in-home-page .trc-ihc-testimonial blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.trc-in-home-page .trc-ihc-testimonial__footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.trc-in-home-page .trc-ihc-testimonial__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.trc-in-home-page .trc-ihc-testimonial__cite {
  font-style: normal;
}

.trc-in-home-page .trc-ihc-testimonial__name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.trc-in-home-page .trc-ihc-testimonial__role {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.15rem;
}

/* Lead form */
.trc-in-home-page .trc-ihc-lead-form {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  box-shadow: 0 8px 30px -8px rgba(15, 23, 42, 0.08);
}

.trc-in-home-page .trc-ihc-field {
  margin-bottom: 1.1rem;
}

.trc-in-home-page .trc-ihc-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.trc-in-home-page .trc-ihc-field input,
.trc-in-home-page .trc-ihc-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trc-in-home-page .trc-ihc-field input::placeholder,
.trc-in-home-page .trc-ihc-field textarea::placeholder {
  color: #94a3b8;
}

.trc-in-home-page .trc-ihc-field input:focus,
.trc-in-home-page .trc-ihc-field textarea:focus {
  outline: none;
  border-color: rgba(239, 36, 40, 0.55);
  box-shadow: 0 0 0 3px rgba(239, 36, 40, 0.12);
}

.trc-in-home-page .trc-ihc-field textarea {
  min-height: 120px;
  resize: vertical;
}

.trc-in-home-page .trc-ihc-send {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef2428 0%, #d41f24 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(239, 36, 40, 0.35);
}

.trc-in-home-page .trc-ihc-send:hover {
  background: linear-gradient(135deg, #74131d 0%, #5c1018 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(116, 19, 29, 0.35);
}

/* ——— Premium accents (visual only; semantic structure unchanged) ——— */

.trc-in-home-page .trc-ihc-hero__media.trc-about-hero__media {
  position: relative;
  overflow: hidden;
}

.trc-in-home-page .trc-ihc-hero__media.trc-about-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background: linear-gradient(145deg, transparent 45%, rgba(116, 19, 29, 0.06) 100%);
}

.trc-in-home-page .trc-ihc-hero__media img {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .trc-in-home-page .trc-ihc-hero__media:hover img {
    transform: scale(1.045);
  }
}

.trc-in-home-page .trc-ihc-section {
  background: linear-gradient(180deg, #ffffff 0%, #fcfbfa 50%, #ffffff 100%);
}

.trc-in-home-page .trc-ihc-checklist__card {
  position: relative;
}

.trc-in-home-page .trc-ihc-checklist__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--trc-ihc-primary, #74131d), var(--trc-ihc-accent, #ef2428));
  opacity: 0;
  transition: opacity 0.22s ease;
  border-radius: 0 2px 2px 0;
}

@media (hover: hover) {
  .trc-in-home-page .trc-ihc-checklist__card:hover::before {
    opacity: 1;
  }
}

.trc-in-home-page .trc-ihc-checklist__card:focus-within::before {
  opacity: 1;
}

.trc-in-home-page .trc-ihc-enquire-btn {
  position: relative;
  gap: 0.35rem;
}

.trc-in-home-page .trc-ihc-enquire-btn::after {
  content: "\2192";
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.22s ease;
}

@media (hover: hover) {
  .trc-in-home-page .trc-ihc-enquire-btn:hover::after {
    transform: translateX(4px);
  }
}

.trc-in-home-page .trc-ihc-step-grid {
  counter-reset: trc-ihc-step;
}

.trc-in-home-page .trc-ihc-step--card {
  position: relative;
}

.trc-in-home-page .trc-ihc-step--card::after {
  counter-increment: trc-ihc-step;
  content: counter(trc-ihc-step);
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--trc-ihc-primary, #74131d), var(--trc-ihc-accent, #ef2428));
  border-radius: 50%;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(116, 19, 29, 0.25);
  pointer-events: none;
}

.trc-in-home-page .trc-ihc-steps-section {
  background: linear-gradient(180deg, rgba(249, 247, 247, 0.85) 0%, #ffffff 24%, #ffffff 76%, rgba(252, 250, 250, 0.9) 100%);
}

.trc-in-home-page .trc-ihc-story-cta {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f8 45%, #ffffff 100%);
}

.trc-in-home-page .trc-ihc-story-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 640px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(116, 19, 29, 0.35), #ef2428, rgba(116, 19, 29, 0.35), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.trc-in-home-page .trc-ihc-story-h2 {
  position: relative;
  padding-bottom: 0.35rem;
}

.trc-in-home-page .trc-ihc-story-h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #74131d, #ef2428);
}

.trc-in-home-page .trc-ihc-lead-form {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #fafafa 55%, #ffffff 100%);
  border: 1px solid rgba(116, 19, 29, 0.1);
  box-shadow:
    0 0 0 1px rgba(239, 36, 40, 0.06),
    0 4px 6px -1px rgba(15, 23, 42, 0.05),
    0 18px 40px -20px rgba(116, 19, 29, 0.18);
}

.trc-in-home-page .trc-ihc-story-h3 {
  position: relative;
}

.trc-in-home-page .trc-ihc-story-h3::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #74131d, #ef2428);
}

.trc-in-home-page .trc-ihc-field input:hover,
.trc-in-home-page .trc-ihc-field textarea:hover {
  border-color: rgba(116, 19, 29, 0.22);
}

/* Honeypot for lead form (spam) — off-screen, no inline styles */
.trc-in-home-page .trc-ihc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .trc-in-home-page .trc-ihc-send,
  .trc-in-home-page .trc-ihc-checklist__card,
  .trc-in-home-page .trc-ihc-step--card {
    transition: none;
  }

  .trc-in-home-page .trc-ihc-send:hover {
    transform: none;
  }

  .trc-in-home-page .trc-ihc-hero__media img {
    transition: none;
  }

  .trc-in-home-page .trc-ihc-hero__media:hover img {
    transform: none;
  }

  .trc-in-home-page .trc-ihc-enquire-btn:hover::after {
    transform: none;
  }
}
