/**
Theme Name:  Alstoma Child
Theme URI:   https://wpastra.com/
Description: Astra child theme for the Alstoma odontology clinic site. All site-specific CSS and PHP customisations belong here so that the Astra parent theme can be updated safely.
Author:      Hostline
Template:    astra
Version:     1.18.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alstoma-child
*/

/* ------------------------------------------------------------------------
 * Astra loads its own compiled stylesheet under the handle `astra-theme-css`.
 * This file is enqueued after it (see functions.php), so anything below wins.
 * Put site-specific CSS here rather than in the Customizer's Additional CSS.
 * ---------------------------------------------------------------------- */

:root {
	--alstoma-gold: var( --ast-global-color-0, #dca54a );
	--alstoma-gold-dark: var( --ast-global-color-1, #d09a40 );
	--alstoma-ink: var( --ast-global-color-2, #0f172a );
	--alstoma-body: var( --ast-global-color-3, #4a4a4a );
	--alstoma-cream: var( --ast-global-color-4, #faf5e5 );
	--alstoma-white: var( --ast-global-color-5, #ffffff );
	--alstoma-sand: var( --ast-global-color-6, #f0e6c5 );
	--alstoma-heading-font: 'Heebo', -apple-system, 'Segoe UI', sans-serif;
	--alstoma-content-width: 1240px; /* outer box: 1200px of content + 1.25rem gutters, see "Shared content edge" below */
	--alstoma-header-offset: 7.5rem;
	--alstoma-radius: 14px;
}

/* ---------- Section scaffolding ---------------------------------------- */

/*
 * Astra is a classic theme with no theme.json contentSize, so the core
 * "constrained" layout produces no max-width of its own. The width of every
 * homepage section is therefore set here rather than relying on layout support.
 */
.alstoma-section {
	width: 100%;
	padding: 4.5rem 1.25rem;
}

.alstoma-section:not( .alstoma-grid ) > * {
	max-width: calc( var( --alstoma-content-width ) - 2.5rem );
	margin-left: auto;
	margin-right: auto;
}

/*
 * Shared content edge.
 * Astra's page-builder template makes every root block full width and caps each
 * root block's *children* at its 1200px content width (centred). Our system says
 * the same thing explicitly, so the edge no longer depends on that cap:
 *   - a band paints full width and centres 1200px of content inside it
 *     ( children max-width = content width minus gutters ), or
 *   - a wrapper is a 1240px border-box with 1.25rem gutters (= 1200px of content).
 * Either way the text edge is max( 1.25rem, ( 100% - 1200px ) / 2 ).
 */
.alstoma-pricing,
.alstoma-contacts,
.alstoma-service-rows,
.alstoma-service-layout {
	box-sizing: border-box;
}

.alstoma-section.alstoma-grid {
	padding-inline: max( 1.25rem, calc( ( 100% - var( --alstoma-content-width ) ) / 2 ) );
}

.alstoma-section__title {
	margin-bottom: 2.5rem;
	color: var( --alstoma-ink );
}

.alstoma-section__eyebrow {
	margin-bottom: 0.75rem;
	color: var( --alstoma-gold );
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.alstoma-section__lead {
	margin-bottom: 3rem;
	max-width: 46rem;
	color: var( --alstoma-body );
	font-size: 1.05rem;
}

/*
 * Core's grid layout emits the actual grid-template-columns rule; these are the
 * gap and alignment defaults that sit on top of it.
 */
.alstoma-grid {
	display: grid;
	gap: 2rem;
	align-items: stretch;
}

.alstoma-grid-counters {
	grid-template-columns: repeat( auto-fit, minmax( min( 12rem, 100% ), 1fr ) );
}

.alstoma-grid-services {
	grid-template-columns: repeat( auto-fill, minmax( min( 16rem, 100% ), 1fr ) );
}

.alstoma-grid-team {
	grid-template-columns: repeat( auto-fill, minmax( min( 14rem, 100% ), 1fr ) );
}

.alstoma-grid-values,
.alstoma-grid-locations {
	grid-template-columns: repeat( auto-fill, minmax( min( 18rem, 100% ), 1fr ) );
}

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

.alstoma-hero {
	background-color: var( --alstoma-cream );
}

.alstoma-hero__title {
	margin-bottom: 2rem;
	color: var( --alstoma-ink );
	line-height: 1.05;
}

.alstoma-hero__clinics {
	gap: 2.5rem;
}

.alstoma-hero__clinic {
	margin-bottom: 0.85rem;
	color: var( --alstoma-ink );
	font-weight: 700;
	letter-spacing: 0.08em;
}

.alstoma-hero__phone {
	position: relative;
	margin: 0 0 0.5rem;
	padding-left: 2rem;
	line-height: 1.6;
}

.alstoma-hero__phone a {
	color: var( --alstoma-body );
	text-decoration: none;
}

.alstoma-hero__phone a:hover,
.alstoma-hero__phone a:focus {
	color: var( --alstoma-gold-dark );
	text-decoration: underline;
}

/*
 * The original Elementor hero pulled these two icons from an external Webflow
 * CDN. They are inlined here as data URIs so the page has no third-party
 * dependency and cannot break if that CDN goes away.
 */
.alstoma-hero__phone::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.15rem;
	height: 1.15rem;
	background-repeat: no-repeat;
	background-size: contain;
}

.alstoma-hero__phone-landline::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DCA54A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E" );
}

.alstoma-hero__phone-mobile::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DCA54A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2' ry='2'/%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'/%3E%3C/svg%3E" );
}

.alstoma-hero__image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Below 782px the hero's core/columns stack, and the smile photo would sit as a
   tall block under the phone numbers - so it is hidden there. Its column collapses
   with it; the text column takes the full width. */
@media ( max-width: 781px ) {
	.alstoma-hero__image {
		display: none;
	}
}

/* ---------- Counters ---------------------------------------------------- */

.alstoma-counters {
	background-color: var( --alstoma-white );
	padding-top: 3.5rem;
	padding-bottom: 3.5rem;
	text-align: center;
}

.alstoma-counter {
	padding: 0.5rem;
}

.alstoma-counter__num {
	margin: 0 0 0.35rem;
	color: var( --alstoma-gold );
	font-family: var( --alstoma-heading-font );
	font-weight: 700;
	font-size: clamp( 2.75rem, 6vw, 4rem );
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.alstoma-counter__label {
	margin: 0;
	color: var( --alstoma-body );
	font-size: 1rem;
}

/* ---------- Cards (services + team) ------------------------------------- */

.alstoma-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var( --alstoma-radius );
	background-color: var( --alstoma-white );
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.06 ), 0 8px 24px rgba( 15, 23, 42, 0.06 );
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alstoma-card:hover,
.alstoma-card:focus-within {
	transform: translateY( -4px );
	box-shadow: 0 2px 4px rgba( 15, 23, 42, 0.08 ), 0 16px 32px rgba( 15, 23, 42, 0.1 );
}

.alstoma-card__media {
	margin: 0;
}

/*
 * Uniform card images are handled in CSS rather than as block attributes, so a
 * future core change to the image block's markup cannot invalidate the saved
 * blocks.
 */
.alstoma-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.alstoma-card__media-person img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: top center;
	background-color: var( --alstoma-sand );
}

.alstoma-card__title {
	margin: 1.25rem 1.25rem 0.5rem;
	color: var( --alstoma-ink );
	font-size: 1.15rem;
	line-height: 1.3;
}

.alstoma-card__more {
	margin: auto 1.25rem 1.25rem;
	color: var( --alstoma-gold-dark );
	font-size: 0.95rem;
	font-weight: 600;
}

.alstoma-card-person {
	text-align: center;
}

.alstoma-card__role {
	margin: 0 1.25rem 1.25rem;
	color: var( --alstoma-body );
	font-size: 0.95rem;
}

/* ---------- Values ------------------------------------------------------ */

.alstoma-values {
	background-color: var( --alstoma-cream );
}

.alstoma-value {
	padding: 2rem;
	border-radius: var( --alstoma-radius );
	background-color: var( --alstoma-white );
}

.alstoma-value__num {
	margin: 0 0 0.75rem;
	color: var( --alstoma-gold );
	font-size: 1.5rem;
	font-weight: 700;
}

.alstoma-value__title {
	margin: 0 0 0.75rem;
	color: var( --alstoma-ink );
	font-size: 1.2rem;
	line-height: 1.3;
}

.alstoma-value__text {
	margin: 0;
	color: var( --alstoma-body );
	font-size: 0.98rem;
}

/* ---------- Locations --------------------------------------------------- */

.alstoma-location {
	position: relative;
	padding: 2rem 2rem 2rem 4.5rem;
	border-radius: var( --alstoma-radius );
	background-color: var( --alstoma-cream );
}

/* Replaces Elementor's Font Awesome icon-box icons - no icon font needed. */
.alstoma-location::before {
	content: "";
	position: absolute;
	left: 2rem;
	top: 2.15rem;
	width: 1.6rem;
	height: 1.6rem;
	background-repeat: no-repeat;
	background-size: contain;
}

.alstoma-location:nth-child( 3n + 1 )::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DCA54A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3'/%3E%3Cline x1='12' y1='11' x2='12' y2='17'/%3E%3Cline x1='9' y1='14' x2='15' y2='14'/%3E%3C/svg%3E" );
}

.alstoma-location:nth-child( 3n + 2 )::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DCA54A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E" );
}

.alstoma-location:nth-child( 3n )::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DCA54A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l7-4 7 4v14'/%3E%3Cline x1='12' y1='10' x2='12' y2='16'/%3E%3Cline x1='9' y1='13' x2='15' y2='13'/%3E%3C/svg%3E" );
}

.alstoma-location__title {
	margin: 0 0 0.5rem;
	color: var( --alstoma-ink );
	font-size: 1.1rem;
	line-height: 1.3;
}

.alstoma-location__text {
	margin: 0;
	color: var( --alstoma-body );
	font-size: 0.98rem;
}

/* ---------- Responsive -------------------------------------------------- */

@media ( max-width: 921px ) {
	.alstoma-section {
		padding: 3rem 1.25rem;
	}

	.alstoma-hero__inner {
		gap: 2rem;
	}
}

@media ( max-width: 544px ) {
	.alstoma-section {
		padding: 2.25rem 1rem;
	}

	.alstoma-value,
	.alstoma-location {
		padding: 1.5rem;
	}

	.alstoma-location {
		padding-left: 4rem;
	}

	.alstoma-location::before {
		left: 1.5rem;
		top: 1.65rem;
	}
}

/* ---------- Price list -------------------------------------------------- */

.alstoma-pricing {
	max-width: var( --alstoma-content-width );
	margin-inline: auto;
	padding: 0 1.25rem 4rem;
}

/*
 * Category index: a compact wrapping line of links directly under the hero, on the
 * content edge, dots between, hairline below. No panel, no sidebar, no pills.
 */
.alstoma-pricing__toc {
	margin: 0;
	padding: 0 0 1.5rem;
	border-bottom: 1px solid rgba( 15, 23, 42, 0.10 );
}

/*
 * Every item carries a fixed-width dot in front of it; the list is pulled left by
 * exactly that width and clips overflow, so the dot that would start a line is cut
 * off and each wrapped line begins flush on the content edge. Dots therefore only
 * ever appear *between* items on the same line - no leading or trailing ones.
 */
.alstoma-pricing__toc-list {
	--alstoma-toc-sep: 2.4rem;
	display: flex;
	flex-wrap: wrap;
	row-gap: 0.45rem;
	margin: 0 0 0 calc( -1 * var( --alstoma-toc-sep ) );
	padding: 0;
	list-style: none;
	overflow: hidden;
}

.alstoma-pricing__toc-list li {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.alstoma-pricing__toc-list li::before {
	content: "·";
	flex: 0 0 var( --alstoma-toc-sep );
	width: var( --alstoma-toc-sep );
	color: var( --alstoma-gold-dark );
	text-align: center;
}

.alstoma-pricing__toc-list a {
	color: var( --alstoma-body );
	font-size: 0.95rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.15s ease;
}

.alstoma-pricing__toc-list a:hover,
.alstoma-pricing__toc-list a:focus-visible {
	color: var( --alstoma-gold-dark );
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Names on the edge: the categories run as full-width rows beneath the index. */

.alstoma-pricing__category {
	display: grid;
	gap: 1.25rem 3rem;
	padding: 2.5rem 0;
	border-top: 1px solid rgba( 15, 23, 42, 0.10 );
	scroll-margin-top: var( --alstoma-header-offset );
}

.alstoma-pricing__category:first-child {
	border-top: 0;
}

.alstoma-pricing__category:last-child {
	border-bottom: 1px solid rgba( 15, 23, 42, 0.10 );
}

@media ( min-width: 922px ) {
	.alstoma-pricing__category {
		grid-template-columns: minmax( 0, 0.9fr ) minmax( 0, 2.1fr );
		padding: 3rem 0;
	}
}

.alstoma-pricing__category-body {
	min-width: 0;
}

.alstoma-pricing__category-title {
	margin: 0;
	color: var( --alstoma-ink );
	font-size: clamp( 1.5rem, 2.4vw, 2rem );
	line-height: 1.15;
}

.alstoma-pricing__category-desc {
	margin: 0.75rem 0 0;
	color: var( --alstoma-body );
}

/* Long service names can make the table wide; let it scroll rather than
   forcing the whole page to scroll sideways. */
.alstoma-pricing__scroll {
	overflow-x: auto;
}

.alstoma-pricing__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 1rem;
}

.alstoma-pricing__table thead th {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var( --alstoma-sand );
	color: var( --alstoma-body );
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-align: left;
	text-transform: uppercase;
}

.alstoma-pricing__table thead .alstoma-pricing__price-col,
.alstoma-pricing__price {
	text-align: right;
	white-space: nowrap;
}

.alstoma-pricing__subhead th {
	padding: 1.5rem 0.75rem 0.5rem;
	color: var( --alstoma-gold-dark );
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
}

.alstoma-pricing__table tbody tr:not( .alstoma-pricing__subhead ):nth-child( even ) {
	background-color: var( --alstoma-cream );
}

.alstoma-pricing__service {
	padding: 0.7rem 0.75rem;
	color: var( --alstoma-ink );
	font-weight: 400;
	text-align: left;
	vertical-align: top;
}

.alstoma-pricing__service-name {
	display: inline;
}

.alstoma-pricing__unit {
	display: inline-block;
	margin-left: 0.5rem;
	color: var( --alstoma-body );
	font-size: 0.85rem;
	white-space: nowrap;
}

.alstoma-pricing__note {
	display: block;
	margin-top: 0.15rem;
	color: var( --alstoma-body );
	font-size: 0.85rem;
}

.alstoma-pricing__price {
	padding: 0.7rem 0.75rem;
	color: var( --alstoma-ink );
	font-weight: 700;
	vertical-align: top;
}

.alstoma-pricing__empty {
	padding: 1.5rem;
	border: 1px dashed var( --alstoma-gold );
	border-radius: var( --alstoma-radius );
	color: var( --alstoma-body );
}

@media ( max-width: 544px ) {
	.alstoma-pricing__table {
		font-size: 0.94rem;
	}

	.alstoma-pricing__service,
	.alstoma-pricing__price {
		padding-inline: 0.4rem;
	}

	.alstoma-pricing__unit {
		display: block;
		margin-left: 0;
	}
}

/* ---------- Simple page header ------------------------------------------ */

.alstoma-page-title {
	max-width: var( --alstoma-content-width );
	margin: 0 auto;
	padding: 3.5rem 1.25rem 0.75rem;
	color: var( --alstoma-ink );
	font-size: clamp( 2rem, 4.5vw, 3rem );
	line-height: 1.1;
}

.alstoma-page-lead {
	max-width: var( --alstoma-content-width );
	margin: 0 auto;
	padding: 0 1.25rem 2.5rem;
	color: var( --alstoma-body );
	font-size: 1.05rem;
}

/* ---------- Page hero (generic) ------------------------------------------- */

.alstoma-page-hero {
	padding: 3.25rem 1.25rem 3rem;
	background-color: var( --alstoma-cream );
}

.alstoma-page-hero > * {
	max-width: calc( var( --alstoma-content-width ) - 2.5rem );
	margin-inline: auto;
}

.alstoma-page-hero__title {
	margin: 0 0 0.75rem;
	color: var( --alstoma-ink );
	font-size: clamp( 2rem, 4.2vw, 3rem );
	line-height: 1.1;
}

.alstoma-page-hero__lead {
	max-width: 46rem;
	margin: 0;
	color: var( --alstoma-body );
	font-size: 1.1rem;
	line-height: 1.6;
}

.alstoma-page-hero__lead:empty {
	display: none;
}

/* Blocks that follow the hero directly need their own breathing room, since the
   hero replaced the padded H1 they used to sit under. Same edge, same gutters. */
.alstoma-page-hero + .alstoma-pricing,
.alstoma-page-hero + .alstoma-service-rows {
	margin-block-start: 2.5rem;
}

/* ---------- Contacts: clinic rows (Kontaktai) ----------------------------
   Class prefix is deliberately distinct from .alstoma-location, which belongs to
   the homepage clinics section and carries a cream card, indent and icons. */

.alstoma-contacts {
	max-width: var( --alstoma-content-width );
	margin: 1.5rem auto 0;
	padding: 0 1.25rem 4.5rem;
}

.alstoma-clinic-row {
	display: grid;
	gap: 2rem;
	padding: 2.25rem 0;
	border-top: 1px solid rgba( 15, 23, 42, 0.10 );
	scroll-margin-top: var( --alstoma-header-offset );
}

/* no rule between the hero band and the first clinic; hairlines only between rows */
.alstoma-clinic-row:first-child {
	border-top: 0;
	padding-top: 1.5rem;
}

.alstoma-clinic-row:last-child {
	border-bottom: 1px solid rgba( 15, 23, 42, 0.10 );
}

@media ( min-width: 922px ) {
	.alstoma-clinic-row {
		grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr ) minmax( 0, 1fr );
		gap: 3rem;
		padding: 2.75rem 0;
	}
}

/* Identity: badge, name */

.alstoma-clinic-row__badge {
	margin: 0 0 0.5rem;
	padding-left: 0.6rem;
	border-left: 3px solid var( --alstoma-gold );
	color: var( --alstoma-gold-dark );
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.alstoma-clinic-row__name {
	margin: 0;
	color: var( --alstoma-ink );
	font-size: clamp( 1.6rem, 2.6vw, 2.15rem );
	line-height: 1.12;
}

/* Column eyebrows: small icon + uppercase label */
.alstoma-clinic-row__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	color: var( --alstoma-body );
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.alstoma-clinic-row__eyebrow--spaced {
	margin-top: 2rem;
}

.alstoma-clinic-row__eyebrow .alstoma-icon {
	display: block;
	flex: 0 0 auto;
	width: 0.95rem;
	height: 0.95rem;
	/* optical: the glyphs sit a hair low against small caps */
	margin-top: -1px;
	color: var( --alstoma-gold );
}

/* Address + map */
.alstoma-clinic-row__address {
	margin: 0 0 0.6rem;
	color: var( --alstoma-ink );
	font-size: 1.08rem;
	font-style: normal;
	line-height: 1.6;
}

.alstoma-clinic-row__map {
	color: var( --alstoma-gold-dark );
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.alstoma-clinic-row__map:hover,
.alstoma-clinic-row__map:focus-visible {
	color: var( --alstoma-ink );
}

/* Phones: the number is the primary element, the label sits under it */
.alstoma-clinic-row__phones {
	display: grid;
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.alstoma-clinic-row__tel {
	display: block;
	color: var( --alstoma-ink );
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.alstoma-clinic-row__tel:hover,
.alstoma-clinic-row__tel:focus-visible {
	color: var( --alstoma-gold-dark );
}

.alstoma-clinic-row__tel-label {
	display: block;
	margin-top: 0.15rem;
	color: var( --alstoma-body );
	font-size: 0.85rem;
}

/* Schedule as a definition list - not a <table>, so the theme's table borders
   cannot leak in and the two columns keep a real gap */
.alstoma-clinic-row__schedule {
	margin: 0;
}

.alstoma-clinic-row__slot {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto;
	gap: 0 1.5rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba( 15, 23, 42, 0.08 );
	color: var( --alstoma-body );
	font-size: 1rem;
}

.alstoma-clinic-row__slot:first-child {
	padding-top: 0;
}

.alstoma-clinic-row__slot:last-child {
	border-bottom: 0;
}

.alstoma-clinic-row__slot dt,
.alstoma-clinic-row__slot dd {
	margin: 0;
}

.alstoma-clinic-row__slot dd {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	text-align: right;
}

.alstoma-clinic-row__slot.is-today {
	color: var( --alstoma-ink );
	font-weight: 700;
}

.alstoma-clinic-row__pending {
	margin: 0;
	max-width: 22rem;
	color: var( --alstoma-body );
	font-size: 0.98rem;
	line-height: 1.6;
}

/* Contact block variant: a plain page hero above the rows gets a little more air */
.alstoma-page-hero + .alstoma-contacts {
	margin-top: 0.5rem;
}

/* ---------- Pre-footer ---------------------------------------------------- */

.alstoma-prefooter {
	background-color: var( --alstoma-cream );
	text-align: center;
}

.alstoma-prefooter .alstoma-prefooter__logo {
	margin: 0 auto 1.5rem;
}

.alstoma-prefooter .alstoma-prefooter__logo img {
	width: auto;
	max-width: 180px;
	height: auto;
}

.alstoma-prefooter__title {
	margin: 0 auto 0.75rem;
	color: var( --alstoma-ink );
	font-size: clamp( 1.5rem, 3vw, 2.1rem );
	line-height: 1.2;
}

.alstoma-prefooter__text {
	max-width: 34rem;
	margin: 0 auto 1.75rem;
	color: var( --alstoma-body );
}

.alstoma-prefooter .wp-block-buttons {
	justify-content: center;
}

/* Square-edged button, in keeping with the rest of the theme - no pill shapes. */
.alstoma-prefooter .wp-block-button__link {
	padding: 0.85rem 2rem;
	border: 1px solid var( --alstoma-gold );
	border-radius: 0;
	background-color: var( --alstoma-gold );
	color: #ffffff;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.alstoma-prefooter .wp-block-button__link:hover,
.alstoma-prefooter .wp-block-button__link:focus-visible {
	background-color: transparent;
	color: var( --alstoma-gold-dark );
}

/* ---------- Services hub: rows (Kontaktai grammar) ------------------------ */

.alstoma-service-rows {
	max-width: var( --alstoma-content-width );
	margin: 1.5rem auto 0;
	padding: 0 1.25rem 4.5rem;
}

.alstoma-service-row {
	position: relative;
	display: grid;
	gap: 1.5rem;
	padding: 2.25rem 0;
	border-top: 1px solid rgba( 15, 23, 42, 0.10 );
	cursor: pointer;
}

.alstoma-service-row:first-child {
	padding-top: 1.5rem;
	border-top: 0;
}

.alstoma-service-row:last-child {
	border-bottom: 1px solid rgba( 15, 23, 42, 0.10 );
}

@media ( min-width: 922px ) {
	.alstoma-service-row {
		grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr ) minmax( 0, 1fr );
		gap: 3rem;
		padding: 2.75rem 0;
		align-items: start;
	}
}

.alstoma-service-row__name {
	margin: 0;
	color: var( --alstoma-ink );
	font-size: clamp( 1.6rem, 2.6vw, 2.15rem );
	line-height: 1.12;
}

.alstoma-service-row__name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

/* the single link, stretched over the whole row */
.alstoma-service-row__name a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.alstoma-service-row:hover .alstoma-service-row__name a,
.alstoma-service-row:focus-within .alstoma-service-row__name a {
	color: var( --alstoma-gold-dark );
}

.alstoma-service-row:focus-within {
	outline: 2px solid var( --alstoma-gold );
	outline-offset: 4px;
}

.alstoma-service-row__name a:focus-visible {
	outline: none;
}

.alstoma-service-row__eyebrow {
	margin: 0 0 0.75rem;
	color: var( --alstoma-body );
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.alstoma-service-row__excerpt {
	margin: 0 0 0.9rem;
	color: var( --alstoma-body );
	font-size: 1.02rem;
	line-height: 1.65;
}

.alstoma-service-row__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	color: var( --alstoma-gold-dark );
	font-size: 0.95rem;
	font-weight: 600;
}

.alstoma-service-row__more::after {
	content: "→";
	opacity: 0;
	transform: translateX( -6px );
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.alstoma-service-row:hover .alstoma-service-row__more::after,
.alstoma-service-row:focus-within .alstoma-service-row__more::after {
	opacity: 1;
	transform: none;
}

.alstoma-service-row__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var( --alstoma-radius );
}

@media ( prefers-reduced-motion: reduce ) {
	.alstoma-service-row__more::after {
		transition: none;
		transform: none;
	}
}

/* ---------- Service pages (standard structure) ---------------------------- */

.alstoma-service {
	padding-bottom: 4rem;
}

/*
 * The locked wrapper makes the hero and the layout grandchildren of the content
 * area, where Astra caps them at 1200px and centres them. The hero must instead
 * paint full width; the layout keeps its own 1240px border-box, centred (see
 * "Shared content edge"). Both rules outrank Astra's, so the cap is a no-op here.
 */
.ast-page-builder-template .entry-content[data-ast-blocks-layout] > .alstoma-service > .alstoma-service-hero {
	max-width: none;
	margin-inline: 0;
}

.ast-page-builder-template .entry-content[data-ast-blocks-layout] > .alstoma-service > .alstoma-service-layout {
	max-width: var( --alstoma-content-width );
	margin-inline: auto;
}

/* Breadcrumbs */
.alstoma-crumbs {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var( --alstoma-body );
}

.alstoma-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.alstoma-crumbs__item + .alstoma-crumbs__item::before {
	content: "›";
	margin-right: 0.35rem;
	color: var( --alstoma-gold-dark );
}

.alstoma-crumbs a {
	color: var( --alstoma-body );
	text-decoration: none;
}

.alstoma-crumbs a:hover,
.alstoma-crumbs a:focus-visible {
	color: var( --alstoma-gold-dark );
	text-decoration: underline;
}

.alstoma-crumbs [aria-current="page"] {
	color: var( --alstoma-ink );
	font-weight: 600;
}

/*
 * Hero: text left, image right. Same cream band and vertical rhythm as the generic
 * page hero. It is full width; the inline padding puts the text on the shared
 * content edge, max( 1.25rem, ( 100% - 1240px ) / 2 + 1.25rem ).
 */
.alstoma-service-hero {
	background-color: var( --alstoma-cream );
	padding: 3.25rem 1.25rem 3rem;
}

.alstoma-service-hero > * {
	max-width: var( --alstoma-content-width );
	margin-inline: auto;
}

@media ( min-width: 922px ) {
	.alstoma-service-hero {
		display: grid;
		grid-template-columns: minmax( 0, 1.1fr ) minmax( 0, 0.9fr );
		gap: 3rem;
		align-items: center;
		padding: 3.25rem max( 1.25rem, calc( ( 100% - var( --alstoma-content-width ) ) / 2 + 1.25rem ) ) 3rem;
	}

	.alstoma-service-hero > * {
		max-width: none;
		margin-inline: 0;
	}
}

.alstoma-service-hero__title {
	margin: 0 0 0.75rem;
	color: var( --alstoma-ink );
	font-size: clamp( 2rem, 4.2vw, 3rem );
	line-height: 1.1;
}

.alstoma-service-hero__lead {
	margin: 0 0 1.75rem;
	color: var( --alstoma-body );
	font-size: 1.1rem;
	line-height: 1.6;
}

.alstoma-service-hero__lead:empty {
	display: none;
}

.alstoma-service-hero__actions {
	gap: 0.75rem;
}

.alstoma-service-hero__image {
	margin: 2rem 0 0;
}

@media ( min-width: 922px ) {
	.alstoma-service-hero__image {
		margin: 0;
	}
}

.alstoma-service-hero__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var( --alstoma-radius );
}

/* Buttons - square-edged like the rest of the theme */
.alstoma-btn .wp-block-button__link {
	padding: 0.85rem 1.75rem;
	border: 1px solid var( --alstoma-gold );
	border-radius: 0;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.alstoma-btn-primary .wp-block-button__link {
	background-color: var( --alstoma-gold );
	color: var( --alstoma-ink );
}

.alstoma-btn-primary .wp-block-button__link:hover,
.alstoma-btn-primary .wp-block-button__link:focus-visible {
	background-color: var( --alstoma-gold-dark );
	border-color: var( --alstoma-gold-dark );
	color: var( --alstoma-ink );
}

.alstoma-btn-secondary .wp-block-button__link {
	background-color: transparent;
	color: var( --alstoma-ink );
}

.alstoma-btn-secondary .wp-block-button__link:hover,
.alstoma-btn-secondary .wp-block-button__link:focus-visible {
	background-color: var( --alstoma-gold );
	color: var( --alstoma-ink );
}

/* Layout: article and its price section on the left, sticky aside on the RIGHT.
   Source order is content → prices → aside, so reading order matches. */
.alstoma-service-layout {
	max-width: var( --alstoma-content-width );
	margin: 3rem auto 0;
	padding: 0 1.25rem;
}

@media ( min-width: 922px ) {
	.alstoma-service-layout {
		display: grid;
		grid-template-columns: minmax( 0, 1fr ) 17rem;
		grid-template-rows: auto 1fr;
		gap: 0 3rem;
		align-items: start;
	}

	.alstoma-service-content {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
	}

	.alstoma-service-prices {
		grid-column: 1;
		grid-row: 2;
		min-width: 0;
	}

	/* spans both rows so it can stay pinned while the prices scroll past */
	.alstoma-service-aside {
		grid-column: 2;
		grid-row: 1 / span 2;
		position: sticky;
		top: var( --alstoma-header-offset );
	}
}

.alstoma-service-content {
	max-width: 46rem;
	color: var( --alstoma-body );
	font-size: 1.02rem;
	line-height: 1.7;
}

.alstoma-service-content h2 {
	margin: 2.25rem 0 0.75rem;
	color: var( --alstoma-ink );
	font-size: 1.35rem;
	line-height: 1.3;
}

.alstoma-service-content > h2:first-child,
.alstoma-service-content > p:first-child {
	margin-top: 0;
}

.alstoma-service-content ul,
.alstoma-service-content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.25rem;
}

.alstoma-service-content li {
	margin-bottom: 0.4rem;
}

.alstoma-service-content img {
	border-radius: var( --alstoma-radius );
}

/* Aside cards */
.alstoma-service-aside {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 3rem;
}

@media ( min-width: 922px ) {
	.alstoma-service-aside {
		margin-top: 0;
	}
}

.alstoma-aside-card {
	padding: 1.5rem 1.75rem;
	border-left: 3px solid var( --alstoma-gold );
	background-color: var( --alstoma-cream );
}

.alstoma-aside-card__title {
	margin: 0 0 0.6rem;
	color: var( --alstoma-ink );
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.alstoma-aside-card__text {
	margin: 0 0 1rem;
	color: var( --alstoma-body );
	font-size: 0.95rem;
}

.alstoma-aside-card__phones {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.alstoma-aside-card__phones li {
	margin: 0 0 0.6rem;
	line-height: 1.4;
}

.alstoma-aside-card__label {
	display: block;
	color: var( --alstoma-body );
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.alstoma-aside-card__phones a {
	color: var( --alstoma-ink );
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

.alstoma-aside-card__phones a:hover,
.alstoma-aside-card__phones a:focus-visible {
	color: var( --alstoma-gold-dark );
}

.alstoma-aside-card__button {
	display: inline-block;
	padding: 0.7rem 1.25rem;
	border: 1px solid var( --alstoma-gold );
	background-color: var( --alstoma-gold );
	color: var( --alstoma-ink );
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.alstoma-aside-card__button:hover,
.alstoma-aside-card__button:focus-visible {
	background-color: var( --alstoma-gold-dark );
	border-color: var( --alstoma-gold-dark );
	color: var( --alstoma-ink );
}

.alstoma-aside-card__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.alstoma-aside-card__links li + li {
	border-top: 1px solid rgba( 15, 23, 42, 0.08 );
}

.alstoma-aside-card__links a {
	display: block;
	padding: 0.55rem 0;
	color: var( --alstoma-ink );
	text-decoration: none;
	transition: color 0.15s ease, padding-left 0.15s ease;
}

.alstoma-aside-card__links a:hover,
.alstoma-aside-card__links a:focus-visible {
	padding-left: 0.4rem;
	color: var( --alstoma-gold-dark );
	text-decoration: underline;
}

/* Per-service price section (below the article): same row grammar as Kainos -
   hairline above, no panel. */
.alstoma-service-prices {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid rgba( 15, 23, 42, 0.10 );
	scroll-margin-top: var( --alstoma-header-offset );
}

.alstoma-service-prices__title {
	margin: 0 0 0.25rem;
	color: var( --alstoma-ink );
	font-size: 1.6rem;
	line-height: 1.2;
}

.alstoma-service-prices__sub {
	margin: 0 0 1.25rem;
	color: var( --alstoma-gold-dark );
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.alstoma-service-prices__more {
	margin: 1.25rem 0 0;
}

.alstoma-service-prices__more a {
	color: var( --alstoma-gold-dark );
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* ---------- Services carousel (homepage) ---------------------------------- */

.alstoma-carousel {
	position: relative;
}

/* Native scroll-snap track: swipes on touch, scrolls with the wheel, works
   without JavaScript. The scrollbar is hidden because the buttons and swipe
   cover navigation; keyboard users reach every card through the title links. */
.alstoma-carousel__track {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0.25rem 0 1rem;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.alstoma-carousel__track::-webkit-scrollbar {
	display: none;
}

.alstoma-carousel__slide {
	flex: 0 0 min( 18rem, 80vw );
	margin: 0;
	scroll-snap-align: start;
}

.alstoma-carousel__slide .alstoma-card {
	height: 100%;
}

/* Controls sit above the track, right-aligned, square-edged with the theme radius */
.alstoma-carousel__controls {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin: -3.5rem 0 1rem;
}

.alstoma-carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var( --alstoma-gold );
	border-radius: var( --alstoma-radius );
	background-color: var( --alstoma-white );
	color: var( --alstoma-ink );
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.alstoma-carousel__btn svg {
	width: 1.25rem;
	height: 1.25rem;
}

.alstoma-carousel__btn:hover,
.alstoma-carousel__btn:focus-visible {
	background-color: var( --alstoma-gold );
	color: var( --alstoma-ink );
}

.alstoma-carousel__btn:focus-visible {
	outline: 2px solid var( --alstoma-gold );
	outline-offset: 2px;
}

.alstoma-carousel__btn[disabled] {
	cursor: default;
	opacity: 0.35;
}

/* Nothing to scroll (few services / very wide screen): hide the buttons */
.alstoma-carousel:not( .alstoma-carousel--scrollable ) .alstoma-carousel__controls {
	visibility: hidden;
}

@media ( max-width: 544px ) {
	.alstoma-carousel__controls {
		margin: 0 0 1rem;
	}
}

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