/*
Theme Name: Бреставтоторгсервис
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brest-auto-trade
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

:root {
	--glow-a: var(--wp--preset--color--glowA);
	--glow-b: var(--wp--preset--color--glowB);
	--ink: var(--wp--preset--color--background);
	--surface: var(--wp--preset--color--surface);
	--text: var(--wp--preset--color--text);
	--muted: var(--wp--preset--color--muted);
	--primary: var(--wp--preset--color--primary);
}

/* === site background === */
body {
	background-color: #05070d;
	background-image:
		linear-gradient(rgba(5, 7, 13, 0.82), rgba(5, 7, 13, 0.87)),
		url("../../uploads/2026/10/site-background.jpeg");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
}

/* === header === */
.site-header {
	position: relative;
	z-index: 20;
	padding-top: 1.1rem;
}
.site-header-bar {
	background: rgb(255 255 255 / 0.06);
	backdrop-filter: blur(18px) saturate(1.6);
	-webkit-backdrop-filter: blur(18px) saturate(1.6);
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 999px;
	padding: 0.5rem 1.4rem;
}
.site-brand {
	gap: 0.7rem;
}
.site-title-text {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: -0.01em;
}
.site-title-text a {
	color: var(--text);
	text-decoration: none;
}
.site-nav .wp-block-navigation-item a {
	color: rgb(244 245 248 / 0.85);
}
.site-nav .wp-block-navigation-item a:hover {
	color: #fff;
}

/* === section bands === */
.band {
	position: relative;
	overflow: hidden;
	padding-block: clamp(4.5rem, 10vw, 8rem);
}
.band--surface {
	background: var(--surface);
}
.band-head {
	align-items: flex-end;
	gap: 1rem;
	margin-bottom: 2.75rem;
}
.band-eyebrow {
	font-family: var(--wp--preset--font-family--albert-sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 0.75rem;
}
.band-title {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
}
.band-note {
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0;
	max-width: 22em;
}

/* glow sources via pseudo-elements on bands */
.band.is-style-glow-a::before,
.band.is-style-glow-b::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
	z-index: 0;
}
.band.is-style-glow-a::before {
	background: var(--glow-a);
	opacity: 0.5;
}
.band.is-style-glow-b::after {
	background: var(--glow-b);
	opacity: 0.35;
}
.glow-a-tl::before {
	top: -6rem;
	left: -6rem;
	width: 26rem;
	height: 26rem;
}
.glow-a-bl::before {
	bottom: -7rem;
	right: 4rem;
	width: 22rem;
	height: 22rem;
}
.glow-a-br::before {
	bottom: -5rem;
	right: -5rem;
	width: 24rem;
	height: 24rem;
}
.glow-b-tr::after {
	top: 2rem;
	right: -8rem;
	width: 24rem;
	height: 24rem;
}
.glow-b-bl::after {
	bottom: -7rem;
	right: 4rem;
	width: 22rem;
	height: 22rem;
}
.band > *:not(.glow),
.band > .wp-block-group {
	position: relative;
	z-index: 1;
}

/* === hero === */
.hero {
	min-height: 88vh;
	display: flex;
	align-items: center;
	padding-block: 8rem 6rem;
}
.hero-copy {
	max-width: 46rem;
}
.hero-eyebrow {
	font-family: var(--wp--preset--font-family--albert-sans);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 1.4rem;
}
.hero-title {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: clamp(2.25rem, 5.5vw, 4.4rem);
	line-height: 0.98;
	letter-spacing: -0.04em;
	margin: 0 0 1.5rem;
}
.hero-title em {
	font-style: normal;
	color: var(--primary);
}
.hero-lede {
	color: rgb(244 245 248 / 0.78);
	font-size: 1.15rem;
	line-height: 1.65;
	max-width: 34em;
	margin: 0 0 2rem;
}
.hero-actions {
	gap: 0.9rem;
}

/* === glass cards === */
.is-style-glass-card {
	background: rgb(255 255 255 / 0.07);
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 24px;
	padding: 2rem 1.9rem;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	overflow: hidden;
	position: relative;
}
.is-style-glass-card .glass-card-num {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	color: var(--primary);
	margin: 0 0 1.1rem;
}
.is-style-glass-card h2,
.is-style-glass-card h3 {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.01em;
	margin: 0 0 0.6rem;
}
.is-style-glass-card p {
	color: rgb(244 245 248 / 0.72);
	font-size: 0.98rem;
	line-height: 1.6;
	margin: 0;
}

/* === image framing === */
.band-media {
	position: relative;
}
.band-media img {
	border-radius: 24px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	box-shadow: 0 20px 60px rgb(0 0 0 / 0.4);
}
.band-media .glow {
	filter: blur(80px);
}

/* === hero media column === */
.hero-grid {
	gap: 2.5rem;
	align-items: center;
}
.hero-grid .hero-copy {
	flex-basis: 62%;
}
.hero-grid .hero-media {
	flex-basis: 34%;
	flex-grow: 0;
}
.hero-img {
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}
.hero-img img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

/* === inner page hero === */
.page-hero {
	padding-block: clamp(5.5rem, 16vh, 9rem) clamp(2.5rem, 6vw, 4rem);
}

