/**
 * Front page sections (template-home.php).
 *
 * Values come straight from the Air Care One Figma frame (1920 wide, 1400
 * container). Design tokens are declared in avia.css.
 */

.avia-section {
	position: relative;
	padding: 72px 0;
	background: #fff;
	font-family: var(--avia-font-head);
}

/*
 * Full-bleed: every section (and the hero) spans the full window width, even when
 * the Avada parent (#main / #wrapper) is width-constrained (boxed mode or padding).
 * The content stays inside .avia-container (1400px, centered, with padding from
 * Figma) — background full-screen, content in the container.
 * calc(50% - 50vw) = 0 if the parent is already full width, so it does no harm.
 */
.avia-section,
.avia-hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* 100vw includes the vertical scrollbar — suppress the possible horizontal scroll.
   Our sticky header runs on JS (not CSS position:sticky), so clip is safe. */
body.avia-home,
.avia-home .avia-main {
	overflow-x: clip;
}

/* Exact SVG/PNG icon sizes per section (matching the font-size of the FA glyphs). */
.avia-hero__badges .avia-icon-img { height: 20px; }
.avia-stat__icon .avia-icon-img { height: 54px; }
.avia-about__badges .avia-icon-img { height: 25px; }
.avia-apart__icon .avia-icon-img { height: 80px; }
.avia-faq__call .avia-icon-img { height: 20px; }
.avia-quote__benefits .avia-icon-img { height: 20px; }
.avia-quote__call-phone .avia-icon-img { height: 20px; }
.avia-cm__benefits .avia-icon-img { height: 25px; }
.avia-cm__social-label .avia-icon-img { height: 32px; }
.avia-cm__social-handle .avia-icon-img { height: 18px; }

.avia-admin-note {
	padding: 14px 18px;
	border: 1px dashed var(--avia-border);
	background: var(--avia-grey-97);
	color: var(--avia-muted);
	font-size: 14px;
}

/* ---------------------------------------------------------------- Hero */

.avia-hero {
	position: relative;
	display: flex;
	align-items: flex-start;
	min-height: 960px;
	overflow: hidden;
	background: var(--avia-azure);
	font-family: var(--avia-font-head);
}

/* Only reserve room for the header when it floats over the hero. */
.avia-header-transparent .avia-hero {
	padding-top: var(--avia-header-h);
}

.avia-hero__bg,
.avia-hero__bg img {
	position: absolute;
	inset: 0;
}

.avia-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.avia-hero__wash {
	position: absolute;
	left: 0;
	width: 100%;
	pointer-events: none;
}

/* Light wash under the transparent header. */
.avia-hero__wash--top {
	top: 0;
	height: 479px;
	background: linear-gradient(
		180deg,
		var(--avia-grey-97) 0%,
		rgba(247, 247, 247, 0.58) 42%,
		rgba(247, 247, 247, 0) 100%
	);
}

/* Blue wash carrying the headline block. */
.avia-hero__wash--bottom {
	bottom: 0;
	height: 545px;
	background: linear-gradient(180deg, rgba(21, 96, 154, 0) 0%, var(--avia-azure) 100%);
}

.avia-hero__inner {
	position: relative;
	z-index: 2;
	padding-top: 80px;
	padding-bottom: 40px;
}

.avia-hero__content {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 900px;
}

.avia-hero__title {
	margin: 0;
	font-size: 65px;
	font-weight: 700;
	line-height: 72px;
	color: #fff;
}

.avia-hero__text {
	max-width: 659px;
	padding-bottom: 24px;
	font-family: var(--avia-font-body);
	font-size: 16px;
	line-height: 24px;
	color: #fff;
}

.avia-hero__text p {
	margin: 0;
}

.avia-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding-bottom: 24px;
}

.avia-hero__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.avia-hero__badges li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--avia-light);
}

.avia-hero__badges i,
.avia-hero__badges .avia-icon {
	font-size: 20px;
}

/* ---------------------------------------------------------------- Stats */

.avia-stats {
	padding: 56px 0;
}

.avia-stats .avia-section__title {
	font-size: 32px;
	line-height: 42px;
	letter-spacing: 1.1px;
}

.avia-stats .avia-section__head {
	max-width: 800px;
	margin-bottom: 48px;
}

.avia-stats .avia-section__subtitle {
	font-family: var(--avia-font-body);
}

.avia-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.avia-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 33px 21px;
	border: 1px solid rgba(116, 116, 116, 0.15);
	text-align: center;
}

