/* Join Our Team + Franchise Opportunity — Ideal Home Care
   Builds on style.css tokens, service.css and contact.css components */

.page-section { padding: var(--section-y) 0; }
.page-section.cream { background: var(--cream); }
.page-section.gray { background: var(--gray-50); }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-text .section-eyebrow,
.split-text .section-heading { text-align: left; }
.split-text > p {
  font-size: 0.98rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.1rem;
  max-width: 62ch;
}
.split-img {
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-100);
}
.split-img img { width: 100%; height: 440px; object-fit: cover; }
.check-list { display: grid; gap: 0.75rem; margin: 1.25rem 0 1.75rem; }
.check-list .svc-check-item { font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ext-icon { width: 13px; height: 13px; }

/* === FEATURE GRID (how applying works) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: var(--head-gap);
}
.feature-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 1.6rem;
}
.feature-card .svc-benefit-icon { margin-bottom: 0.9rem; }
.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.feature-card p { font-size: 0.86rem; color: var(--gray-600); line-height: 1.6; }

/* === REASONS + APPLY CARD === */
.reasons-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.reasons-list { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.reasons-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1rem;
  color: var(--dark);
  font-weight: 500;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed rgba(204,31,36,0.2);
}
.reasons-list li:last-child { border-bottom: none; padding-bottom: 0; }
.apply-card {
  background: var(--dark);
  color: var(--white);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.apply-card .apply-roles {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ff8a8d;
  margin-bottom: 0.5rem;
}
.apply-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.apply-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* === SCHOOL === */
.school {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 5px solid var(--red);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.school-logo { width: 120px; height: auto; }
.school h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.school .school-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.school p { font-size: 0.93rem; color: var(--gray-600); line-height: 1.65; }
.school .btn-row { flex-direction: column; align-items: stretch; }
.school .btn { justify-content: center; }

/* === FRANCHISE PILLARS === */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.pillar p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.75; }
.pillar p + p { margin-top: 0.75rem; }
.pillar-stat {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.pillar-stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--dark);
  line-height: 1;
}
.pillar-stat span { font-size: 0.78rem; color: var(--gray-400); line-height: 1.35; }

/* === INVESTMENT TABLE === */
.invest-wrap {
  margin-top: var(--head-gap);
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}
.invest-scroll { overflow-x: auto; }
.invest {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}
.invest th {
  background: var(--dark);
  color: var(--white);
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.95rem 1.25rem;
}
.invest td {
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}
.invest tbody tr:nth-child(even) td { background: var(--gray-50); }
.invest td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.invest td:nth-child(3) { color: var(--gray-600); }
.invest tfoot td {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-bottom: none;
  padding: 1.1rem 1.25rem;
}
.invest tfoot td:nth-child(2) { font-family: var(--font-display); font-size: 1.2rem; }

/* Franchise form card */
.form-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.form-card .section-heading { margin-bottom: 0.75rem; }
.form-card .section-subhead { margin-bottom: 1.75rem; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .split, .reasons-grid { grid-template-columns: 1fr; }
  .split-img img { height: 340px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .school { grid-template-columns: 1fr; }
  .school .btn-row { flex-direction: row; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ================= Medicaid + Become a Caregiver ================= */
.inline-link { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--red-dark); }

/* Coverage band */
.coverage-band {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border-left: 5px solid var(--red);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.coverage-band .svc-benefit-icon { width: 60px; height: 60px; margin: 0; flex-shrink: 0; }
.coverage-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}

/* Medicaid FAQ */
.faq-narrow { max-width: 860px; margin: var(--head-gap) auto 0; }
.medicaid-faq .faq-a.open { max-height: 600px; }

/* Prose block */
.prose-block { max-width: 860px; margin: 0 auto; }
.prose-block > p:not(.section-eyebrow) {
  font-size: 0.98rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

/* Two-column cards */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.info-card {
  background: var(--cream);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.info-card .svc-benefit-icon { margin-bottom: 1rem; }
.info-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.info-card p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.8; }
.info-card p + p { margin-top: 0.85rem; }
.info-card-dark { background: var(--dark); }
.info-card-dark h3 { color: var(--white); }
.info-card-dark p { color: rgba(255,255,255,0.72); }
.info-card-dark .svc-benefit-icon { background: var(--red); color: var(--white); }

.resp-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 4px solid var(--red);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.resp-card:hover { box-shadow: 0 8px 28px rgba(204,31,36,0.1); transform: translateY(-2px); }
.resp-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.resp-card p { font-size: 0.93rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 1rem; }
.resp-card .svc-link { margin-top: auto; font-size: 0.86rem; font-weight: 600; color: var(--red); }

.benefit-box {
  background: var(--cream);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2rem);
  margin-top: 0;
}

/* Application form */
.app-card { max-width: 900px; }
.app-section {
  border: none;
  padding: 0 0 1.5rem;
  margin: 0 0 0.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.app-section:last-of-type { border-bottom: none; }
.app-section legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  padding: 0;
  margin-bottom: 1rem;
}
.app-section legend .cf-optional { font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; color: var(--gray-400); }
.app-pills, .app-yn { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.app-pill { position: relative; }
.app-pill input { position: absolute; opacity: 0; pointer-events: none; }
.app-pill span {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.app-pill span:hover { border-color: var(--red); color: var(--red); }
.app-pill input:checked + span { background: var(--red); border-color: var(--red); color: var(--white); }
.app-pill input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.edu-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
}
.edu-label { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.app-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--gray-50);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}
.app-q p { font-size: 0.9rem; color: var(--gray-800); line-height: 1.55; margin: 0; }
.app-q .app-yn { flex-shrink: 0; }
.app-req { color: var(--red); font-weight: 600; font-size: 0.8rem; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .edu-row { grid-template-columns: 1fr 1fr; }
  .edu-label { grid-column: 1 / -1; margin-top: 0.4rem; }
}
@media (max-width: 600px) {
  .coverage-band { flex-direction: column; align-items: flex-start; }
  .edu-row { grid-template-columns: 1fr; }
  .app-q { flex-direction: column; align-items: flex-start; }
}

/* Short single-statement band needs less room */
.page-section.band { padding: clamp(1.75rem, 3.5vw, 2.5rem) 0; }
