/**
 * Dr. Adyb Khal — theme styles.
 *
 * theme.json owns colour, type and spacing. This file holds the things it
 * cannot express: the sticky header, the hero, parallax bands, cards and the
 * focus treatment. Carousels and other block internals live in the plugin's
 * blocks.css so they survive a theme change.
 */

/* ---------------------------------------------------------------- Base ---- */

/*
 * Padding and borders count inside a declared width.
 *
 * The browser default is content-box, which had two visible consequences
 * here: form fields set to `width: 100%` ran 34px past the edge of a phone
 * screen, and a stretched grid item — a testimonial card — had its row sized
 * from its content box, so the card rendered 67px taller than the row that
 * held it, was clipped by the carousel, and pushed the section below it into
 * an overlap.
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--adyb-header-height: 96px;
	--adyb-header-base: 104px;
	--adyb-r-sm: 10px;
	--adyb-r-md: 18px;
	--adyb-r-lg: 28px;
	--adyb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-strong);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

body > .skip-link,
.adyb-skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 1000;
	padding: 0.9rem 1.5rem;
	border-radius: 0 0 var(--adyb-r-sm) var(--adyb-r-sm);
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}

body > .skip-link:focus,
.adyb-skip-link:focus {
	top: 0;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
}

/* ------------------------------------------------------- Scroll reveal ---- */

/* theme.js adds this class only when motion is welcome, so without JavaScript
   or with reduced motion the content is simply visible. */
.adyb-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s var(--adyb-ease), transform 0.7s var(--adyb-ease);
	will-change: opacity, transform;
}

.adyb-reveal.is-visible {
	opacity: 1;
	transform: none;
}


/* ------------------------------------------------------- Vertical rhythm ---- */

/*
 * Pages without a hero start directly under the floating bar, with one modest
 * gap rather than the bar's height plus a section's own padding.
 */
/*
 * The bar's real height, measured.
 *
 * It is not a constant: the logo scales with the viewport, so the bar is 52px
 * on a laptop, 73px on a phone and 86px on a wide screen. Any fixed value is
 * wrong somewhere — a subtracted one left the page header sliding 34px under
 * the bar at 1440px while leaving a gap at other widths. theme.js keeps
 * --adyb-header-height in step with a ResizeObserver, and on a page with no
 * hero the bar is solid from the start, so the value never changes on scroll
 * and the page cannot jump.
 */
body:not(.adyb-has-hero) {
	padding-block-start: var(--adyb-header-height);
}

/*
 * Full-bleed sections butt against one another. The editor's default gap
 * between sibling blocks put a 24px stripe between every pair, on top of the
 * padding each one already carries.
 */
.adyb-main > .wp-block-post-content > .adyb-band,
.adyb-main > .wp-block-post-content > .adyb-parallax,
.adyb-main > .wp-block-post-content > .adyb-cv-cta {
	margin-block: 0;
}

/*
 * A page header runs straight into its content.
 *
 * Both are generated bands carrying their own padding — and the generator
 * writes that padding inline, which is the one thing a stylesheet cannot
 * outrank without !important. Left alone the two helpings came to 88px of
 * empty space between the header's rule and the first card.
 */
.adyb-page-head {
	padding-block-end: var(--wp--preset--spacing--20) !important;
}

.adyb-page-head + .adyb-band,
.adyb-page-head + .adyb-parallax {
	padding-block-start: var(--wp--preset--spacing--30) !important;
}

/* A page's first band never needs its own top padding on top of that. */
body:not(.adyb-has-hero) .adyb-main > .wp-block-post-content > .adyb-band:first-child,
body:not(.adyb-has-hero) .adyb-main > .wp-block-post-content > .adyb-parallax:first-child {
	padding-block-start: var(--wp--preset--spacing--50);
}

/* The last band runs into the footer instead of leaving a pale strip. */
.adyb-main > .wp-block-post-content > :last-child {
	margin-block-end: 0;
}

