/* ═══════════════════════════════════════════════════════════════════════════
   frontida4all — Home page (from Claude Design "Frontida-Home")
   ═══════════════════════════════════════════════════════════════════════════ */
.hm-wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(18px, 4vw, 40px); padding-right: clamp(18px, 4vw, 40px); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hm-hero {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(28px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.hm-hero-copy { flex: 1 1 440px; min-width: 0; }
.hm-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--st-primary-fixed); color: var(--st-on-primary-fixed-variant);
  font-size: .875rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
}
.hm-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-primary); }
.hm-hero h1 {
  font-family: var(--st-font-headline); font-weight: 600;
  font-size: clamp(38px, 5.6vw, 70px); line-height: 1.04; letter-spacing: -0.025em;
  margin: 22px 0 18px; text-wrap: balance; color: var(--st-on-surface);
}
.hm-hero h1 em { font-style: normal; color: var(--st-primary); }
.hm-lead {
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--st-on-surface-variant);
  margin: 0 0 30px; max-width: 30em; text-wrap: pretty;
}

/* Search card */
.hm-search {
  background: var(--st-surface-container-lowest); border: 1px solid var(--st-surface-container-high);
  border-radius: 28px; padding: clamp(16px, 2.4vw, 22px);
  box-shadow: 0 18px 40px -24px rgba(80, 55, 30, .35);
}
.hm-search-label { font-size: .875rem; font-weight: 600; color: var(--st-on-surface-variant); margin: 0 4px 12px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.hm-chip span {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; font-size: .95rem; font-weight: 600; cursor: pointer;
  background: var(--st-surface-container-lowest); color: var(--st-on-surface);
  border: 1px solid var(--st-outline-variant); transition: background .15s, color .15s, border-color .15s;
}
.hm-chip span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--st-primary)); }
.hm-chip input:checked + span { background: var(--st-tertiary); color: #FFF8EF; border-color: var(--st-tertiary); }
.hm-chip input:focus-visible + span { outline: 2px solid var(--st-primary); outline-offset: 2px; }
.hm-search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-field {
  flex: 1 1 220px; display: flex; align-items: center; gap: 10px;
  background: var(--st-surface); border-radius: 999px; padding: 0 18px; min-height: 54px; margin: 0;
}
.hm-field svg { flex: none; }
.hm-field input {
  border: none; background: transparent; outline: none; font: inherit; font-size: 1rem;
  color: var(--st-on-surface); width: 100%;
}
.hm-field input::placeholder { color: var(--st-outline); }
.hm-go {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--st-primary); color: #FFF8EF; font: inherit; font-weight: 600; font-size: 1rem;
  transition: background .15s;
}
.hm-go:hover { background: var(--st-primary-container); }
.hm-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: .875rem; color: var(--st-on-surface-variant); padding-left: 6px; }
.hm-trust span { display: flex; align-items: center; gap: 8px; }
.hm-trust b { color: var(--st-secondary); font-weight: 700; }

