/* ═══════════════════════════════════════════════════
   home-nursing.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; }

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

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

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

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

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

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

/* ══════════════════════════════════
   Hero Carousel
══════════════════════════════════ */
.hn-hero {
  position: relative;
  overflow: hidden;
  margin-top: 66px;
}
.hn-hero-slides { position: relative; width: 100%; }

.hn-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  background-color: #0a2d5a;
}
.hn-slide:first-child { position: relative; }
.hn-slide-active { opacity: 1; }

.hn-slide-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 640px;
  object-fit: contain;
  object-position: center;
}

.hn-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,45,90,.75) 0%, rgba(10,45,90,.32) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 4rem;
}

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

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

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

/* ══════════════════════════════════
   Intro
══════════════════════════════════ */
.hn-intro {
  padding: 4rem 0;
  background: #fff;
}
.hn-intro-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hn-intro-badge {
  display: inline-block;
  background: #e8f4fd;
  color: #0f6eb4;
  font-size: .82rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hn-intro-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1a1a2e;
}
.hn-intro-inner p {
  font-size: .97rem;
  color: #444;
  margin-bottom: .85rem;
}
.hn-intro-inner strong { color: #0f6eb4; }

/* ══════════════════════════════════
   適合對象
══════════════════════════════════ */
.hn-who {
  padding: 4rem 0;
  background: #f0f7ff;
}
.hn-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hn-who-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  border-top: 4px solid;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.hn-who-card--1 { border-color: #0f6eb4; }
.hn-who-card--2 { border-color: #10b981; }
.hn-who-card--3 { border-color: #7c3aed; }

.hn-who-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.hn-who-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: .6rem;
}
.hn-who-card p {
  font-size: .87rem;
  color: #555;
  margin-bottom: .85rem;
  line-height: 1.65;
}
.hn-who-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.hn-who-card ul li {
  font-size: .83rem;
  color: #444;
  padding-left: 1.2em;
  position: relative;
}
.hn-who-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

/* ══════════════════════════════════
   Service Highlights
══════════════════════════════════ */
.hn-highlights {
  padding: 4rem 0;
  background: #fff;
}
.hn-hl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.hn-hl-card {
  background: linear-gradient(160deg, #f0f7ff, #e8f4fd);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid #bee3f8;
  transition: transform .2s, box-shadow .2s;
}
.hn-hl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,110,180,.12);
}
.hn-hl-icon { font-size: 2rem; margin-bottom: .6rem; }
.hn-hl-card h4 {
  font-size: .95rem;
  font-weight: 800;
  color: #0a2d5a;
  margin-bottom: .5rem;
}
.hn-hl-card p { font-size: .82rem; color: #555; line-height: 1.6; }

/* Full service list */
.hn-svc-full {
  background: #f8f9fc;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e0e7f0;
}
.hn-svc-full-title {
  font-size: .82rem;
  font-weight: 700;
  color: #888;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.hn-svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hn-svc-tags span {
  font-size: .8rem;
  font-weight: 600;
  background: #fff;
  color: #0f6eb4;
  border: 1px solid #bee3f8;
  border-radius: 999px;
  padding: .25rem .85rem;
}

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

/* ══════════════════════════════════
   Subsidy / Insurance
══════════════════════════════════ */
.hn-subsidy {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0a2d5a 0%, #0f4c81 50%, #1565c0 100%);
}
.hn-subsidy-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 3rem;
  align-items: start;
}
.hn-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;
}
.hn-subsidy-left h2 {
  font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 1rem;
}
.hn-subsidy-left p {
  color: rgba(255,255,255,.88); font-size: .97rem; margin-bottom: .85rem;
}
.hn-subsidy-left strong { color: #93c5fd; }

.hn-subsidy-cards {
  display: flex; flex-direction: column; gap: 1rem;
}
.hn-sub-card {
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  color: #fff;
}
.hn-sub-card--health { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.hn-sub-card--ltc    { background: rgba(16,185,129,.2); border: 1px solid rgba(16,185,129,.35); }

.hn-sub-card-icon { font-size: 1.5rem; margin-bottom: .4rem; }
.hn-sub-card h4 { font-size: .97rem; font-weight: 700; margin-bottom: .4rem; }
.hn-sub-card p  { font-size: .83rem; opacity: .88; margin-bottom: .6rem; }
.hn-sub-card ul { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.hn-sub-card ul li {
  font-size: .8rem; opacity: .85;
  padding-left: 1.2em; position: relative;
}
.hn-sub-card ul li::before {
  content: '·'; position: absolute; left: 0; font-size: 1.2em; opacity: .7;
}

/* ══════════════════════════════════
   Quality
══════════════════════════════════ */
.hn-quality {
  padding: 4rem 0;
  background: #fff;
}
.hn-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.hn-quality-card {
  background: #f8f9fc;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e0e7f0;
  transition: transform .2s;
}
.hn-quality-card:hover { transform: translateY(-2px); }
.hn-quality-icon { font-size: 2rem; margin-bottom: .6rem; }
.hn-quality-card h4 { font-size: .92rem; font-weight: 700; color: #0a2d5a; margin-bottom: .45rem; }
.hn-quality-card p  { font-size: .82rem; color: #555; line-height: 1.6; }

/* ══════════════════════════════════
   FAQ
══════════════════════════════════ */
.hn-faq {
  padding: 4rem 0;
  background: #f8f9fc;
}
.hn-faq-list { max-width: 820px; margin: 0 auto; }
.hn-faq-item { border-bottom: 1px solid #e0e7f0; background: #fff; }
.hn-faq-item:first-child { border-radius: 12px 12px 0 0; }
.hn-faq-item:last-child  { border-radius: 0 0 12px 12px; border-bottom: none; }

.hn-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;
}
.hn-faq-q:hover { color: #0f6eb4; }
.hn-faq-arrow {
  font-size: 1.3rem; color: #0f6eb4; flex-shrink: 0;
  transition: transform .3s; font-weight: 800;
}
.hn-faq-item.hn-faq-open .hn-faq-arrow { transform: rotate(90deg); }

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

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

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

/* ══════════════════════════════════
   RWD
══════════════════════════════════ */
@media (max-width: 1080px) {
  .hn-hl-grid      { grid-template-columns: repeat(2, 1fr); }
  .hn-quality-grid { grid-template-columns: repeat(2, 1fr); }
  .hn-subsidy-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hn-who-grid     { grid-template-columns: 1fr; }
  .hn-related-grid { grid-template-columns: repeat(2, 1fr); }
}

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

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

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

/* ════════════════════════════════════════════════════
   水彩點綴
   ════════════════════════════════════════════════════ */
.hn-intro-container { position: relative; }
.hn-intro-container .nurse-deco {
  position: absolute;
  right: calc(50% - 50vw + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  pointer-events: none;
  z-index: 0;
}
.hn-intro-container .nurse-deco img {
  display: block; width: 200px; max-width: 200px; height: auto;
}
@media (max-width: 720px) { .hn-intro-container .nurse-deco { display: none; } }

/* care-team 三人組 (健保+長照雙重補助 dark CTA 下方) */
.hn-subsidy-left { position: relative; }
.hn-care-team-deco {
  margin-top: 1.5rem;
  pointer-events: none;
}
.hn-care-team-deco img {
  display: block;
  width: 400px;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
}