.wp-site-blocks > .wp-block-template-part:last-child {
	margin-block-start: 0;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/*
 * A band whose colour already matches the footer should meet it seamlessly, so
 * its bottom padding is dropped and the footer supplies the space.
 */
.adyb-main > .wp-block-post-content > .adyb-band--flush:last-child {
	padding-block-end: 0;
}

.adyb-footer {
	padding-block-start: var(--wp--preset--spacing--60);
}


/* -------------------------------------------------------------- Header ---- */

/*
 * The header floats over the hero, transparent, and turns into a compact
 * solid bar once the page scrolls. Pages without a hero simply start below it,
 * which is what the body padding is for.
 */
.adyb-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
	background: transparent;
	border-block-end: 1px solid transparent;
	transition: background-color 0.3s var(--adyb-ease), box-shadow 0.3s var(--adyb-ease),
		padding 0.3s var(--adyb-ease), border-color 0.3s var(--adyb-ease);
}

body {
	padding-block-start: var(--adyb-header-base);
}

/* The homepage hero sits underneath the transparent header. */
body.home,
body.adyb-has-hero {
	padding-block-start: 0;
}

.adyb-header.is-stuck {
	background: rgba(255, 255, 255, 0.94);
	border-block-end-color: rgba(29, 43, 77, 0.08);
	box-shadow: 0 6px 26px rgba(18, 28, 51, 0.1);
	padding-block: 0.3rem !important;
}

/*
 * The frosted backdrop lives on a pseudo-element, not on the header.
 *
 * `backdrop-filter` establishes a containing block for fixed-position
 * descendants, so with it on the header the mobile menu — which is
 * `position: fixed; inset: 0` — resolved against the header instead of the
 * viewport and opened as a 96px sliver across the top of the page. On a
 * child the blur renders exactly the same and fixed descendants go back to
 * measuring themselves against the viewport.
 */
.adyb-header.is-stuck::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	pointer-events: none;
}

.adyb-header__inner {
	gap: var(--wp--preset--spacing--30);
}

.adyb-header__brand {
	gap: 0.85rem;
	min-width: 0;
}

.adyb-header {
	--adyb-logo: clamp(150px, 14vw, 194px);
}

.adyb-header.is-stuck {
	--adyb-logo: clamp(108px, 9vw, 132px);
}

/*
 * Two real artworks rather than a CSS filter: the lockup has hairline serif
 * strokes that a brightness/invert filter turns to mush.
 */
.adyb-logo {
	position: relative;
	display: block;
	width: var(--adyb-logo);
	line-height: 0;
	transition: width 0.35s var(--adyb-ease);
}

.adyb-logo img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity 0.3s var(--adyb-ease);
}

.adyb-logo__light {
	position: absolute;
	inset: 0;
	opacity: 0;
}

/* Over the hero the bar is transparent, so the white lockup is shown. */
body.adyb-has-hero .adyb-header:not(.is-stuck) .adyb-logo__dark {
	opacity: 0;
}

body.adyb-has-hero .adyb-header:not(.is-stuck) .adyb-logo__light {
	opacity: 1;
}

/* The site title is kept for assistive technology and search engines; the
   logo lockup already shows the practice name. */
.adyb-header__wordmark {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.adyb-header__nav {
	gap: clamp(0.75rem, 2vw, 1.5rem);
}

.adyb-header .wp-block-navigation a {
	position: relative;
	color: var(--wp--preset--color--brand);
	text-decoration: none;
	padding-block: 0.5rem;
	transition: color 0.3s var(--adyb-ease);
}

body.adyb-has-hero .adyb-header:not(.is-stuck) .wp-block-navigation a {
	color: var(--wp--preset--color--base);
}

.adyb-header .wp-block-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0.15rem;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--accent-strong);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--adyb-ease);
}

body.adyb-has-hero .adyb-header:not(.is-stuck) .wp-block-navigation a::after {
	background: var(--wp--preset--color--accent);
}

.adyb-header .wp-block-navigation a:hover::after,
.adyb-header .wp-block-navigation a:focus-visible::after,
.adyb-header .wp-block-navigation .current-menu-item > a::after {
	transform: scaleX(1);
}

