/* ==========================================================================
   PSB Theme — structural design system (Bootstrap 5 + Font Awesome 6)

   This stylesheet carries NO colour, font or radius value. Every visual
   decision arrives as a --psb-theme-* custom property, resolved from
   inc/palettes.json and printed inline by PSB_Theme_Tokens:

     psb-core General colours (operator override)
       → the site brand's palette (hydrodrive / jetting / visina / megasystems)
         → the neutral palette

   The same custom properties are what the PSB plugins consume, so a plugin
   component, a theme section and a page band cannot drift apart: there is one
   definition, and this file only says where things sit and how big they are.

   The only literals below are dimensions, timing and the `#000` inside marquee
   mask gradients, which is a mask stop rather than a colour.
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--psb-theme-bg);
	color: var(--psb-theme-text);
	font-family: var(--psb-theme-font-body);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.75;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--psb-theme-primary);
	color: var(--psb-theme-on-primary);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--psb-theme-font-head);
	color: var(--psb-theme-text);
	font-weight: var(--psb-theme-head-weight);
	font-style: var(--psb-theme-head-style);
	text-transform: var(--psb-theme-head-transform);
	letter-spacing: var(--psb-theme-head-tracking);
	line-height: var(--psb-theme-head-leading);
	text-wrap: balance;
}

a {
	color: var(--psb-theme-accent-deep);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--psb-theme-primary);
}

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

:focus-visible {
	outline: 2px solid var(--psb-theme-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Accessibility helper (used by the skip link) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--psb-theme-inverse);
	clip: auto !important;
	clip-path: none;
	color: var(--psb-theme-on-inverse);
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--psb-theme-bg); }
::-webkit-scrollbar-thumb {
	background: var(--psb-theme-scrollbar-thumb);
	border-radius: 8px;
	border: 3px solid var(--psb-theme-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--psb-theme-scrollbar-thumb-hover); }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.psb-theme-kicker {
	font-family: var(--psb-theme-font-sub);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	color: var(--psb-theme-accent-deep);
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0.9rem;
}

.psb-theme-kicker::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--psb-theme-primary);
	border-radius: 2px;
}

.psb-theme-section-title {
	font-size: clamp(1.6rem, 3.2vw, 2.35rem);
	color: var(--psb-theme-text);
	margin-bottom: 0.9rem;
}

.psb-theme-section-sub {
	color: var(--psb-theme-secondary);
	font-size: 1.02rem;
	max-width: 640px;
	margin: 0 auto 0;
}

.psb-theme-section-text {
	color: var(--psb-theme-secondary);
	font-size: 1.02rem;
	max-width: 60ch;
}

.psb-theme-section-head {
	text-align: center;
	margin-bottom: 3.4rem;
}

/* Short accent rule under centered section heads. */
.psb-theme-section-head::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin: 1.4rem auto 0;
	background: var(--psb-theme-accent);
	border-radius: var(--psb-theme-radius-pill);
}

.psb-theme-section-head .psb-theme-section-sub {
	margin-top: 0.35rem;
}

