/* Service-page pattern, piloted on Pools. Homepage tokens and gallery behaviour stay shared. */
.tn-service-page { --tn-service-space: clamp(56px, 6vw, 88px); }
.tn-service-page .tn-page-hero { min-height: 450px; }
.tn-service-page .tn-page-hero__title { max-width: 11em; }
.tn-service-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tn-service-nav a { display: flex; align-items: center; gap: 18px; min-height: 80px; padding: 18px 24px; border-bottom: 1px solid var(--tn-line); text-decoration: none; font-size: 1rem; font-weight: 500; color: var(--tn-green-800); transition: background .25s ease, border-color .25s ease; }
.tn-service-nav a:first-child { padding-left: 0; }
.tn-service-nav a:last-child { padding-right: 0; }
.tn-service-nav a > span { color: var(--tn-green-800); font-size: .875rem; font-variant-numeric: tabular-nums; }
.tn-service-nav a .tn-icon { margin-left: auto; font-size: 20px; }
.tn-service-nav a:hover { border-bottom-color: var(--tn-brand-green); background: var(--tn-cream-200); }
.tn-service-body { position: relative; isolation: isolate; overflow: clip; }
.tn-service-body::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 auto 0 -85px; width: 180px; background: url('../images/botanical-vine.svg') left top / 180px auto repeat-y; opacity: .22; }
.tn-service-copy { font-size: var(--tn-copy, 1.125rem); line-height: 1.75; }
.tn-service-copy > * + * { margin-top: 1em; }
.tn-service-copy a { color: var(--tn-green-800); text-underline-offset: 4px; transition: color .2s var(--tn-ease), text-decoration-color .2s var(--tn-ease); }
.tn-service-copy a:hover { color: var(--tn-brand-green); text-decoration-color: var(--tn-brand-gold); }
.tn-service-copy strong { color: var(--tn-ink); font-weight: 500; }
.tn-service-copy h3 { font-family: var(--tn-serif); font-size: 1.8rem; line-height: 1.2; color: var(--tn-ink); }
.tn-service-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px clamp(40px, 6vw, 88px); padding-block: var(--tn-service-space); }
.tn-service-intro .tn-heading { max-width: 10em; }
.tn-service-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 32px; }
.tn-service-section-head .tn-heading { max-width: 14em; }
.tn-service-section-head .tn-textlink { flex: none; min-height: 44px; }
.tn-service-gallery, .tn-service-feature, .tn-service-planning, .tn-service-living, .tn-service-extra { padding-bottom: var(--tn-service-space); }
.tn-service-gallery, .tn-service-feature, .tn-service-planning { scroll-margin-top: 24px; }
.tn-service-gallery__panel { padding: clamp(16px, 2.2vw, 32px); border: 1px solid var(--tn-line); border-top: 3px solid var(--tn-brand-green); background: var(--tn-cream); }
.tn-service-gallery .tn-carousel { --tn-carousel-gap: 24px; --tn-carousel-ratio: 16 / 9; --tn-chat-controls-width: 304px; color: var(--tn-green-800); }
/* One large photograph at every breakpoint; the plugin calculates paging from actual slide width. */
.tn-service-gallery .tn-carousel__track { --tn-visible: 1; }
.tn-service-gallery .tn-carousel__figure { position: relative; }
.tn-service-gallery .tn-carousel__figure img { max-height: 660px; }
.tn-service-gallery .tn-carousel__caption { padding-top: 12px; font-size: 1rem; }
.tn-service-gallery .tn-carousel__controls { display: grid; grid-template-columns: 52px 1fr 52px; gap: 16px; margin-top: 20px; }
.tn-service-gallery .tn-carousel__controls button { width: 52px; height: 48px; border: 1px solid var(--tn-line); border-radius: 0; background: var(--tn-cream); color: var(--tn-green-800); font-size: 2rem; transition: background .25s ease, color .25s ease; }
.tn-service-gallery .tn-carousel__controls button:hover:not([disabled]) { background: var(--tn-green-800); border-color: var(--tn-green-800); color: white; }
.tn-service-gallery .tn-carousel__status { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.tn-service-gallery .tn-carousel__status::before, .tn-service-gallery .tn-carousel__status::after { content: ""; width: clamp(16px, 7vw, 100px); height: 1px; background: var(--tn-line); }
/* Applied only while the closed chat greeting would cover the normal arrows. */
.tn-service-gallery .tn-carousel--chat-clear .tn-carousel__controls { max-width: var(--tn-chat-controls-width); margin-inline: auto; }
.tn-service-gallery .tn-carousel--chat-clear .tn-carousel__status { gap: 12px; white-space: nowrap; }
.tn-service-gallery .tn-carousel--chat-clear .tn-carousel__status::before,
.tn-service-gallery .tn-carousel--chat-clear .tn-carousel__status::after { width: 24px; flex: 0 0 24px; }
.tn-service-gallery__fallback { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0; margin: 0; }
.tn-service-gallery__fallback li { scroll-snap-align: start; }
.tn-service-gallery__fallback img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tn-service-gallery__hint { margin-bottom: 16px; }
.tn-service-feature__frame { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); border: 1px solid var(--tn-line); background: var(--tn-cream); }
.tn-service-feature__frame--text { grid-template-columns: 1fr; }
.tn-service-feature__media { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.tn-service-feature__media .tn-picture { flex: 1; min-height: 360px; position: relative; }
.tn-service-feature__media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: var(--tn-pos, 50% 50%); }
.tn-service-feature__media figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 18px 24px; border-top: 3px solid var(--tn-brand-gold); font-size: .9375rem; color: var(--tn-green-800); }
.tn-service-feature__media figcaption span { font-weight: 500; }
.tn-service-feature__content { padding: clamp(28px, 3.5vw, 48px); }
.tn-service-options { margin-top: 28px; }
.tn-service-options ul { list-style: none; padding: 0; }
.tn-service-options li { position: relative; padding: 15px 0 15px 28px; border-bottom: 1px solid var(--tn-line); line-height: 1.5; }
.tn-service-options li:first-child { padding-top: 0; }
.tn-service-options li:last-child { border-bottom: 0; padding-bottom: 0; }
.tn-service-options li::before { content: ""; position: absolute; left: 0; top: 1.4em; width: 10px; height: 6px; border-left: 1.5px solid var(--tn-brand-green); border-bottom: 1.5px solid var(--tn-brand-green); transform: rotate(-45deg); }
.tn-service-options li:first-child::before { top: .6em; }
.tn-service-body .tn-service-feature { padding-bottom: clamp(28px, 3vw, 44px); }
.tn-service-body .tn-section-divider { margin-bottom: clamp(28px, 3vw, 44px); }
.tn-service-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tn-service-stage { padding-top: 24px; border-top: 2px solid var(--tn-brand-green); }
.tn-service-stage__mark { display: flex; justify-content: space-between; align-items: center; min-height: var(--tn-content-icon-size); margin-bottom: 24px; color: var(--tn-green-800); }
.tn-service-stage__mark > span { font-family: var(--tn-serif); font-size: 2.5rem; line-height: 1; color: var(--tn-green-800); }
.tn-service-stage__mark .tn-icon { font-size: var(--tn-content-icon-size); }
.tn-service-stage__mark .tn-icon--build { font-size: var(--tn-content-brand-icon-size); }
.tn-service-stage h3 { margin-bottom: 18px; font-family: var(--tn-serif); font-size: clamp(1.8rem, 2.3vw, 2.15rem); font-weight: 600; line-height: 1.15; color: var(--tn-ink); }
.tn-service-living__frame { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border: 1px solid var(--tn-line); background: var(--tn-cream); }
.tn-service-safety, .tn-service-care { padding: clamp(28px, 3.5vw, 48px); }
.tn-service-safety { position: relative; background: var(--tn-green-800); border-bottom: 3px solid var(--tn-brand-gold); color: white; }
.tn-service-safety .tn-heading { color: white; }
.tn-service-safety .tn-service-copy { color: rgba(255, 255, 255, .92); }
.tn-service-safety a { color: var(--tn-brand-gold); }
.tn-service-living .tn-service-copy { margin-top: 24px; }
.tn-service-page .tn-promise { border-block: 1px solid var(--tn-line); }
.tn-service-page .tn-promise__line { font-size: var(--tn-copy, 1.125rem); }
.tn-service-page .tn-projects { background: transparent; }
.tn-service-details { padding-bottom: var(--tn-service-space); scroll-margin-top: 24px; }
.tn-service-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tn-service-topics--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tn-service-topic { min-width: 0; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--tn-line); border-top: 2px solid var(--tn-brand-green); background: var(--tn-cream); }
.tn-service-topic h3 { margin-bottom: 22px; font-family: var(--tn-serif); font-size: clamp(1.8rem, 2.5vw, 2.25rem); font-weight: 500; line-height: 1.12; color: var(--tn-ink); text-wrap: balance; }
.tn-service-topic--accent { background: var(--tn-green-800); color: white; border-color: var(--tn-green-800); border-bottom: 3px solid var(--tn-brand-gold); }
.tn-service-topic--accent h3 { color: white; }
.tn-service-topic--accent a { color: var(--tn-brand-gold); }
.tn-service-topics--1 { grid-template-columns: 1fr; }
.tn-service-topics--1 .tn-service-topic { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px 64px; align-items: start; }
.tn-service-topics--1 h3 { max-width: 12em; margin: 0; font-size: clamp(2rem, 3vw, 2.7rem); }
@media (max-width: 1079px) {
	.tn-service-body::before { left: -120px; }
	.tn-service-nav a { padding-inline: 18px; gap: 12px; }
	.tn-service-stages { gap: 24px; }
}
@media (max-width: 900px) {
	.tn-service-topics--3 { grid-template-columns: 1fr; }
	.tn-service-intro, .tn-service-feature__frame, .tn-service-living__frame { grid-template-columns: 1fr; }
	.tn-service-intro .tn-heading { max-width: 16em; }
	.tn-service-feature__media .tn-picture { flex: auto; aspect-ratio: 16 / 10; min-height: 0; }
	.tn-service-options ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
	.tn-service-options li:first-child { padding-top: 15px; }
	.tn-service-options li:first-child::before { top: 1.4em; }
	.tn-service-options li:last-child { padding-bottom: 15px; border-bottom: 1px solid var(--tn-line); }
	.tn-service-stages { grid-template-columns: 1fr; gap: 32px; }
	.tn-service-stage { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); column-gap: 40px; }
	.tn-service-stage__mark { grid-column: 1; }
	.tn-service-stage h3 { grid-column: 1; }
	.tn-service-stage .tn-service-copy { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 640px) {
	.tn-service-topics, .tn-service-topics--1 .tn-service-topic { grid-template-columns: 1fr; }
	.tn-service-page .tn-page-hero { min-height: 420px; }
	.tn-service-page .tn-page-hero__title { max-width: 9em; }
	.tn-service-nav { grid-template-columns: 1fr; padding-block: 10px; }
	.tn-service-nav a, .tn-service-nav a:first-child, .tn-service-nav a:last-child { min-height: 52px; padding: 12px 0; }
	.tn-service-body::before { left: -154px; }
	.tn-service-section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
	.tn-service-section-head .tn-textlink { min-height: 44px; }
	.tn-service-gallery .tn-carousel { --tn-carousel-ratio: 4 / 3; }
	.tn-service-gallery__panel { margin-inline: calc(-1 * var(--tn-gutter)); padding-inline: var(--tn-gutter); border-inline: 0; }
	.tn-service-gallery .tn-carousel__controls { grid-template-columns: 48px 1fr 48px; }
	.tn-service-gallery .tn-carousel__controls button { width: 48px; }
	.tn-service-options ul { grid-template-columns: 1fr; }
	.tn-service-feature__media figcaption { padding: 16px 20px; }
	.tn-service-stage { display: block; }
	.tn-service-stage__mark { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.tn-service-nav a, .tn-service-gallery .tn-carousel__controls button { transition: none; }
}


/* FAQ Accordion ---------------------------------------------------------- */

.tn-faq { padding-bottom: var(--tn-service-space); scroll-margin-top: 32px; }
.tn-faq__header { margin-bottom: clamp(24px, 3vw, 40px); }
.tn-faq__header .tn-heading { max-width: 18em; }
.tn-faq__list { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.tn-faq__item {
	border: 1px solid var(--tn-line);
	background: var(--tn-cream);
	transition: border-color .25s var(--tn-ease), box-shadow .25s var(--tn-ease);
}
.tn-faq__item[open] {
	border-color: var(--tn-brand-green);
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}
.tn-faq__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px clamp(16px, 2.5vw, 28px);
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.tn-faq__summary::-webkit-details-marker { display: none; }
.tn-faq__summary:focus-visible {
	outline: 2px solid var(--tn-green-800);
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #fff;
}
.tn-faq__question {
	font-family: var(--tn-serif);
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	line-height: 1.35;
	color: var(--tn-ink);
	font-weight: 500;
}
.tn-faq__item[open] .tn-faq__question {
	color: var(--tn-brand-green);
}
.tn-faq__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex: none;
	border-radius: 50%;
	border: 1px solid var(--tn-line);
	background: var(--tn-cream-200);
	color: var(--tn-ink);
	transition: background-color .25s var(--tn-ease), border-color .25s var(--tn-ease), color .25s var(--tn-ease);
}
.tn-faq__item[open] .tn-faq__toggle {
	background: var(--tn-brand-gold);
	border-color: var(--tn-brand-gold);
	color: var(--tn-ink);
}
.tn-faq__toggle-icon {
	position: relative;
	width: 12px;
	height: 12px;
}
.tn-faq__toggle-icon::before,
.tn-faq__toggle-icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	transition: transform .25s var(--tn-ease), opacity .2s var(--tn-ease);
}
.tn-faq__toggle-icon::before {
	top: 5px;
	left: 0;
	width: 12px;
	height: 2px;
}
.tn-faq__toggle-icon::after {
	top: 0;
	left: 5px;
	width: 2px;
	height: 12px;
}
.tn-faq__item[open] .tn-faq__toggle-icon::after {
	transform: rotate(90deg);
	opacity: 0;
}
.tn-faq__content {
	padding: 0 clamp(16px, 2.5vw, 28px) 24px;
	border-top: 1px solid var(--tn-line);
	padding-top: 18px;
}
.tn-faq__content p {
	font-size: var(--tn-copy, 1.125rem);
	line-height: 1.75;
	color: var(--tn-ink);
	margin: 0;
}