/* The hamburger and its icon follow the same inversion. */
body.adyb-has-hero .adyb-header:not(.is-stuck) .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--base);
}

.adyb-header__cta .wp-block-button__link {
	padding: 0.7rem 1.5rem;
	font-size: var(--wp--preset--font-size--x-small);
	background: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--base);
	white-space: nowrap;
}

body.adyb-has-hero .adyb-header:not(.is-stuck) .adyb-header__cta .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--brand);
}

.adyb-header__cta .wp-block-button__link:hover,
.adyb-header__cta .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--accent-strong);
	border-color: var(--wp--preset--color--accent-strong);
	color: var(--wp--preset--color--base);
}

/* Language switcher — Polylang sets its class on the <ul> itself. */
ul.adyb-langswitch,
.adyb-langswitch ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
}

ul.adyb-langswitch li,
.adyb-langswitch li {
	margin: 0;
	list-style: none;
}

.adyb-langswitch a {
	display: flex;
	align-items: center;
	padding: 0.3rem;
	border-radius: 6px;
	line-height: 0;
	opacity: 0.5;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.adyb-langswitch a:hover,
.adyb-langswitch a:focus-visible,
.adyb-langswitch .current-lang a {
	opacity: 1;
	transform: translateY(-1px);
}

.adyb-langswitch img {
	display: block;
	width: 22px;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(18, 28, 51, 0.25);
	transition: width 0.3s var(--adyb-ease);
}

.adyb-header.is-stuck .adyb-langswitch img {
	width: 19px;
}

.adyb-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
}

.adyb-header .wp-block-navigation__responsive-container.is-menu-open a {
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
}

.adyb-header .wp-block-navigation__responsive-container.is-menu-open a::after {
	display: none;
}

@media (max-width: 1099px) {
	.adyb-header__cta {
		display: none;
	}
}


/* The header is out of flow, so nothing should reserve space before the
   first band. */
.wp-site-blocks > .wp-block-template-part:first-child {
	margin-block: 0;
}

.adyb-main {
	margin-block-start: 0;
}

/* Keep the bar on one row at desktop widths. */
@media (min-width: 900px) {
	.adyb-header .wp-block-navigation__container {
		flex-wrap: nowrap;
	}

	.adyb-header .wp-block-navigation {
		font-size: 0.9rem;
	}
}

@media (min-width: 900px) and (max-width: 1240px) {
	.adyb-header__nav {
		gap: 0.75rem;
	}

	.adyb-header .wp-block-navigation {
		font-size: 0.82rem;
	}

	.adyb-header .wp-block-navigation__container {
		gap: 0.9rem !important;
	}

	.adyb-header {
		--adyb-logo: 132px;
	}

	.adyb-header.is-stuck {
		--adyb-logo: 100px;
	}
}

/* ---------------------------------------------------------------- Hero ---- */

.adyb-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--wp--preset--color--brand);
}

.adyb-hero__bg {
	position: absolute;
	inset: -14% 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	will-change: transform;
}

.adyb-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(12, 19, 36, 0.72) 0%, rgba(12, 19, 36, 0.22) 22%, rgba(12, 19, 36, 0) 38%),
		linear-gradient(100deg, rgba(18, 28, 51, 0.95) 0%, rgba(29, 43, 77, 0.88) 44%, rgba(29, 43, 77, 0.5) 72%, rgba(29, 43, 77, 0.32) 100%);
}

/* The portrait sits above the copy on narrow screens, so it must clear the
   floating header rather than sliding under the logo. */
.adyb-hero__figure {
	z-index: 2;
}

.adyb-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
	max-width: 1240px;
	margin-inline: auto;
	padding: calc(var(--adyb-header-base) + clamp(2rem, 5vw, 4rem)) var(--wp--preset--spacing--30) clamp(3.5rem, 8vw, 6rem);
	min-height: min(92vh, 820px);
}

