/* ═══════════════════════════════════════════════════
   respite-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: #f8faf8;
  line-height: 1.7;
}
a { text-decoration: none; }

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

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

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

.rs-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;
}
.rs-btn-ghost:hover { background: rgba(255,255,255,.15); }

.rs-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;
}
.rs-btn-white:hover { background: #f0fdf4; transform: translateY(-1px); }

.rs-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;
}
.rs-btn-ghost-white:hover { background: rgba(255,255,255,.15); }

/* ══════════════════════════════════
   Hero Carousel
══════════════════════════════════ */
.rs-hero { position: relative; height: 540px; overflow: hidden; margin-top: 66px; }
.rs-hero-slides { position: absolute; inset: 0; }

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

.rs-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,80,50,.75) 0%, rgba(5,80,50,.32) 60%, transparent 100%);
  display: flex; align-items: center; padding: 0 4rem;
}
.rs-hero-text { max-width: 540px; color: #fff; }

.rs-hero-tag {
  display: inline-block; background: rgba(5,150,105,.9);
  color: #fff; font-size: .78rem; font-weight: 700;
  padding: .25rem .9rem; border-radius: 999px;
  margin-bottom: 1rem; letter-spacing: .05em;
}
.rs-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);
}
.rs-hero-text p {
  font-size: 1.05rem; opacity: .92; margin-bottom: 1.5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.rs-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.rs-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;
}
.rs-sl-arrow:hover { background: rgba(255,255,255,.35); }
.rs-sl-prev { left: 1.2rem; }
.rs-sl-next { right: 1.2rem; }

