/* ═══════════════════════════════════════════════════
   home-care.css — 居家服務頁面樣式
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans TC', system-ui, sans-serif;
  color: #1a1a2e;
  background: #f8f9fc;
  line-height: 1.7;
}

a { text-decoration: none; }

.hc-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hc-section-hd {
  text-align: center;
  margin-bottom: 2.5rem;
}
.hc-section-hd h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: .5rem;
}
.hc-section-hd p {
  color: #555;
  font-size: 1rem;
}

/* ── Buttons ── */
.hc-btn-primary {
  display: inline-block;
  padding: .7rem 1.6rem;
  background: #10b981;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .15s;
}
.hc-btn-primary:hover { background: #059669; transform: translateY(-1px); }

.hc-btn-ghost {
  display: inline-block;
  padding: .7rem 1.4rem;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s;
}
.hc-btn-ghost:hover { background: rgba(255,255,255,.15); }

.hc-btn-white {
  display: inline-block;
  padding: .7rem 1.6rem;
  background: #fff;
  color: #059669;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .15s;
  border: 2px solid #fff;
}
.hc-btn-white:hover { background: #f0fdf4; transform: translateY(-1px); }

.hc-btn-ghost-white {
  display: inline-block;
  padding: .7rem 1.4rem;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s;
}
.hc-btn-ghost-white:hover { background: rgba(255,255,255,.15); }

/* ══════════════════════════════════
   Hero Carousel
══════════════════════════════════ */
.hc-hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  margin-top: 66px; /* global-nav height */
}

.hc-hero-slides {
  position: absolute;
  inset: 0;
}

.hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  background-color: #1a3a5c;
}
.hc-slide-active { opacity: 1; }

.hc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,40,80,.72) 0%, rgba(15,40,80,.30) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 4rem;
}

.hc-hero-text {
  max-width: 540px;
  color: #fff;
}
.hc-hero-tag {
  display: inline-block;
  background: rgba(16,185,129,.9);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: .05em;
}
.hc-hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hc-hero-text p {
  font-size: 1.05rem;
  opacity: .92;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.hc-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Arrows */
.hc-sl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 10;
}
.hc-sl-arrow:hover { background: rgba(255,255,255,.35); }
.hc-sl-prev { left: 1.2rem; }
.hc-sl-next { right: 1.2rem; }

/* Dots */
.hc-sl-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 10;
}
.hc-dot {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  flex: 0 0 8px;
  width: 8px; height: 8px;
  min-width: 8px; min-height: 8px;
  max-width: 8px; max-height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  padding: 0;
  cursor: pointer;
  align-self: center;
  transition: background .3s, transform .2s;
}
.hc-dot-a, .hc-dot:hover { background: #fff; transform: scale(1.3); }

/* ══════════════════════════════════
   Intro + Stats
══════════════════════════════════ */
.hc-intro {
  padding: 4rem 0;
  background: #fff;
}
.hc-intro-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  position: relative;
}
.hc-intro-text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 1rem;
}
.hc-intro-text p {
  color: #444;
  margin-bottom: .85rem;
  font-size: .97rem;
}
.hc-intro-text strong { color: #059669; }

.hc-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hc-stat {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid #bbf7d0;
}
.hc-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #059669;
  line-height: 1.1;
  margin-bottom: .3rem;
}
.hc-stat-label {
  font-size: .8rem;
  color: #555;
  font-weight: 500;
}

/* ══════════════════════════════════
   Service Features
══════════════════════════════════ */
.hc-features {
  padding: 4rem 0;
  background: #f8f9fc;
}