.avia-stat__icon {
	font-size: 54px;
	line-height: 1;
	color: var(--avia-blue);
}

/*
 * Three columns (1fr | number | 1fr) keep the number itself centered in the card —
 * otherwise the "+" suffix pulls the row to the left. The side columns are equal, so
 * the center of the middle one matches the center of the block at any suffix length.
 */
.avia-stat__value {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: baseline;
	column-gap: 5px;
	margin: 8px 0 16px;
	font-size: 48px;
	font-weight: 700;
	line-height: 52.8px;
	color: var(--avia-text);
}

.avia-stat__number {
	grid-column: 2;
}

.avia-stat__suffix {
	grid-column: 3;
	justify-self: start;
	color: #8dbfeb;
}

.avia-stat__rule {
	display: block;
	width: 48px;
	height: 3px;
	margin-bottom: 12px;
	background: #8dbfeb;
}

.avia-stat__label {
	margin: 0;
	font-size: 15px;
	line-height: 21px;
	color: var(--avia-muted);
}

/* ---------------------------------------------------------------- About */

.avia-about {
	background: #f3fbff;
}

.avia-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 16px;
	align-items: stretch;
}

.avia-about__col {
	display: flex;
	flex-direction: column;
}

.avia-about__title {
	margin: 0;
	padding: 24px 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 42px;
	color: var(--avia-blue);
}

.avia-about__blocks {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-bottom: 24px;
}

.avia-about__block-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	color: var(--avia-blue-deep);
}

.avia-about__block-text,
.avia-about__block-text p {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--avia-muted);
}

.avia-about__badges {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0 0 48px;
	list-style: none;
}

.avia-about__badges li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	color: var(--avia-blue);
}

.avia-about__badges i,
.avia-about__badges .avia-icon {
	font-size: 25px;
}

.avia-about__col .avia-btn {
	align-self: flex-start;
}

.avia-about__media {
	position: relative;
	min-height: 100%;
}

.avia-about__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------------------------------------------------------------- Services */

.avia-services .avia-section__head {
	max-width: 1000px;
	margin-bottom: 64px;
}

.avia-services__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.avia-service {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	border: 1px solid rgba(116, 116, 116, 0.15);
	background: #fff;
}

.avia-service__media {
	height: 400px;
	border-radius: var(--avia-radius);
	overflow: hidden;
}

.avia-service__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.avia-service__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	line-height: 40.8px;
	letter-spacing: -0.36px;
	color: var(--avia-text);
}

.avia-service__text,
.avia-service__text p {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--avia-muted);
}

.avia-service__btn {
	align-self: flex-start;
	margin-top: auto;
	line-height: 20px;
	letter-spacing: 0;
}

/* ---------------------------------------------------------------- Accreditation */

.avia-accred {
	padding: 56px 0;
	background: var(--avia-blue);
	color: #fff;
	text-align: center;
}

.avia-accred__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	padding: 25px 0;
}

.avia-accred__title {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 51px;
	color: var(--avia-light);
}

.avia-accred__text {
	max-width: 800px;
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: #fff;
}

/* Text comes through wpautop (two paragraphs) — spacing only between them. */
.avia-accred__text p {
	margin: 0 0 12px;
}

.avia-accred__text p:last-child {
	margin-bottom: 0;
}

/*
 * No padding-bottom: these 48px used to be the gap before the logo strip, but since
 * 2026-09-08 the strip moved to the credentials section and the button became the last
 * element — the section's own padding handles the bottom.
 */
.avia-accred__primary {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
}

.avia-accred__mark-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 143px;
	object-fit: contain;
}

/*
 * Accreditation logos — a Swiper carousel (assets/vendor/swiper, init in
 * avia.js → initSwipers). Since 2026-09-08 it renders in the credentials section
 * (white background, see the block below), but the classes and rules stayed here —
 * the swiper-bundle/Fusion workarounds described below rely on them.
 *
 * The marks come in different proportions (NBAA 5:1, AHA marks 1:1, camts 2.4:1) and
 * at different resolutions, so the size is not set per-row from ACF: the slide is a
 * box of fixed height, the logo fits inside it via max-height/max-width
 * and keeps its proportions. The column width is computed by Swiper itself — 5
 * logos per row (slidesPerView, see accreditation.php) — and it writes the slide
 * its width inline, so the slide width is not set here: our own max-width
 * would override the inline value and break the strip's step. It remains only in
 * the static fallback, where the logo itself provides the width.
 *
 * Before init (JS disabled, Swiper failed to load) the block must stay
 * readable: swiper-bundle.css sets .swiper{overflow:hidden} and
 * .swiper-wrapper{display:flex;flex-wrap:nowrap}, so without the resets below
 * half the marks would simply be clipped. JS adds the is-ready class after
 * new Swiper().
 */
