/* Active Tahoe — content pages (About, Services, Testimonials, Contact, Book).
   Owned by the "pages" worker. Everything here is scoped to .at-* classes
   that only appear in the post_content of pages 25 / 26 / 27 / 28 / book. */

:root {
	--at-ink: #1c1c1c;
	--at-ink-soft: #3f3f46;
	--at-green: #005A39;
	--at-green-hover: #047857;
	--at-amber: #92610C; /* 5.3:1 on white */
	--at-card: #ffffff;
	--at-line: rgba(0, 0, 0, .12);
	--at-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 28px rgba(0, 0, 0, .06);
	--at-radius: 14px;
}

/* ---------- section rhythm: every section shares one left edge ---------- */

.at-sec {
	margin-block: clamp(2.25rem, 5.5vw, 4rem);
}

.at-sec:first-child {
	margin-block-start: clamp(1.5rem, 4vw, 2.75rem);
}

.at-sec:last-child {
	margin-block-end: clamp(2.5rem, 6vw, 4.5rem);
}

/* ---------- typography ---------- */

.at-h1 {
	font-size: clamp(1.95rem, 5.4vw, 3.15rem);
	line-height: 1.12;
	font-weight: 700;
	text-wrap: balance;
	margin: 0 0 .5em;
}

.at-h2 {
	font-size: clamp(1.45rem, 3.2vw, 2.1rem);
	line-height: 1.2;
	font-weight: 700;
	text-wrap: balance;
	margin: 0 0 .6em;
}

.at-h3 {
	font-size: clamp(1.1rem, 1.9vw, 1.35rem);
	line-height: 1.3;
	font-weight: 600;
	margin: 0 0 .45em;
}

.at-lede {
	font-size: clamp(1.05rem, 1.55vw, 1.2rem);
	line-height: 1.55;
	max-width: 62ch;
}

.at-sec p {
	max-width: 68ch;
}

.at-note {
	font-style: italic;
	margin-block-start: 1.5rem;
}

/* ---------- buttons ---------- */

.at-btns {
	margin-block-start: 1.5rem;
	gap: .75rem;
}

.at-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: .7rem 1.4rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.25;
	text-decoration: none;
	border: 2px solid var(--at-green);
	transition: background-color .15s ease, color .15s ease;
}

.at-btn--primary .wp-block-button__link {
	background-color: var(--at-green);
	color: #fff;
}

.at-btn--primary .wp-block-button__link:hover,
.at-btn--primary .wp-block-button__link:focus-visible {
	background-color: var(--at-green-hover);
	border-color: var(--at-green-hover);
	color: #fff;
}

.at-btn--ghost .wp-block-button__link {
	background-color: transparent;
	color: var(--at-green);
}

.at-btn--ghost .wp-block-button__link:hover,
.at-btn--ghost .wp-block-button__link:focus-visible {
	background-color: var(--at-green);
	color: #fff;
}

/* ---------- photos (never stretch) ---------- */

.at-photo {
	margin: 0;
}

.at-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--at-radius);
}

.at-photo--tall img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 28%;
}

.at-hero .at-photo img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center 35%;
}

@media (max-width: 781px) {
	.at-hero .at-photo img,
	.at-photo--tall img {
		aspect-ratio: 4 / 3;
	}
}

