/* ============================================================
   Humanity Health Center — hhc_new
   品牌色取自原站 Elementor kit:
   navy #000E44 / teal #00E5CC / blue #29A4FF / text #5B6472
   ============================================================ */

:root {
	--navy:    #000E44;
	--navy-2:  #0A1C5C;
	--teal:    #00E5CC;
	--teal-d:  #0CB8B6;
	--teal-dd: #088582;
	--blue:    #29A4FF;
	--ink:     #0B1B33;
	--text:    #5B6472;
	--muted:   #8A93A3;
	--bg:      #FFFFFF;
	--bg-soft: #F4F7FB;
	--line:    #E4EAF2;
	--radius:  14px;
	--shadow:  0 10px 30px rgba(1, 14, 68, .08);
	--shadow-lg: 0 18px 50px rgba(1, 14, 68, .14);
	--font-head: "Heebo", "PingFang TC", "Microsoft JhengHei", "Malgun Gothic", sans-serif;
	--font-body: "Inter", "PingFang TC", "Microsoft JhengHei", "Malgun Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dd); text-decoration: none; }
a:hover { color: var(--navy); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--navy);
	line-height: 1.25;
	font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.container { width: min(1200px, 92%); margin: 0 auto; }
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #C6CCE0; }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin-top: 14px; }
.eyebrow {
	display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
	text-transform: uppercase; color: var(--teal-dd); margin-bottom: 10px;
}

/* ---------------- buttons ---------------- */
.btn {
	display: inline-block; font-family: var(--font-head); font-weight: 600;
	font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
	padding: 13px 28px; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: all .2s ease; text-align: center;
}
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light-outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-light-outline:hover { background: #fff; color: var(--navy); }
.btn-portal { background: var(--navy); color: #fff; padding: 10px 22px; font-size: .8rem; white-space: nowrap; }
.btn-portal:hover { background: var(--teal); color: var(--navy); }

/* ---------------- header ---------------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: #fff;
	border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo img { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
	display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	font-family: var(--font-head); font-weight: 500; font-size: .95rem;
	color: var(--navy); padding: 10px 14px; border-radius: 8px;
	background: none; border: 0; cursor: pointer;
}
.nav-link:hover { background: var(--bg-soft); color: var(--navy); }
.caret {
	width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); display: inline-block;
}
.nav-item { position: relative; }
.flag {
	width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
	display: inline-block; vertical-align: -4px; box-shadow: 0 0 0 1px var(--line);
}
.dropdown .flag { margin-right: 9px; }
.dropdown {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px;
	box-shadow: var(--shadow-lg); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.nav-item.open .dropdown, .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.dropdown a:hover { background: var(--bg-soft); color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------------- hero(首頁) ---------------- */
.hero {
	position: relative; min-height: 78vh; display: flex; align-items: center;
	overflow: hidden; padding: 96px 0; background: var(--navy);
}
.hero video, .hero .hero-bg {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(0,14,68,.88) 20%, rgba(0,14,68,.55) 60%, rgba(0,14,68,.35));
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 640px; margin-bottom: 28px; font-weight: 800; }
.hero .accent { color: var(--teal); }

/* ---------------- 統計列 ---------------- */
.stats { background: var(--navy); padding: 0; }
.stats-inner {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
	background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden;
	transform: translateY(-56px); box-shadow: var(--shadow-lg);
}
.stat { background: #fff; text-align: center; padding: 30px 16px; }
.stat b {
	font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	font-weight: 800; color: var(--navy); display: block; line-height: 1.1;
}
.stat span { font-size: .92rem; color: var(--muted); }

/* ---------------- 卡片 ---------------- */
.cards { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 26px; }
.card-body h3 { margin-bottom: 10px; }
.card-photo { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* 診所卡(首頁) */
.clinic-card .card-body { display: flex; flex-direction: column; gap: 8px; }
.clinic-meta { font-size: .93rem; display: grid; gap: 6px; margin: 6px 0 14px; }
.clinic-meta div { display: flex; gap: 9px; align-items: baseline; }
.clinic-meta .ico { color: var(--teal-dd); flex: 0 0 16px; transform: translateY(2px); }
.clinic-meta a { color: var(--text); }
.clinic-meta a:hover { color: var(--teal-dd); }
.clinic-langs {
	display: inline-block; background: #E5FBF8; color: var(--teal-dd);
	font-size: .8rem; font-weight: 600; border-radius: 999px; padding: 3px 12px;
	align-self: flex-start;
}
.clinic-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.clinic-actions .btn { padding: 10px 18px; font-size: .78rem; }

/* ---------------- text-us 四格 ---------------- */
.textus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.textus-item {
	background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--radius); padding: 28px 22px; text-align: center;
}
.textus-item img { width: 64px; margin: 0 auto 16px; }
.textus-item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.textus-item p { font-size: .9rem; }

/* ---------------- 服務 ---------------- */
.service-card { padding: 30px 26px; position: relative; }
.service-num {
	font-family: var(--font-head); font-weight: 800; font-size: 2.4rem;
	color: transparent; -webkit-text-stroke: 1.5px var(--teal-d);
	line-height: 1; margin-bottom: 14px;
}
.service-card h3 { margin-bottom: 10px; }

/* ---------------- 分欄區塊 ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split h2 { margin-bottom: 16px; }
.split .btn { margin-top: 24px; }

/* ---------------- 評價 ---------------- */
.reviews-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 86%);
	gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
	padding: 8px 4px 20px;
}
.reviews-track::-webkit-scrollbar { height: 8px; }
.reviews-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.review {
	scroll-snap-align: start; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); padding: 28px;
	display: flex; flex-direction: column; gap: 14px;
}
.review .stars { color: #FFB300; letter-spacing: 3px; font-size: 1rem; }
.review p { font-size: .95rem; flex: 1; }
.review b { font-family: var(--font-head); color: var(--navy); }

/* ---------------- 內頁 hero ---------------- */
.page-hero {
	position: relative; background: var(--navy); color: #fff;
	padding: 84px 0; overflow: hidden;
}
.page-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(0,14,68,.92) 10%, rgba(0,14,68,.6) 65%, rgba(0,14,68,.4));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .clinic-langs { background: rgba(0,229,204,.15); color: var(--teal); margin-bottom: 18px; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; color: #D8DEF0; }
.hero-contact a { color: #fff; }
.hero-contact a:hover { color: var(--teal); }
.hero-contact .ico { color: var(--teal); margin-right: 7px; }

/* ---------------- 團隊 ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: center; }
.member img {
	width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center;
	border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px;
	background: var(--bg-soft);
}
.member h3 { font-size: 1.02rem; }
.member .locs { font-size: .82rem; margin-top: 6px; }
.member .locs a { display: inline-block; color: var(--teal-dd); }
.member .locs a:not(:last-child)::after { content: "·"; margin: 0 6px; color: var(--muted); }
.member .bio { font-size: .85rem; margin-top: 8px; color: var(--muted); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq {
	background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.faq summary {
	list-style: none; cursor: pointer; padding: 18px 22px;
	font-family: var(--font-head); font-weight: 600; color: var(--navy);
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; font-size: 1.4rem; color: var(--teal-dd); line-height: 1; flex: 0 0 auto;
	transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; font-size: .95rem; }

/* ---------------- find us ---------------- */
.findus-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: stretch; }
.findus-map iframe {
	width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.findus-info { display: flex; flex-direction: column; gap: 18px; }
.hours { display: grid; gap: 6px; font-size: .93rem; }
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding: 5px 0; }
.hours b { color: var(--navy); font-weight: 600; }

/* ---------------- new patient ---------------- */
.newpatient-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 34px; display: grid; gap: 12px; text-align: center;
}
.newpatient-card img { width: 150px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; }

