/* Trimsalon Angeline: styles theme.json can't express. */

/* Boxed layout: white sheet on a light grey page, as on the original site. */
.wp-site-blocks {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	background: var(--wp--preset--color--base);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.06);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.wp-site-blocks > .site-main { flex: 1; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__inner {
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left);
}
.site-logo { margin: 0 0 0.75rem; flex-shrink: 1; }
.site-logo img { display: block; max-width: 100%; height: auto; }

.site-nav .wp-block-navigation-item__content {
	display: block;
	padding: 1.75rem 1rem 1.5rem;
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 0 0 0 var(--wp--preset--color--primary);
	transition: color 0.15s ease, box-shadow 0.15s ease;
}
.site-nav .wp-block-navigation-item__content:hover,
.site-nav .current-menu-item > .wp-block-navigation-item__content,
.site-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--primary);
	box-shadow: inset 0 4px 0 0 var(--wp--preset--color--primary);
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding: 0.75rem 0;
	font-size: 1.5rem;
	box-shadow: none;
}

@media (max-width: 781px) {
	.site-header__inner { align-items: center !important; padding-bottom: 0.75rem !important; }
	.site-logo img { width: 180px !important; }
	.site-logo { margin: 0; }
}

/* Main */
.site-main {
	padding-bottom: var(--wp--preset--spacing--50);
}
.site-main > .wp-block-post-title {
	margin-top: var(--wp--preset--spacing--40);
}

/* Hero slider: pure-CSS crossfade, no JS. */
.hero-slider {
	position: relative;
	aspect-ratio: 960 / 350;
	max-width: 960px !important;
	margin: var(--wp--preset--spacing--30) auto var(--wp--preset--spacing--40) !important;
	overflow: hidden;
}
.hero-slider > .hero-slider__slide {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	opacity: 0;
	animation: ta-slide 12s infinite;
}
.hero-slider > .hero-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hero-slider > .hero-slider__slide:nth-child(1) { animation-delay: 0s; }
.hero-slider > .hero-slider__slide:nth-child(2) { animation-delay: 6s; }
.hero-slider > .hero-slider__slide:nth-child(3) { animation-delay: 12s; }
.hero-slider > .hero-slider__slide:nth-child(4) { animation-delay: 18s; }
.hero-slider:has(> :nth-child(3)) > .hero-slider__slide { animation-duration: 18s; }
.hero-slider:has(> :nth-child(4)) > .hero-slider__slide { animation-duration: 24s; }
.hero-slider > .hero-slider__slide:only-child { position: static; opacity: 1; animation: none; }

@keyframes ta-slide {
	0% { opacity: 0; }
	6% { opacity: 1; }
	50% { opacity: 1; }
	56% { opacity: 0; }
	100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-slider > .hero-slider__slide { animation: none; }
	.hero-slider > .hero-slider__slide:first-child { opacity: 1; }
}

/* In the editor, show slides stacked so each one can be edited. */
.editor-styles-wrapper .hero-slider { aspect-ratio: auto; overflow: visible; }
.editor-styles-wrapper .hero-slider > .hero-slider__slide { position: static; opacity: 1; animation: none; }

/* Card group style */
.wp-block-group.is-style-card {
	padding: 1.5rem;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.home-cards > .wp-block-column { display: flex; flex-direction: column; }
.home-cards .is-style-card { flex: 1; }
.card-icon { margin: -0.5rem -0.5rem 0.5rem; }
.card-icon img { display: block; width: 100%; height: auto; transition: transform 0.2s ease; }
.card-icon a:hover img { transform: scale(1.03); }
.is-style-card > h3 { margin-top: 0.5rem; }

/* Highlight group style (price blocks) */
.wp-block-group.is-style-highlight {
	padding: 1.5rem 2rem;
	background: #eef8fd;
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 4px;
}
.price-label {
	margin: 0;
	font-family: var(--wp--preset--font-family--benchnine);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}
.price {
	margin: 0;
	font-family: var(--wp--preset--font-family--benchnine);
	font-weight: 700;
	font-size: 2.5rem;
	line-height: 1.1;
	color: var(--wp--preset--color--primary);
}
.price-from { font-size: 1.25rem; color: var(--wp--preset--color--text); }

/* Photo image style */
.wp-block-image.is-style-photo img {
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Opening hours tables */
.wp-block-table.is-style-hours table { border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-hours td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.4rem 0;
}
.wp-block-table.is-style-hours td:last-child { text-align: right; white-space: nowrap; }

.contact-card { margin-top: var(--wp--preset--spacing--30); }

/* Footer */
.site-footer__inner {
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
}
.footer-nav {
	font-family: var(--wp--preset--font-family--oxygen) !important;
	font-weight: 400 !important;
	letter-spacing: 0.15em !important;
	font-size: 0.75rem !important;
}
.footer-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); }
.footer-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--muted); }
.footer-credits { letter-spacing: 0.1em; margin: 0; }