.adyb-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1.25rem;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.adyb-hero__eyebrow::before {
	content: "";
	width: 34px;
	height: 2px;
	background: var(--wp--preset--color--accent);
}

.adyb-hero__title {
	margin: 0;
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--hero);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.adyb-hero__pre {
	display: block;
	margin-block-end: 0.5rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.4em;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--periwinkle);
}

.adyb-hero__credentials {
	margin: 0.7rem 0 0;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	letter-spacing: 0.08em;
}

.adyb-hero__lede {
	max-width: 46ch;
	margin: 1.6rem 0 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: var(--wp--preset--font-size--medium);
}

.adyb-hero__list {
	list-style: none;
	margin: 1.6rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}

.adyb-hero__list li {
	position: relative;
	padding-inline-start: 1.9rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
}

.adyb-hero__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 4px rgba(226, 196, 163, 0.22);
}

.adyb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-block-start: 2.1rem;
}

.adyb-hero__actions .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--brand);
}

.adyb-hero__actions .wp-block-button__link:hover,
.adyb-hero__actions .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--brand);
}

.adyb-hero__actions .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--wp--preset--color--base);
}

.adyb-hero__actions .is-style-outline .wp-block-button__link:hover,
.adyb-hero__actions .is-style-outline .wp-block-button__link:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--wp--preset--color--base);
}

.adyb-hero__figure {
	position: relative;
	margin: 0;
}

.adyb-hero__figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--adyb-r-lg);
	box-shadow: 0 30px 70px rgba(10, 16, 30, 0.45);
}

/* Circular credential badge, echoing the reference site. */
.adyb-hero__badge {
	position: absolute;
	right: -14px;
	top: -22px;
	display: grid;
	place-items: center;
	width: clamp(96px, 11vw, 130px);
	aspect-ratio: 1;
	padding: 0.9rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--brand);
	text-align: center;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.3;
	box-shadow: 0 16px 36px rgba(10, 16, 30, 0.35);
}

.adyb-hero__badge strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.55rem;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1;
}

.adyb-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.4rem;
	z-index: 3;
	transform: translateX(-50%);
	display: grid;
	justify-items: center;
	gap: 0.4rem;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
}

.adyb-hero__scroll::after {
	content: "";
	width: 1px;
	height: 34px;
	background: linear-gradient(rgba(255, 255, 255, 0.75), transparent);
	animation: adyb-drift 2.2s ease-in-out infinite;
}

@keyframes adyb-drift {
	0%, 100% { transform: translateY(0); opacity: 0.35; }
	50%      { transform: translateY(7px); opacity: 1; }
}

@media (max-width: 899px) {
	:root {
		--adyb-header-base: 84px;
	}

	.adyb-hero__inner {
		grid-template-columns: 1fr;
		min-height: 0;
		padding-block: clamp(2.5rem, 9vw, 4rem);
	}

	.adyb-hero__inner {
		padding-block-start: calc(var(--adyb-header-base) + 1.5rem);
	}

	.adyb-hero__figure {
		order: -1;
		max-width: 300px;
		margin-inline: auto;
	}

	.adyb-hero__badge {
		right: -6px;
		top: -16px;
		width: clamp(84px, 24vw, 104px);
		font-size: 0.55rem;
	}

	.adyb-hero__badge strong {
		font-size: 1.3rem;
	}

	.adyb-hero__scroll {
		display: none;
	}
}

/* ------------------------------------------------------- Parallax band ---- */

.adyb-parallax {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--wp--preset--color--brand);
}

.adyb-parallax__bg {
	position: absolute;
	inset: -20% 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	will-change: transform;
}

.adyb-parallax::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(18, 28, 51, 0.9), rgba(29, 43, 77, 0.93));
}

.adyb-parallax--light::after {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.91), rgba(245, 247, 251, 0.95));
}

.adyb-parallax > *:not(.adyb-parallax__bg) {
	position: relative;
	z-index: 2;
}

.adyb-parallax :where(h1, h2, h3, p):not(.adyb-counter__label) {
	color: var(--wp--preset--color--base);
}