.avia-accred__carousel {
	position: relative;
	padding: 0 25px;
}

.avia-accred__logos {
	/*
	 * Slide box height. 170px — at the client's request (2026-09-02): square
	 * marks (500×500) fill it entirely, while wide marks (NBAA 5:1) still
	 * hit the column width and stay shorter.
	 */
	--avia-logo-box: 170px;
	--avia-logo-max-w: 220px;
}

.avia-accred__logos .avia-accred__track {
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * Two classes in the selector on purpose: swiper-bundle.css and Fusion (Avada also
 * ships Swiper) have single-class rules on .swiper-slide, and in any
 * load order they must not override the box width/height.
 */
.avia-accred__track .avia-accred__slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--avia-logo-box);
	box-sizing: border-box;
}

.avia-accred__slide .avia-accred__logo-img {
	display: block;
	/* height:auto + max-*: small marks (TNCC 72×72) are not stretched into a blur. */
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Static fallback: a centered wrapping row, without arrows or dots. */
.avia-accred__carousel:not(.is-ready) .avia-accred__logos {
	overflow: visible;
}

.avia-accred__carousel:not(.is-ready) .avia-accred__track {
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.avia-accred__carousel:not(.is-ready) .avia-accred__slide {
	flex: 0 0 auto;
	width: auto;
	max-width: var(--avia-logo-max-w);
}

.avia-accred__carousel:not(.is-ready) .avia-accred__nav {
	display: none;
}

.avia-accred__nav {
	position: absolute;
	top: calc(50% - 20px);
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(249, 249, 249, 0.55);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.avia-accred__nav::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	margin: 0 auto;
	border-left: 2px solid var(--avia-light);
	border-bottom: 2px solid var(--avia-light);
	transition: border-color 0.2s ease;
}

.avia-accred__nav:hover,
.avia-accred__nav:focus-visible {
	border-color: var(--avia-white);
	background: var(--avia-white);
}

.avia-accred__nav:hover::before,
.avia-accred__nav:focus-visible::before {
	border-color: var(--avia-blue);
}

/*
 * The arrows are moved outside the corridor (padding 25px): half of the button sits
 * in the .avia-container gutter (30px), and the logos do not slide under it.
 */
.avia-accred__nav--prev {
	left: -20px;
}

.avia-accred__nav--prev::before {
	transform: rotate(45deg);
}

.avia-accred__nav--next {
	right: -20px;
}

.avia-accred__nav--next::before {
	transform: rotate(-135deg);
}

/* Edge of the strip (when loop is off) and "fewer slides than fit in a row". */
.avia-accred__nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.avia-accred__nav.swiper-button-lock {
	display: none;
}

/* Fewer logos than fit in a row: Swiper locks the strip — we center it. */
.avia-accred__logos.swiper-lock .avia-accred__track {
	justify-content: center;
}

/* ---------------------------------------------------------------- Credentials */

/*
 * The "Certified. Accredited. Trusted…" section — third on the page (right after
 * stats), but described here, next to the carousel rules: the logo strip
 * moved into it from accreditation along with the .avia-accred__* classes (see
 * the comment above and template-parts/home/credentials.php). It differs from that
 * section in two ways: white background and, because of it, blue arrows instead of white.
 */
.avia-creds {
	padding: 56px 0;
	background: var(--avia-white);
	text-align: center;
}

.avia-creds .avia-section__title {
	font-size: 32px;
	line-height: 42px;
	letter-spacing: 1.1px;
}

.avia-creds .avia-section__subtitle {
	font-family: var(--avia-font-body);
}

/* Intro text — two paragraphs (wpautop in the partial), spacing only between them. */
.avia-creds__intro p {
	margin: 0 0 12px;
}

.avia-creds__intro p:last-child {
	margin-bottom: 0;
}

.avia-creds .avia-accred__nav {
	border-color: rgba(21, 95, 154, 0.45);
	background: var(--avia-white);
}

.avia-creds .avia-accred__nav::before {
	border-left-color: var(--avia-blue);
	border-bottom-color: var(--avia-blue);
}

.avia-creds .avia-accred__nav:hover,
.avia-creds .avia-accred__nav:focus-visible {
	border-color: var(--avia-blue);
	background: var(--avia-blue);
}

.avia-creds .avia-accred__nav:hover::before,
.avia-creds .avia-accred__nav:focus-visible::before {
	border-left-color: var(--avia-white);
	border-bottom-color: var(--avia-white);
}

/* ---------------------------------------------------------------- Differentiators */

.avia-apart {
	background: #f3fbff;
}

.avia-apart .avia-section__head {
	margin-bottom: 64px;
}

.avia-apart .avia-section__title {
	line-height: 51px;
	letter-spacing: 1.1px;
}

/*
 * Six cards in two rows of three (client revisions 2026-09-18, item 7).
 * Previously it was two columns over three rows; at ≤1200px we go back to two,
 * at ≤782px — to one (see the media queries at the bottom of the file).
 */
.avia-apart__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.avia-apart__card {
	display: flex;
	flex-direction: column;
	background: #fff;
}

/*
 * The three-column card is narrower (≈430px vs ≈646px), so the field under the icon
 * is pulled down from 253px to keep the "icon — text" proportion the same.
 */
.avia-apart__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	font-size: 80px;
	line-height: 1;
	color: var(--avia-blue);
}

.avia-apart__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 0 40px 40px;
}

