/*
 * The theme's page blocks (inc/elementor/widgets/story.php, contact-form.php): picture and text side by side,
 * features / contact ways / tiles, the closing call to action, the contact form. Square corners and colours from
 * the site's tokens (--ps-*); the gold of the brand (--ps-accent) draws lines and frames, never small text.
 */

/* The short line above a heading: the brand colour, after a gold rule. */
.ps-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	color: var(--ps-primary);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}
.ps-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--ps-accent); }
.ps-align-center .ps-eyebrow::after { content: ""; width: 32px; height: 1px; background: var(--ps-accent); }

.ps-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ps-button--outline { --ps-btn-color: var(--ps-primary); --ps-btn-color-hover: #fff; --ps-btn-bg-hover: var(--ps-primary); border-width: 1px; }
.ps-button--bordered.ps-button--scheme-light { --ps-btn-bg-hover: #fff; --ps-btn-color-hover: var(--ps-primary); border-width: 1px; }
.ps-button--bordered:hover { box-shadow: none; }
.ps-actions .ps-button__icon { transition: transform .25s ease; }
.ps-actions .ps-button:hover .ps-button__icon { transform: translateX(-3px); }

/* A page's opening section (CSS class ps-band in Elementor): the title band's tinted background. */
.elementor-section.ps-band {
	border-bottom: 1px solid var(--ps-border);
	background: radial-gradient(900px 320px at 85% -80px, rgba(141, 8, 52, .07), transparent 70%), radial-gradient(700px 300px at 10% 110%, rgba(193, 154, 82, .12), transparent 70%), var(--ps-page-bg);
}

/* ---------------------------------------------------------------- picture and text */
.ps-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.ps-split--media-start .ps-split__media { order: -1; }
.ps-split__crumbs { margin-bottom: 22px; }
.ps-split__title { margin: 0; color: var(--ps-heading); font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.35; }
h2.ps-split__title, h3.ps-split__title { font-size: clamp(22px, 2.4vw, 30px); }
.ps-split__intro { margin-top: 18px; color: var(--ps-text); font-size: 15px; line-height: 2.1; text-align: justify; }
.ps-split__intro > :last-child { margin-bottom: 0; }
.ps-split__intro ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ps-split__intro li { position: relative; padding-inline-start: 22px; text-align: start; }
.ps-split__intro li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 7px; height: 7px; background: var(--ps-accent); transform: rotate(45deg); }

.ps-split__media { position: relative; margin: 0; }
.ps-split__img { margin: 0; position: relative; }
.ps-split__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-split--portrait .ps-split__img:first-child { aspect-ratio: 4 / 5; }
.ps-split--square .ps-split__img:first-child { aspect-ratio: 1; }
.ps-split--landscape .ps-split__img:first-child { aspect-ratio: 4 / 3; }
.ps-split--natural .ps-split__img:first-child img { height: auto; object-fit: contain; }
.ps-split__zoom { display: block; height: 100%; cursor: zoom-in; }
/* A thin gold frame offset behind the picture, as on the home page. */
.ps-split--frame .ps-split__img:first-child::before {
	content: "";
	position: absolute;
	inset: -18px -18px 18px 18px;
	border: 1px solid var(--ps-accent);
	pointer-events: none;
}
/* (offset towards the text: never past the page's edge) */
.ps-split--media-start.ps-split--frame .ps-split__img:first-child::before { inset: -18px 18px 18px -18px; }
.ps-split--frame .ps-split__img:first-child img { position: relative; }
/* Two pictures: the main one on the outer side, a smaller one over its inner bottom corner. */
.ps-split--pair .ps-split__img:first-child { width: 78%; }
.ps-split--media-end.ps-split--pair .ps-split__img:first-child { margin-inline-start: auto; }
.ps-split__img--small {
	position: absolute;
	bottom: -40px;
	width: 42%;
	aspect-ratio: 1;
	border: 8px solid var(--ps-page-bg);
	background: var(--ps-page-bg);
}
.ps-split--media-end .ps-split__img--small { inset-inline-start: 0; }
.ps-split--media-start .ps-split__img--small { inset-inline-end: 0; }
.ps-split--pair { padding-bottom: 40px; }
.ps-split__caption { margin: 28px 0 0; color: var(--ps-muted); font-size: 13px; text-align: center; }

/* ---------------------------------------------------------------- features, contact ways, tiles, list */
.ps-feat__head { max-width: 720px; margin: 0 auto 40px; }
.ps-feat.ps-align-right .ps-feat__head, .ps-feat.ps-align-left .ps-feat__head { margin-inline: 0; }
.ps-feat__title { margin: 0; color: var(--ps-heading); }
.ps-feat__head .ps-feat__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.4; }
.ps-feat__intro { margin-top: 12px; color: var(--ps-text); font-size: 15px; line-height: 2; }
.ps-feat__intro > :last-child { margin-bottom: 0; }
.ps-feat__grid {
	display: grid;
	grid-template-columns: repeat(var(--c, 4), minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ps-feat__grid > li { display: flex; min-width: 0; }
.ps-feat__item { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ps-feat__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ps-feat__grid .ps-feat__title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.ps-feat__grid .ps-feat__title a { color: inherit; }
.ps-feat__text { color: var(--ps-text); font-size: 14px; line-height: 1.95; }
.ps-feat__icon { flex: none; display: inline-grid; place-items: center; color: var(--ps-primary); }

/* Cards: a white square with a gold-framed icon. */
.ps-feat--cards .ps-feat__item { padding: 32px 26px; background: var(--ps-body-bg, #fff); border: 1px solid var(--ps-border); transition: border-color .3s ease; }
.ps-feat--cards .ps-feat__item:hover { border-color: var(--ps-accent); }
.ps-feat--cards .ps-feat__icon { width: 56px; height: 56px; margin-bottom: 20px; border: 1px solid var(--ps-accent); background: var(--ps-accent-soft); }
.ps-feat--cards.ps-align-center .ps-feat__item { align-items: center; text-align: center; }

/* Contact ways: the whole card is the link; icon in a tinted square, the label small, the value large. */
.ps-feat--contact .ps-feat__item { flex-direction: row; align-items: center; gap: 16px; padding: 22px; background: var(--ps-body-bg, #fff); border: 1px solid var(--ps-border); color: inherit; text-align: start; transition: border-color .3s ease, background-color .3s ease; }
.ps-feat--contact .ps-feat__icon { width: 52px; height: 52px; background: var(--ps-primary-soft); transition: background-color .3s ease, color .3s ease; }
.ps-feat--contact .ps-feat__body { gap: 2px; }
.ps-feat--contact .ps-feat__grid .ps-feat__title { order: -1; color: var(--ps-muted); font-size: 13px; font-weight: 500; }
.ps-feat--contact .ps-feat__text { color: var(--ps-heading); font-size: 16px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.ps-feat--contact .ps-feat__text[dir="ltr"] { text-align: end; unicode-bidi: isolate; }
.ps-feat__item--link:hover { border-color: var(--ps-primary); }
.ps-feat--contact .ps-feat__item--link:hover .ps-feat__icon { background: var(--ps-primary); color: #fff; }
.ps-feat--contact .ps-feat__item--link:focus-visible { outline: 2px solid var(--ps-primary); outline-offset: 2px; }

/* Tiles: a square picture, the name under it. */
.ps-feat--tiles .ps-feat__grid { gap: 16px; }
.ps-feat--tiles .ps-feat__item { gap: 12px; color: inherit; }
.ps-feat__img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--ps-page-bg); }
.ps-feat__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-feat--tiles .ps-feat__body { align-items: center; text-align: center; }
.ps-feat--tiles .ps-feat__grid .ps-feat__title { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; transition: color .25s ease; }
.ps-feat--tiles .ps-feat__item--link .ps-feat__title::after { content: ""; width: 7px; height: 7px; border-inline-start: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(135deg); transition: transform .25s ease; }
.ps-feat--tiles .ps-feat__item--link:hover .ps-feat__title { color: var(--ps-primary); }
.ps-feat--tiles .ps-feat__item--link:hover .ps-feat__title::after { transform: translateX(-3px) rotate(135deg); }
.ps-feat--tiles .ps-feat__item--link:hover { border-color: transparent; }

/* List: icon beside each line (address, hours …), in one column. */
.ps-feat--list .ps-feat__grid { gap: 0; }
.ps-feat--list .ps-feat__item { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--ps-border); text-align: start; }
.ps-feat--list li:last-child .ps-feat__item { border-bottom: 0; padding-bottom: 0; }
.ps-feat--list li:first-child .ps-feat__item { padding-top: 0; }
.ps-feat--list .ps-feat__icon { width: 44px; height: 44px; border: 1px solid var(--ps-accent); }
.ps-feat--list .ps-feat__body { gap: 4px; }
.ps-feat--list .ps-feat__grid .ps-feat__title { font-size: 15px; }
.ps-feat__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ps-primary); font-size: 13px; font-weight: 700; }
.ps-feat__more:hover { color: var(--ps-primary-dark); }
.ps-feat__more:hover svg { transform: translateX(-3px); }
.ps-feat__more svg { transition: transform .25s ease; }

/* In a white box (beside a form, for one). */
.ps-feat--boxed { height: 100%; padding: clamp(24px, 3vw, 40px); background: var(--ps-body-bg, #fff); border: 1px solid var(--ps-border); }
.ps-feat--boxed .ps-feat__head { margin-bottom: 28px; }
.ps-feat--boxed .ps-feat__head .ps-feat__title { font-size: 22px; }

/* ---------------------------------------------------------------- call to action */
.ps-cta {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px 48px;
	align-items: center;
	padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px);
	isolation: isolate;
}
.ps-cta::before { content: ""; position: absolute; inset: 12px; z-index: -1; border: 1px solid var(--ps-cta-line); pointer-events: none; }
.ps-cta--primary {
	--ps-cta-line: rgba(193, 154, 82, .55);
	background: radial-gradient(600px 260px at 10% 120%, rgba(193, 154, 82, .22), transparent 70%), var(--ps-primary);
	color: rgba(255, 255, 255, .88);
}
.ps-cta--soft { --ps-cta-line: var(--ps-accent); background: var(--ps-accent-soft); }
.ps-cta--primary .ps-eyebrow, .ps-cta--primary .ps-cta__title { color: #fff; }
.ps-cta--primary .ps-eyebrow::before { background: #e5cf9f; }
.ps-cta__title { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; line-height: 1.45; }
.ps-cta__intro { margin-top: 10px; font-size: 15px; line-height: 2; }
.ps-cta__intro > :last-child { margin-bottom: 0; }
.ps-cta .ps-actions { margin-top: 0; }
.ps-cta--primary .ps-button--white { --ps-btn-color: var(--ps-primary); }

/* ---------------------------------------------------------------- contact form */
.ps-cf { height: 100%; padding: clamp(24px, 3vw, 40px); background: var(--ps-body-bg, #fff); border: 1px solid var(--ps-border); scroll-margin-top: calc(var(--ps-sticky-top, 0px) + 16px); }
.ps-cf__head { margin-bottom: 26px; }
.ps-cf__title { margin: 0; color: var(--ps-heading); font-size: 22px; font-weight: 700; }
.ps-cf__intro { margin-top: 8px; color: var(--ps-text); font-size: 14px; line-height: 2; }
.ps-cf__intro > :last-child { margin-bottom: 0; }
.ps-cf__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; }
.ps-cf__field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ps-cf__field--subject, .ps-cf__field--message { grid-column: 1 / -1; }
.ps-cf__field label { color: var(--ps-heading); font-size: 13px; font-weight: 700; }
.ps-cf__optional { color: var(--ps-muted); font-weight: 400; }
.ps-cf :is(input, select, textarea) {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--ps-border);
	border-radius: var(--ps-radius-sm, 0);
	background: var(--ps-page-bg);
	color: var(--ps-heading);
	font: inherit;
	font-size: 15px;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.ps-cf textarea { min-height: 140px; resize: vertical; line-height: 1.9; }
.ps-cf input[dir="ltr"] { text-align: right; }
.ps-cf input[dir="ltr"]::placeholder { color: #a39a9b; }
.ps-cf :is(input, select, textarea):focus { outline: none; border-color: var(--ps-primary); background: #fff; box-shadow: 0 0 0 3px var(--ps-primary-soft); }
.ps-cf [aria-invalid] { border-color: var(--ps-error); }
.ps-cf__trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ps-cf__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.ps-cf__foot .ps-button[disabled] { opacity: .65; cursor: progress; }
.ps-cf__status { flex: 1 1 220px; margin: 0; font-size: 14px; line-height: 1.8; }
.ps-cf__status:empty { display: none; }
.ps-cf__status.is-ok { padding: 10px 14px; background: #edf7f0; color: #1f5c39; }
.ps-cf__status.is-error { color: var(--ps-error); }

/* ---------------------------------------------------------------- tablets and phones */
@media (max-width: 1024px) {
	.ps-feat__grid { grid-template-columns: repeat(var(--c-t, 2), minmax(0, 1fr)); }
	.ps-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.ps-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.ps-split--media-start .ps-split__media { order: 0; }
	.ps-split__media { max-width: 460px; margin-inline: auto; width: 100%; }
	.ps-split--frame .ps-split__img:first-child::before, .ps-split--media-start.ps-split--frame .ps-split__img:first-child::before { inset: -10px -10px 10px 10px; }
	.ps-split--portrait .ps-split__img:first-child { aspect-ratio: 5 / 4; }
	.ps-split--pair .ps-split__img:first-child { width: 84%; }
	.ps-split__img--small { bottom: -28px; width: 40%; border-width: 6px; }
	.ps-split__intro { font-size: 14px; }
	.ps-feat__grid { grid-template-columns: repeat(var(--c-m, 1), minmax(0, 1fr)); gap: 12px; }
	.ps-feat__head { margin-bottom: 28px; }
	.ps-feat--cards .ps-feat__item { padding: 24px 18px; }
	.ps-feat--contact .ps-feat__item { padding: 16px; }
	.ps-feat--contact .ps-feat__icon { width: 44px; height: 44px; }
	.ps-actions .ps-button { flex: 1 1 auto; }
	.ps-cf__grid { grid-template-columns: minmax(0, 1fr); }
	.ps-cf__foot .ps-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ps-feat *, .ps-actions * { transition: none !important; }
}