.adyb-parallax--light :where(h1, h2, h3, p) {
	color: var(--wp--preset--color--brand);
}

.adyb-parallax .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--brand);
}

.adyb-parallax .wp-block-button__link:hover,
.adyb-parallax .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
}

/* ------------------------------------------------------------- Sections ---- */

.adyb-band {
	position: relative;
}

.adyb-eyebrow {
	display: block;
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--accent-strong);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.adyb-parallax .adyb-eyebrow {
	color: var(--wp--preset--color--accent);
}

.adyb-heading-rule::after {
	content: "";
	display: block;
	width: 62px;
	height: 3px;
	margin-block-start: 1.1rem;
	border-radius: 3px;
	background: var(--wp--preset--color--accent);
}

.has-text-align-center.adyb-heading-rule::after {
	margin-inline: auto;
}

.adyb-portrait img {
	border-radius: var(--adyb-r-lg);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.adyb-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--base);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.adyb-social-link:hover,
.adyb-social-link:focus-visible {
	background: var(--wp--preset--color--accent-strong);
	transform: translateY(-2px);
}

.adyb-social-link svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* ----------------------------------------------------------- Stat band ---- */

.adyb-parallax .adyb-counter__value {
	color: var(--wp--preset--color--base);
}

.adyb-parallax .adyb-counter__label {
	color: var(--wp--preset--color--accent);
}

/* ------------------------------------------------------- Floating action ---- */

/*
 * One floating button, whose destination depends on the language: WhatsApp on
 * the Romanian and English sites, Doctolib on the French one. It widens to
 * show its label on hover and keyboard focus so the action is never a mystery
 * icon.
 */
.adyb-fab {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 0;
	height: 58px;
	padding: 0 0.85rem;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(18, 28, 51, 0.32);
	transition: gap 0.28s var(--adyb-ease), padding 0.28s var(--adyb-ease),
		transform 0.2s var(--adyb-ease);
	overflow: hidden;
}

.adyb-fab--whatsapp {
	background: #1eb355;
}

.adyb-fab--doctolib {
	background: var(--wp--preset--color--brand);
}

.adyb-fab__icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.adyb-fab--doctolib .adyb-fab__icon {
	fill: none;
	stroke: currentColor;
}

.adyb-fab__label {
	max-width: 0;
	white-space: nowrap;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	opacity: 0;
	transition: max-width 0.28s var(--adyb-ease), opacity 0.2s var(--adyb-ease);
}

.adyb-fab:hover,
.adyb-fab:focus-visible {
	gap: 0.6rem;
	padding-inline: 1.05rem 1.35rem;
	transform: translateY(-2px);
}

.adyb-fab:hover .adyb-fab__label,
.adyb-fab:focus-visible .adyb-fab__label {
	max-width: 22rem;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.adyb-fab,
	.adyb-fab__label {
		transition: none;
	}
}

@media print {
	.adyb-fab,
	.adyb-header {
		display: none;
	}
}

/* -------------------------------------------------------------- Footer ---- */

.adyb-footer {
	background: var(--wp--preset--color--brand-deep);
}

.adyb-footer a {
	color: var(--wp--preset--color--sky);
	text-decoration: none;
}

.adyb-footer a:hover,
.adyb-footer a:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.adyb-footer__heading {
	margin-block-end: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--accent);
}

.adyb-footer__item {
	gap: 0.9rem;
	align-items: flex-start;
	margin-block-end: var(--wp--preset--spacing--30);
}

.adyb-footer__item p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
}

.adyb-footer__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
	color: var(--wp--preset--color--accent);
}

