/*
Theme Name: Prosthodontist Theme
Theme URI: https://github.com/louieQT/wordpress
Author: Lydia Tseng Dental Team
Description: A lightweight block theme for prosthodontic, TMD, jaw function, and facial aesthetics care.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Version: 0.3.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prosthodontist-theme
Tags: full-site-editing, block-patterns, accessibility-ready, responsive-layout
*/

:root {
	--site-header-height: 78px;
	--site-line: #d7ded9;
	--site-shadow: 0 18px 48px rgba(22, 32, 31, 0.09);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

a,
button,
.wp-element-button {
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid #b66a50;
	outline-offset: 3px;
}

.site-header-shell {
	position: relative;
	z-index: 20;
	background: rgba(251, 252, 250, 0.96);
	border-bottom: 1px solid var(--site-line);
}

.site-header-inner {
	min-height: var(--site-header-height);
}

.site-brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 0.65rem;
}

.site-brand-mark {
	display: block;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
}

.site-brand-mark img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.site-header-shell .wp-block-site-title {
	margin: 0;
	font-family: "Baskerville", "Baskerville Old Face", "Palatino Linotype", "Book Antiqua", Georgia, serif;
	font-size: 1.55rem;
	font-weight: 500;
	line-height: 1.1;
}

.site-header-shell .wp-block-site-title a {
	color: #16201f;
	text-decoration: none;
}

.site-header-shell .wp-block-navigation-item__content {
	color: #263936;
	font-size: 0.94rem;
	text-decoration: none;
}

.site-header-shell .wp-block-navigation-item__content:hover {
	color: #1f5248;
}

.site-header-action .wp-block-button__link {
	padding: 0.65rem 0.9rem;
	font-size: 0.9rem;
}

.native-language-switcher {
	display: flex;
	gap: 0.35rem;
	align-items: center;
	white-space: nowrap;
	font-size: 0.82rem;
	font-weight: 650;
}

.native-language-switcher a {
	color: #596865;
	text-decoration: none;
}

.native-language-switcher a[aria-current="page"] {
	color: #1f5248;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2rem;
}

html[lang="zh-CN"] body {
	font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", var(--wp--preset--font-family--system-sans);
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .wp-block-site-title {
	font-family: "Songti SC", "Noto Serif CJK SC", var(--wp--preset--font-family--serif);
}

html[lang="zh-CN"] .site-header-shell .wp-block-site-title {
	font-family: "Baskerville", "Baskerville Old Face", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.site-hero {
	position: relative;
	isolation: isolate;
	min-height: 680px;
	display: flex;
	align-items: center;
	background-color: #edf2ef;
	background-position: center;
	background-size: cover;
}

.site-hero::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(251, 252, 250, 0.16);
	content: "";
}

/* Shortcode-rendered homepage blocks do not receive block-on-demand layout CSS. */
.site-hero > .hero-copy,
.section-shell > .alignwide,
.site-footer > .alignwide {
	box-sizing: border-box;
	width: min(calc(100% - 3rem), 1200px);
	margin-right: auto;
	margin-left: auto;
}

.site-main .wp-block-columns {
	display: flex;
	box-sizing: border-box;
	flex-wrap: nowrap;
	align-items: normal;
	gap: 2rem;
}

.site-main .wp-block-column {
	min-width: 0;
	flex-grow: 1;
	overflow-wrap: break-word;
}

.site-main .wp-block-buttons {
	display: flex;
	box-sizing: border-box;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem;
}

.site-main .wp-block-button {
	display: inline-block;
}

.hero-copy {
	width: min(620px, 100%);
	padding: 2.5rem 0;
}

.eyebrow {
	margin-bottom: 1rem;
	color: #1f5248;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.hero-title {
	max-width: 15ch;
	margin-top: 0;
	margin-bottom: 1.4rem;
	font-size: 4rem;
}

.hero-intro {
	max-width: 570px;
	margin-bottom: 1.8rem;
	color: #263936;
	font-size: 1.18rem;
}

.hero-detail-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.4rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(22, 32, 31, 0.28);
	color: #263936;
	font-size: 0.86rem;
	font-weight: 650;
}