.avia-apart__title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 42px;
	color: var(--avia-text);
}

.avia-apart__text,
.avia-apart__text p {
	margin: 0;
	padding-right: 20px;
	font-size: 16px;
	line-height: 24px;
	color: var(--avia-muted);
}

/* ---------------------------------------------------------------- Process */

.avia-process .avia-section__head {
	max-width: 860px;
	margin-bottom: 96px;
}

.avia-process__steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 24px;
	margin: 0 0 96px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.avia-process__step {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

/* Connector rule between the numbered boxes. */
.avia-process__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 46px;
	right: -36px;
	width: 48px;
	height: 3px;
	background: #8dbfeb;
}

.avia-process__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border: 1px solid rgba(116, 116, 116, 0.15);
	font-size: 36px;
	font-weight: 700;
	line-height: 52.8px;
	color: var(--avia-text);
}

.avia-process__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.avia-process__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 28px;
	color: var(--avia-text);
}

/*
 * Step description — left-aligned (client revisions 2026-09-18, item 8).
 * The step number and title stay centered, so we drop the centering
 * precisely here, not on .avia-process__step.
 */
.avia-process__text {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	text-align: left;
	color: var(--avia-muted);
}

/* wysiwyg field now — strip the <p> margin ACF adds (see note in avia.css). */
.avia-process__text p {
	margin: 0;
}

.avia-process__text p + p {
	margin-top: 12px;
}

.avia-process__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* ---------------------------------------------------------------- Reviews */

.avia-reviews {
	padding: 101px 0;
	overflow: hidden;
	background: var(--avia-blue);
}

.avia-reviews__bg,
.avia-reviews__bg img {
	position: absolute;
	inset: 0;
}

.avia-reviews__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.avia-reviews__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 96px;
}

.avia-reviews__title {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 51px;
	color: var(--avia-light);
	text-align: center;
}

.avia-reviews__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	min-height: 103px;
	padding: 22px;
	background: #fff;
}

.avia-reviews__bar-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.avia-reviews__brand,
.avia-reviews__score {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #151410;
}

.avia-reviews__brand {
	font-size: 22px;
}

.avia-reviews__google {
	display: block;
	width: 77px;
	height: 26px;
}

.avia-reviews__stars {
	display: block;
	width: 100px;
	height: 20px;
}

.avia-reviews__score {
	font-size: 20px;
}

.avia-reviews__score-num {
	font-weight: 500;
}

/* Slider ------------------------------------------------------- */

.avia-reviews__slider {
	position: relative;
	width: 100%;
	margin-top: -80px;
}

.avia-reviews__track {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 1px 0;
	list-style: none;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.avia-reviews__track::-webkit-scrollbar {
	display: none;
}

.avia-review {
	flex: 0 0 calc((100% - 32px) / 3);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	padding: 20px;
	background: #fff;
	font-family: "Inter", var(--avia-font-head);
}

.avia-review__head {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding-right: 25px;
}

.avia-review__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--avia-teal);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 21px;
}