.hc-feat-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.hc-feat-col {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.hc-feat-hd {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  color: #fff;
}
.hc-feat-hd--body { background: linear-gradient(135deg, #0f4c81, #1a6db5); }
.hc-feat-hd--life { background: linear-gradient(135deg, #059669, #10b981); }

.hc-feat-icon { font-size: 2rem; flex-shrink: 0; }
.hc-feat-hd h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .2rem; }
.hc-feat-hd p  { font-size: .82rem; opacity: .88; }

.hc-feat-list {
  list-style: none;
  padding: 1rem 1.25rem;
}
.hc-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .85rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.hc-feat-list li:last-child { border-bottom: none; }

.hc-feat-item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.hc-feat-list strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: .2rem;
}
.hc-feat-list span {
  font-size: .82rem;
  color: #666;
}

/* ══════════════════════════════════
   Subsidy Callout
══════════════════════════════════ */
.hc-subsidy {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f4c81 0%, #1565c0 50%, #0d7377 100%);
}
.hc-subsidy-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}
.hc-subsidy-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 999px;
  margin-bottom: .75rem;
  letter-spacing: .04em;
}
.hc-subsidy-left h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.hc-subsidy-left p {
  color: rgba(255,255,255,.88);
  font-size: .97rem;
  margin-bottom: 1.5rem;
}
.hc-subsidy-left strong { color: #86efac; }

.hc-subsidy-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
}
.hc-subsidy-table th, .hc-subsidy-table td {
  padding: .7rem 1rem;
  text-align: center;
  font-size: .88rem;
}
.hc-subsidy-table thead th {
  background: rgba(255,255,255,.2);
  font-weight: 700;
}
.hc-subsidy-table tbody tr:nth-child(even) { background: rgba(255,255,255,.06); }
.hc-subsidy-table tbody tr:hover { background: rgba(255,255,255,.15); }
.hc-subsidy-note {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-top: .6rem;
  text-align: center;
}

/* ══════════════════════════════════
   Service Flow
══════════════════════════════════ */
.hc-flow {
  padding: 4rem 0;
  background: #fff;
}
.hc-flow-steps {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.hc-flow-step {
  background: #f8f9fc;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  width: 200px;
  border: 1px solid #e8eaf0;
  position: relative;
}
.hc-flow-num {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.hc-flow-icon { font-size: 2rem; margin-bottom: .5rem; margin-top: .25rem; }
.hc-flow-step h4 { font-size: .92rem; font-weight: 700; margin-bottom: .35rem; color: #1a1a2e; }
.hc-flow-step p  { font-size: .8rem; color: #666; line-height: 1.5; }
.hc-flow-arrow {
  font-size: 1.8rem;
  color: #10b981;
  font-weight: 800;
  padding: 0 .25rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════
   Case Studies
══════════════════════════════════ */
.hc-cases {
  padding: 4rem 0;
  background: #f0f7ff;
}
.hc-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hc-case-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.hc-case-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.2rem 1.25rem;
  color: #fff;
}
.hc-case-header--1 { background: linear-gradient(135deg, #0f4c81, #1a6db5); }
.hc-case-header--2 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.hc-case-header--3 { background: linear-gradient(135deg, #059669, #10b981); }
.hc-case-avatar { font-size: 2.2rem; }
.hc-case-header h4 { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }
.hc-case-header p  { font-size: .78rem; opacity: .85; }

.hc-case-schedule { padding: 1rem 1.25rem; }
.hc-case-sched-title {
  font-size: .78rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .6rem;
}
.hc-case-schedule ul { list-style: none; }
.hc-case-schedule li {
  font-size: .82rem;
  color: #444;
  padding: .3rem 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  gap: .5rem;
}
.hc-case-schedule li:last-child { border-bottom: none; }
.hc-time {
  font-weight: 700;
  color: #0f4c81;
  flex-shrink: 0;
  width: 44px;
}

.hc-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .75rem 1.25rem 1.25rem;
}
.hc-case-tags span {
  font-size: .72rem;
  font-weight: 600;
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: .2rem .7rem;
}

/* ══════════════════════════════════
   FAQ
══════════════════════════════════ */
.hc-faq {
  padding: 4rem 0;
  background: #fff;
}
.hc-faq-list { max-width: 820px; margin: 0 auto; }

.hc-faq-item {
  border-bottom: 1px solid #e8eaf0;
}
.hc-faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 600;
  color: #1a1a2e;
  text-align: left;
  gap: 1rem;
}
.hc-faq-q:hover { color: #059669; }
.hc-faq-arrow {
  font-size: 1.3rem;
  color: #10b981;
  flex-shrink: 0;
  transition: transform .3s;
  font-weight: 800;
}
.hc-faq-item.hc-faq-open .hc-faq-arrow { transform: rotate(90deg); }

.hc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
}
.hc-faq-item.hc-faq-open .hc-faq-a {
  max-height: 300px;
  padding-bottom: 1rem;
}
.hc-faq-a p {
  font-size: .9rem;
  color: #555;
  line-height: 1.75;
}
.hc-faq-a strong { color: #059669; }

/* ══════════════════════════════════
   Related Services
══════════════════════════════════ */
.hc-related {
  padding: 4rem 0;
  background: #f8f9fc;
}
.hc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.hc-related-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e8eaf0;
  transition: transform .2s, box-shadow .2s;
  color: inherit;
}
.hc-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: #a7f3d0;
}
.hc-related-icon { font-size: 2rem; margin-bottom: .6rem; }
.hc-related-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: .35rem;
}
.hc-related-card p { font-size: .83rem; color: #666; line-height: 1.5; }

/* ══════════════════════════════════
   CTA Banner
══════════════════════════════════ */
.hc-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #059669, #0f4c81);
}
.hc-cta-inner {
  text-align: center;
  color: #fff;
}
.hc-cta-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: .75rem;
}
.hc-cta-inner p {
  font-size: 1rem;
  opacity: .88;
  margin-bottom: 1.75rem;
}
.hc-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════
   RWD
══════════════════════════════════ */
@media (max-width: 1000px) {
  .hc-feat-cols { grid-template-columns: 1fr; }
  .hc-case-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-related-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-subsidy-inner { grid-template-columns: 1fr; }
  .hc-intro-body { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hc-hero { height: 420px; }
  .hc-hero-overlay { padding: 0 1.5rem; }
  .hc-hero-text h1 { font-size: 1.75rem; }
  .hc-flow-steps { flex-direction: column; align-items: stretch; }
  .hc-flow-step  { width: 100%; }
  .hc-flow-arrow { transform: rotate(90deg); text-align: center; }
  .hc-case-grid  { grid-template-columns: 1fr; }
  .hc-related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hc-related-grid { grid-template-columns: 1fr; }
  .hc-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Page Footer ── */
.hc-page-footer {
  background: #1a1a2e; color: rgba(255,255,255,.5);
  padding: .85rem 1.5rem; text-align: right; font-size: .78rem;
}
.hc-page-footer a { color: rgba(255,255,255,.55); text-decoration: underline; }
.hc-page-footer a:hover { color: #fff; }