.at-hero__cols,
.at-split {
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

/* ---------- cards ---------- */

.at-card {
	background: var(--at-card);
	border: 1px solid var(--at-line);
	border-radius: var(--at-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--at-shadow);
	height: 100%;
	color: var(--at-ink);
}

.at-card p,
.at-card li {
	color: var(--at-ink);
	max-width: none;
}

.at-card__title {
	margin: 0 0 .2em;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.at-card__sub {
	color: var(--at-ink-soft);
	margin: 0 0 1rem;
}

.at-card__list {
	margin: 0 0 1.25rem;
	padding-inline-start: 1.15rem;
}

.at-card__list li {
	margin-block: .4rem;
}

.at-price {
	font-size: clamp(2rem, 4.2vw, 2.7rem);
	font-weight: 800;
	line-height: 1;
	color: var(--at-green);
	margin: .1em 0 .45em;
}

.at-price__unit {
	font-size: .38em;
	font-weight: 600;
	color: var(--at-ink-soft);
}

.at-cards {
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.at-cards .wp-block-column {
	display: flex;
}

.at-cards .at-card {
	width: 100%;
}

.at-card--featured {
	border-color: var(--at-green);
	border-width: 2px;
}

/* step cards on About */

.at-steps__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(.85rem, 2vw, 1.25rem);
	margin-block-start: 1.5rem;
}

.at-steps__cards > * {
	margin-block: 0 !important;
	margin-inline: 0 !important;
	max-width: none;
	justify-self: stretch;
}

.at-steps__list {
	max-width: 68ch;
	padding-inline-start: 1.25rem;
}

.at-steps__list li {
	margin-block: .6rem;
}

/* ---------- quote ---------- */

.at-quote {
	background: transparent;
	border: 0;
	border-block-start: 3px solid var(--at-green);
	border-radius: 0;
	padding: clamp(1rem, 2.2vw, 1.5rem) 0 0;
	padding-inline-start: 0;
	margin: 0;
	box-shadow: none;
}

.at-quote p {
	font-size: clamp(1.15rem, 2.1vw, 1.45rem);
	line-height: 1.45;
	font-style: italic;
	color: var(--at-ink);
	margin: 0;
}

.at-quote cite {
	display: block;
	margin-block-start: .75rem;
	font-style: normal;
	font-weight: 600;
	color: var(--at-ink-soft);
}

/* ---------- areas of focus ---------- */

.at-focus__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	margin-block-start: 1.75rem;
}

.at-focus__grid > * {
	margin-block: 0 !important;
	margin-inline: 0 !important;
	max-width: none;
	justify-self: stretch;
}

.at-focus__item p {
	margin: 0;
	max-width: 60ch;
}

@media (min-width: 782px) {
	.at-focus__grid,
	.at-steps__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- testimonials ---------- */

.at-ratingline {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	background: var(--at-card);
	border: 1px solid var(--at-line);
	border-radius: 999px;
	padding: .55rem 1.1rem;
	margin: 1.25rem 0 0;
	color: var(--at-ink);
	font-weight: 600;
	max-width: none;
}

.at-stars {
	color: var(--at-amber);
	letter-spacing: .1em;
	font-size: 1.15rem;
	line-height: 1;
}

p.at-stars {
	margin: 0 0 .75rem;
}

/* keep the amber/green accents from being overridden by the card text colour */
.at-review p.at-stars,
.at-ratingline .at-stars,
.at-card p.at-stars {
	color: var(--at-amber);
}

.at-card p.at-price {
	color: var(--at-green);
}

.at-card p.at-card__sub {
	color: var(--at-ink-soft);
}

.at-reviews__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	margin-block-start: 1.5rem;
	align-items: start;
}

.at-reviews__grid > * {
	margin-block: 0 !important;
	margin-inline: 0 !important;
	max-width: none;
	justify-self: stretch;
}

.at-review {
	background: var(--at-card);
	border: 1px solid var(--at-line);
	border-radius: var(--at-radius);
	padding: clamp(1.15rem, 2.8vw, 1.75rem);
	box-shadow: var(--at-shadow);
	color: var(--at-ink);
}

.at-review__quote {
	font-size: clamp(1.05rem, 1.55vw, 1.2rem);
	line-height: 1.45;
	font-weight: 600;
	color: var(--at-ink);
	margin: 0;
}

.at-review__who {
	margin: .75rem 0 .25rem;
	font-weight: 600;
	color: var(--at-ink-soft);
	max-width: none;
}

.at-review p {
	color: var(--at-ink);
}

@media (min-width: 782px) {
	.at-reviews__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- details / accordions ---------- */

.at-details summary {
	cursor: pointer;
	display: flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	color: var(--at-green);
	list-style: none;
}

.at-details summary::-webkit-details-marker {
	display: none;
}

.at-details summary::before {
	content: "＋";
	margin-inline-end: .5rem;
	font-weight: 700;
	line-height: 1;
}

.at-details[open] summary::before {
	content: "－";
}

.at-details > *:not(summary) {
	color: var(--at-ink);
}

.at-details--faq {
	background: var(--at-card);
	border: 1px solid var(--at-line);
	border-radius: 12px;
	padding: .15rem 1.1rem 0;
	margin-block: .6rem;
}

.at-details--faq[open] {
	padding-bottom: .5rem;
}

.at-faq .at-details--faq p {
	margin-block: .25rem .75rem;
	max-width: 68ch;
}

/* ---------- CTA band ---------- */

.at-cta {
	background: var(--at-card);
	border: 1px solid var(--at-line);
	border-radius: var(--at-radius);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	box-shadow: var(--at-shadow);
	color: var(--at-ink);
}

.at-cta p {
	color: var(--at-ink);
}

.at-cta .at-btns {
	margin-block-start: 1.25rem;
}

/* ---------- booking page ---------- */

.at-book__frame {
	background: var(--at-card);
	border: 1px solid var(--at-line);
	border-radius: var(--at-radius);
	box-shadow: var(--at-shadow);
	padding: 6px;
	overflow: hidden;
}

.at-book__frame iframe {
	display: block;
	width: 100%;
	min-height: 900px;
	border: 0;
	border-radius: calc(var(--at-radius) - 6px);
}

@media (max-width: 781px) {
	.at-book__frame iframe {
		min-height: 780px;
	}
}

.at-book__fallback {
	margin-block-start: 1.25rem;
	font-weight: 600;
}

.at-book__intake {
	margin-block-start: .35rem;
	font-size: .95rem;
	color: var(--at-ink-soft);
}

/* ---------- contact form (WPForms, scoped to our wrapper) ---------- */

.at-form {
	background: var(--at-card);
	border: 1px solid var(--at-line);
	border-radius: var(--at-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--at-shadow);
	color: var(--at-ink);
	max-width: 640px;
}

.at-form .wpforms-field-label,
.at-form label {
	color: var(--at-ink);
	font-weight: 600;
}

.at-form input[type="text"],
.at-form input[type="email"],
.at-form input[type="tel"],
.at-form textarea {
	width: 100%;
	min-height: 48px;
	padding: .65rem .8rem;
	border: 1px solid #9a9a9a;
	border-radius: 8px;
	background: #fff;
	color: var(--at-ink);
	font-size: 1rem;
}

.at-form textarea {
	min-height: 120px;
}

.at-form input:focus-visible,
.at-form textarea:focus-visible {
	outline: 2px solid var(--at-green);
	outline-offset: 1px;
}

.at-form .wpforms-submit,
.at-form button[type="submit"] {
	min-height: 48px;
	padding: .7rem 1.6rem;
	border-radius: 999px;
	border: 2px solid var(--at-green);
	background: var(--at-green);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
}

.at-form .wpforms-submit:hover,
.at-form button[type="submit"]:hover {
	background: var(--at-green-hover);
	border-color: var(--at-green-hover);
}

.at-form .wpforms-required-label {
	color: #b91c1c;
}

.at-form .wpforms-confirmation-container-full,
.at-form .wpforms-confirmation-container {
	background: #ecfdf5;
	border: 1px solid var(--at-green);
	border-radius: 10px;
	padding: 1rem;
	color: var(--at-ink);
}