.adyb-footer__nav a {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.adyb-footer__rule {
	border-color: rgba(255, 255, 255, 0.14);
}

.adyb-footer__legal {
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

/* --------------------------------------------------------- Content flow ---- */

.adyb-main {
	scroll-padding-top: calc(var(--adyb-header-height) + 1rem);
}

.adyb-main :where(h2, h3) {
	scroll-margin-top: calc(var(--adyb-header-height) + 1rem);
}

.adyb-article__date {
	margin: 0;
}

/* Article banners are page scans, not photography: several are only 260px
   wide. Stretching them to the content column blurred them, so they are shown
   at their own size, centred, capped, and framed like a document. */
.adyb-article__figure {
	display: flex;
	justify-content: center;
}

.adyb-article__figure img {
	width: auto;
	max-width: min(100%, 34rem);
	max-height: 26rem;
	height: auto;
	object-fit: contain;
	border-radius: var(--adyb-r-md);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--adyb-shadow-sm, 0 2px 10px rgba(18, 28, 51, 0.1));
}

.adyb-article__meta {
	margin-block: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--adyb-r-md);
	background: var(--wp--preset--color--sand-surface);
	border: 1px solid rgba(141, 100, 48, 0.22);
}

.adyb-article__meta dt {
	margin-block-start: 1rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-strong);
}

.adyb-article__meta dt:first-child {
	margin-block-start: 0;
}

.adyb-article__meta dd {
	margin: 0.35rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}

/* Page headers announce the page; they should not occupy a third of the first
   screen before any content appears. */
.adyb-page-head {
	padding-block: clamp(2.25rem, 4vw, 3.25rem) clamp(1.75rem, 3vw, 2.5rem);
}

.adyb-page-head__title {
	font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem);
	margin-block-start: 0.35rem;
}

/* The Media submenu. It inherits the navigation block's overlay colours, the
   same deep navy the mobile menu uses, so it is styled as a dark panel rather
   than fought with a lighter one. */
.wp-block-navigation .wp-block-navigation__submenu-container {
	min-width: 13rem;
	padding: 0.4rem;
	border: 0;
	border-radius: 14px;
	box-shadow: 0 2px 6px rgba(18, 28, 51, 0.18), 0 18px 40px rgba(18, 28, 51, 0.3);
	overflow: hidden;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 0.85rem;
	border-radius: 9px;
	font-size: var(--wp--preset--font-size--small);
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	color: var(--wp--preset--color--accent);
}

/* --------------------------------------------------------------- CV ---- */

/*
 * Current appointments: one narrow navy band running the full width, with a
 * small label and the posts side by side. Deliberately understated — it is a
 * standfirst for the CV, not a feature.
 */
.adyb-band--roles {
	border-block-end: 3px solid var(--wp--preset--color--accent);
}

.adyb-roles__label {
	margin: 0 0 0.7rem;
	text-align: center;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.adyb-roles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0.5rem 1.5rem;
}

.adyb-roles li {
	margin: 0;
	padding-inline: 1.25rem;
	text-align: center;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.7);
}

.adyb-roles li + li {
	border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
}