.avia-review__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.avia-review__meta {
	display: flex;
	flex-direction: column;
}

.avia-review__author {
	font-size: 15px;
	font-weight: 600;
	line-height: 21px;
	color: #000;
}

.avia-review__date {
	font-size: 13px;
	line-height: 18.2px;
	color: rgba(0, 0, 0, 0.5);
}

.avia-review__source {
	position: absolute;
	top: 0;
	right: 0;
	width: 20px;
	height: 20px;
}

/* Same exported star strip as the rating bar, clipped to the score (20px/star). */
.avia-review__stars {
	width: var(--avia-stars-w, 100px);
	height: 20px;
	margin: 10px 0 6px;
	background: url("../img/google-stars.svg") no-repeat left center / 100px 20px;
}

.avia-review__text,
.avia-review__text p {
	margin: 0;
	font-size: 13.5px;
	line-height: 20px;
	color: #000;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.avia-review__more {
	margin-top: 8.5px;
	font-size: 13.5px;
	line-height: 18.9px;
	color: rgba(0, 0, 0, 0.5);
	text-decoration: none;
}

.avia-reviews__nav {
	position: absolute;
	top: 107.5px;
	z-index: 2;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 2px solid #f4f4f4;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.avia-reviews__nav::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: 0 auto;
	border-left: 2px solid #575757;
	border-bottom: 2px solid #575757;
}

.avia-reviews__nav--prev {
	left: -15px;
}

.avia-reviews__nav--prev::before {
	transform: rotate(45deg);
}

.avia-reviews__nav--next {
	right: -15px;
}

.avia-reviews__nav--next::before {
	transform: rotate(-135deg);
}

/* ---------------------------------------------------------------- FAQ */

.avia-faq {
	padding: 50px 0;
}

.avia-faq__grid {
	display: grid;
	grid-template-columns: 461px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.avia-faq__aside {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-right: 48px;
}

.avia-faq__intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.avia-faq__title {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 38px;
	letter-spacing: 1.1px;
	color: var(--avia-blue);
}

.avia-faq__lead {
	margin: 0;
	font-size: 20px;
	line-height: 30px;
	color: var(--avia-muted);
}

/* wysiwyg field now — strip the <p> margin ACF adds (see note in avia.css). */
.avia-faq__lead p {
	margin: 0;
}

.avia-faq__lead p + p {
	margin-top: 12px;
}

/*
 * Call button in the FAQ column. Before the 2026-09-08 revisions there was a blue
 * "Prefer to talk it through?" card here with a caption and number — the client
 * asked to keep only the button with the phone. The appearance comes from .avia-btn
 * (avia.css); here — left alignment within the column (aside is a flex column,
 * otherwise the button would stretch to full width) and the icon size.
 */
.avia-faq__call {
	align-self: flex-start;
}

.avia-faq__call i,
.avia-faq__call .avia-icon {
	font-size: 18px;
}

/* Accordion ---------------------------------------------------- */

.avia-faq__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.avia-faq__item {
	border-bottom: 1px solid rgba(116, 116, 116, 0.15);
}

.avia-faq__q {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 10px 0;
	list-style: none;
	cursor: pointer;
}

.avia-faq__q::-webkit-details-marker {
	display: none;
}

/*
 * A 22px blue square (13px glyph + 4.5px padding, as in the design) with two
 * glyphs from Figma: a plus on a closed item and a minus on an open one. Both sit in
 * one grid cell, so they are centered and don't interfere with each other — the transition
 * between them is a crossfade with a slight rotation, not an abrupt image swap.
 */
.avia-faq__marker {
	display: grid;
	place-items: center;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-top: 3px;
	background: var(--avia-blue);
}

.avia-faq__marker::before,
.avia-faq__marker::after {
	content: "";
	grid-area: 1 / 1;
	width: 14.11px;
	height: 13px;
	background-color: #fff;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.avia-faq__marker::before {
	-webkit-mask: url("../img/faq-chevron.svg") no-repeat center / 14.11px 13px;
	mask: url("../img/faq-chevron.svg") no-repeat center / 14.11px 13px;
}

.avia-faq__marker::after {
	-webkit-mask: url("../img/faq-minus.svg") no-repeat center / 14.11px 13px;
	mask: url("../img/faq-minus.svg") no-repeat center / 14.11px 13px;
	opacity: 0;
	transform: rotate(-90deg);
}

.avia-faq__item[open] .avia-faq__marker::before {
	opacity: 0;
	transform: rotate(90deg);
}

.avia-faq__item[open] .avia-faq__marker::after {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.avia-faq__marker::before,
	.avia-faq__marker::after,
	.avia-accred__nav,
	.avia-accred__nav::before {
		transition: none;
	}
}

.avia-faq__q-text {
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
	color: var(--avia-blue);
}

.avia-faq__a {
	padding: 10px 0 35px;
	font-size: 20px;
	line-height: 30px;
	color: var(--avia-muted);
}

.avia-faq__a p {
	margin: 0 0 12px;
}

.avia-faq__a p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------- Quote */

.avia-quote {
	overflow: hidden;
	background: var(--avia-blue);
}

.avia-quote__bg,
.avia-quote__bg img {
	position: absolute;
	inset: 0;
}

.avia-quote__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.avia-quote__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	align-items: start;
}