.hero-detail-row p {
	margin: 0;
}

.button-secondary .wp-block-button__link {
	background: transparent;
	border: 1px solid #1f5248;
	color: #1f5248;
}

.button-secondary .wp-block-button__link:hover {
	background: #1f5248;
	color: #ffffff;
}

.section-shell {
	padding-top: 7rem;
	padding-bottom: 7rem;
}

.section-intro {
	max-width: 690px;
	margin-bottom: 3.2rem;
}

.section-title {
	max-width: 16ch;
	margin-top: 0.4rem;
	font-size: 3rem;
}

.site-main .care-paths {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.4rem;
}

.care-path {
	padding-top: 1.4rem;
	border-top: 2px solid #1f5248;
}

.care-path-number {
	color: #7c958a;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.1rem;
}

.care-path h3 {
	margin-top: 2.5rem;
	font-size: 1.55rem;
}

.care-path p {
	color: #4f615e;
}

.link-arrow a {
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.24rem;
}

.dark-section {
	background: #16201f;
	color: #f7f8f5;
}

.dark-section .eyebrow,
.dark-section a {
	color: #b9d0c5;
}

.dark-section p,
.dark-section li {
	color: #d8e0dc;
}

.symptom-list {
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.symptom-list li {
	padding: 0.8rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.evaluation-panel {
	padding: 2.5rem;
	background: #253330;
	border-left: 3px solid #b66a50;
	border-radius: 4px;
}

.evaluation-panel h3 {
	margin-top: 0;
	font-size: 1.75rem;
}

.evaluation-panel ul {
	padding-left: 1.2rem;
}

.service-related-reading {
	padding-top: 2rem;
}

.service-related-reading h3 {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
}

.service-related-reading ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 0;
	padding-left: 1.2rem;
}

.quiet-note {
	font-size: 0.84rem;
	line-height: 1.55;
	opacity: 0.82;
}

.service-list {
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.service-list li {
	display: flex;
	gap: 1.2rem;
	align-items: baseline;
	padding: 1rem 0;
	border-bottom: 1px solid var(--site-line);
}

.service-list li::before {
	color: #b66a50;
	content: "+";
	font-weight: 700;
}

.aligner-section {
	background: #f3f6f4;
}

.aesthetics-band {
	background: #dde7e2;
}

.aesthetics-band .wp-block-columns {
	align-items: center;
}

.aesthetics-mark {
	min-height: 320px;
	display: flex;
	align-items: flex-end;
	padding: 2.5rem;
	background: #b66a50;
	color: #ffffff;
}

.aesthetics-mark p {
	max-width: 15ch;
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 2.35rem;
	line-height: 1.15;
}

.about-section {
	border-bottom: 1px solid var(--site-line);
}

.about-portrait {
	display: block;
	width: min(100%, 360px);
	height: auto;
	margin-top: 2rem;
	object-fit: cover;
}

.about-signature {
	padding-left: 2rem;
	border-left: 1px solid #b66a50;
}

.about-qualifications {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--site-line);
}

.about-qualifications h3 {
	margin-top: 0;
	font-size: 1.25rem;
}

.about-qualifications ul {
	padding-left: 1.2rem;
}

.insights-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
}

.homepage-insights-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}

.insight-card {
	height: 100%;
	padding: 1.6rem;
	background: #ffffff;
	border: 1px solid var(--site-line);
	border-radius: 4px;
}

.insight-card .wp-block-post-title {
	font-size: 1.35rem;
}

.insight-card .wp-block-post-title a {
	color: #16201f;
	text-decoration: none;
}

.insight-card .wp-block-post-title a:hover {
	color: #1f5248;
}

.insight-card .wp-block-post-date {
	color: #6a7875;
	font-size: 0.8rem;
}

.contact-band {
	background: #1f5248;
	color: #ffffff;
}

.contact-band p {
	color: #e2ece7;
}