/* ---------------- 文件頁(policy) ---------------- */
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { margin: 36px 0 12px; }
.doc h3 { margin: 28px 0 10px; }
.doc p { margin-bottom: 14px; }
.doc ul { list-style: disc; padding-left: 24px; display: grid; gap: 10px; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid {
	display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .95rem; }
.footer-col h6 {
	font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--muted); margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: var(--ink); font-size: .93rem; }
.footer-col a:hover { color: var(--teal-dd); }
.social { display: flex; gap: 10px; }
.social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff;
}
.social a:hover { background: var(--teal); color: var(--navy); }
.footer-bottom { background: var(--navy); color: #A9B2CE; font-size: .85rem; padding: 16px 0; }

/* ---------------- 進場動畫 ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- RWD ---------------- */
@media (max-width: 1000px) {
	.cards-3, .textus-grid { grid-template-columns: repeat(2, 1fr); }
	.team-grid { grid-template-columns: repeat(3, 1fr); }
	.split, .findus-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	section { padding: 52px 0; }
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; top: 76px; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		flex-direction: column; align-items: stretch; padding: 14px 4%; gap: 2px;
		box-shadow: var(--shadow-lg);
	}
	.site-nav.open { display: flex; }
	.nav-item .dropdown {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 0 16px; display: none;
	}
	.nav-item.open .dropdown { display: block; }
	.btn-portal { margin-top: 10px; }
	.cards-2, .cards-3, .textus-grid { grid-template-columns: 1fr; }
	.team-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-inner { transform: translateY(-36px); }
	.stat b { font-size: 1.5rem; }
	.stat span { font-size: .8rem; }
	.hero { min-height: 60vh; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
