/*
 * 가나다요양병원 (nursing/) 스타일 — ../css/site.css 다음에 불러온다.
 *   1) :root 변수로 색·글자 크기만 바꾸고 (공통 구성 요소는 site.css 그대로 사용)
 *   2) 요양병원 화면에만 있는 구성 요소(하루 일과, 입원 절차, 시설 사진첩, 인사말, 숫자 소개)를 더한다.
 * 어르신·보호자가 보기 편하도록 기본 글자를 17px 로 키우고 대비를 높였다.
 */
:root {
	--s-primary: #4F7F5E;
	--s-primary-dark: #3A6449;
	--s-primary-soft: #EAF2EA;
	--s-accent: #C9694A;
	--s-accent-soft: #FBEDE6;
	--s-ink: #2B3A30;
	--s-text: #3F4A42;
	--s-muted: #66705F;
	--s-line: #E7E1D6;
	--s-bg-alt: #FBF7F0;
	--s-footer-bg: #2B3A30;
	--s-footer-text: #C7D1C9;
	--s-radius: 20px;
	--s-shadow: 0 12px 32px rgba(43, 58, 48, .09);
	--s-font-size: 17px;
}

.s-logo__mark { background: var(--s-primary); border-radius: 50%; }
.s-hero { background: linear-gradient(180deg, #F6EFE2 0%, #FFFDF9 100%); }
.s-hero__eyebrow { color: var(--s-accent); }
.s-hero__title em { color: var(--s-primary); }
.s-subhead { background: linear-gradient(180deg, #F6EFE2, #FFFDF9); }
.hm-faq-q:before { border-radius: 50%; }
.hm-faq-a:before { border-radius: 50%; }
.s-btn.is-accent { background: var(--s-accent); border-color: var(--s-accent); }
.s-btn.is-accent:hover { background: #AF5537; border-color: #AF5537; }

/* 신뢰 문구 띠 (메인 비주얼 아래) */
.n-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; }
.n-trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--s-ink); }
.n-trust svg { width: 20px; height: 20px; color: var(--s-primary); }

/* 숫자 소개 */
.n-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--s-radius); background: var(--s-primary); color: #E5EFE7; overflow: hidden; }
.n-stats div { padding: 34px 24px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .14); }
.n-stats div:last-child { border-right: 0; }
.n-stats b { display: block; font-size: 40px; font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.2; }
.n-stats b small { font-size: 18px; margin-left: 2px; }
.n-stats span { font-size: 15px; }

/* 시설 사진첩 */
.n-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.n-gallery figure { margin: 0; background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); overflow: hidden; }
.n-gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.n-gallery figcaption { padding: 16px 18px 20px; }
.n-gallery figcaption b { display: block; color: var(--s-ink); font-size: 18px; }
.n-gallery figcaption span { display: block; color: var(--s-muted); font-size: 15px; margin-top: 2px; }

/* 어르신의 하루 (시간표) */
.n-day { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; margin-top: 8px; }
.n-day:before { content: ""; position: absolute; left: 7%; right: 7%; top: 35px; height: 3px; background: var(--s-line); }
.n-day li { list-style: none; position: relative; text-align: center; padding: 0 8px; }
.n-day__time { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; border: 3px solid var(--s-primary); color: var(--s-primary); font-weight: 700; font-size: 15px; letter-spacing: -.02em; box-shadow: 0 0 0 6px #fff; }
.n-day li:nth-child(even) .n-day__time { border-color: var(--s-accent); color: var(--s-accent); }
.n-day b { display: block; margin-top: 14px; color: var(--s-ink); font-size: 17px; }
.n-day span { display: block; color: var(--s-muted); font-size: 14px; margin-top: 2px; }
.n-day { padding: 0; }

/* 입원 절차 (단계) */
.n-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0; counter-reset: step; }
.n-steps li { list-style: none; position: relative; background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 28px 24px 26px; counter-increment: step; }
.n-steps li:before { content: "STEP " counter(step); display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--s-primary-soft); color: var(--s-primary); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.n-steps li:not(:last-child):after { content: ""; position: absolute; right: -14px; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--s-primary); border-right: 3px solid var(--s-primary); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.n-steps h3 { font-size: 19px; margin: 14px 0 6px; }
.n-steps p { color: var(--s-muted); font-size: 15px; }