.adyb-roles strong,
.adyb-roles b {
	display: block;
	color: var(--wp--preset--color--base);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

@media (max-width: 781px) {
	.adyb-roles li + li {
		border-inline-start: 0;
		border-block-start: 1px solid rgba(255, 255, 255, 0.18);
		padding-block-start: 0.6rem;
	}
}

/* Areas of interest, as chips. */
/* Areas of interest. Pills floated in the middle of a wide band read as
   loose tags; a two-column list with a marker reads as a statement of what
   this surgeon treats, which is what the section is for. */
.adyb-expertise {
	list-style: none;
	margin: var(--wp--preset--spacing--40) auto 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	max-width: 56rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35rem 2.5rem;
	border-radius: 18px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 2px rgba(18, 28, 51, 0.04), 0 10px 30px rgba(18, 28, 51, 0.07);
}

@media (min-width: 700px) {
	.adyb-expertise {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.adyb-expertise li {
	display: flex;
	align-items: baseline;
	gap: 0.8rem;
	margin: 0;
	padding: 0.7rem 0;
	color: var(--wp--preset--color--brand);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	text-align: start;
}

.adyb-expertise li + li {
	border-block-start: 1px solid var(--wp--preset--color--mist);
}

/* On two columns the divider between the two top cells would float; the
   rule belongs between rows, so the first cell of each row re-draws it. */
@media (min-width: 700px) {
	.adyb-expertise li:nth-child(2) {
		border-block-start: 0;
	}
}

.adyb-expertise__mark {
	flex: 0 0 auto;
	width: 0.45rem;
	height: 0.45rem;
	margin-block-start: 0.15rem;
	border-radius: 2px;
	rotate: 45deg;
	background: var(--wp--preset--color--accent-strong);
}

/* The CV proper. */
.adyb-cv__title {
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30);
}

.adyb-cv > .adyb-cv__title:first-child {
	margin-block-start: 0;
}

.adyb-cv__title--sub {
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	color: var(--wp--preset--color--accent-strong);
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/*
 * The timeline: one continuous rule with a dot per entry. The rule is drawn
 * on the list and stopped short of the last dot, so it never dangles past
 * the final item.
 */
.adyb-timeline {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 2rem;
}

.adyb-timeline::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 0.6em;
	bottom: 0.6em;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(
		var(--wp--preset--color--accent) 0%,
		var(--wp--preset--color--mist) 100%
	);
}

.adyb-timeline__item {
	position: relative;
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: 0;
}

.adyb-timeline__item:last-child {
	margin-block-end: 0;
}

.adyb-timeline__dot {
	position: absolute;
	left: -2rem;
	top: 0.52em;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	border: 3px solid var(--wp--preset--color--accent-strong);
	box-shadow: 0 0 0 4px var(--wp--preset--color--base);
}

.adyb-timeline__lead {
	display: block;
	font-weight: 600;
	color: var(--wp--preset--color--brand);
	line-height: 1.5;
}

.adyb-timeline__detail {
	display: block;
	margin-block-start: 0.2rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}

.adyb-cv-cta :where(h2, p) {
	color: var(--wp--preset--color--base);
}

.adyb-cv-cta p {
	max-width: 46ch;
	margin-inline: auto;
	color: rgba(255, 255, 255, 0.82);
}

.adyb-cv-cta .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--40);
}

.adyb-cv-cta .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--brand);
}

.adyb-cv-cta .wp-block-button__link:hover,
.adyb-cv-cta .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
}

@media (max-width: 660px) {
	.adyb-timeline {
		padding-left: 1.5rem;
	}

	.adyb-timeline__dot {
		left: -1.5rem;
	}
}

.adyb-main :where(.adyb-section__body, .entry-content) img {
	max-width: 100%;
	height: auto;
}

/* ------------------------------------------------- Imaging intake page ---- */

.adyb-steps {
	list-style: none;
	counter-reset: adyb-step;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

@media (min-width: 720px) {
	.adyb-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.adyb-steps li {
	counter-increment: adyb-step;
	display: flex;
	gap: 0.9rem;
	margin: 0;
	padding: 1.25rem;
	border-radius: 16px;
	background: var(--wp--preset--color--base);
	border: 1px solid rgba(29, 43, 77, 0.08);
}

.adyb-steps__n {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--sand-surface);
	color: var(--wp--preset--color--accent-strong);
	font-size: 0.85rem;
	font-weight: 700;
}

.adyb-steps__n::before {
	content: counter(adyb-step);
}

.adyb-steps__body {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}

.adyb-steps__body b {
	display: block;
	margin-block-end: 0.2rem;
	color: var(--wp--preset--color--brand);
	font-size: var(--wp--preset--font-size--small);
}

.adyb-safety {
	list-style: none;
	margin: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--50);
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.adyb-safety li {
	position: relative;
	margin: 0;
	padding-inline-start: 1.6rem;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}

.adyb-safety li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.55em;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 2px;
	rotate: 45deg;
	background: var(--wp--preset--color--accent-strong);
}

/* The contact page photograph, at the head of the column beside the form. */
.adyb-contact__photo {
	margin: 0 0 var(--wp--preset--spacing--40);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(18, 28, 51, 0.04), 0 12px 32px rgba(18, 28, 51, 0.12);
}

.adyb-contact__photo img {
	display: block;
	width: 100%;
	height: auto;
}
