/**
 * Home sections, part B: testimonials, booking band (+ consultation card), insights (WP-03).
 * Reproduces the approved prototype 1:1 with the token aliases from style.css (TECH-002).
 * The form fields themselves are styled by the ats-consultation plugin.
 *
 * @package American_Tax_Services
 */

/* ---------- Testimonials ---------- */
.testimonials {
	background: #fff;
}

.testi-wrap {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 60px;
	align-items: center;
}

.testi-copy h2 {
	margin: 0;
}

.testi-copy p:not(.eyebrow) {
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 0.93rem;
}

.testi-slider {
	display: flex;
	align-items: center;
	gap: 16px;
}

.testi-nav {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: var(--navy-800);
	cursor: pointer;
	box-shadow: var(--shadow-card);
	transition: background-color 0.2s, color 0.2s;
}

.testi-nav:hover {
	background: var(--blue-600);
	color: #fff;
}

/* Without JavaScript the first review stays readable and the buttons are hidden (E-07). */
html.no-js .testi-nav {
	display: none;
}

.testi-card {
	flex: 1;
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin: 0;
	padding: 36px;
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow-lift);
	transition: opacity 0.25s;
}

.testi-card.fade {
	opacity: 0;
}

/* Client initials: no client photos are published. */
.testi-avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 80px;
	height: 80px;
	border: 4px solid #e6f0ff;
	border-radius: 50%;
	background: var(--navy-800);
	color: #fff;
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.testi-quote {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	color: var(--ink);
	font-size: 1.02rem;
	line-height: 1.65;
}

.testi-card figcaption strong {
	display: block;
	color: var(--navy-800);
	font-family: var(--font-head);
	font-size: 0.95rem;
}

.testi-card figcaption small {
	color: var(--muted);
	font-size: 0.8rem;
}

.stars {
	display: flex;
	gap: 3px;
	margin-top: 10px;
	color: #f5b301;
}

.stars .ats-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	stroke: none;
}


/* ---------- Booking ---------- */
.booking {
	position: relative;
	padding: 110px 0;
	color: #fff;
	overflow: hidden;
	/* clip (not hidden) keeps the band from becoming a scroll container, so the sticky copy column sticks to the viewport. */
	overflow: clip;
	background: var(--navy-900);
}

.booking::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 29, 51, 0.96) 0%, rgba(7, 29, 51, 0.88) 40%, rgba(12, 45, 78, 0.6) 70%, rgba(12, 45, 78, 0.45) 100%),
		url("../images/photos/office-building.webp") center 40% / cover no-repeat;
}

.booking-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 560px;
	column-gap: 64px;
	align-items: start;
}

/* The copy column sticks below the header while the (taller) form card scrolls past, and is
 * released at the end of the band. */
.booking-copy {
	position: sticky;
	top: calc(var(--header-h) + var(--admin-bar-h) + 24px);
}

.booking-copy {
	max-width: 520px;
}

.booking-copy h1,
.booking-copy h2 {
	margin: 0;
	color: #fff;
}

/* Landing page (/book-a-consultation/): the band is the hero and its title is the page H1. */
.booking-copy h1 {
	font-size: clamp(2.1rem, 3.6vw, 3rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.booking--landing {
	padding-top: 80px;
}

/* ---------- Landing: FAQ with photo (left) ---------- */
.ats-landing__faq.ats-landing__faq {
	padding-bottom: 96px;
	background: var(--bg-soft);
}

.ats-landing__faq-grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 64px;
	align-items: start;
}

.ats-landing__faq-grid.ats-landing__faq-grid > * {
	margin: 0;
}

.ats-landing__faq-media {
	position: sticky;
	top: calc(var(--header-h) + var(--admin-bar-h) + 24px);
	overflow: hidden;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
}

.ats-landing__faq-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 45% center;
}

/* ---------- Landing: How it works ---------- */
.landing-steps {
	background: var(--bg-soft);
}

.landing-steps__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.landing-step {
	position: relative;
	padding: 32px 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--white);
	box-shadow: var(--shadow-card);
}

.landing-step__num {
	position: absolute;
	top: 22px;
	right: 26px;
	color: var(--wp--preset--color--surface-2, #e8eef8);
	font-family: var(--font-head);
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
}

.landing-step__ico {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 20px;
	border-radius: 14px;
	background: var(--navy-800);
	color: #fff;
}

.landing-step h3 {
	margin: 0 0 8px;
	color: var(--navy-800);
	font-size: 1.1rem;
	font-weight: 600;
}

.landing-step p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

.booking-copy > p:not(.eyebrow) {
	max-width: 440px;
	margin: 16px 0 28px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.98rem;
}

.booking-perks {
	display: grid;
	gap: 14px;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
}

.booking-perks li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	font-size: 0.95rem;
}

.booking-perks .ats-icon {
	flex: none;
	width: 24px;
	height: 24px;
	padding: 5px;
	border-radius: 50%;
	background: var(--red-600);
	color: #fff;
}

.booking-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 32px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.booking-call {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #fff;
	text-decoration: none;
}

.booking-call > span:first-child {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	transition: background-color 0.2s, border-color 0.2s;
}

.booking-call:hover > span:first-child {
	background: var(--red-600);
	border-color: var(--red-600);
}

.booking-call small {
	display: block;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.78rem;
}

.booking-call strong {
	font-family: var(--font-head);
	font-size: 1.15rem;
	font-weight: 600;
}

.booking-contact p {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
}

.booking-contact p .ats-icon {
	width: 16px;
	height: 16px;
}

.booking a:focus-visible {
	outline-color: #fff;
}

/* White consultation card around the plugin form. The form's success overlay covers the
 * whole card, so the card (not the form) is the positioning context. */
.booking-form {
	position: relative;
	padding: 34px;
	border-radius: var(--radius-lg);
	background: #fff;
	color: var(--ink);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.booking-form .ats-form {
	position: static;
}

.booking-form .booking-form-title {
	margin: 0;
	color: var(--navy-800);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.booking-form .booking-form-sub {
	margin: 4px 0 22px;
	color: var(--muted);
	font-size: 0.85rem;
}

.booking-form .ats-form__textarea {
	min-height: 96px;
}

.booking-form .booking-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 0.76rem;
}

.booking-note .ats-icon {
	width: 14px;
	height: 14px;
}

/* ---------- Insights (global post card, see style.css §6c) ---------- */
.insights .ats-post-list {
	margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.testi-wrap {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.booking-inner {
		grid-template-columns: 1fr 480px;
		column-gap: 48px;
	}
}

@media (max-width: 860px) {
	.booking {
		padding: 80px 0;
	}

	.booking::before {
		background:
			linear-gradient(180deg, rgba(7, 29, 51, 0.88), rgba(7, 29, 51, 0.95)),
			url("../images/photos/office-building.webp") center / cover no-repeat;
	}

	.booking-inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.booking-copy {
		position: static;
	}

	.booking--landing {
		padding-top: 56px;
	}

	.landing-steps__list {
		grid-template-columns: 1fr;
	}

	.ats-landing__faq-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ats-landing__faq-media {
		position: static;
	}

	.ats-landing__faq-media img {
		aspect-ratio: 16 / 9;
	}

	.landing-steps__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.booking-copy {
		max-width: none;
	}
}

@media (max-width: 560px) {
	.booking-form {
		padding: 24px;
	}

	.testi-slider {
		flex-wrap: wrap;
		justify-content: center;
	}

	.testi-card {
		order: -1;
		flex-basis: 100%;
		flex-direction: column;
		padding: 26px;
	}
}