.contact-band .wp-block-button__link {
	background: #ffffff;
	color: #1f5248;
}

.clinic-directory {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 1rem;
	width: 100%;
	margin: 1.5rem 0;
}

.clinic-location-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.4rem;
	border: 1px solid var(--site-line);
	border-radius: 4px;
	background: #ffffff;
	color: #16201f;
}

.clinic-location-kicker {
	margin: 0 0 0.5rem;
	color: #5d6c68;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.clinic-location-name {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

.clinic-location-address {
	margin: 0 0 1rem;
	color: #45524f;
	font-style: normal;
	line-height: 1.65;
}

.clinic-location-days {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0 0 1rem;
	color: #45524f;
	line-height: 1.5;
}

.clinic-location-days span {
	color: #5d6c68;
	font-size: 0.82rem;
	font-weight: 700;
}

.clinic-location-days strong {
	font-size: 0.94rem;
}

.clinic-location-phone {
	display: flex;
	gap: 0.55rem;
	align-items: baseline;
	margin: 0;
}

.clinic-location-phone span {
	color: #5d6c68;
	font-size: 0.82rem;
	font-weight: 700;
}

.clinic-location-phone a {
	color: #1f5248;
	font-weight: 700;
}

.clinic-location-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.2rem;
}

.clinic-location-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.65rem 0.9rem;
	border: 1px solid #1f5248;
	border-radius: 3px;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.clinic-location-link--primary {
	background: #1f5248;
	color: #ffffff;
}

.clinic-location-link--secondary {
	background: transparent;
	color: #1f5248;
}

.clinic-location-link:hover,
.clinic-location-link:focus-visible {
	border-color: #b99658;
	background: #b99658;
	color: #101716;
}

.contact-band .clinic-location-card {
	border-color: rgba(255, 255, 255, 0.22);
	background: #f7f8f5;
}

.contact-band .clinic-location-card p {
	color: #45524f;
}

.contact-band .wp-block-column:last-child .wp-block-buttons {
	justify-content: flex-end;
}

.site-main .is-vertically-aligned-center {
	align-self: center;
}

.site-footer {
	background: #101716;
	color: #f7f8f5;
}

.site-footer a {
	color: #d9e5df;
}

.site-footer .wp-block-site-title {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.55rem;
}

.site-footer .clinic-directory {
	grid-template-columns: 1fr;
	margin-top: 1rem;
}

.site-footer .clinic-location-card {
	padding: 0 0 1.2rem;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 0;
	background: transparent;
	color: #f7f8f5;
}

.site-footer .clinic-location-kicker,
.site-footer .clinic-location-address,
.site-footer .clinic-location-days span,
.site-footer .clinic-location-phone span {
	color: #aebbb5;
}

.site-footer .clinic-location-phone a,
.site-footer .clinic-location-link--secondary {
	color: #d9e5df;
}

.site-footer .clinic-location-link {
	border-color: rgba(255, 255, 255, 0.38);
}

.site-footer .clinic-location-link--primary {
	border-color: #d5bd87;
	background: #d5bd87;
	color: #101716;
}

.footer-contact-links {
	line-height: 1.8;
}

.footer-meta {
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: #aebbb5;
	font-size: 0.78rem;
}

.content-page-shell {
	padding-top: 5rem;
	padding-bottom: 6rem;
}

.content-page-shell .wp-block-post-title {
	max-width: 14ch;
}

.single-post .article-title {
	max-width: 20ch !important;
	font-size: 3.5rem !important;
}

.single-post .wp-block-post-featured-image {
	margin-top: 2rem;
	margin-bottom: 3rem;
}

.single-post .wp-block-post-content > .wp-block-image.alignwide {
	margin-top: 3rem;
	margin-bottom: 3rem;
}

.blog-hero {
	padding-top: 5rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--site-line);
}

@media (max-width: 1100px) {
	.site-header-action {
		display: none !important;
	}
}