/* 체크 목록 */
.n-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.n-checks li { position: relative; padding-left: 32px; }
.n-checks li:before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--s-primary-soft); }
.n-checks li:after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--s-primary); border-bottom: 2px solid var(--s-primary); transform: rotate(-45deg); }
.n-checks.is-2 { grid-template-columns: 1fr 1fr; }

/* 인사말 */
.n-greet { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.n-greet img { width: 100%; border-radius: var(--s-radius); }
.n-greet blockquote { margin: 0 0 20px; font-size: 26px; font-weight: 700; color: var(--s-ink); line-height: 1.45; letter-spacing: -.02em; }
.n-greet blockquote em { font-style: normal; color: var(--s-primary); }
.n-greet p + p { margin-top: 12px; }
.n-greet__sign { margin-top: 24px; color: var(--s-muted); }
.n-greet__sign b { color: var(--s-ink); font-size: 20px; margin-left: 6px; }

/* 프로그램 상세 (이미지 + 설명 좌우 교대) */
.n-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.n-feature + .n-feature { margin-top: 64px; }
.n-feature.is-reverse .n-feature__img { order: 2; }
.n-feature__img { width: 100%; border-radius: var(--s-radius); border: 1px solid var(--s-line); }
.n-feature h3 { font-size: 28px; margin: 6px 0 12px; }
.n-feature > div > p { color: var(--s-muted); margin-bottom: 18px; }

/* 면회 시간표 */
.n-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--s-radius); overflow: hidden; border: 1px solid var(--s-line); }
.n-table th, .n-table td { padding: 16px 20px; border-bottom: 1px solid var(--s-line); text-align: left; }
.n-table th { width: 30%; background: var(--s-bg-alt); color: var(--s-ink); font-weight: 600; }
.n-table tr:last-child th, .n-table tr:last-child td { border-bottom: 0; }

/* 의료진 */
.n-doctor { display: flex; gap: 18px; align-items: flex-start; }
.n-doctor__avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--s-primary-soft); color: var(--s-primary); font-size: 22px; font-weight: 700; }
.n-doctor h3 { font-size: 19px; margin-bottom: 2px; }
.n-doctor h3 small { font-size: 14px; color: var(--s-primary); font-weight: 600; margin-left: 6px; }
.n-doctor ul { margin: 8px 0 0; padding-left: 18px; color: var(--s-muted); font-size: 15px; }

/* 상담 띠 */
.s-cta { background: linear-gradient(120deg, var(--s-primary) 0%, #36604A 100%); }

@media (max-width: 1024px) {
	.n-gallery, .n-steps { grid-template-columns: repeat(2, 1fr); }
	.n-steps li:not(:last-child):after { display: none; }
	.n-stats { grid-template-columns: repeat(2, 1fr); }
	.n-stats div:nth-child(2) { border-right: 0; }
	.n-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }
	.n-day { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
	.n-day:before { display: none; }
}
@media (max-width: 860px) {
	.n-greet, .n-feature { grid-template-columns: 1fr; gap: 24px; }
	.n-greet img { max-width: 300px; }
	.n-feature.is-reverse .n-feature__img { order: 0; }
	.n-greet blockquote { font-size: 22px; }
	.n-feature h3 { font-size: 24px; }
}
@media (max-width: 600px) {
	.n-gallery, .n-steps, .n-checks.is-2 { grid-template-columns: 1fr; }
	.n-stats b { font-size: 32px; }
	.n-day { grid-template-columns: repeat(2, 1fr); }
	.n-table th { width: 36%; }
	.n-table th, .n-table td { padding: 13px 14px; }
}