/* CTA that follows a block of section copy. */
.psb-theme-intro-cta {
	margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   Buttons — one primary, one outline, styled by the palette's type tokens so
   jetting keeps its uppercase condensed buttons and the other sites stay
   sentence-case without a single site-specific rule here.
   -------------------------------------------------------------------------- */

.btn {
	font-family: var(--psb-theme-btn-family);
	font-weight: var(--psb-theme-btn-weight);
	text-transform: var(--psb-theme-btn-transform);
	letter-spacing: var(--psb-theme-btn-tracking);
	border-radius: var(--psb-theme-radius-sm);
	padding: 0.8rem 1.7rem;
	font-size: 0.95rem;
	border: 1.5px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
		color 0.2s ease, border-color 0.2s ease;
}

/* .btn-psb-theme-gold is the Jetting-era class name, kept as an alias. */
.btn-psb-theme-primary,
.btn-psb-theme-gold {
	background: var(--psb-theme-primary);
	color: var(--psb-theme-on-primary);
	box-shadow: 0 10px 24px var(--psb-theme-shadow);
}

.btn-psb-theme-primary:hover,
.btn-psb-theme-primary:focus,
.btn-psb-theme-gold:hover,
.btn-psb-theme-gold:focus {
	background: var(--psb-theme-primary-deep);
	color: var(--psb-theme-on-primary);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px var(--psb-theme-shadow-lift);
}

.btn-psb-theme-outline {
	border-color: var(--psb-theme-primary);
	color: var(--psb-theme-primary);
	background: transparent;
}

.btn-psb-theme-outline:hover,
.btn-psb-theme-outline:focus {
	background: var(--psb-theme-primary-soft);
	color: var(--psb-theme-primary-deep);
	border-color: var(--psb-theme-primary);
	transform: translateY(-2px);
}

/* On a photographic band the outline button has to invert. */
.psb-theme-hero .btn-psb-theme-outline {
	border-color: var(--psb-theme-on-dark-muted);
	color: var(--psb-theme-on-dark);
}

.psb-theme-hero .btn-psb-theme-outline:hover,
.psb-theme-hero .btn-psb-theme-outline:focus {
	background: var(--psb-theme-on-dark);
	border-color: var(--psb-theme-on-dark);
	color: var(--psb-theme-inverse);
}

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

.psb-theme-section {
	padding: var(--psb-theme-section-y) 0;
	position: relative;
}

/* The services band sits on the tinted surface so its cards read as panels. */
.psb-theme-services {
	background: var(--psb-theme-surface-alt);
	border-top: 1px solid var(--psb-theme-border);
	border-bottom: 1px solid var(--psb-theme-border);
}

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

.psb-theme-hero {
	position: relative;
}

.psb-theme-hero-carousel {
	height: clamp(520px, 80vh, 860px);
}

.psb-theme-hero-carousel .carousel-inner,
.psb-theme-hero-carousel .carousel-item {
	height: 100%;
}

.psb-theme-hero-slide {
	position: relative;
	height: 100%;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
}

.psb-theme-hero-overlay {
	position: absolute;
	inset: 0;
	background: var(--psb-theme-hero-overlay);
	z-index: 1;
}

.psb-theme-hero-glow {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: var(--psb-theme-hero-glow);
}

.psb-theme-hero-content {
	position: relative;
	z-index: 2;
	padding-top: 6rem;
	padding-bottom: 5rem;
}

.psb-theme-hero .psb-theme-kicker {
	color: var(--psb-theme-on-dark-accent);
}

.psb-theme-hero .psb-theme-kicker::before {
	background: var(--psb-theme-on-dark-accent);
}

.psb-theme-hero-title {
	font-size: clamp(2rem, 4.8vw, 3.4rem);
	color: var(--psb-theme-on-dark);
	margin-bottom: 1.1rem;
	max-width: 20ch;
}

.psb-theme-hero-text {
	color: var(--psb-theme-on-dark-muted);
	font-size: clamp(1rem, 1.5vw, 1.13rem);
	max-width: 56ch;
	margin-bottom: 2rem;
}

.psb-theme-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.psb-theme-hero-arrow {
	width: 50px;
	height: 50px;
	opacity: 1;
	top: 50%;
	transform: translateY(-50%);
	background: var(--psb-theme-card-soft);
	border: 1px solid var(--psb-theme-on-dark-muted);
	border-radius: var(--psb-theme-radius-pill);
	font-size: 1rem;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.psb-theme-hero-arrow i {
	color: var(--psb-theme-on-dark);
}

.psb-theme-hero-arrow:hover {
	background: var(--psb-theme-on-dark);
	border-color: var(--psb-theme-on-dark);
}

.psb-theme-hero-arrow:hover i {
	color: var(--psb-theme-inverse);
}

.psb-theme-hero .carousel-indicators {
	margin-bottom: 1.6rem;
}

.psb-theme-hero .carousel-indicators button {
	width: 30px;
	height: 3px;
	border-radius: var(--psb-theme-radius-pill);
	background-color: var(--psb-theme-on-dark-muted);
	border: 0;
	opacity: 0.7;
	transition: opacity 0.2s ease, background-color 0.2s ease, width 0.2s ease;
}

.psb-theme-hero .carousel-indicators button.active {
	background-color: var(--psb-theme-on-dark);
	width: 46px;
	opacity: 1;
}

@media (max-width: 767.98px) {
	.psb-theme-hero-carousel { height: 540px; }
	.psb-theme-hero-arrow { display: none; }
}

/* --------------------------------------------------------------------------
   Stats band — a dark brand band in every palette.
   -------------------------------------------------------------------------- */

.psb-theme-stats {
	padding: 3rem 0;
	background: var(--psb-theme-stats-bg);
	color: var(--psb-theme-on-dark);
}

.psb-theme-stat {
	text-align: center;
	padding: 0.5rem;
}

.psb-theme-stat-number {
	font-family: var(--psb-theme-font-head);
	font-weight: 700;
	font-style: normal;
	text-transform: none;
	font-size: clamp(1.9rem, 4vw, 2.9rem);
	color: var(--psb-theme-on-dark);
	line-height: 1.1;
}

.psb-theme-stat-value {
	color: var(--psb-theme-on-dark);
}

/* The suffix (+ / % / /7) carries the accent on the dark band. */
.psb-theme-stat-suffix {
	color: var(--psb-theme-on-dark-accent);
}

.psb-theme-stat-label {
	font-family: var(--psb-theme-font-sub);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.74rem;
	color: var(--psb-theme-on-dark-muted);
	margin-top: 0.55rem;
}

/* Hairline separators between figures on wide screens. */
@media (min-width: 768px) {
	.psb-theme-stat-col + .psb-theme-stat-col .psb-theme-stat {
		border-left: 1px solid var(--psb-theme-on-dark-muted);
	}
}

/* --------------------------------------------------------------------------
   Image frames
   -------------------------------------------------------------------------- */

.psb-theme-image-frame {
	position: relative;
	border-radius: var(--psb-theme-radius);
	padding: 10px;
	background: var(--psb-theme-surface-alt);
	border: 1px solid var(--psb-theme-border);
	box-shadow: var(--psb-theme-shadow);
}

.psb-theme-image-frame img {
	border-radius: var(--psb-theme-radius-sm);
	width: 100%;
	object-fit: cover;
	display: block;
}

.psb-theme-intro-image,
.psb-theme-highlight-image {
	aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.psb-theme-card {
	display: block;
	height: 100%;
	background: var(--psb-theme-card);
	border: 1px solid var(--psb-theme-border);
	border-radius: var(--psb-theme-radius);
	overflow: hidden;
	box-shadow: 0 1px 2px var(--psb-theme-shadow-soft);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.psb-theme-card:hover,
.psb-theme-card:focus-visible {
	transform: translateY(-5px);
	border-color: var(--psb-theme-border-strong);
	box-shadow: var(--psb-theme-shadow-lift);
	color: inherit;
}

/* Category cards */
.psb-theme-card-cat .psb-theme-card-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.psb-theme-card-cat .psb-theme-card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, var(--psb-theme-hero-overlay));
}

.psb-theme-card-cat .psb-theme-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.psb-theme-card-cat:hover .psb-theme-card-media img {
	transform: scale(1.05);
}

.psb-theme-card-body {
	display: block;
	padding: 1.5rem 1.5rem 1.6rem;
}

.psb-theme-card-title {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: var(--psb-theme-text);
}

.psb-theme-card-text {
	color: var(--psb-theme-secondary);
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.psb-theme-card-link {
	font-family: var(--psb-theme-btn-family);
	font-weight: 600;
	text-transform: var(--psb-theme-btn-transform);
	letter-spacing: var(--psb-theme-btn-tracking);
	font-size: 0.88rem;
	color: var(--psb-theme-accent-deep);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.psb-theme-card-link i {
	transition: transform 0.25s ease;
}

.psb-theme-card:hover .psb-theme-card-link i {
	transform: translateX(5px);
}

/* Service cards */
.psb-theme-card-service {
	padding: 2rem 1.7rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.psb-theme-card-service::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, var(--psb-theme-primary-soft), transparent 62%);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.psb-theme-card-service:hover::before {
	opacity: 1;
}

.psb-theme-service-icon {
	width: 66px;
	height: 66px;
	margin: 0 auto 1.1rem;
	border-radius: var(--psb-theme-radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: var(--psb-theme-primary);
	background: var(--psb-theme-primary-soft);
	border: 1px solid transparent;
	transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.psb-theme-card-service:hover .psb-theme-service-icon {
	transform: translateY(-3px);
	color: var(--psb-theme-on-primary);
	background: var(--psb-theme-primary);
}

.psb-theme-card-service .psb-theme-card-title,
.psb-theme-card-service .psb-theme-card-text {
	position: relative;
}

.psb-theme-card-service .psb-theme-card-title {
	margin-bottom: 0.65rem;
}

.psb-theme-card-service .psb-theme-card-text {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Highlight
   -------------------------------------------------------------------------- */

.psb-theme-highlight-inner {
	position: relative;
	border: 1px solid var(--psb-theme-border);
	border-radius: var(--psb-theme-radius-lg);
	padding: clamp(1.8rem, 5vw, 3.4rem);
	background: var(--psb-theme-surface-alt);
	overflow: hidden;
	box-shadow: var(--psb-theme-shadow);
}

.psb-theme-highlight-inner::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--psb-theme-accent);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.psb-theme-contact-inner {
	border: 1px solid var(--psb-theme-border);
	border-radius: var(--psb-theme-radius-lg);
	padding: clamp(1.8rem, 5vw, 3.4rem);
	background: var(--psb-theme-surface-alt);
}

.psb-theme-contact-list {
	list-style: none;
	margin: 1.6rem 0 2rem;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.psb-theme-contact-list li {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	color: var(--psb-theme-secondary);
	font-size: 1rem;
}

.psb-theme-contact-list a {
	color: var(--psb-theme-text);
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.psb-theme-contact-list a:hover {
	color: var(--psb-theme-accent-deep);
	border-color: var(--psb-theme-accent-deep);
}

.psb-theme-contact-icon {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--psb-theme-radius-input);
	background: var(--psb-theme-primary-soft);
	border: 1px solid transparent;
	color: var(--psb-theme-primary);
	font-size: 1rem;
}

.psb-theme-contact-form-card {
	padding: 2rem;
	text-align: left;
}

.psb-theme-contact-form-placeholder {
	color: var(--psb-theme-muted);
	text-align: center;
	padding: 1.5rem 0;
	margin: 0;
}

.psb-theme-contact-form-placeholder i {
	font-size: 2.2rem;
	color: var(--psb-theme-primary);
	margin-bottom: 0.6rem;
}

/* Contact Form 7 */
.wpcf7 form {
	display: grid;
	gap: 1.1rem;
}

.wpcf7 p {
	margin: 0;
}

.wpcf7 label {
	font-family: var(--psb-theme-font-head);
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.82rem;
	color: var(--psb-theme-secondary);
	display: block;
	margin-bottom: 0.35rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	background: var(--psb-theme-input);
	border: 1px solid var(--psb-theme-border-strong);
	border-radius: var(--psb-theme-radius-input);
	color: var(--psb-theme-text);
	padding: 0.8rem 1rem;
	font-family: var(--psb-theme-font-body);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	border-color: var(--psb-theme-primary);
	box-shadow: 0 0 0 3px var(--psb-theme-ring);
	outline: none;
}

.wpcf7 input[type="submit"],
.wpcf7-submit {
	background: var(--psb-theme-primary);
	color: var(--psb-theme-on-primary);
	border: 0;
	border-radius: var(--psb-theme-radius-sm);
	padding: 0.85rem 2rem;
	font-family: var(--psb-theme-btn-family);
	font-weight: var(--psb-theme-btn-weight);
	text-transform: var(--psb-theme-btn-transform);
	letter-spacing: var(--psb-theme-btn-tracking);
	cursor: pointer;
	box-shadow: 0 10px 24px var(--psb-theme-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7-submit:hover {
	background: var(--psb-theme-primary-deep);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px var(--psb-theme-shadow-lift);
}

.wpcf7 .wpcf7-response-output {
	border: 1px solid var(--psb-theme-border-strong);
	border-radius: var(--psb-theme-radius-input);
	color: var(--psb-theme-text);
	background: var(--psb-theme-card-soft);
	margin: 0;
	padding: 0.9rem 1.1rem;
	font-size: 0.95rem;
}

.wpcf7 .wpcf7-not-valid {
	border-color: var(--psb-theme-accent) !important;
}

.wpcf7 .wpcf7-not-valid-tip {
	color: var(--psb-theme-accent-deep);
	font-size: 0.85rem;
}

.wpcf7 .wpcf7-spinner {
	position: absolute;
	margin-left: 1rem;
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */

.psb-theme-map {
	padding: clamp(2rem, 4vw, 3.5rem) 0 0;
}

.psb-theme-map-inner {
	border: 1px solid var(--psb-theme-border);
	border-radius: var(--psb-theme-radius);
	overflow: hidden;
	box-shadow: var(--psb-theme-shadow);
}

.psb-theme-map-frame {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
	filter: var(--psb-theme-map-filter);
}

/* --------------------------------------------------------------------------
   Brand marquee
   -------------------------------------------------------------------------- */

.psb-theme-brands {
	padding: clamp(3rem, 6vw, 4.5rem) 0 1rem;
}

.psb-theme-marquee {
	overflow: hidden;
	position: relative;
	padding: 1.2rem 0;
	/* Mask stops only — #000 is an opaque mask, not a colour. */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.psb-theme-marquee-track {
	display: flex;
	width: max-content;
	animation: psb-theme-marquee 34s linear infinite;
}

.psb-theme-marquee:hover .psb-theme-marquee-track {
	animation-play-state: paused;
}

.psb-theme-marquee-group {
	display: flex;
	gap: 1.6rem;
	padding-right: 1.6rem;
}

.psb-theme-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 190px;
	height: 84px;
	padding: 0.8rem 1.6rem;
	background: var(--psb-theme-logo-chip);
	border: 1px solid var(--psb-theme-border);
	border-radius: var(--psb-theme-radius-sm);
	opacity: 0.85;
	transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease,
		box-shadow 0.25s ease;
}

.psb-theme-brand:hover {
	opacity: 1;
	border-color: var(--psb-theme-border-strong);
	transform: translateY(-3px);
	box-shadow: var(--psb-theme-shadow);
}

.psb-theme-brand img {
	max-height: 52px;
	width: auto;
}

.psb-theme-brand-name {
	font-family: var(--psb-theme-font-head);
	font-weight: var(--psb-theme-head-weight);
	text-transform: none;
	letter-spacing: 0;
	color: var(--psb-theme-primary);
	font-size: 1rem;
}

@keyframes psb-theme-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.psb-theme-marquee-track {
		animation: none;
		flex-wrap: wrap;
		width: auto;
	}
	.psb-theme-marquee-group {
		flex-wrap: wrap;
	}
	html { scroll-behavior: auto; }
}

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

[data-psb-theme-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
	will-change: opacity, transform;
}

[data-psb-theme-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-psb-theme-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Fallback pages (index/404)
   -------------------------------------------------------------------------- */

/* Keep anchored sections clear of a fixed/sticky site header */
section[id] {
	scroll-margin-top: 96px;
}

.psb-theme-page .psb-theme-entry + .psb-theme-entry {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--psb-theme-border);
}

.psb-theme-entry-content img {
	border-radius: var(--psb-theme-radius);
}

/* --------------------------------------------------------------------------
   Container width — aligned to Elementor's boxed content (1140px)
   -------------------------------------------------------------------------- */

/* Keep the theme's own Bootstrap containers on the same centered width as the
   site header and Elementor-built pages, which use Elementor's default boxed
   content width (1140px). Bootstrap's .container would otherwise widen to
   1320px on screens >= 1400px, making theme sections wider than the header.
   This only caps the widest breakpoints; below 1400px Bootstrap's container
   is already <= 1140px, so smaller screens are unaffected. */
.psb-theme-landing .container,
.psb-theme-page .container,
.elementor-page .container {
	max-width: 1140px;
}

/* --------------------------------------------------------------------------
   Page hero (title band on pages / PSB taxonomy archives)
   -------------------------------------------------------------------------- */

/* Full-width hero rendered by the theme (page.php / taxonomy-psb_product.php)
   above the boxed content: 90px vertical padding, a deep brand band with the
   page title centered in it. */
.psb-theme-page-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 90px;
	padding-bottom: 90px;
	background-color: var(--psb-theme-inverse);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	position: relative;
}

/* Brand wash over the optional background image: keeps the title legible on
   any photo, and reads as a graded band when no image is set. */
.psb-theme-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--psb-theme-page-hero-wash);
}

.psb-theme-page-hero h2 {
	position: relative;
	z-index: 1;
	margin: 0;
	text-align: center;
	color: var(--psb-theme-on-inverse);
	font-size: clamp(1.85rem, 4.4vw, 3rem);
}

/* --------------------------------------------------------------------------
   PSB product content surface (single product / taxonomy archive)
   -------------------------------------------------------------------------- */

/* Catalog content renders on the palette's content surface — a tint in light
   mode, a recess in dark mode — so cards sit on top of it in both. No token is
   redefined here: the palette already answers this. */
body.single-psb_product .psb-theme-entry-content,
body.single-psb_product .psb-pd,
body.tax-psb_product_category #psb-theme-main,
body.tax-psb_product_brand #psb-theme-main,
body.tax-psb_product_sector #psb-theme-main {
	background-color: var(--psb-theme-content-bg);
}

/* The single-product wrapper has no padding of its own — make it a panel. */
body.single-psb_product .psb-theme-entry-content {
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border-radius: var(--psb-theme-radius);
}