/* Hero visual */
.hm-hero-visual { flex: 1 1 360px; min-width: 0; position: relative; max-width: 520px; margin: 0 auto; }
.hm-arch { aspect-ratio: 4/5; border-radius: 999px 999px 36px 36px; overflow: hidden; background: var(--st-primary-fixed); }
.hm-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-circle {
  position: absolute; left: -4%; bottom: 12%; width: 34%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--st-surface); background: var(--st-tertiary-fixed);
}
.hm-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-float {
  position: absolute; right: -2%; top: 14%; background: var(--st-surface-container-lowest);
  border-radius: 20px; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 600; box-shadow: 0 14px 30px -18px rgba(80, 55, 30, .45);
}
.hm-float .tick {
  width: 30px; height: 30px; border-radius: 50%; background: var(--st-secondary-container); color: var(--st-secondary);
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.hm-float small { font-weight: 400; color: var(--st-on-surface-variant); font-size: inherit; }

/* ─── Services ───────────────────────────────────────────────────────────── */
.hm-services { background: var(--st-surface-container-lowest); border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.hm-services-inner { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hm-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.hm-eyebrow { font-size: .875rem; font-weight: 600; color: var(--st-primary); margin-bottom: 10px; }
.hm-sec-head h2 { font-family: var(--st-font-headline); font-weight: 600; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.hm-sec-head h2 em { font-style: normal; color: var(--st-secondary); }
.hm-sec-head p { margin: 0; max-width: 24em; color: var(--st-on-surface-variant); font-size: 1.0625rem; line-height: 1.55; }

.hm-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.hm-svc {
  display: flex; flex-direction: column; background: var(--tint); border-radius: 28px;
  padding: 12px 12px 22px; color: var(--st-on-surface); text-decoration: none; transition: transform .25s ease;
}
.hm-svc:hover { transform: translateY(-4px); color: var(--st-on-surface); }
.hm-svc-img { aspect-ratio: 1; border-radius: 999px 999px 20px 20px; overflow: hidden; background: var(--st-surface-container); }
.hm-svc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-svc-body { padding: 18px 8px 0; display: flex; flex-direction: column; flex: 1; }
.hm-svc h3 { font-family: var(--st-font-headline); font-weight: 600; font-size: 1.375rem; line-height: 1.2; margin: 0 0 8px; }
.hm-svc p { margin: 0 0 18px; font-size: .9375rem; line-height: 1.5; color: #4F483E; flex: 1; }
.hm-svc-cta { font-size: .9375rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hm-svc-cta i { width: 28px; height: 28px; border-radius: 50%; background: var(--st-surface-container-lowest); display: inline-flex; align-items: center; justify-content: center; font-style: normal; }

/* ─── CTA panels ─────────────────────────────────────────────────────────── */
.hm-cta-band { background: var(--st-surface-container-lowest); }
.hm-cta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hm-cta { border-radius: 32px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.hm-cta .eyebrow { font-size: .875rem; font-weight: 600; }
.hm-cta h3 { font-family: var(--st-font-headline); font-weight: 600; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.hm-cta p { margin: 0 0 10px; font-size: 1rem; line-height: 1.55; }
.hm-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.hm-btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s;
}
.hm-cta-families { background: var(--st-tertiary); color: var(--st-surface); }
.hm-cta-families .eyebrow { color: #EDB89E; }
.hm-cta-families h3 { color: var(--st-surface); }
.hm-cta-families p { color: #D8D2C4; }
.hm-cta-families .hm-btn-solid { background: var(--st-surface); color: var(--st-tertiary); }
.hm-cta-families .hm-btn-solid:hover { background: #fff; color: var(--st-tertiary); }
.hm-cta-families .hm-btn-ghost { border: 1px solid #A66A52; color: var(--st-surface); }
.hm-cta-families .hm-btn-ghost:hover { border-color: var(--st-surface); color: var(--st-surface); }
.hm-cta-caregivers { background: var(--st-primary-fixed); color: var(--st-on-surface); }
.hm-cta-caregivers .eyebrow { color: var(--st-on-primary-fixed-variant); }
.hm-cta-caregivers p { color: #5E4A3E; }
.hm-cta-caregivers .hm-btn-terra { background: var(--st-primary); color: #FFF8EF; }
.hm-cta-caregivers .hm-btn-terra:hover { background: var(--st-primary-container); color: #FFF8EF; }

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 759px) {
  .hm-svc-grid { display: flex; flex-direction: column; gap: 12px; }
  .hm-svc { flex-direction: row; align-items: center; gap: 14px; border-radius: 24px; padding: 10px 14px 10px 10px; }
  .hm-svc-img { width: 84px; height: 84px; flex: none; aspect-ratio: auto; border-radius: 42px 42px 14px 14px; }
  .hm-svc-body { padding: 0; flex: 1; min-width: 0; }
  .hm-svc h3 { font-size: 1.1875rem; margin-bottom: 4px; }
  .hm-svc p { font-size: .875rem; line-height: 1.45; margin: 0; }
  .hm-svc-cta { display: none; }
  .hm-svc::after { content: "→"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--st-surface-container-lowest); display: flex; align-items: center; justify-content: center; font-weight: 600; }
}