.avia-quote__intro {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-right: 176px;
	color: #fff;
}

.avia-quote__title {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 42px;
	color: var(--avia-light);
}

.avia-quote__text {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
}

/* wysiwyg field now — strip the <p> margin ACF adds (see note in avia.css). */
.avia-quote__text p {
	margin: 0;
}

.avia-quote__text p + p {
	margin-top: 12px;
}

.avia-quote__benefits {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.avia-quote__benefits li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.avia-quote__benefits i,
.avia-quote__benefits .avia-icon {
	margin-top: 2px;
	font-size: 20px;
	color: var(--avia-light);
}

.avia-quote__benefits strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--avia-light);
}

.avia-quote__benefit-text {
	display: block;
	margin-top: 4px;
	font-size: 16px;
	line-height: 24px;
}

.avia-quote__call {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.avia-quote__call-row {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
}

.avia-quote__call-label {
	font-size: 16px;
	font-weight: 700;
}

.avia-quote__call-phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.avia-quote__call-phone:hover,
.avia-quote__call-phone:focus {
	color: #fff;
}

.avia-quote__call-phone i,
.avia-quote__call-phone .avia-icon {
	font-size: 20px;
	color: var(--avia-light);
}

.avia-quote__call-note {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
}

/* Form card ---------------------------------------------------- */

.avia-quote__card {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-height: 809px;
	padding: 32px;
	background: #fff;
}

.avia-quote__tabs {
	display: flex;
	gap: 6px;
	padding: 6px;
	border: 1px solid #dce6f0;
	background: #f4f8fc;
}

.avia-quote__tab {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 13px 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: center;
}

.avia-quote__tab.is-active {
	background: #fff;
	box-shadow: 0 1px 1px rgba(10, 37, 64, 0.06), 0 2px 3px rgba(10, 37, 64, 0.05);
}

.avia-quote__tab-label {
	font-size: 16px;
	font-weight: 700;
	color: var(--avia-muted);
}

.avia-quote__tab.is-active .avia-quote__tab-label {
	color: var(--avia-blue);
}

.avia-quote__tab-sub {
	font-size: 12px;
	color: rgba(116, 116, 116, 0.5);
}

.avia-quote__tab.is-active .avia-quote__tab-sub {
	color: var(--avia-muted);
}

.avia-quote__panel {
	display: none;
	flex-direction: column;
	gap: 32px;
}

.avia-quote__panel.is-active {
	display: flex;
}

.avia-quote__panel-title {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 38px;
	color: var(--avia-blue);
}

.avia-quote__panel-text {
	margin: -24px 0 0;
	font-size: 20px;
	line-height: 30px;
	color: var(--avia-muted);
}

.avia-quote__disclaimer {
	margin: 0;
	font-size: 20px;
	line-height: 30px;
	color: var(--avia-muted);
	text-align: center;
}

/* ---------------------------------------------------------------- Case managers */

.avia-cm__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 64px;
	align-items: start;
}