/* === split text/image rows === */
.split {
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}
.split-copy {
	flex-basis: 52%;
}
.split-copy p {
	color: rgb(244 245 248 / 0.78);
	line-height: 1.65;
}
.split-copy .band-eyebrow {
	margin-bottom: 0.9rem;
}
.split-copy .band-title {
	margin-bottom: 1.4rem;
}
.split-subtitle {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 600;
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	letter-spacing: -0.02em;
	color: var(--text);
	margin: 0 0 0.9rem;
}
.split-media,
.split .band-media {
	flex-basis: 44%;
	flex-grow: 0;
}
.split-img {
	margin: 0;
}
.split-img img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.split--reverse .band-media {
	order: -1;
}
.split-list {
	margin: 1.5rem 0;
	padding-left: 1.2rem;
}
.split-list li {
	color: rgb(244 245 248 / 0.85);
	line-height: 1.6;
	margin-block: 0.5rem;
}

/* === premise catalog === */
.premise-slider {
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid rgb(255 255 255 / 0.1);
}
.premise-slider img {
	border-radius: 0;
}
.premise-specs {
	margin: 0;
	padding-left: 1.1rem;
	column-count: 1;
}
.premise-specs li {
	color: rgb(244 245 248 / 0.85);
	line-height: 1.6;
	margin-block: 0.4rem;
}
/* catalog rows */
.premise-title {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 600;
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
	letter-spacing: -0.02em;
	margin: 0 0 0.8rem;
}
.premise-title a {
	color: var(--text);
	text-decoration: none;
}
.premise-title a:hover {
	color: var(--primary);
}
.premise-card {
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	padding-block: clamp(1.5rem, 3vw, 2rem);
}
.premise-card + .premise-card {
	border-top: 1px solid rgb(255 255 255 / 0.08);
}
.premise-card .band-media {
	flex-basis: 46%;
	flex-grow: 0;
}
.premise-card .split-copy {
	flex-basis: 50%;
}
.premise-card .premise-slider {
	border: none;
}
/* compact meta tags */
.premise-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.1rem;
	padding: 0;
	list-style: none;
}
.premise-meta li {
	background: rgb(255 255 255 / 0.07);
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 999px;
	padding: 0.25rem 0.7rem;
	font-size: 0.82rem;
	color: rgb(244 245 248 / 0.9);
	margin: 0;
}

/* === service row cards === */
.service-row {
	gap: 1.4rem;
	align-items: stretch;
}
.info-cols {
	gap: 1.4rem;
}
.service-row > .wp-block-column,
.info-cols > .wp-block-column {
	display: flex;
}
.service-row .is-style-glass-card,
.info-cols .is-style-glass-card {
	flex: 1;
}

/* === contact === */
.contact-h {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.01em;
	margin: 0 0 1.4rem;
}
.contact-outer {
	align-items: stretch;
}
.contact-outer > .wp-block-column {
	display: flex;
	flex-direction: column;
}
.contact-outer p {
	margin-block: 0.5rem;
}

/* === responsive === */
@media (max-width: 781px) {
	.hero-grid .hero-copy,
	.hero-grid .hero-media,
	.split-copy,
	.split .band-media {
		flex-basis: 100%;
		flex-grow: 1;
	}
	.split--reverse .band-media {
		order: 0;
	}
	.hero-media {
		margin-top: 1.5rem;
	}
	.band-head {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* === contact form === */
.contact-outer {
	background: var(--surface);
	border: 1px solid rgb(255 255 255 / 0.08);
	border-radius: 24px;
	padding: clamp(1.7rem, 4vw, 3rem);
	gap: 2.5rem;
}
.wp-block-jetpack-contact-form {
	gap: 0.9rem;
}
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form textarea {
	width: 100%;
	background: rgb(255 255 255 / 0.06);
	border: 1px solid rgb(255 255 255 / 0.12);
	border-radius: 12px;
	color: var(--text);
	padding: 0.8rem 1rem;
	font-family: var(--wp--preset--font-family--albert-sans);
}
.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form textarea:focus {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}
.wp-block-jetpack-contact-form label {
	color: rgb(244 245 248 / 0.75);
	font-size: 0.9rem;
}
.wp-block-jetpack-contact-form .wp-block-button__link {
	width: auto;
}

/* === footer === */
.site-footer {
	background: var(--surface);
	border-top: 1px solid rgb(255 255 255 / 0.08);
	padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer-inner {
	gap: 2rem;
}
.footer-col {
	flex: 1 1 240px;
}
.footer-tagline {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.6;
	max-width: 24em;
}
.footer-h {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	color: var(--text);
}
.footer-col p {
	color: rgb(244 245 248 / 0.75);
	font-size: 0.95rem;
}
.footer-col a {
	color: var(--primary);
}
.footer-nav .wp-block-navigation-item a {
	color: rgb(244 245 248 / 0.75);
}
.footer-nav .wp-block-navigation-item a:hover {
	color: #fff;
}
.footer-rule {
	margin-block: 2.2rem 1.4rem;
	border-color: rgb(255 255 255 / 0.12);
}
.footer-copy {
	color: var(--muted);
	font-size: 0.85rem;
}

/* === buttons === */
.wp-block-button__link {
	letter-spacing: 0.02em;
}
.wp-element-button:hover {
	filter: brightness(1.08);
}
.is-style-outline-button .wp-block-button__link:hover {
	background: rgb(255 255 255 / 0.12);
}.is-style-outline-button .wp-block-button__link {
	background: transparent;
	border: 1px solid rgb(255 255 255 / 0.3);
	color: var(--text);
}

@keyframes drift-a {
	0% { transform: translate(0,0); }
	50% { transform: translate(2rem, 1rem); }
	100% { transform: translate(0,0); }
}
.band.is-style-glow-a::before {
	animation: drift-a 26s ease-in-out infinite;
}
.band.is-style-glow-b::after {
	animation: drift-a 32s ease-in-out infinite reverse;
}
@media (prefers-reduced-motion: reduce) {
	.band.is-style-glow-a::before,
	.band.is-style-glow-b::after {
		animation: none;
	}
}