@media (max-width: 900px) {
	.care-paths {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-header-inner > .wp-block-group {
		gap: 0.7rem;
	}

	.site-hero {
		min-height: 650px;
		background-position: 60% center;
	}

	.site-hero::before {
		background: rgba(251, 252, 250, 0.62);
	}

	.hero-title {
		font-size: 3.25rem;
	}

	.section-shell {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}

	.section-title {
		font-size: 2.5rem;
	}

	.insights-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.site-main .wp-block-columns {
		flex-wrap: wrap;
	}

	.site-main .wp-block-column {
		flex-basis: 100% !important;
	}

	.contact-band .wp-block-column:last-child .wp-block-buttons {
		justify-content: flex-start;
	}
}

@media (max-width: 600px) {
	.care-paths {
		grid-template-columns: minmax(0, 1fr);
	}

	:root {
		--site-header-height: 68px;
	}

	.site-header-inner {
		padding-right: 1rem !important;
		padding-left: 1rem !important;
	}

	.site-brand {
		gap: 0.45rem;
	}

	.site-brand-mark {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}

	.site-header-shell .wp-block-site-title {
		font-size: 1.42rem;
	}

	.site-header-shell .wp-block-navigation__responsive-container.is-menu-open {
		display: flex !important;
		align-items: center;
		justify-content: center;
		padding: 4rem 1.25rem 2rem;
		background: rgba(251, 252, 250, 0.98);
	}

	.site-header-shell .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		width: 100%;
		max-width: 26rem;
		margin: 0 auto;
		align-items: stretch;
	}

	.site-header-shell .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: flex;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		gap: 0;
	}

	.site-header-shell .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		width: 100%;
	}

	.site-header-shell .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		display: flex;
		width: 100%;
		min-height: 56px;
		align-items: center;
		justify-content: center;
		padding: 0.9rem 1rem;
		border-bottom: 1px solid var(--site-line);
		font-size: 1.05rem;
		text-align: center;
	}

	.site-header-shell .wp-block-navigation__responsive-container-close {
		top: 0.75rem;
		right: 0.75rem;
		min-width: 44px;
		min-height: 44px;
	}

	.site-hero {
		min-height: 620px;
		background-position: 67% center;
		overflow: hidden;
	}

	.hero-copy {
		width: calc(100% - 2rem) !important;
		max-width: calc(100% - 2rem) !important;
		margin-right: 1rem !important;
		margin-left: 1rem !important;
		padding: 2.5rem 0;
	}

	.hero-title {
		max-width: 12ch;
		font-size: 2.55rem;
	}

	.hero-intro {
		width: 100%;
		max-width: 100%;
		font-size: 1.02rem;
		overflow-wrap: anywhere;
		white-space: normal;
		word-break: break-word;
	}

	html[lang="zh-CN"] .hero-title {
		font-size: 2.3rem;
		line-height: 1.16;
	}

	.single-post .article-title {
		font-size: 2.35rem !important;
	}

	.single-post .wp-block-post-content > .has-large-font-size {
		font-size: 1.12rem !important;
		line-height: 1.75;
	}

	html[lang="zh-CN"] .section-intro .has-large-font-size,
	html[lang="zh-CN"] .about-signature .has-large-font-size {
		font-size: 1.08rem !important;
		line-height: 1.8;
	}

	.hero-detail-row {
		gap: 0.45rem !important;
		align-items: flex-start !important;
		flex-direction: column;
	}

	.section-shell {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.section-shell > .alignwide,
	.section-shell > .wp-block-columns,
	.blog-hero > .alignwide,
	.site-footer > .alignwide {
		padding-right: 1rem;
		padding-left: 1rem;
	}

	.insights-grid {
		grid-template-columns: 1fr;
	}

	.section-title {
		font-size: 2.15rem;
	}

	.evaluation-panel,
	.aesthetics-mark {
		padding: 1.5rem;
	}

	.aesthetics-mark {
		min-height: 220px;
	}

	.about-signature {
		padding-left: 1rem;
	}

	.clinic-location-actions {
		flex-direction: column;
	}

	.clinic-location-link {
		width: 100%;
	}
}