.avia-cm__col {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.avia-cm__head {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.avia-cm__title {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 42px;
	color: var(--avia-blue);
}

.avia-cm__text {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--avia-muted);
}

/* wysiwyg field now — strip the <p> margin ACF adds (see note in avia.css). */
.avia-cm__text p {
	margin: 0;
}

.avia-cm__text p + p {
	margin-top: 12px;
}

/*
 * Inline links inside the home-page body copy (the WYSIWYG description fields).
 * Kept to the surrounding text colour + an underline so a link stays legible on
 * every section background (white, light blue, Matisse blue, photo). Swap
 * `color: inherit` for `var(--avia-blue-alt)` (or similar) if a stronger link
 * accent is wanted on the light sections.
 */
.avia-hero__text a,
.avia-section__subtitle a,
.avia-about__block-text a,
.avia-service__text a,
.avia-accred__text a,
.avia-creds__intro a,
.avia-apart__text a,
.avia-process__text a,
.avia-review__text a,
.avia-faq__lead a,
.avia-quote__text a,
.avia-cm__text a,
.avia-about__block-title a,
.avia-service__title a,
.avia-apart__title a,
.avia-process__title a,
.avia-faq__q-text a,
.avia-quote__benefits a,
.avia-cm__benefits a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
}

.avia-cm__form {
	max-width: 500px;
}

.avia-cm__benefits {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.avia-cm__benefits li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 600;
	color: var(--avia-muted);
}

.avia-cm__benefits i,
.avia-cm__benefits .avia-icon {
	font-size: 25px;
	color: var(--avia-blue);
}

.avia-cm__social {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.avia-cm__social-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.avia-cm__social-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 22px;
	color: var(--avia-muted);
}

.avia-cm__social-label i,
.avia-cm__social-label .avia-icon {
	font-size: 32px;
	color: var(--avia-blue);
}

.avia-cm__social-handle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 22px;
	color: var(--avia-blue);
	text-decoration: none;
}

.avia-cm__social-handle i,
.avia-cm__social-handle .avia-icon {
	font-size: 18px;
}

.avia-cm__tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.avia-cm__tile {
	flex: 0 0 calc((100% - 20px) / 3);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.avia-cm__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * The Instagram feed is output by a plugin shortcode (Smash Balloon), so we
 * fit its markup to the design: a 3 × 215px grid with a 10px gap (Figma 22:42144),
 * square frames. We already have our own "Follow our missions" / @AirCARE1 heading
 * above, so we hide the plugin's header and button. !important — the plugin writes inline.
 */
.avia-cm__feed #sb_instagram {
	width: 100% !important;
	padding-bottom: 0 !important;
}

.avia-cm__feed #sb_instagram .sb_instagram_header,
.avia-cm__feed #sb_instagram #sbi_load {
	display: none !important;
}

.avia-cm__feed #sb_instagram #sbi_images {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 0 !important;
}

.avia-cm__feed #sb_instagram #sbi_images .sbi_item {
	width: 100% !important;
	padding: 0 !important;
	aspect-ratio: 1 / 1;
}

.avia-cm__feed #sb_instagram .sbi_photo_wrap,
.avia-cm__feed #sb_instagram .sbi_photo {
	width: 100% !important;
	height: 100% !important;
}

.avia-cm__feed #sb_instagram .sbi_photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------------------------------------------------------------- Plugin forms */

.avia-form form {
	margin: 0;
}

/*
 * Field layout inside the plugin form. Values from Figma 20:41764: field
 * column gap 23px, two-field row gap 23px, label → input 8px, the button block
 * offset 32px from the fields and centered.
 */
.avia-form__fields {
	display: flex;
	flex-direction: column;
	gap: 23px;
}

.avia-form__row {
	display: flex;
	gap: 23px;
}

.avia-form__row > .avia-form__field {
	flex: 1 1 0;
	min-width: 0;
}

.avia-form__req {
	font-weight: 700;
	color: red;
}

.avia-form__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
}

/* CF7 wraps each control in an inline span — we stretch it to full width. */
.avia-form .wpcf7-form-control-wrap {
	display: block;
}

.avia-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 14px;
	color: #d63638;
}

.avia-form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border: 1px solid var(--avia-border);
	font-size: 16px;
}

/* Case managers: one field, button on the left, 28.8px offset (Figma 22:42187). */
.avia-cm__form .avia-form__actions {
	align-items: flex-start;
	margin-top: 28.8px;
}

.avia-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 18px;
	line-height: 27px;
	color: var(--avia-muted);
}

.avia-form input[type="text"],
.avia-form input[type="email"],
.avia-form input[type="tel"],
.avia-form input[type="url"],
.avia-form input[type="number"],
.avia-form select,
.avia-form textarea {
	width: 100%;
	height: 40px;
	padding: 0 11px;
	border: 1px solid var(--avia-border);
	border-radius: 3px;
	background: #fff;
	font-family: var(--avia-font-head);
	font-size: 18px;
	color: var(--avia-text);
	box-sizing: border-box;
}

