/*
Theme Name: Buildler
Theme URI: https://buildler.com/
Author: Clinic Software
Author URI: https://clinicsoftware.com/
Description: A WordPress block theme by Clinic Software for clinics, salons, and appointment-based practices. Native templates, block patterns, style variations and locally bundled fonts.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buildler
Tags: blog, one-column, two-columns, right-sidebar, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, sticky-post, style-variations, template-editing, threaded-comments, translation-ready, wide-blocks
*/

/*
 * Global rules theme.json cannot express.
 * Colours, type, spacing and radii stay in theme.json.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
}

/*
 * Embedded frames, objects and audio/video players carry fixed dimensions
 * from oEmbed/mediaelement. Cap them so they never force the page wider
 * than the viewport.
 */
iframe,
embed,
object,
audio {
	max-width: 100%;
}

.wp-audio-shortcode,
.mejs-container,
.wp-video {
	max-width: 100%;
}

/*
 * Keep wide content from pushing the layout wider than the viewport.
 * Long unbroken strings, code blocks and tables should scroll within their
 * container instead of expanding the page.
 */
body,
p,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

pre,
code,
samp,
kbd {
	max-width: 100%;
	overflow-x: auto;
}

table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

figure {
	margin-left: 0;
	margin-right: 0;
}

/*
 * Classic caption figures carry an inline width from the [caption] shortcode
 * (e.g. style="width: 1200px"). Cap them to their container so they shrink on
 * small screens instead of forcing horizontal scrolling.
 */
.wp-caption {
	max-width: 100%;
}

.skip-link:focus {
	position: fixed;
	top: var(--wp--preset--spacing--30, 1rem);
	left: var(--wp--preset--spacing--30, 1rem);
	z-index: 100000;
}

/*
 * Bellemere default presentation.
 * The theme ships the Bellemere clinic look out of the box; the same rules
 * mirror the starter-site stylesheet so the front page matches the preview.
 */
body {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

body .wp-block-heading,
body .wp-block-site-title {
	font-family: var(--wp--preset--font-family--serif);
}

body .wp-block-site-title a {
	font-style: italic;
	font-weight: 500;
	letter-spacing: -0.02em;
	font-size: 1.65rem;
}

body .wp-block-site-title,
body .buildler-header-cta {
	flex-shrink: 0;
}

body .wp-block-site-title a,
body .buildler-header-cta .wp-block-button__link {
	white-space: nowrap;
}

body .wp-element-button {
	border-radius: 999px;
	padding-left: 1.5em;
	padding-right: 1.5em;
}

body .wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 30;
}

body .buildler-belle-header {
	border-bottom: 1px solid var(--wp--preset--color--contrast-3);
}

body .buildler-belle-slide {
	position: relative;
	overflow: hidden;
	min-height: 88vh;
}

body .buildler-belle-slide::before {
	content: "";
	position: absolute;
	inset: -20% auto auto -12%;
	width: min(52vw, 28rem);
	height: min(52vw, 28rem);
	z-index: 1;
	pointer-events: none;
	border-radius: 58% 42% 63% 37% / 44% 55% 45% 56%;
	background:
		radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--wp--preset--color--accent) 28%, transparent) 0 28%, transparent 30%),
		radial-gradient(circle at 70% 40%, var(--wp--preset--color--accent) 18%, transparent 24%),
		radial-gradient(circle at 45% 75%, var(--wp--preset--color--accent-2) 70%, transparent 90%);
	animation: buildler-belle-drift 22s ease-in-out infinite;
}

body .buildler-belle-slide .wp-block-columns {
	position: relative;
	z-index: 2;
	margin-bottom: 0;
}

body .buildler-belle-copy {
	position: relative;
}

body .buildler-belle-index {
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-size: 0.7rem;
}

body .buildler-belle-cover,
body .buildler-belle-cover .wp-block-cover__image-background {
	border-radius: 0;
	min-height: 88vh;
}

body .buildler-belle-carousel .wp-block-column img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 1.25rem;
}

body .buildler-belle-stack {
	position: relative;
	min-height: 28rem;
}

body .buildler-belle-tilt-a,
body .buildler-belle-tilt-b {
	width: 68%;
}

body .buildler-belle-tilt-a img,
body .buildler-belle-tilt-b img {
	border-radius: 1.1rem;
	box-shadow: 0 18px 40px color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent);
}

body .buildler-belle-tilt-a {
	transform: rotate(-7deg);
	z-index: 1;
}

body .buildler-belle-tilt-b {
	position: absolute;
	right: 0;
	top: 18%;
	transform: rotate(6deg);
	z-index: 2;
}

body .buildler-belle-filters .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--contrast-3);
}

body .buildler-belle-filters .wp-block-button:first-child .wp-element-button {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--accent);
}

body .buildler-belle-mosaic img {
	border-radius: 1.25rem;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

body .buildler-belle-sync img {
	border-radius: 1.5rem;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

body .buildler-belle-quote {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
}

body .buildler-belle-price .wp-block-cover,
body .buildler-belle-price .wp-block-cover__image-background {
	border-radius: 1.5rem;
}

@keyframes buildler-belle-drift {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
	50% { transform: translate3d(8%, 6%, 0) rotate(12deg); }
}

@media (max-width: 781px) {
	body .buildler-belle-carousel .wp-block-columns {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 0.75rem;
	}

	body .buildler-belle-carousel .wp-block-column {
		flex-basis: 72% !important;
		min-width: 72%;
		scroll-snap-align: start;
	}

	body .buildler-belle-cover,
	body .buildler-belle-cover .wp-block-cover__image-background,
	body .buildler-belle-slide {
		min-height: 52vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .buildler-belle-slide::before {
		animation: none;
	}

	body .buildler-belle-tilt-a,
	body .buildler-belle-tilt-b {
		transform: none;
	}
}
