/* Healthy Care Projects – front end */
.hcp-single, .hcp-archive, .hcp-projects, .hcp-devs, .hcp-lb {
	--hcp-gold: #b8862f;
	--hcp-gold-2: #d4a64a;
	--hcp-gold-soft: #f6efe1;
	--hcp-ink: #1b1b1b;
	--hcp-text: #4a4a4a;
	--hcp-muted: #7a7468;
	--hcp-line: #e7dfcf;
	--hcp-bg: #faf8f4;
	--hcp-radius: 18px;
}
.hcp-single *, .hcp-archive *, .hcp-projects * { box-sizing: border-box; }
.hcp-single, .hcp-archive { background: var(--hcp-bg); color: var(--hcp-text); font-family: inherit; }
.hcp-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.hcp-icon { width: 1em; height: 1em; flex: none; }
html[dir="rtl"] .hcp-arrow, .rtl .hcp-arrow { display: inline-block; transform: scaleX(-1); }

/* ---------- Hero ---------- */
.hcp-hero { position: relative; color: #fff; background: var(--hcp-ink) var(--hcp-hero) center / cover no-repeat; isolation: isolate; }
.hcp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15,15,15,.92) 8%, rgba(15,15,15,.55) 55%, rgba(15,15,15,.25)); }
.hcp-hero-inner { padding-block: clamp(90px, 16vw, 190px) clamp(40px, 6vw, 70px); }
.hcp-hero--plain { background: linear-gradient(135deg, #1b1b1b 0%, #2a2620 100%); }
.hcp-hero--plain::before { background: radial-gradient(circle at 85% 0%, rgba(184,134,47,.35), transparent 55%); }
.hcp-hero--archive .hcp-hero-inner { padding-block: clamp(60px, 9vw, 110px) clamp(36px, 5vw, 56px); }
.hcp-dev-pill { display: inline-flex; gap: 6px; align-items: center; background: var(--hcp-gold); color: #fff !important; padding: 7px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none !important; margin-bottom: 18px; }
.hcp-dev-pill-label { background: #fff; color: var(--hcp-gold); border-radius: 999px; padding: 1px 10px; font-size: 13px; }
a.hcp-dev-pill:hover { background: var(--hcp-gold-2); }
.hcp-title { color: #fff; font-size: clamp(30px, 5vw, 54px); line-height: 1.2; margin: 0; font-weight: 800; }
.hcp-title-en { color: var(--hcp-gold-2); font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; margin: 6px 0 0; letter-spacing: .3px; }
.hcp-rule { display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--hcp-gold); margin: 18px 0; }
.hcp-intro { max-width: 720px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.9; color: rgba(255,255,255,.9); margin: 0; }
.hcp-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 15px; color: rgba(255,255,255,.85); }
.hcp-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.hcp-meta .hcp-icon { color: var(--hcp-gold-2); width: 18px; height: 18px; }
.hcp-archive-logo img { max-height: 80px; width: auto; background: #fff; padding: 10px 16px; border-radius: 12px; margin-bottom: 16px; }

.hcp-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--hcp-gold); color: #fff; }
.hcp-status--operating { background: #2e7d4f; }
.hcp-status--delivered { background: #37474f; }
.hcp-status--planning { background: #6d5a8c; }

/* ---------- Buttons ---------- */
.hcp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hcp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: transform .15s, background .15s, color .15s; border: 1.5px solid transparent; line-height: 1.3; }
.hcp-btn .hcp-icon { width: 18px; height: 18px; }
.hcp-btn:hover { transform: translateY(-1px); }
.hcp-btn--gold { background: var(--hcp-gold); color: #fff !important; }
.hcp-btn--gold:hover { background: var(--hcp-gold-2); }
.hcp-btn--ghost { border-color: rgba(255,255,255,.6); color: #fff !important; }
.hcp-btn--ghost:hover { background: #fff; color: var(--hcp-ink) !important; }
.hcp-btn--dark { background: var(--hcp-ink); color: #fff !important; border-color: var(--hcp-gold); }

/* ---------- Sections ---------- */
.hcp-section { padding-block: clamp(36px, 6vw, 64px); }
.hcp-h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--hcp-ink); font-weight: 800; margin: 0 0 28px; display: flex; align-items: center; gap: 14px; }
.hcp-h2::after { content: ""; flex: 0 0 48px; height: 3px; border-radius: 3px; background: var(--hcp-gold); }

/* Features (profile style: icon in gold ring, separators) */
.hcp-features-section { background: #fff; border-bottom: 1px solid var(--hcp-line); }
.hcp-features-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hcp-features-grid.hcp-features-3 { grid-template-columns: repeat(3, 1fr); }
.hcp-features-grid .hcp-feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px; margin: 0; position: relative; }
.hcp-features-grid .hcp-feature::after { content: ""; position: absolute; inset-block: 22px; inset-inline-end: 0; width: 1px; background: var(--hcp-line); }
.hcp-features-4 .hcp-feature:nth-child(4n)::after, .hcp-features-3 .hcp-feature:nth-child(3n)::after, .hcp-features-grid .hcp-feature:last-child::after { display: none; }
.hcp-feature-icon { width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid var(--hcp-gold); display: grid; place-items: center; color: var(--hcp-gold); margin-bottom: 6px; background: #fff; transition: background .2s, color .2s; }
.hcp-feature-icon .hcp-icon { width: 36px; height: 36px; }
.hcp-feature:hover .hcp-feature-icon { background: var(--hcp-gold); color: #fff; }
.hcp-features-grid strong { color: var(--hcp-ink); font-size: 17px; font-weight: 800; }
.hcp-features-grid .hcp-feature > span:last-child { color: var(--hcp-muted); font-size: 14.5px; line-height: 1.7; }

/* Tagline strip (black pill with gold border) */
.hcp-tagline { display: flex; align-items: center; justify-content: center; gap: 12px; margin: clamp(30px, 5vw, 48px) auto 0; max-width: 640px; background: var(--hcp-ink); color: #fff; border: 2px solid var(--hcp-gold); border-radius: 999px; padding: 14px 26px; font-size: clamp(15px, 1.8vw, 19px); font-weight: 700; text-align: center; box-shadow: 0 0 0 4px var(--hcp-bg), 0 0 0 5px var(--hcp-gold); }
.hcp-tagline .hcp-icon { color: var(--hcp-gold-2); width: 26px; height: 26px; }

.hcp-content { max-width: 900px; font-size: 17px; line-height: 2; color: var(--hcp-text); }
.hcp-content p { margin: 0 0 1em; }

.hcp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.hcp-gallery a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.hcp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; display: block; }
.hcp-gallery a:hover img { transform: scale(1.05); }
.hcp-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--hcp-radius); overflow: hidden; background: #000; }
.hcp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hcp-map-row { padding-bottom: 20px; }
.hcp-related { background: #fff; border-top: 1px solid var(--hcp-line); }

/* ---------- Filter ---------- */
.hcp-filter { margin-bottom: 26px; display: grid; gap: 14px; }
.hcp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hcp-chip { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hcp-line); background: #fff; color: var(--hcp-ink); transition: all .15s; line-height: 1.4; }
.hcp-chip span { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--hcp-gold-soft); color: var(--hcp-gold); font-size: 12px; margin-inline-start: 4px; }
.hcp-chip:hover { border-color: var(--hcp-gold); color: var(--hcp-gold); }
.hcp-chip.is-active { background: var(--hcp-gold); border-color: var(--hcp-gold); color: #fff; }
.hcp-chip.is-active span { background: rgba(255,255,255,.25); color: #fff; }
.hcp-filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hcp-search, .hcp-select { font: inherit; font-size: 15px; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--hcp-line); background: #fff; color: var(--hcp-ink); }
.hcp-search { flex: 1 1 260px; }
.hcp-select { flex: 0 1 220px; }
.hcp-search:focus, .hcp-select:focus { outline: 2px solid var(--hcp-gold); outline-offset: 1px; border-color: transparent; }

/* ---------- Cards ---------- */
.hcp-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.hcp-cols-1 { grid-template-columns: 1fr; }
.hcp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hcp-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hcp-card { background: #fff; border: 1px solid var(--hcp-line); border-radius: var(--hcp-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hcp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(60,45,15,.35); border-color: var(--hcp-gold); }
.hcp-card[hidden] { display: none; }
.hcp-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #24211c, #3a3226); overflow: hidden; }
.hcp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.hcp-card:hover .hcp-card-media img { transform: scale(1.06); }
.hcp-card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--hcp-gold); }
.hcp-card-placeholder .hcp-icon { width: 64px; height: 64px; opacity: .8; }
.hcp-card-media .hcp-status { position: absolute; top: 14px; inset-inline-start: 14px; }
.hcp-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hcp-card-dev { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--hcp-gold); background: var(--hcp-gold-soft); padding: 3px 12px; border-radius: 999px; }
.hcp-card-title { font-size: 20px; line-height: 1.4; margin: 6px 0 0; font-weight: 800; }
.hcp-card-title a { color: var(--hcp-ink); text-decoration: none; }
.hcp-card-title a:hover { color: var(--hcp-gold); }
.hcp-card-en { margin: 0; color: var(--hcp-gold); font-weight: 700; font-size: 14px; }
.hcp-card-intro { margin: 4px 0 0; color: var(--hcp-muted); font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcp-card-foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px dashed var(--hcp-line); }
.hcp-card-loc { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--hcp-muted); }
.hcp-card-loc .hcp-icon { color: var(--hcp-gold); }
.hcp-card-link { font-size: 14px; font-weight: 700; color: var(--hcp-gold) !important; text-decoration: none !important; }
.hcp-card-link:hover { color: var(--hcp-ink) !important; }
.hcp-empty { text-align: center; padding: 30px; color: var(--hcp-muted); }

/* Developers logos */
.hcp-devs { display: grid; grid-template-columns: repeat(var(--hcp-dev-cols, 6), 1fr); gap: 14px; }
.hcp-dev { display: grid; place-items: center; min-height: 92px; padding: 14px; background: #fff; border: 1px solid var(--hcp-line); border-radius: 14px; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.hcp-dev:hover { border-color: var(--hcp-gold); box-shadow: 0 8px 22px -14px rgba(60,45,15,.4); }
.hcp-dev img { max-height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.hcp-dev-name { font-weight: 700; color: var(--hcp-ink); text-align: center; font-size: 14px; }

/* Lightbox */
.hcp-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(10,10,10,.92); display: grid; place-items: center; padding: 40px 60px; }
.hcp-lb[hidden] { display: none; }
.hcp-lb img { max-width: 100%; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.hcp-lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; line-height: 48px; padding: 0; }
.hcp-lb button:hover { background: var(--hcp-gold); }
.hcp-lb-close { top: 18px; inset-inline-end: 18px; }
.hcp-lb-prev { inset-inline-start: 12px; top: 50%; transform: translateY(-50%); }
.hcp-lb-next { inset-inline-end: 12px; top: 50%; transform: translateY(-50%); }
.hcp-lb-count { position: absolute; bottom: 18px; color: #ddd; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hcp-grid, .hcp-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.hcp-devs { grid-template-columns: repeat(4, 1fr); }
	.hcp-features-grid, .hcp-features-grid.hcp-features-3 { grid-template-columns: repeat(3, 1fr); }
	.hcp-features-grid .hcp-feature::after { display: block !important; }
	.hcp-features-grid .hcp-feature:nth-child(3n)::after, .hcp-features-grid .hcp-feature:last-child::after { display: none !important; }
}
@media (max-width: 640px) {
	.hcp-grid, .hcp-cols-2, .hcp-cols-4 { grid-template-columns: 1fr; }
	.hcp-devs { grid-template-columns: repeat(2, 1fr); }
	.hcp-features-grid, .hcp-features-grid.hcp-features-3 { grid-template-columns: repeat(2, 1fr); }
	.hcp-features-grid .hcp-feature { padding: 18px 8px; border-bottom: 1px solid var(--hcp-line); }
	.hcp-features-grid .hcp-feature::after { display: block !important; }
	.hcp-features-grid .hcp-feature:nth-child(2n)::after { display: none !important; }
	.hcp-feature-icon { width: 62px; height: 62px; }
	.hcp-feature-icon .hcp-icon { width: 30px; height: 30px; }
	.hcp-select { flex: 1 1 140px; }
	.hcp-lb { padding: 20px 10px; }
	.hcp-tagline { border-radius: 18px; }
}