.rs-sl-dots {
  position: absolute; bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; z-index: 10;
}
.rs-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;
}
.rs-dot-a, .rs-dot:hover { background: #fff; transform: scale(1.3); }

/* ══════════════════════════════════
   Intro + Stats
══════════════════════════════════ */
.rs-intro { padding: 4rem 0; background: #fff; }

.rs-intro-inner { max-width: 820px; margin: 0 auto 2.5rem; text-align: center; }
.rs-intro-badge {
  display: inline-block; background: #f0fdf4; color: #059669;
  font-size: .82rem; font-weight: 700; padding: .3rem 1rem;
  border-radius: 999px; margin-bottom: 1rem;
}
.rs-intro-inner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1rem; color: #1a1a2e; }
.rs-intro-inner p  { font-size: .97rem; color: #444; margin-bottom: .85rem; }
.rs-intro-inner strong { color: #059669; }

.rs-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: 820px; margin: 0 auto;
}
.rs-stat {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 14px; padding: 1.25rem; text-align: center;
  border: 1px solid #bbf7d0;
}
.rs-stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: #059669; margin-bottom: .25rem; }
.rs-stat-label { font-size: .78rem; color: #555; font-weight: 500; }

/* ══════════════════════════════════
   適合情況
══════════════════════════════════ */
.rs-who { padding: 4rem 0; background: #f0fdf4; }

.rs-who-list { display: flex; flex-direction: column; gap: 1rem; max-width: 820px; margin: 0 auto; }

.rs-who-item {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: #fff; border-radius: 16px;
  padding: 1.4rem 1.5rem;
  border-left: 4px solid #10b981;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.rs-who-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: .1rem; }
.rs-who-item h4 { font-size: .97rem; font-weight: 700; color: #1a1a2e; margin-bottom: .3rem; }
.rs-who-item p  { font-size: .87rem; color: #555; line-height: 1.65; }

/* ══════════════════════════════════
   Service Types
══════════════════════════════════ */
.rs-types { padding: 4rem 0; background: #fff; }

.rs-type-block {
  border-radius: 22px; overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 6px 28px rgba(0,0,0,.07);
}
.rs-type-block:last-child { margin-bottom: 0; }

.rs-type-badge {
  padding: .4rem 1rem; font-size: .78rem; font-weight: 800;
  letter-spacing: .08em; color: #fff;
}
.rs-type-block--inst .rs-type-badge { background: #0f4c81; }
.rs-type-block--home .rs-type-badge { background: #059669; }
.rs-type-block--emg  .rs-type-badge { background: #dc2626; }

.rs-type-inner {
  display: grid; grid-template-columns: 1fr 260px;
  gap: 0; background: #f8faf8;
}
.rs-type-inner--rev { grid-template-columns: 260px 1fr; }
.rs-type-inner--rev .rs-type-text { order: 2; }
.rs-type-inner--rev .rs-type-card { order: 1; }

.rs-type-text { padding: 2rem 2rem 2rem 2rem; }
.rs-type-text h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .75rem; color: #1a1a2e; }
.rs-type-text > p { font-size: .9rem; color: #555; margin-bottom: 1.25rem; line-height: 1.7; }

.rs-type-features { list-style: none; display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.25rem; }
.rs-type-features li { display: flex; align-items: flex-start; gap: .85rem; }
.rs-feat-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .05rem; }
.rs-type-features strong { display: block; font-size: .9rem; font-weight: 700; color: #1a1a2e; margin-bottom: .15rem; }
.rs-type-features span   { font-size: .82rem; color: #666; }

.rs-type-note {
  display: flex; align-items: center; gap: .6rem;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 10px; padding: .7rem 1rem;
  font-size: .85rem; color: #374151;
}
.rs-type-note--warning {
  background: #fff8e1; border-color: #ffe082; color: #5a4a00;
}
.rs-type-note strong { color: #059669; }
.rs-type-note--warning strong { color: #b45309; }

.rs-type-card {
  display: flex; flex-direction: column;
  padding: 2rem 1.5rem; color: #fff;
  justify-content: center; gap: .7rem;
}
.rs-type-card--inst { background: linear-gradient(160deg, #0f4c81, #1a6db5); }
.rs-type-card--home { background: linear-gradient(160deg, #059669, #10b981); }
.rs-type-card--emg  { background: linear-gradient(160deg, #b91c1c, #dc2626); }

.rs-card-icon { font-size: 2.2rem; }
.rs-type-card h4 { font-size: 1.1rem; font-weight: 800; }

.rs-card-rows { display: flex; flex-direction: column; gap: .5rem; }
.rs-card-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; padding: .35rem 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.rs-card-row:last-child { border-bottom: none; }
.rs-card-row span { opacity: .78; }
.rs-card-row strong { font-weight: 700; }

.rs-card-btn {
  display: block; text-align: center;
  background: rgba(255,255,255,.2); color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px; padding: .6rem .5rem;
  font-size: .85rem; font-weight: 700;
  margin-top: .25rem;
  transition: background .2s;
}
.rs-card-btn:hover { background: rgba(255,255,255,.35); }

/* ══════════════════════════════════
   Subsidy
══════════════════════════════════ */
.rs-subsidy {
  padding: 4rem 0;
  background: linear-gradient(135deg, #064e3b, #059669 60%, #0d7377 100%);
}
.rs-subsidy-inner {
  display: grid; grid-template-columns: 1fr 440px; gap: 3rem; align-items: start;
}
.rs-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;
}
.rs-subsidy-left h2 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.rs-subsidy-left p  { color: rgba(255,255,255,.88); font-size: .97rem; margin-bottom: .85rem; }
.rs-subsidy-left strong { color: #a7f3d0; }

.rs-subsidy-table {
  width: 100%; border-collapse: collapse;
  background: rgba(255,255,255,.12); border-radius: 12px; overflow: hidden;
  color: #fff; margin-bottom: 1.25rem;
}
.rs-subsidy-table th, .rs-subsidy-table td { padding: .65rem 1rem; text-align: center; font-size: .87rem; }
.rs-subsidy-table thead th { background: rgba(255,255,255,.2); font-weight: 700; }
.rs-subsidy-table tbody tr:nth-child(even) { background: rgba(255,255,255,.06); }

.rs-subsidy-quota { display: flex; flex-direction: column; gap: .75rem; margin-bottom: .6rem; }
.rs-quota-item { display: flex; align-items: center; gap: .75rem; }
.rs-quota-type { font-size: .83rem; color: rgba(255,255,255,.88); white-space: nowrap; flex-shrink: 0; width: 90px; }
.rs-quota-bar-wrap { flex: 1; height: 8px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.rs-quota-bar { height: 100%; background: #a7f3d0; border-radius: 999px; }
.rs-quota-bar--home { background: #6ee7b7; }
.rs-quota-val { font-size: .82rem; color: #fff; white-space: nowrap; flex-shrink: 0; }
.rs-quota-val strong { color: #a7f3d0; }
.rs-subsidy-note { font-size: .78rem; color: rgba(255,255,255,.6); text-align: center; }

/* ══════════════════════════════════
   Flow
══════════════════════════════════ */
.rs-flow { padding: 4rem 0; background: #f8faf8; }
.rs-flow-steps {
  display: flex; align-items: flex-start;
  justify-content: center; flex-wrap: wrap;
  gap: .5rem; margin-bottom: 1.5rem;
}
.rs-flow-step {
  background: #fff; border-radius: 16px;
  padding: 1.5rem 1.25rem; text-align: center;
  width: 200px; border: 1px solid #d1fae5;
  position: relative;
}
.rs-flow-num {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; background: #059669; color: #fff;
  border-radius: 50%; font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.rs-flow-icon { font-size: 2rem; margin-bottom: .5rem; margin-top: .25rem; }
.rs-flow-step h4 { font-size: .92rem; font-weight: 700; margin-bottom: .35rem; color: #1a1a2e; }
.rs-flow-step p  { font-size: .78rem; color: #666; line-height: 1.5; }
.rs-flow-arrow {
  font-size: 1.8rem; color: #059669; font-weight: 800;
  padding: 0 .25rem; flex-shrink: 0; margin-top: 3rem;
}
.rs-flow-tip {
  display: flex; align-items: flex-start; gap: .75rem;
  background: #fff; border: 1px solid #d1fae5;
  border-radius: 12px; padding: 1rem 1.25rem;
  max-width: 820px; margin: 0 auto;
}
.rs-flow-tip span { font-size: 1.2rem; flex-shrink: 0; }
.rs-flow-tip p { font-size: .87rem; color: #374151; line-height: 1.65; }
.rs-flow-tip strong { color: #059669; }

/* ══════════════════════════════════
   FAQ
══════════════════════════════════ */
.rs-faq { padding: 4rem 0; background: #fff; }
.rs-faq-list { max-width: 820px; margin: 0 auto; }
.rs-faq-item { border-bottom: 1px solid #e8eaf0; background: #fff; }
.rs-faq-item:first-child { border-radius: 12px 12px 0 0; border: 1px solid #e8eaf0; border-bottom: none; }
.rs-faq-item:last-child  { border-radius: 0 0 12px 12px; border: 1px solid #e8eaf0; }
.rs-faq-item:not(:first-child):not(:last-child) { border-left: 1px solid #e8eaf0; border-right: 1px solid #e8eaf0; }

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

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

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

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

/* ══════════════════════════════════
   RWD
══════════════════════════════════ */
@media (max-width: 1000px) {
  .rs-type-inner, .rs-type-inner--rev { grid-template-columns: 1fr; }
  .rs-type-inner--rev .rs-type-text { order: 1; }
  .rs-type-inner--rev .rs-type-card { order: 2; }
  .rs-type-card { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .rs-card-rows { flex: 1; }
  .rs-subsidy-inner { grid-template-columns: 1fr; }
  .rs-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .rs-related-grid { grid-template-columns: repeat(2, 1fr); }
  .rs-who-item { flex-direction: column; gap: .6rem; }
}

@media (max-width: 700px) {
  .rs-hero { height: 420px; }
  .rs-hero-overlay { padding: 0 1.5rem; }
  .rs-hero-text h1 { font-size: 1.75rem; }
  .rs-flow-steps { flex-direction: column; align-items: stretch; }
  .rs-flow-step  { width: 100%; }
  .rs-flow-arrow { transform: rotate(90deg); text-align: center; margin-top: 0; }
  .rs-type-card  { flex-direction: column; }
}

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

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

/* ════════════════════════════════════════════════════
   水彩點綴（爺爺 + 家屬 + 貓咪）
   ════════════════════════════════════════════════════ */
.rs-intro-container { position: relative; }
.rs-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.rs-deco--left  { left:  calc(50% - 50vw + 4px); }
.rs-deco--right { right: calc(50% - 50vw + 4px); }
.rs-deco img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}
@media (max-width: 720px) {
  .rs-deco { display: none; }
}

.rs-type-text { position: relative; }
.rs-type-text .cat-deco {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  pointer-events: none;
  z-index: 0;
}
.rs-type-text .cat-deco img {
  display: block;
  width: 150px;
  max-width: 150px;
  height: auto;
}
