/**
 * Apple Dental sections (patterns in /patterns/adic-*.php). Front end + block editor.
 *
 * Design rules (keep to these when adding sections):
 * - Section backgrounds: white, mist, ink. The hero uses sky tint; the promo card is the one
 *   bold yellow moment. Brand colours otherwise appear only as small accents.
 * - One spacing scale: --s-section between sections, --s-head under headings, --s-gap in grids.
 * - Cards: white, 1px line, 24px radius, soft shadow only where something is interactive.
 */

:root {
	--sec-wide: 1240px;
	--sec-gutter: clamp(20px, 4vw, 32px);
	--sec-pad: max(var(--sec-gutter), calc((100% - var(--sec-wide)) / 2));

	--s-section: clamp(72px, 9vw, 120px);
	--s-head: clamp(32px, 4vw, 52px);
	--s-gap: clamp(16px, 2vw, 24px);
	--s-card: clamp(24px, 2.6vw, 32px);

	--ink: var(--wp--preset--color--primary, #1A1A1A);
	--body: #3D4650;
	--muted: #66717C;
	--line: #E4E9EF;
	--mist: #F5F8FB;
	--sky-tint: var(--wp--preset--color--quaternary, #EAF6FE);

	--r-lg: 28px;
	--r-md: 22px;
	--r-sm: 14px;

	--shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 8px rgba(16, 24, 40, 0.04);
	--shadow-md: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 32px rgba(16, 24, 40, 0.08);
	--shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 56px rgba(16, 24, 40, 0.12);

	/* Legacy names used by blocks. */
	--sec-ink: var(--ink);
	--sec-muted: var(--body);
}

/* ======================= PAGE + SECTION SHELL ======================= */

.adic-sections > * {
	margin-block: 0 !important;
}

.adic-sections {
	overflow-x: clip;
}

.adic-section,
.adic-hero {
	box-sizing: border-box;
	max-width: none !important;
	margin-inline: 0;
	padding-inline: var(--sec-pad) !important;
}

.adic-section {
	padding-block: var(--s-section) !important;
	background: #FFFFFF;
	color: var(--ink);
}

.adic-section--tight {
	padding-block: clamp(32px, 4vw, 56px) !important;
}

.adic-band,
.adic-video {
	background: var(--mist);
}

.adic-dark {
	background: var(--ink);
	color: #FFFFFF;
}

/* Two white sections in a row share one gap instead of doubling it. */
.adic-section:not(.adic-band):not(.adic-dark):not(.adic-video) + .adic-section:not(.adic-band):not(.adic-dark):not(.adic-video),
.adic-team + .adic-section:not(.adic-band):not(.adic-dark):not(.adic-video) {
	padding-top: 0 !important;
}

/* Typography inside sections */
.adic-section h2,
.adic-hero h2 {
	margin: 0;
	font-size: clamp(32px, 3.4vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: inherit;
}

.adic-section h3 {
	margin: 0;
	font-size: 21px;
	line-height: 1.25;
	color: inherit;
}

.adic-section p {
	color: var(--body);
}

.adic-dark p,
.adic-dark h2,
.adic-dark h3 {
	color: #FFFFFF;
}

.adic-dark p:not(.adic-eyebrow):not(.adic-step__num) {
	color: #C9D0D6;
}

.adic-section .wp-block-columns,
.adic-hero .wp-block-columns {
	margin: 0 !important;
}

.adic-section .wp-block-buttons,
.adic-hero .wp-block-buttons {
	gap: 12px;
}

.adic-eyebrow,
.adic-section p.adic-eyebrow {
	font-size: 13px !important;
	letter-spacing: 0.12em !important;
	color: var(--color-green-text, #3A7330);
}

.adic-dark .adic-eyebrow,
.adic-dark p.adic-eyebrow {
	color: var(--color-sunshine, #FED53B);
}

/* ======================= SECTION HEADINGS ======================= */

.adic-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 760px;
	margin-bottom: var(--s-head) !important;
}

.adic-head > *,
.adic-head__text > * {
	margin: 0 !important;
}

.adic-head--row {
	max-width: none;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
}

.adic-head__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 720px;
}

/* ======================= BUTTONS ======================= */

.wp-block-button.is-style-outline-ink .wp-block-button__link {
	--text-color: var(--ink);
	--bg-color: transparent;
	--text-color-hover: #FFFFFF;
	--bg-color-hover: var(--ink);
	border: 1.5px solid var(--ink);
}

.adic-dark .wp-block-button.is-style-outline-ink .wp-block-button__link {
	--text-color: #FFFFFF;
	--text-color-hover: var(--ink);
	--bg-color-hover: #FFFFFF;
	border-color: #FFFFFF;
}

/* ======================= HERO ======================= */

.adic-hero {
	position: relative;
	overflow: hidden;
	background: var(--sky-tint);
	padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 112px) !important;
}

.adic-hero::before,
.adic-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.adic-hero::before {
	width: 640px;
	height: 640px;
	right: -200px;
	top: -280px;
	background: #FFFFFF;
	opacity: 0.55;
}

.adic-hero::after {
	width: 320px;
	height: 320px;
	left: -140px;
	bottom: -180px;
	background: #FFFFFF;
	opacity: 0.5;
}

.adic-hero > * {
	position: relative;
	z-index: 1;
}

.adic-hero__cols {
	align-items: center !important;
	gap: clamp(40px, 6vw, 80px) !important;
}

.adic-hero__cols > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.adic-hero__cols > .wp-block-column > * {
	margin: 0 !important;
}

.adic-pill {
	align-self: flex-start;
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: #FFFFFF;
	box-shadow: var(--shadow-sm);
	color: var(--color-green-text, #3A7330) !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.adic-hero__title {
	font-size: clamp(42px, 5.6vw, 72px) !important;
	line-height: 1.02 !important;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.adic-hero--page .adic-hero__title {
	font-size: clamp(36px, 4.6vw, 60px) !important;
}

.adic-hero__lead {
	max-width: 540px;
	font-size: clamp(18px, 1.5vw, 20px);
	line-height: 1.6;
	color: var(--body) !important;
}

.adic-hero__media {
	position: relative;
}

.wp-block-image.adic-arch {
	margin: 0 !important;
	width: 100%;
	max-width: 520px;
	align-self: center;
}

.wp-block-image.adic-arch img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 4.4;
	object-fit: cover;
	border-radius: 300px 300px 32px 32px;
	border: 10px solid #FFFFFF;
	box-shadow: var(--shadow-lg);
	background: #FFFFFF;
}

.adic-hero--page .wp-block-image.adic-arch img {
	aspect-ratio: 5 / 4;
}

.adic-float {
	position: absolute !important;
	left: -16px;
	bottom: 32px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 20px;
	border-radius: 18px;
	background: #FFFFFF;
	box-shadow: var(--shadow-lg);
}

.adic-float > * {
	margin: 0 !important;
}

.adic-float__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-green-text, #3A7330) !important;
}

.adic-float__big,
.adic-float__price {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink) !important;
}

.adic-float__price {
	align-self: flex-start;
	padding: 0 6px;
	border-radius: 6px;
	background: var(--color-sunshine, #FED53B);
}

/* Search block */
.adic-search .cliloc-search {
	margin-bottom: 0;
}

.adic-search__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 620px;
	padding: 8px;
	border-radius: 18px;
	background: #FFFFFF;
	box-shadow: var(--shadow-md);
}

.adic-search__form input {
	flex: 1 1 240px;
	min-height: 52px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-size: 17px;
	background: transparent;
}

.adic-search__form input:focus {
	outline: 2px solid var(--color-sky, #63C3F3);
}

/* ======================= TEAM WALL ======================= */

.adic-team {
	position: relative;
	overflow: hidden;
	max-width: none !important;
	margin-inline: 0;
	padding-block: var(--s-section) clamp(40px, 5vw, 64px);
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
	gap: clamp(36px, 5vw, 56px);
}

.adic-team__text {
	box-sizing: border-box;
	padding-inline: var(--sec-pad);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.adic-team__text > * {
	margin: 0;
}

.adic-team__eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-green-text, #3A7330);
}

.adic-team__heading {
	max-width: 900px;
	font-size: clamp(30px, 3.4vw, 46px) !important;
	line-height: 1.22 !important;
	letter-spacing: -0.015em;
	color: var(--ink);
}

/* Numbers: one consistent highlighter stroke. */
.adic-team__heading mark,
.adic-team__heading mark[class] {
	padding: 0 0.08em;
	background: linear-gradient(transparent 58%, rgba(254, 213, 59, 0.85) 58%, rgba(254, 213, 59, 0.85) 92%, transparent 92%);
	color: inherit;
	transform: none;
}

.adic-team__wall {
	display: flex;
	flex-direction: column;
	gap: 16px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.adic-team__row {
	overflow: hidden;
}

.adic-team__row:first-child {
	padding-top: 48px;
	margin-top: -48px;
}

.adic-team__track {
	display: flex;
	gap: 16px;
	width: max-content;
	animation: adic-team-scroll 80s linear infinite;
}

.adic-team__row.is-reverse .adic-team__track {
	animation-direction: reverse;
	animation-duration: 90s;
}

@keyframes adic-team-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.adic-team__face {
	position: relative;
	flex: 0 0 auto;
	box-sizing: border-box;
	margin: 0;
	width: 104px;
	height: 104px;
	padding: 4px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s;
}

.adic-team__face.is-specialist {
	border: 2px solid var(--color-sunshine, #FED53B);
}

.adic-team__face:hover {
	transform: translateY(-3px);
	z-index: 2;
}

.adic-team__face img,
.adic-team__face > span {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mist);
	font-size: 26px;
	font-weight: 700;
	color: var(--ink);
}

.adic-team__face.is-specialist::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 3px solid #FFFFFF;
	background: var(--color-sunshine, #FED53B) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A1A1A'%3E%3Cpath d='M12 2l3 6.5 7 .9-5.2 4.8 1.4 7L12 17.8 5.8 21.2l1.4-7L2 9.4l7-.9z'/%3E%3C/svg%3E") no-repeat center / 11px;
}

.adic-team__face figcaption {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translateX(-50%);
	padding: 7px 11px;
	border-radius: 10px;
	background: var(--ink);
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}

.adic-team__face figcaption small {
	display: block;
	font-weight: 500;
	opacity: 0.75;
}

.adic-team__face:hover figcaption {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.adic-team__track {
		animation: none;
		flex-wrap: wrap;
		width: auto;
		justify-content: center;
	}
}

/* Doctors carousel inside a section: the section provides spacing. */
.adic-section .adic-docs {
	margin-block: 0;
}

/* ======================= CARD GRIDS ======================= */

.adic-cards {
	flex-wrap: wrap !important;
	gap: var(--s-gap) !important;
}

.adic-cards > .wp-block-column {
	flex: 1 1 240px !important;
	display: flex;
	min-width: 0;
}

.adic-cards > .wp-block-column > * {
	flex: 1 1 auto;
	margin: 0 !important;
}

/* Feature cards: white, quiet; colour lives only in the icon tile. */
.adic-card {
	--tint: var(--color-sky-light, #95D3F8);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: var(--s-card) !important;
	border-radius: var(--r-md);
	background: #FFFFFF;
	border: 1px solid var(--line);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.adic-card:hover {
	border-color: #D3DBE3;
	box-shadow: var(--shadow-md);
}

.adic-card > * {
	margin: 0 !important;
}

.adic-card p {
	font-size: 16px;
	line-height: 1.6;
}

.adic-card.is-tint-sky { --tint: var(--color-sky-light, #95D3F8); }
.adic-card.is-tint-sage { --tint: var(--color-sage, #B0D6A7); }
.adic-card.is-tint-sunshine { --tint: var(--color-sunshine, #FED53B); }
.adic-card.is-tint-amber { --tint: var(--color-amber, #FFB53E); }

.adic-card[class*="has-icon-"]::before {
	content: "";
	width: 48px;
	height: 48px;
	margin-bottom: 10px;
	border-radius: 14px;
	background-color: color-mix(in srgb, var(--tint) 38%, #FFFFFF);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px;
}

.adic-card.has-icon-shield::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.adic-card.has-icon-screen::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.adic-card.has-icon-star::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3 6.5 7 .9-5.2 4.8 1.4 7L12 17.8 5.8 21.2l1.4-7L2 9.4l7-.9z'/%3E%3C/svg%3E"); }
.adic-card.has-icon-card::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E"); }
.adic-card.has-icon-heart::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E"); }
.adic-card.has-icon-clock::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

/* Image cards */
.adic-media-card {
	position: relative;
	box-sizing: border-box;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--r-md);
	background: #FFFFFF;
	border: 1px solid var(--line);
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.adic-media-card:hover,
.adic-media-card:focus-within {
	transform: translateY(-4px);
	border-color: #D3DBE3;
	box-shadow: var(--shadow-lg);
}

.adic-media-card > * {
	margin: 0 !important;
}

.adic-media-card__img {
	flex: 0 0 auto;
	margin: 0 !important;
	overflow: hidden;
}

.adic-media-card > .adic-media-card__img,
.adic-media-card > h3 {
	flex: 0 0 auto !important;
}

.adic-media-card__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.adic-media-card:hover .adic-media-card__img img {
	transform: scale(1.04);
}

.adic-media-card h3 {
	position: relative;
	padding: 22px 72px 0 24px;
	font-size: 20px;
}

.adic-media-card h3::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 18px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / 18px;
	transition: background-color 0.2s, transform 0.2s;
}

.adic-media-card:hover h3::after {
	background-color: var(--color-amber, #FFB53E);
	transform: translateX(2px);
}

.adic-media-card h3 a {
	color: var(--ink);
	text-decoration: none;
}

.adic-media-card h3 a::before {
	content: "";
	position: absolute;
	inset: -400px;
	z-index: 1;
}

.adic-media-card p {
	flex: 1 1 auto;
	padding: 8px 24px 26px;
	font-size: 16px;
	line-height: 1.55;
}

.editor-styles-wrapper .adic-media-card h3 a::before {
	display: none;
}

/* ======================= IMAGE + TEXT ======================= */

.adic-split {
	align-items: center !important;
	gap: clamp(32px, 6vw, 80px) !important;
}

.adic-split > .wp-block-column > * {
	margin: 0 0 16px;
}

.adic-split > .wp-block-column > :last-child {
	margin-bottom: 0;
}

.adic-split .adic-eyebrow {
	margin-bottom: 12px;
}

.adic-split p:not(.adic-eyebrow) {
	font-size: 18px;
	line-height: 1.65;
}

.wp-block-image.adic-rounded {
	margin: 0 !important;
}

.wp-block-image.adic-rounded img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-md);
}

/* ======================= TEXT SECTION ======================= */

.adic-prose > * {
	max-width: 720px;
	margin-inline: auto !important;
}

.adic-prose p,
.adic-prose li {
	font-size: 18px;
	line-height: 1.75;
}

.adic-prose h2 {
	margin-bottom: 20px !important;
}

/* ======================= DOCTOR VIDEO ======================= */

.adic-video__cols {
	align-items: center !important;
	gap: clamp(32px, 6vw, 80px) !important;
}

.adic-video__cols > .adic-video__media {
	flex: 0 1 58% !important;
	min-width: 0;
}

.adic-video__cols > .adic-video__text {
	flex: 1 1 0 !important;
	min-width: 0;
}

.adic-video__frame {
	position: relative;
	padding: 0 !important;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--ink);
	box-shadow: var(--shadow-lg);
}

.adic-video__frame .wp-block-embed {
	margin: 0 !important;
}

.adic-video__frame .wp-block-embed iframe {
	display: block;
	width: 100%;
}

.adic-video__text > * {
	margin: 0 0 16px !important;
}

.adic-video__text > :last-child {
	margin-bottom: 0 !important;
}

.adic-video__text .adic-eyebrow {
	margin-bottom: 12px !important;
}

.adic-video__text p:not(.adic-eyebrow) {
	font-size: 18px;
	line-height: 1.65;
}

.adic-video__text .wp-block-buttons {
	margin-top: 28px !important;
}

/* ======================= BEFORE / AFTER ======================= */

@property --pos {
	syntax: "<percentage>";
	inherits: true;
	initial-value: 50%;
}

.adic-ba__grid {
	flex-wrap: wrap !important;
	gap: var(--s-gap) !important;
}

.adic-ba__grid > .wp-block-column {
	flex: 1 1 340px !important;
	min-width: 0;
}

.adic-ba-case {
	box-sizing: border-box;
	padding: 12px 12px 24px !important;
	border-radius: var(--r-lg);
	background: #FFFFFF;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-md);
}

.adic-ba-case > * {
	margin: 0 !important;
}

.adic-ba-case .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
}

/* Before the script runs (and in the editor): side by side. */
.adic-ba-case:not(.is-ready) {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.adic-ba-case:not(.is-ready) > p {
	grid-column: 1 / -1;
}

.adic-ba__viewer {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	background: var(--mist);
	touch-action: pan-y;
	user-select: none;
}

.adic-ba__img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
}

.adic-ba__img--after {
	position: absolute;
	inset: 0;
	height: 100%;
	object-fit: cover;
	clip-path: inset(0 0 0 var(--pos));
}

.adic-ba__viewer.is-hinting {
	animation: adic-ba-hint 1.6s ease-in-out;
}

@keyframes adic-ba-hint {
	0% { --pos: 50%; }
	35% { --pos: 36%; }
	70% { --pos: 62%; }
	100% { --pos: 50%; }
}

.adic-ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 2px;
	margin-left: -1px;
	background: #FFFFFF;
	pointer-events: none;
}

.adic-ba__knob {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #FFFFFF;
	color: var(--ink);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(16, 24, 40, 0.25);
}

.adic-ba__knob svg {
	width: 18px;
	height: 18px;
}

.adic-ba__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
}

.adic-ba__viewer:has(.adic-ba__range:focus-visible) .adic-ba__knob {
	outline: 3px solid var(--color-sky, #63C3F3);
	outline-offset: 2px;
}

.adic-ba__tag {
	position: absolute;
	top: 12px;
	padding: 5px 10px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	pointer-events: none;
	backdrop-filter: blur(6px);
}

.adic-ba__tag--before {
	left: 12px;
	background: rgba(26, 26, 26, 0.6);
	color: #FFFFFF;
}

.adic-ba__tag--after {
	right: 12px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--ink);
}

.adic-ba__title {
	padding: 20px 12px 0;
	font-size: 19px;
	font-weight: 700;
	color: var(--ink) !important;
}

.adic-ba__meta {
	padding: 4px 12px 0;
	font-size: 15px;
	color: var(--muted) !important;
}

.adic-disclaimer {
	display: flex;
	gap: 14px;
	margin-top: var(--s-head) !important;
	padding: 20px 24px !important;
	border-radius: var(--r-sm);
	background: var(--mist);
}

.adic-disclaimer::before {
	content: "";
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366717C' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.adic-disclaimer p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--muted) !important;
}

.adic-disclaimer strong {
	color: var(--body);
}

/* ======================= PATIENT FEEDBACK ======================= */

.adic-rating {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: calc(var(--s-head) * -0.5) 0 var(--s-head) !important;
	padding: 12px 20px;
	border-radius: 999px;
	background: #FFFFFF;
	border: 1px solid var(--line);
}

.adic-rating__score {
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.adic-rating__stars {
	--star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.5 7 .9-5.2 4.8 1.4 7L12 17.8 5.8 21.2l1.4-7L2 9.4l7-.9z'/%3E%3C/svg%3E");
	width: 110px;
	height: 20px;
	background: linear-gradient(90deg, #F5A623 var(--pct), #D3D9DE var(--pct));
	-webkit-mask: var(--star) 0 0 / 22px 20px repeat-x;
	mask: var(--star) 0 0 / 22px 20px repeat-x;
}

.adic-rating__text {
	font-size: 15px;
	font-weight: 600;
	color: var(--body);
}

.adic-quotes > .wp-block-column {
	flex-basis: 300px !important;
}

.adic-quote,
.adic-quote[class*="is-tint-"] {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: var(--s-card) !important;
	padding-top: calc(var(--s-card) + 36px) !important;
	border-radius: var(--r-md);
	background: #FFFFFF;
	border: 1px solid var(--line);
}

.adic-quote::before {
	content: "";
	position: absolute;
	top: var(--s-card);
	left: var(--s-card);
	width: 28px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath fill='%2363C3F3' d='M0 22V13Q0 5 7 0l3 3Q6 6 6 11h5v11zm16 0V13q0-8 7-13l3 3q-4 3-4 8h5v11z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.adic-quote > * {
	margin: 0 !important;
}

.adic-quote__text {
	flex: 1 1 auto;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink) !important;
}

.adic-quote__name {
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 15px;
	font-weight: 700;
	color: var(--body) !important;
}

.adic-fineprint {
	margin: 24px 0 0 !important;
	font-size: 13px;
	color: var(--muted) !important;
}

/* ======================= CONSULTATION FORM ======================= */

/* The whole form area sits on one soft panel inside a white section. */
.adic-form-section__cols {
	box-sizing: border-box;
	align-items: center !important;
	gap: clamp(32px, 5vw, 72px) !important;
	padding: clamp(28px, 5vw, 64px) !important;
	border-radius: 32px;
	background: var(--sky-tint);
}

.adic-form-section__text > * {
	margin: 0 0 16px !important;
}

.adic-form-section__text .adic-eyebrow {
	margin-bottom: 12px !important;
}

.adic-form-section__text p:not(.adic-eyebrow):not(.adic-check) {
	font-size: 18px;
	line-height: 1.65;
	margin-bottom: 28px !important;
}

.adic-check {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px !important;
	font-size: 16px;
	font-weight: 600;
	color: var(--ink) !important;
}

.adic-check::before {
	content: "";
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A7330' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") no-repeat center / 14px;
	box-shadow: var(--shadow-sm);
}

.adic-form-card {
	box-sizing: border-box;
	padding: clamp(24px, 3.4vw, 40px) !important;
	border-radius: var(--r-md);
	background: #FFFFFF;
	box-shadow: var(--shadow-lg);
}

.adic-form-card::before {
	content: none;
}

/* Gravity Forms (the theme disables Gravity Forms' own CSS). */
.adic-form .gform_required_legend {
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--muted);
}

.adic-form .gfield_required {
	color: #B42318;
	margin-left: 2px;
}

.adic-form .gform_wrapper .gform_fields {
	display: grid;
	gap: 18px 16px;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.adic-form .gform_wrapper .gfield {
	grid-column: span 12;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.adic-form .gform_wrapper .gfield--width-half {
	grid-column: span 6;
}

.adic-form .gform_wrapper .gfield_label,
.adic-form .gform_wrapper legend {
	display: block;
	margin-bottom: 8px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
}

.adic-form .gform_wrapper :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid #CBD4DD;
	border-radius: 12px;
	background: #FFFFFF;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.adic-form .gform_wrapper textarea {
	min-height: 120px;
	resize: vertical;
}

.adic-form .gform_wrapper :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--wp--preset--color--secondary, #0A6591);
	box-shadow: 0 0 0 4px rgba(99, 195, 243, 0.25);
}

.adic-form .gform_wrapper ::placeholder {
	color: #98A2AD;
}

/* Radio / checkbox choices as tidy pills */
.adic-form .gform_wrapper :is(.gfield_radio, .gfield_checkbox) {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.adic-form .gform_wrapper :is(.gchoice) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid #CBD4DD;
	border-radius: 999px;
	font-size: 15px;
}

.adic-form .gform_wrapper .gchoice:has(input:checked) {
	border-color: var(--ink);
	background: var(--mist);
}

.adic-form .gform_wrapper .gchoice input {
	margin: 0;
	accent-color: var(--ink);
}

.adic-form .gform_wrapper .gchoice label {
	margin: 0;
	font-weight: 600;
}

.adic-form .gform_wrapper .gform_footer {
	margin-top: 24px;
	padding: 0;
}

.adic-form .gform_wrapper :is(input[type="submit"], button[type="submit"], .gform_button) {
	width: 100%;
	min-height: 54px;
	border: 0;
	border-radius: 999px;
	background: var(--color-amber, #FFB53E);
	color: var(--ink);
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.adic-form .gform_wrapper :is(input[type="submit"], button[type="submit"], .gform_button):hover {
	background: var(--color-sunshine, #FED53B);
}

.adic-form .gform_wrapper :is(.validation_message, .gfield_validation_message) {
	margin-top: 6px;
	color: #B42318;
	font-size: 14px;
	font-weight: 600;
}

.adic-form-placeholder {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px;
	border: 2px dashed #95D3F8;
	border-radius: 18px;
	text-align: center;
}

/* ======================= PROMO ======================= */

.adic-promo {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px 40px;
	padding: clamp(32px, 5vw, 64px) !important;
	border-radius: 32px;
	background: var(--color-sunshine, #FED53B);
}

.adic-promo::after {
	content: "";
	position: absolute;
	width: 420px;
	height: 420px;
	right: -140px;
	bottom: -260px;
	border-radius: 50%;
	background: #FFFFFF;
	opacity: 0.28;
}

.adic-promo > * {
	position: relative;
	z-index: 1;
	margin: 0 !important;
}

.adic-promo__text {
	flex: 1 1 460px;
}

.adic-promo__text > * {
	margin: 0 0 8px !important;
}

.adic-promo h2 {
	font-size: clamp(32px, 4vw, 52px) !important;
	line-height: 1.05 !important;
	color: var(--ink);
}

.adic-promo__kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink) !important;
}

.adic-promo__terms {
	font-size: 13px;
	color: #4A4630 !important;
}

/* ======================= LOCATIONS GRID ======================= */

.adic-cities {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.adic-cities li {
	margin: 0;
}

.adic-cities a {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	padding: 18px 56px 18px 20px;
	border-radius: var(--r-sm);
	background: #FFFFFF;
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.adic-cities a::before {
	content: none;
}

.adic-cities a:hover,
.adic-cities a:focus-visible {
	border-color: #C5CED8;
	box-shadow: var(--shadow-md);
}

.adic-cities__name {
	font-size: 18px;
	font-weight: 700;
}

.adic-cities__count {
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
}

.adic-cities__arrow {
	position: absolute;
	right: 16px;
	top: 50%;
	width: 32px;
	height: 32px;
	padding: 7px;
	box-sizing: border-box;
	border-radius: 50%;
	background: var(--mist);
	transform: translateY(-50%);
	transition: background 0.2s, transform 0.2s;
}

.adic-cities a:hover .adic-cities__arrow {
	background: var(--color-amber, #FFB53E);
	transform: translate(2px, -50%);
}

/* ======================= STEPS ======================= */

.adic-steps {
	flex-wrap: wrap !important;
	gap: clamp(24px, 3vw, 40px) !important;
}

.adic-steps > .wp-block-column {
	flex: 1 1 260px !important;
}

.adic-step {
	--accent: var(--color-sky, #63C3F3);
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 28px;
	border-top: 2px solid rgba(255, 255, 255, 0.14);
	position: relative;
}

.adic-step::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 0;
	width: 56px;
	height: 2px;
	background: var(--accent);
}

.adic-step > * {
	margin: 0 !important;
}

.adic-step.is-accent-sky { --accent: var(--color-sky, #63C3F3); }
.adic-step.is-accent-green { --accent: var(--color-green, #8CC47B); }
.adic-step.is-accent-amber { --accent: var(--color-amber, #FFB53E); }
.adic-step.is-accent-sunshine { --accent: var(--color-sunshine, #FED53B); }

.adic-step__num {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--accent) !important;
}

.adic-step h3 {
	font-size: 22px;
}

/* ======================= FINAL CTA ======================= */

.adic-final {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px) !important;
	border-radius: 32px;
	background: var(--sky-tint);
	text-align: center;
}

.adic-final::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: var(--brand-stripe);
}

.adic-final > * {
	margin: 0 !important;
}

.adic-final h2 {
	max-width: 760px;
}

.adic-final p {
	max-width: 540px;
	font-size: 18px;
	line-height: 1.6;
}

.adic-final .wp-block-buttons {
	justify-content: center;
	margin-top: 12px !important;
}

/* The homepage closes with its own call to action, so skip the footer's duplicate strip. */
body:has(.adic-final) .adic-footer__cta {
	display: none;
}

/* ======================= SEPARATOR ======================= */

.wp-block-separator.is-style-brand-stripe.alignfull {
	margin-block: 0 !important;
	height: 6px;
}

/* ======================= SMALL SCREENS ======================= */

@media (max-width: 781px) {
	.adic-hero__cols > .wp-block-column.adic-hero__media {
		order: -1;
	}

	.wp-block-image.adic-arch {
		max-width: 400px;
	}

	.adic-float {
		left: 0;
		bottom: 16px;
	}

	.adic-float__big,
	.adic-float__price {
		font-size: 19px;
	}

	.adic-split.is-reversed > .wp-block-column.adic-split__media {
		order: -1;
	}

	.adic-video__cols > .adic-video__media {
		flex-basis: 100% !important;
	}

	.adic-head--row .wp-block-buttons,
	.adic-head--row .wp-block-button {
		width: 100%;
	}

	.adic-team__face {
		width: 84px;
		height: 84px;
	}

	.adic-form .gform_wrapper .gfield--width-half {
		grid-column: span 12;
	}

	.adic-form-section__cols {
		border-radius: var(--r-lg);
	}

	.adic-rating {
		border-radius: var(--r-sm);
	}
}

@media (prefers-reduced-motion: reduce) {
	.adic-sections *,
	.adic-sections *::before,
	.adic-sections *::after {
		transition: none !important;
	}
}

.editor-styles-wrapper .adic-team__track {
	animation-play-state: paused;
}

/* =====================================================================
   BRAND COLOUR LAYER
   One brand colour per section, following the stripe order down the page:
   hero sky · video sky · before/after green · feedback sunshine · form amber ·
   features & image cards = full stripe · locations = full stripe · steps = full stripe.
   Within a section, only that colour (plus white and ink) is used.
   ===================================================================== */

:root {
	--tint-sky: #EAF6FE;
	--tint-green: #EFF7EA;
	--tint-sunshine: #FFF8DD;
	--tint-amber: #FFF2DF;
	--c-sky-light: var(--color-sky-light, #95D3F8);
	--c-sky: var(--color-sky, #63C3F3);
	--c-sage: var(--color-sage, #B0D6A7);
	--c-green: var(--color-green, #8CC47B);
	--c-sunshine: var(--color-sunshine, #FED53B);
	--c-amber: var(--color-amber, #FFB53E);
}

/* Signature: a tiny brand stripe before every section label. */
.adic-section p.adic-eyebrow,
.adic-team__eyebrow,
.adic-cp__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.adic-section p.adic-eyebrow::before,
.adic-team__eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 30px;
	height: 4px;
	border-radius: 4px;
	background: var(--brand-stripe);
}

.adic-head p.adic-eyebrow,
.adic-head__text p.adic-eyebrow {
	align-self: flex-start;
}

/* ---------- Hero: soft sky with brand bubbles ---------- */

.adic-hero::before {
	background: var(--c-sky-light);
	opacity: 0.35;
}

.adic-hero::after {
	background: var(--c-sage);
	opacity: 0.4;
}

/* ---------- Team wall: rings in brand colours, numbers in brand highlighters ---------- */

.adic-team__face,
.adic-team__face.is-specialist {
	border: 3px solid var(--tint, var(--c-sky-light));
	box-shadow: none;
}

.adic-team__face img,
.adic-team__face > span {
	background: var(--tint, var(--c-sky-light));
}

.adic-team__heading mark,
.adic-team__heading mark.is-sky {
	background: linear-gradient(transparent 56%, color-mix(in srgb, var(--c-sky-light) 85%, transparent) 56%, color-mix(in srgb, var(--c-sky-light) 85%, transparent) 92%, transparent 92%);
}

.adic-team__heading mark.is-sunshine {
	background: linear-gradient(transparent 56%, var(--c-sunshine) 56%, var(--c-sunshine) 92%, transparent 92%);
}

.adic-team__heading mark.is-green {
	background: linear-gradient(transparent 56%, var(--c-sage) 56%, var(--c-sage) 92%, transparent 92%);
}

.adic-team__heading mark.is-amber {
	background: linear-gradient(transparent 56%, var(--c-amber) 56%, var(--c-amber) 92%, transparent 92%);
}

/* ---------- Video: sky ---------- */

.adic-video {
	background: var(--tint-sky);
}

.adic-video__media {
	position: relative;
}

/* An offset sky block behind the frame: deliberate, aligned, one colour. */
.adic-video__frame {
	overflow: visible;
	background: transparent;
	box-shadow: none;
}

.adic-video__frame::after {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border-radius: var(--r-lg);
	background: var(--c-sky-light);
	z-index: 0;
}

.adic-video__frame .wp-block-embed {
	position: relative;
	z-index: 1;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--ink);
	box-shadow: var(--shadow-lg);
}

/* ---------- Before / after: green ---------- */

.adic-ba {
	background: var(--tint-green);
}

.adic-ba-case {
	border-color: color-mix(in srgb, var(--c-green) 30%, #FFFFFF);
	box-shadow: 0 2px 4px rgba(58, 115, 48, 0.05), 0 20px 44px rgba(58, 115, 48, 0.12);
}

.adic-ba__tag--after {
	background: var(--c-green);
	color: var(--ink);
}

.adic-ba__knob {
	background: var(--c-green);
	border: 3px solid #FFFFFF;
}

.adic-ba__meta {
	color: var(--color-green-text, #3A7330) !important;
	font-weight: 600;
}

.adic-disclaimer {
	background: #FFFFFF;
	border: 1px solid color-mix(in srgb, var(--c-green) 30%, #FFFFFF);
}

/* ---------- Patient feedback: sunshine ---------- */

.adic-reviews {
	background: var(--tint-sunshine);
}

.adic-quote,
.adic-quote[class*="is-tint-"] {
	border: 0;
	border-top: 4px solid var(--c-sunshine);
	box-shadow: 0 2px 4px rgba(122, 96, 0, 0.04), 0 14px 36px rgba(122, 96, 0, 0.08);
}

.adic-quote::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath fill='%23FFB53E' d='M0 22V13Q0 5 7 0l3 3Q6 6 6 11h5v11zm16 0V13q0-8 7-13l3 3q-4 3-4 8h5v11z'/%3E%3C/svg%3E");
}

.adic-rating {
	border-color: color-mix(in srgb, var(--c-sunshine) 60%, #FFFFFF);
}

/* ---------- Consultation form: amber ---------- */

.adic-form-section__cols {
	position: relative;
	overflow: hidden;
	background: var(--tint-amber);
}

.adic-form-section__cols::before {
	content: "";
	position: absolute;
	width: 360px;
	height: 360px;
	left: -150px;
	bottom: -190px;
	border-radius: 50%;
	background: var(--c-amber);
	opacity: 0.18;
}

.adic-form-section__cols > * {
	position: relative;
	z-index: 1;
}

.adic-check::before {
	background-color: var(--c-amber);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E");
	box-shadow: none;
}

.adic-form-card {
	border-top: 6px solid var(--c-amber);
}

/* ---------- Feature cards: the full stripe, softly ---------- */

.adic-card,
.adic-card[class*="is-tint-"] {
	border: 0;
	background: color-mix(in srgb, var(--tint) 20%, #FFFFFF);
}

.adic-card:hover {
	box-shadow: 0 16px 36px color-mix(in srgb, var(--tint) 40%, transparent);
}

.adic-card[class*="has-icon-"]::before {
	background-color: var(--tint);
}

/* ---------- Image cards: brand-colour tiles, arrows pick up each tile's colour ---------- */

.adic-cards--media > .wp-block-column:nth-child(4n+1) .adic-media-card { --tile: var(--c-sky-light); }
.adic-cards--media > .wp-block-column:nth-child(4n+2) .adic-media-card { --tile: var(--c-sage); }
.adic-cards--media > .wp-block-column:nth-child(4n+3) .adic-media-card { --tile: var(--c-sunshine); }
.adic-cards--media > .wp-block-column:nth-child(4n+4) .adic-media-card { --tile: var(--c-amber); }

.adic-media-card {
	border: 0;
	box-shadow: var(--shadow-md);
}

.adic-media-card h3::after {
	background-color: var(--tile, var(--c-sunshine));
}

.adic-media-card:hover h3::after {
	background-color: var(--ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ---------- Locations: brand-colour edge on every card (stripe order) ---------- */

.adic-cities a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: var(--tint);
}

.adic-cities a {
	padding-left: 24px;
	overflow: hidden;
}

.adic-cities a:hover .adic-cities__arrow {
	background: var(--tint);
}

/* ---------- Steps: big numbers in stripe colours on ink ---------- */

.adic-step {
	border-top: 0;
	padding-top: 0;
}

.adic-step::before {
	content: none;
}

.adic-step__num {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 52px;
	line-height: 1;
	letter-spacing: -0.02em;
}

.adic-step__num::after {
	content: "";
	flex: 1 1 auto;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--accent), transparent);
	opacity: 0.6;
}

/* ---------- Final CTA: sky with the full stripe and brand bubbles ---------- */

.adic-final::after {
	content: "";
	position: absolute;
	width: 300px;
	height: 300px;
	right: -110px;
	bottom: -170px;
	border-radius: 50%;
	background: var(--c-sky-light);
	opacity: 0.45;
	z-index: 0;
}

.adic-final > * {
	position: relative;
	z-index: 1;
}

/* Doctors carousel keeps its own colours inside sections. */
.adic-section .adic-docs p {
	color: inherit;
}

.adic-section .adic-docs .adic-docs__eyebrow {
	color: var(--c-sunshine);
}

.adic-section .adic-docs .adic-docs__practice {
	color: var(--c-sky-light);
}

.adic-section .adic-docs .adic-docs__bio {
	color: #D5DADF;
}

/* =====================================================================
   VIDEO: back to the 1.7 look (white section, dark frame, two brand blobs)
   ===================================================================== */

.adic-video {
	background: #FFFFFF;
	isolation: isolate;
}

.adic-section:not(.adic-band):not(.adic-dark) + .adic-video:not(.adic-band),
.adic-video + .adic-section:not(.adic-band):not(.adic-dark):not(.adic-reviews):not(.adic-ba) {
	padding-top: 0 !important;
}

.adic-video__frame {
	position: relative;
	overflow: visible;
	padding: 12px !important;
	border-radius: 32px;
	background: var(--ink);
	box-shadow: 0 24px 60px rgba(10, 41, 66, 0.22);
}

.adic-video__frame::before {
	content: "";
	position: absolute;
	inset: -16px auto auto -16px;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--c-sunshine);
	z-index: -1;
}

.adic-video__frame::after {
	content: "";
	position: absolute;
	inset: auto -20px -20px auto;
	width: 150px;
	height: 150px;
	border-radius: 30px;
	background: var(--c-sky-light);
	z-index: -1;
}

.adic-video__frame .wp-block-embed {
	border-radius: 22px;
	overflow: hidden;
	box-shadow: none;
	background: #000;
}

/* =====================================================================
   REAL PATIENTS: two colour panels side by side, each with a slider
   ===================================================================== */

.adic-proof__cols {
	align-items: stretch !important;
	gap: var(--s-gap) !important;
	flex-wrap: wrap !important;
}

.adic-proof__cols > .wp-block-column {
	flex: 1 1 420px !important;
	display: flex;
	min-width: 0;
}

.adic-proof__panel {
	--panel: var(--tint-green);
	--accent: var(--c-green);
	--accent-ink: var(--color-green-text, #3A7330);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3.4vw, 40px) !important;
	border-radius: 32px;
	background: var(--panel);
	margin: 0 !important;
}

.adic-proof__panel.is-sunshine {
	--panel: var(--tint-sunshine);
	--accent: var(--c-sunshine);
	--accent-ink: #8A6400;
}

.adic-proof__panel::before {
	content: "";
	position: absolute;
	width: 260px;
	height: 260px;
	right: -90px;
	top: -110px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.28;
}

.adic-proof__panel > * {
	position: relative;
	z-index: 1;
	margin: 0 !important;
}

.adic-proof__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-ink) !important;
}

.adic-proof__kicker::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px #FFFFFF;
}

.adic-proof__title {
	margin-top: 8px !important;
	margin-bottom: 24px !important;
	font-size: clamp(24px, 2.4vw, 30px) !important;
}

/* Sliders */
.adic-slider {
	display: grid;
	margin: 0 !important;
}

.adic-slider > * {
	grid-area: 1 / 1;
	margin: 0 !important;
}

.adic-slider.is-slider-ready > .adic-slide {
	opacity: 0;
	visibility: hidden;
	transform: translateX(16px);
	transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

.adic-slider.is-slider-ready > .adic-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s;
}

.adic-slider__nav {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px !important;
}

.adic-slider__dots {
	display: flex;
	gap: 6px;
	margin-right: auto;
}

.adic-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--accent, #1A1A1A) 40%, #FFFFFF);
	cursor: pointer;
	transition: width 0.25s, background 0.25s;
}

.adic-slider__dot[aria-current="true"] {
	width: 28px;
	background: var(--ink);
}

.adic-slider__count {
	font-size: 14px;
	font-weight: 700;
	color: var(--accent-ink, var(--body));
	font-variant-numeric: tabular-nums;
}

.adic-slider__btn {
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: #FFFFFF;
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.adic-slider__next svg {
	transform: rotate(180deg);
}

.adic-slider__btn:hover,
.adic-slider__btn:focus-visible {
	background: var(--ink);
	color: #FFFFFF;
}

.adic-slider__next {
	background: var(--accent);
}

/* Before/after inside the panel */
.adic-proof .adic-ba-case {
	border: 0;
	box-shadow: 0 14px 34px rgba(58, 115, 48, 0.14);
}

.adic-proof .adic-disclaimer {
	margin-top: 20px !important;
	padding: 14px 16px !important;
	background: rgba(255, 255, 255, 0.7);
	border: 0;
}

.adic-proof .adic-disclaimer p {
	font-size: 12.5px;
}

/* Testimonials inside the panel */
.adic-proof .adic-rating {
	align-self: flex-start;
	margin: 0 0 20px !important;
	border: 0;
	box-shadow: var(--shadow-sm);
}

.adic-proof .adic-quote,
.adic-proof .adic-quote[class*="is-tint-"] {
	justify-content: space-between;
	padding: clamp(28px, 3vw, 40px) !important;
	padding-top: calc(clamp(28px, 3vw, 40px) + 48px) !important;
	border: 0;
	border-radius: var(--r-md);
	box-shadow: 0 14px 34px rgba(122, 96, 0, 0.1);
}

.adic-proof .adic-quote::before {
	top: clamp(28px, 3vw, 40px);
	left: clamp(28px, 3vw, 40px);
	width: 40px;
	height: 32px;
}

.adic-proof .adic-quote__text {
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.6;
}

.adic-proof .adic-quote__name {
	display: flex;
	align-items: center;
	gap: 10px;
}

.adic-proof .adic-quote__name::before {
	content: "";
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: var(--c-amber);
}

.adic-proof .adic-fineprint {
	margin-top: auto !important;
	padding-top: 16px;
	font-size: 12.5px;
}

/* Editor: show all slides stacked so they can be edited. */
.editor-styles-wrapper .adic-slider {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* =====================================================================
   FINDER PAGES (Find your dentist, search results)
   ===================================================================== */

.adic-hero--finder {
	text-align: center;
	padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 80px) !important;
}

.adic-hero--finder > * {
	margin-inline: auto !important;
}

.adic-hero--finder > * + * {
	margin-top: 20px !important;
}

.adic-hero--finder .adic-pill {
	display: inline-block;
}

.adic-hero--finder .adic-hero__title {
	max-width: 880px;
}

.adic-hero--finder .adic-hero__lead {
	max-width: 640px;
}

.adic-hero--finder .cliloc-search {
	max-width: 760px;
	margin: 32px auto 0 !important;
	text-align: left;
}

.adic-hero--finder .cliloc-search__field {
	max-width: none;
}

.adic-hero--finder .cliloc-search__pills {
	justify-content: center;
}

.adic-hero--finder::before {
	background: var(--c-sky-light);
	opacity: 0.4;
}

.adic-hero--finder::after {
	background: var(--c-sunshine);
	opacity: 0.35;
}

.adic-finder {
	padding-top: clamp(40px, 5vw, 64px) !important;
	background: #FFFFFF;
}

.adic-finder .cliloc-results {
	margin: 0;
}

/* =====================================================================
   GRAVITY FORMS: hide technical fields (the theme turns off Gravity Forms' own CSS)
   ===================================================================== */

.gform_wrapper :is(.gform_hidden, .gfield--type-hidden, .gfield_visibility_hidden, .gform_validation_container) {
	display: none !important;
}

.adic-form .ginput_complex {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.adic-form .ginput_complex > span {
	flex: 1 1 160px;
	display: flex;
	flex-direction: column-reverse;
	gap: 4px;
}

.adic-form .ginput_complex label {
	font-size: 13px;
	color: var(--muted);
}

/* =====================================================================
   BOOKING PAGE
   ===================================================================== */

.adic-booking .adic-form-section {
	padding-top: clamp(40px, 5vw, 64px) !important;
}

/* Testimonial card fills the panel; rating as a compact rounded card. */
.adic-proof .adic-quote-slider {
	flex: 1 1 auto;
}

.adic-proof .adic-quote-slider > .adic-quote {
	height: 100%;
}

.adic-proof .adic-rating {
	border-radius: 18px;
	padding: 14px 18px;
}

.adic-proof .adic-fineprint {
	margin-top: 0 !important;
}

.adic-proof .adic-quote-slider + .adic-slider__nav {
	margin-bottom: 0 !important;
}

/* =====================================================================
   BENEFITS TICKER (filter/marquee)
   ===================================================================== */

.adic-marquee {
	position: relative;
	overflow: hidden;
	max-width: none !important;
	margin: 0 !important;
	padding: 20px 0 18px;
	background: #17191B;
	color: #FFFFFF;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.adic-marquee::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--brand-stripe);
}

.adic-marquee__track {
	display: flex;
	width: max-content;
	animation: adic-marquee 46s linear infinite;
}

.adic-marquee__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adic-marquee li {
	--c: var(--c-sky-light, #95D3F8);
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0 26px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.adic-marquee li::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background: var(--c);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.5 5.5 11.2 12 12-6.5.8-11.2 5.5-12 12-.8-6.5-5.5-11.2-12-12C6.5 11.2 11.2 6.5 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.5 5.5 11.2 12 12-6.5.8-11.2 5.5-12 12-.8-6.5-5.5-11.2-12-12C6.5 11.2 11.2 6.5 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.adic-marquee li.is-green { --c: var(--c-green, #8CC47B); }
.adic-marquee li.is-sunshine { --c: var(--c-sunshine, #FED53B); }
.adic-marquee li.is-amber { --c: var(--c-amber, #FFB53E); }

@keyframes adic-marquee {
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.adic-marquee__track {
		animation: none;
		width: auto;
		justify-content: center;
	}

	.adic-marquee__list {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 10px;
	}

	.adic-marquee__list[aria-hidden="true"] {
		display: none;
	}
}

.editor-styles-wrapper .adic-marquee__track {
	animation-play-state: paused;
}

/* =====================================================================
   HERO TEAM BADGE (filter/hero-badge)
   ===================================================================== */

.adic-herobadge {
	position: absolute;
	top: 36px;
	right: -18px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	max-width: 360px;
	padding: 12px 20px 12px 12px;
	border-radius: 20px;
	background: #FFFFFF;
	border: 1px solid rgba(15, 35, 55, 0.06);
	box-shadow: 0 30px 60px -20px rgba(15, 35, 55, 0.35);
	color: var(--ink) !important;
	text-decoration: none !important;
	transition: transform 0.3s, box-shadow 0.3s;
}

.adic-herobadge:hover {
	box-shadow: 0 34px 70px -18px rgba(15, 35, 55, 0.45);
}

.adic-herobadge__faces {
	display: flex;
	flex: 0 0 auto;
	padding-left: 10px;
}

.adic-herobadge__faces > * {
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	margin-left: -12px;
	border-radius: 50%;
	border: 2.5px solid #FFFFFF;
	object-fit: cover;
	background: var(--mist);
}

.adic-herobadge__faces > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--c-sunshine, #FED53B);
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
}

.adic-herobadge__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.adic-herobadge__text strong {
	font-size: 16px;
	white-space: nowrap;
}

.adic-herobadge__text > span {
	font-size: 13px;
	color: var(--body);
}

.adic-herobadge__text em {
	margin-top: 4px;
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	color: var(--color-green-text, #3A7330);
}

@media (max-width: 781px) {
	.adic-herobadge {
		top: 14px;
		right: 0;
		max-width: 250px;
		padding: 10px 14px 10px 10px;
		gap: 10px;
	}

	.adic-herobadge__faces > * {
		width: 32px;
		height: 32px;
	}

	.adic-herobadge__text strong {
		font-size: 14px;
	}
}

/* =====================================================================
   VIDEO: THEATRE LAYOUT (v3)
   Heading centred on top, a large framed video below with a branded play button.
   ===================================================================== */

.adic-section.adic-video {
	position: relative;
	overflow: hidden;
	padding-top: var(--s-section) !important;
	background:
		radial-gradient(900px 520px at 12% 0%, rgba(149, 211, 248, 0.38), transparent 62%),
		radial-gradient(760px 480px at 92% 100%, rgba(254, 213, 59, 0.2), transparent 60%),
		linear-gradient(180deg, #FFFFFF 0%, #F1F8FD 100%);
}

.adic-video__cols {
	flex-direction: column !important;
	align-items: center !important;
	gap: clamp(32px, 4vw, 52px) !important;
}

.adic-video__cols > .adic-video__text {
	order: -1;
	flex: 0 0 auto !important;
	width: 100%;
	max-width: 780px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.adic-video__cols > .adic-video__text > * {
	margin-inline: auto !important;
}

.adic-video__text .wp-block-buttons {
	justify-content: center;
	margin-top: 20px !important;
}

.adic-video__cols > .adic-video__media {
	flex: 0 0 auto !important;
	width: 100%;
	max-width: 1040px;
}

/* Frame: a thin brand-colour ring and a deep, soft shadow. */
.adic-video__frame {
	padding: 8px !important;
	border-radius: 34px;
	background: linear-gradient(135deg, var(--c-sky-light) 0%, var(--c-sage) 35%, var(--c-sunshine) 68%, var(--c-amber) 100%);
	box-shadow: 0 60px 120px -50px rgba(10, 41, 66, 0.6), 0 20px 40px -24px rgba(10, 41, 66, 0.35);
}

.adic-video__frame::before,
.adic-video__frame::after {
	content: none;
}

.adic-video__frame .wp-block-embed {
	margin: 0 !important;
	border-radius: 27px;
	overflow: hidden;
	background: #0F1418;
}

/* Branded player (poster + play button), see inc/home-v3.php and assets/js/pages.js */
.adic-yt {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: radial-gradient(circle at 50% 40%, #2B3A44, #0F1418);
	cursor: pointer;
}

/* The player sizes itself; switch off the embed wrapper's own ratio spacer. */
.wp-block-embed__wrapper:has(> .adic-yt)::before {
	content: none !important;
	display: none !important;
}

.wp-block-embed__wrapper:has(> .adic-yt) {
	position: relative;
}

.adic-yt__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.01);
	transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.adic-yt::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 16, 22, 0.05) 40%, rgba(10, 16, 22, 0.72) 100%);
	pointer-events: none;
}

.adic-yt:hover .adic-yt__poster {
	transform: scale(1.04);
}

.adic-yt__play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: clamp(72px, 8vw, 104px);
	height: clamp(72px, 8vw, 104px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: var(--c-amber, #FFB53E) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A1A1A'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.4-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E") no-repeat 56% 50% / 38%;
	box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.6);
	cursor: pointer;
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
}

.adic-yt__play::before {
	content: "";
	position: absolute;
	inset: -14px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.75);
	animation: adic-yt-pulse 2.4s ease-out infinite;
}

.adic-yt:hover .adic-yt__play,
.adic-yt__play:focus-visible {
	transform: translate(-50%, -50%) scale(1.08);
	background-color: var(--c-sunshine, #FED53B);
}

.adic-yt__play:focus-visible {
	outline: 3px solid #FFFFFF;
	outline-offset: 6px;
}

@keyframes adic-yt-pulse {
	0% { transform: scale(0.85); opacity: 0.9; }
	100% { transform: scale(1.4); opacity: 0; }
}

.adic-yt__caption {
	position: absolute;
	left: clamp(16px, 2.4vw, 28px);
	right: clamp(16px, 2.4vw, 28px);
	bottom: clamp(14px, 2.2vw, 26px);
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	color: #FFFFFF;
	font-size: clamp(15px, 1.6vw, 20px);
	font-weight: 700;
	line-height: 1.3;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

.adic-yt__label {
	flex: 0 0 auto;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-shadow: none;
}

.adic-yt.is-playing::after,
.adic-yt.is-playing > :not(iframe) {
	display: none;
}

.adic-yt iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 781px) {
	.adic-video__frame {
		padding: 5px !important;
		border-radius: 24px;
	}

	.adic-video__frame .wp-block-embed {
		border-radius: 20px;
	}

	.adic-yt__caption {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adic-yt__play::before {
		animation: none;
	}
}

/* The theatre video has its own background, so it always keeps full spacing (and so does
   the section after it). Selectors are long only to outrank the shared-gap rules above. */
.adic-section + .adic-section.adic-video:not(.adic-band):not(.adic-dark):not(.adic-reviews):not(.adic-ba):not(.adic-proof) {
	padding-top: var(--s-section) !important;
}

.adic-section.adic-video + .adic-section:not(.adic-band):not(.adic-dark):not(.adic-reviews):not(.adic-ba) {
	padding-top: var(--s-section) !important;
}
