/* Home — mobile-first (390) → desktop (1024+/1440). Shared section styles used by later templates live in main.css. */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand-50); }
.hero__inner { padding-block: 20px 28px; }
.hero__title { letter-spacing: -.01em; }
html[lang^="th"] .hero__title { font-size: 29px; line-height: 1.4; letter-spacing: 0; }
.hero__lead { margin: 12px 0 0; color: var(--ink-muted); text-wrap: pretty; }
.hero__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.hero__ctas .btn { width: 100%; }
.hero__media img { width: 100%; height: auto; aspect-ratio: 1 / 1; margin-top: 24px; object-fit: cover; object-position: 50% 30%; border-radius: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: var(--white); border-radius: var(--r-pill); white-space: nowrap; font-size: 13px; font-weight: 500; line-height: 1.3; }
.chip .icon { color: var(--brand-600); }
.chip--desk { display: none; }

/* ---------- Welcome ---------- */
.welcome__grid { display: grid; gap: 0; }
.welcome__text h2 { margin-bottom: 14px; }
.welcome__text p { margin: 12px 0 0; }
.welcome__video { margin: 20px 0 0; }
.welcome__video figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; color: var(--ink-muted); font-size: 14px; text-align: center; }
.welcome__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.welcome__photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.welcome__quote { margin-top: 20px; }
.welcome__photos { order: 3; }
.welcome__quote { order: 4; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.svc-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: 18px; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.svc-card:hover { color: var(--ink); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.svc-card img { width: 100%; height: 120px; object-fit: cover; }
.svc-card__title { padding: 10px 12px 12px; font-size: 15px; font-weight: 600; line-height: 1.3; }
html[lang^="th"] .svc-card__title { font-family: var(--font-th-head); font-weight: 500; }
.svc-card__short { display: none; }

/* ---------- Why + dentist ---------- */
.why { padding-bottom: 0; }
.why__list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.why__item { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; }
.why__item h3 { font-size: 16px; }
.why__item p { margin: 4px 0 0; color: var(--ink-muted); font-size: 14px; }
.icon-tile { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-100); color: var(--brand-700); }
.why__grid { display: grid; gap: 40px; padding-bottom: var(--section-y); }
.dentist { min-width: 0; padding: 20px; background: var(--surface-dark); color: var(--white); border-radius: 24px; }
.dentist__lead { display: flex; align-items: center; gap: 16px; }
.dentist__photo { position: relative; flex: none; }
.avatar { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; border: 3px solid var(--brand-300); border-radius: var(--r-pill); object-fit: cover; object-position: top; }
.avatar--lg { width: 72px; height: 72px; }
.avatar.avatar--ph { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: var(--brand-50); color: var(--brand-300); }
.avatar.avatar--ph .avatar__person { width: 86%; height: auto; fill: currentColor; }
.dentist__photo { width: 132px; }
.avatar--lg { width: 132px; height: 132px; border-width: 4px; box-shadow: 0 0 0 6px rgba(184, 132, 195, .22); }
.dentist__eyebrow { margin: 0; color: var(--line-strong); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html[lang^="th"] .dentist__eyebrow { letter-spacing: 0; text-transform: none; }
.dentist__name { margin-top: 2px; color: var(--white); font-size: 20px; line-height: 1.3; }
.dentist__name span { display: block; font-size: 16px; font-weight: 500; }
/* Team carousel: swipe, 2 per view on phones (4 on desktop) */
.dentist__carousel { position: relative; min-width: 0; margin-top: 20px; padding-top: 18px; border-top: 1px solid #45384F; }
.dentist__team { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dentist__team::-webkit-scrollbar { display: none; }
.dentist__team figure { margin: 0; scroll-snap-align: start; }
.dentist__team .avatar { width: 96px; margin-inline: auto; }
.dentist__team figcaption { margin-top: 8px; font-size: 13px; line-height: 1.35; text-align: center; color: var(--line-strong); }
/* Arrows: plain chevrons at the left/right edge, level with the photos; gone at the ends */
.dentist__carousel.is-static .dentist__nav { display: none; }
.dentist__arrow { position: absolute; top: calc(18px + 48px); z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 48px; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; transform: translateY(-50%); transition: opacity .2s; }
.dentist__arrow--prev { left: -20px; }
.dentist__arrow--next { right: -20px; }
.dentist__arrow--prev .icon { transform: rotate(90deg); }
.dentist__arrow--next .icon { transform: rotate(-90deg); }
.dentist__arrow:hover { color: var(--brand-300); }
.dentist__arrow:disabled { opacity: 0; pointer-events: none; }
.dentist__team figcaption strong { color: var(--white); font-weight: 600; }
.dentist__role { margin: 2px 0 0; color: var(--line-strong); font-size: 14px; }
.dentist__role { padding: 0; list-style: none; }
.dentist__role li { position: relative; padding-left: 14px; }
.dentist__role li::before { content: ""; position: absolute; top: .62em; left: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-300); }
.dentist .btn { display: flex; width: 100%; margin-top: 18px; }
@media (max-width: 374px) { .dentist__photo { width: 112px; } .avatar--lg { width: 112px; height: 112px; } }

/* ---------- Scrollers (cases / promos / reviews) ---------- */
.container--bleed { padding-right: 0; }
.scroller { display: flex; gap: 12px; margin-top: 18px; padding-right: var(--gutter); padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.scroller > * { flex: none; scroll-snap-align: start; }
.case-card { width: 300px; margin: 0; overflow: hidden; background: var(--white); border-radius: 18px; }
.case-card img { width: 100%; height: 125px; object-fit: cover; }
.case-card figcaption { padding: 10px 14px; color: var(--ink-muted); font-size: 13px; }
.section-intro { margin: 10px 0 0; font-size: 15px; max-width: 640px; }
.promo-poster { width: 240px; display: block; border-radius: 18px; box-shadow: 0 6px 18px rgba(78, 28, 97, .12); overflow: hidden; }
.promo-poster img { width: 100%; height: 300px; object-fit: cover; }

/* ---------- Laser whitening ---------- */
.whiten__grid { display: grid; }
.whiten__text p { margin: 12px 0 0; }
.ba { margin: 18px 0 0; padding: 8px; background: var(--brand-50); border-radius: 18px; }
.ba__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ba__item { position: relative; }
.ba__item img { width: 100%; height: auto; aspect-ratio: 422 / 270; object-fit: cover; border-radius: 10px; }
.ba__tag { position: absolute; left: 10px; top: 10px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; }
.ba__tag--after { background: var(--brand-700); color: var(--white); }
.ba figcaption { margin-top: 10px; color: var(--ink-muted); font-size: 13px; text-align: center; }
.whiten__btn { justify-self: start; margin-top: 14px; min-height: 0; padding: 0; border: 0; background: none; color: var(--brand-700); }
.whiten__btn:hover { background: none; color: var(--brand-800); }

/* ---------- Reviews ---------- */
.reviews__head h2 { text-wrap: balance; }
.rating-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 16px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 30px rgba(110, 42, 134, .08); }
.rating-badge__num { margin: 0; font-size: 36px; font-weight: 700; line-height: 1; }
.rating-badge .small { margin: 4px 0 0; }
.stars { display: flex; gap: 2px; color: #F5A623; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.topic { padding: 12px; background: var(--brand-50); border-radius: 18px; }
.topic__num { margin: 0; color: var(--brand-700); font-size: 22px; font-weight: 700; line-height: 1.1; }
.topic__label { margin: 4px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.35; }
.scroller--reviews { margin-top: 16px; }
.review-card { width: 280px; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; }
.review-card__who { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.initial { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-pill); background: var(--brand-100); color: var(--brand-800); font-weight: 600; }
.review-card__name { margin: 0; font-size: 15px; font-weight: 600; }
img.initial { object-fit: cover; }
.review-card__name a { color: inherit; text-decoration: none; }
.review-card__name a:hover { text-decoration: underline; }
.review-card__when { margin: 0; color: var(--ink-muted); font-size: 12px; }
.review-card__text { margin: 0; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-card__link { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.review-more { flex-direction: column; justify-content: center; gap: 10px; padding: 24px; background: var(--brand-700); border-radius: 22px; color: var(--white); text-decoration: none; }
.review-more:hover { background: var(--brand-800); color: var(--white); }
.review-more__num { font-size: 40px; font-weight: 700; line-height: 1; }
.review-more__txt { color: #F1E8F4; font-size: 17px; }
.review-more__btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; }
.notes__title { margin-top: 28px; font-size: 16px; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.notes img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.center-cta { margin-top: 20px; text-align: center; }
.center-cta .btn { width: 100%; }
.center-cta p { margin: 10px 0 0; }

/* ---------- ≥1024px ---------- */
@media (min-width: 1024px) {
	/* Hero: full-bleed photo with a lavender fade on the left */
	.hero__inner { display: flex; flex-direction: column; justify-content: center; min-height: 620px; padding-block: 72px; }
	.hero__copy, .chips { position: relative; z-index: 2; max-width: 560px; }
	.hero__title { line-height: 1.12; letter-spacing: -.02em; }
	html[lang^="th"] .hero__title { font-size: 48px; line-height: 1.35; }
	.hero__lead { margin-top: 20px; font-size: 19px; color: #4A4054; }
	.hero__ctas { flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
	.hero__ctas .btn { width: auto; }
	/* Whole photo height shown (no top/bottom crop), anchored right; its left edge fades into the hero tint. */
	.hero__media { position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; height: 100%; aspect-ratio: 1920 / 1081; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
	/* Narrow desktops: the photo is wider than the screen — push it right so the presenter clears the headline. */
	@media (max-width: 1279px) { .hero__media { right: calc((100vw - 1280px) * .55); } }
	/* Wide screens: keep the photo near the content column (not glued to the screen edge); both edges fade. */
	@media (min-width: 1500px) { .hero__media { right: calc((100vw - 1500px) / 2 + 100px); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 86%, transparent 100%); } }
	.hero__media img { width: 100%; height: 100%; margin: 0; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; border-radius: 0; }
	.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(248,243,250,.97) 0%, rgba(248,243,250,.92) 32%, rgba(248,243,250,.55) 48%, rgba(248,243,250,0) 62%); }
	.chips { gap: 10px 22px; margin-top: 32px; }
	.chip { padding: 0; background: none; font-size: 15px; }
	.chip--mob { display: none; }
	.chip--desk { display: flex; }

	/* Welcome: video | text, then two photos */
	.welcome__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "video text" "video quote" "photos photos"; column-gap: 56px; padding-top: 0; }
	.welcome { padding-top: 88px; }
	.welcome__text { grid-area: text; align-self: end; }
	.welcome__text p { margin-top: 18px; }
	.welcome__text p + p { margin-top: 14px; }
	.welcome__video { grid-area: video; align-self: center; margin: 0; }
	.welcome__video figcaption { justify-content: flex-start; margin-top: 14px; font-size: 15px; text-align: left; }
	.welcome__quote { grid-area: quote; align-self: start; margin-top: 26px; }
	.welcome__photos { grid-area: photos; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
	.welcome__photos img { border-radius: 22px; }
	.welcome__photos, .welcome__quote { order: 0; }

	.svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
	.svc-card { border-radius: 22px; }
	.svc-card img { height: 190px; }
	.svc-card__title { padding: 16px 18px 4px; font-size: 18px; }
	.svc-card__short { display: block; padding: 0 18px 18px; color: var(--ink-muted); font-size: 14px; }

	.why { padding-bottom: var(--section-y); }
	.why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding-bottom: 0; }
	.why__list { gap: 14px; margin-top: 28px; }
	.why__item { gap: 16px; padding: 20px; border-radius: 20px; }
	.why__item h3 { font-size: 18px; }
	.why__item p { font-size: 15px; }
	.icon-tile { width: 48px; height: 48px; }
	.dentist { padding: 32px; border-radius: 28px; }
	.dentist__lead { gap: 28px; }
	.dentist__photo { width: 168px; }
	.avatar--lg { width: 168px; height: 168px; border-width: 5px; box-shadow: 0 0 0 8px rgba(184, 132, 195, .22); }
	.dentist__eyebrow { display: block; margin: 0; color: var(--line-strong); font-size: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
	html[lang^="th"] .dentist__eyebrow { letter-spacing: 0; text-transform: none; }
	.dentist__name { margin-top: 6px; font-size: 24px; line-height: 1.25; }
	.dentist__name span { display: block; margin-top: 2px; font-size: 19px; font-weight: 500; }
	.dentist__role { font-size: 15px; }
	.dentist__carousel { margin-top: 32px; padding-top: 26px; }
	.dentist__arrow { top: calc(26px + 55px); }
	.dentist__arrow--prev { left: -32px; }
	.dentist__arrow--next { right: -32px; }
	.dentist__team { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; }
	.dentist__team .avatar { width: 100%; }
	.dentist__team figcaption { margin-top: 8px; font-size: 13px; line-height: 1.35; text-align: center; color: var(--line-strong); }
	.dentist__team figcaption strong { color: var(--white); font-weight: 600; }
	.dentist .btn { display: inline-flex; width: auto; margin-top: 22px; }

	.container--bleed { padding-right: var(--gutter); }
	.scroller { overflow: visible; padding: 0; margin-top: 32px; scroll-snap-type: none; }
	.scroller--cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
	.case-card { width: auto; border-radius: 22px; }
	.case-card img { height: 160px; }
	.case-card figcaption { padding: 14px 18px; font-size: 14px; }
	.section-intro { margin-top: 12px; font-size: inherit; }

	.whiten__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "text ba" "btn ba"; column-gap: 56px; align-items: center; }
	.whiten__text { grid-area: text; align-self: end; }
	.whiten__text p { margin-top: 16px; }
	.ba { grid-area: ba; margin: 0; padding: 12px; border-radius: 24px; }
	.ba__pair { gap: 12px; }
	.ba__item img { border-radius: 16px; }
	.whiten__btn { grid-area: btn; align-self: start; margin-top: 24px; min-height: 50px; padding: 0 24px; border: 1.5px solid var(--line-strong); color: var(--ink); }
	.whiten__btn:hover { border-color: var(--brand-700); color: var(--brand-800); }

	.scroller--promos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.promo-poster { width: auto; border-radius: 22px; box-shadow: 0 10px 28px rgba(78, 28, 97, .12); }
	.promo-poster img { height: auto; aspect-ratio: 4 / 5; }

	.reviews__head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; align-items: end; }
	.reviews__intro { margin: 14px 0 0; }
	.rating-badge { margin-top: 0; padding: 22px; }
	.rating-badge__num { font-size: 44px; }
	.topics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
	.topic { padding: 16px 18px; }
	.topic__num { font-size: 30px; }
	.topic__label { font-size: 14px; }
	.scroller--reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
	.review-card { width: auto; }
	.review-card__text { -webkit-line-clamp: 5; }
	.notes__title { margin-top: 56px; font-size: 22px; }
	.notes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
	.notes img { border-radius: 18px; }
	.center-cta { margin-top: 36px; }
	.center-cta .btn { width: auto; min-height: 54px; padding: 0 30px; }
	.center-cta p { margin-top: 16px; }

}