.avia-form textarea {
	height: 160px;
	padding: 10px 11px;
	resize: vertical;
}

.avia-form ::placeholder {
	color: rgba(116, 116, 116, 0.5);
}

.avia-form input[type="submit"],
.avia-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	padding: 17px 40px;
	border: 0;
	border-radius: 0;
	background: var(--avia-blue);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 21px;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	cursor: pointer;
}

.avia-form input[type="submit"]:hover,
.avia-form button[type="submit"]:hover {
	background: var(--avia-blue-deep);
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1400px) {
	.avia-about__grid {
		gap: 0 48px;
	}

	.avia-quote__intro {
		padding-right: 64px;
	}

	.avia-faq__grid {
		grid-template-columns: 380px minmax(0, 1fr);
	}

	.avia-faq__aside {
		padding-right: 0;
	}
}

@media (max-width: 1200px) {
	.avia-section {
		padding: 48px 0;
	}

	/* Three columns fit only on a wide screen — below, two again. */
	.avia-apart__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.avia-hero {
		min-height: 720px;
	}

	.avia-hero__inner {
		padding-top: 48px;
	}

	.avia-hero__title {
		font-size: 48px;
		line-height: 56px;
	}

	.avia-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.avia-about__grid,
	.avia-quote__grid,
	.avia-cm__grid,
	.avia-faq__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.avia-about__media {
		min-height: 420px;
	}

	.avia-quote__intro {
		padding-right: 0;
	}

	.avia-reviews {
		padding: 60px 0;
	}

	.avia-reviews__slider {
		margin-top: 0;
	}

	.avia-review {
		flex: 0 0 calc((100% - 16px) / 2);
	}

	.avia-reviews__nav {
		top: auto;
		bottom: -46px;
	}

	.avia-reviews__nav--prev {
		left: calc(50% - 40px);
	}

	.avia-reviews__nav--next {
		right: calc(50% - 40px);
	}

	.avia-process__steps {
		flex-wrap: wrap;
		gap: 48px 24px;
	}

	.avia-process__step {
		flex: 1 1 calc(50% - 24px);
	}

	.avia-process__step::after {
		display: none;
	}
}

@media (max-width: 782px) {
	.avia-section {
		padding: 32px 0;
	}

	.avia-hero {
		min-height: 0;
	}

	.avia-hero__inner {
		padding-top: 32px;
		padding-bottom: 28px;
	}

	.avia-hero__title {
		font-size: 34px;
		line-height: 42px;
	}

	.avia-hero__actions .avia-btn {
		width: 100%;
	}

	.avia-stats,
	.avia-creds,
	.avia-accred,
	.avia-faq {
		padding: 32px 0;
	}

	.avia-accred__carousel {
		padding: 0 40px;
	}

	/* The gutter here is already 20px — nowhere to move the arrows outside the corridor. */
	.avia-accred__nav--prev {
		left: 0;
	}

	.avia-accred__nav--next {
		right: 0;
	}

	.avia-accred__logos {
		--avia-logo-box: 60px;
		--avia-logo-max-w: 150px;
	}

	.avia-stats__grid,
	.avia-services__grid,
	.avia-apart__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.avia-service__media {
		height: 240px;
	}

	.avia-apart__icon {
		min-height: 160px;
		font-size: 56px;
	}

	.avia-apart__body {
		padding: 0 24px 32px;
	}

	.avia-apart__title,
	.avia-about__title,
	.avia-cm__title,
	.avia-quote__title,
	.avia-reviews__title,
	.avia-accred__title {
		font-size: 26px;
		line-height: 34px;
	}

	.avia-process__step {
		flex: 1 1 100%;
	}

	.avia-review {
		flex: 0 0 88%;
	}

	.avia-faq__q-text {
		font-size: 18px;
		line-height: 26px;
	}

	.avia-faq__a,
	.avia-faq__lead,
	.avia-quote__disclaimer,
	.avia-quote__panel-text {
		font-size: 16px;
		line-height: 24px;
	}

	.avia-quote__card {
		min-height: 0;
		padding: 20px;
	}

	.avia-quote__tabs {
		flex-direction: column;
	}

	.avia-form__row {
		flex-direction: column;
	}

	.avia-cm__tile {
		flex: 0 0 calc((100% - 10px) / 2);
	}

	.avia-cm__feed #sb_instagram #sbi_images {
		grid-template-columns: repeat(2, 1fr);
	}
}
