/* =========================================================================
 * Z DIZAJN - page sections
 *
 * Corrections on top of Prague's widgets where the demo's proportions do not
 * match the blueprint. Deliberately small: the widgets already inherit type
 * and colour from base.css, so this file only fixes size and rhythm, and
 * anything it touches is a widget the pages actually use.
 * ====================================================================== */

/* -------------------------------------------------------------------------
 * Section intro (Prague "headings" widget)
 * ---------------------------------------------------------------------- */

.heading .subtitle {
	font-family: var(--zd-font-body);
	font-size: var(--zd-size-label);
	font-weight: var(--zd-weight-label);
	letter-spacing: var(--zd-track-label);
	line-height: 1;
	text-transform: uppercase;
	color: var(--zd-accent);
	margin-bottom: var(--zd-space-md);
}

.heading .title {
	margin-bottom: var(--zd-space-md);
}

.heading.light .title,
.heading.light .subtitle,
.heading.light p {
	color: var(--zd-chalk);
}

.heading.light .subtitle {
	color: var(--zd-bronze-light);
}

.heading p {
	color: var(--zd-fg-muted);
	max-width: var(--zd-measure-lead);
}

/* -------------------------------------------------------------------------
 * Category banner - the FINE ART / INTERIORS fork
 *
 * Prague ships it as a full viewport-height panel, which is right when it is
 * the whole page. Here two sit side by side inside the home page, so they get
 * a section-sized height instead and stack on small screens.
 * ---------------------------------------------------------------------- */

.category-banner.full-height-window {
	height: auto;
	min-height: min(72vh, 720px);
}

.category-banner__info {
	margin-left: var(--zd-gutter);
	max-width: 22ch;
}

.category-banner__info-title {
	font-size: var(--zd-size-h1);
	color: var(--zd-chalk);
}

@media only screen and (max-width: 767px) {
	.category-banner.full-height-window {
		min-height: 52vh;
	}
}

/* -------------------------------------------------------------------------
 * Newsletter - the form sits on one line with the heading on wide screens
 * ---------------------------------------------------------------------- */

.zd-newsletter .frm_form_fields fieldset {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--zd-space-md);
}

.zd-newsletter .frm_form_fields .frm_submit {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Contact block, reused as the closing CTA on every page
 * ---------------------------------------------------------------------- */

.contact-form.light .contact-form__title,
.contact-form.light .contact-form__subtitle {
	color: var(--zd-chalk);
}

.contact-form.light .contact-form__subtitle {
	color: var(--zd-bronze-light);
}

/* -------------------------------------------------------------------------
 * Grids inside a dark band - Prague sets post titles near-black
 * ---------------------------------------------------------------------- */

.zd-dark .prague-post-title,
.zd-dark .post-item h3,
.zd-dark .post-item h3 a,
.zd-dark .item-title,
.zd-dark .item-title a {
	color: var(--zd-chalk);
}

.zd-dark .post-item .date-post,
.zd-dark .item-category {
	color: var(--zd-fg-muted);
}

/* -------------------------------------------------------------------------
 * Interactive split - FINE ART / INTERIORS
 *
 * Doc 03: 50/50 at rest, the hovered half grows to roughly 72%, the whole
 * half is the link, and touch devices stack the two with no hover logic.
 * flex-grow does the work, so there is no JS and nothing to desynchronise.
 * ---------------------------------------------------------------------- */

.zd-split {
	display: flex;
	width: 100%;
	min-height: min(80vh, 820px);
	background-color: var(--zd-ink);
}

.zd-split__half {
	position: relative;
	flex: 1 1 50%;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: var(--zd-chalk);
	transition: flex-grow var(--zd-dur-slow) var(--zd-ease);
}

.zd-split__media {
	position: absolute;
	inset: 0;
}

.zd-split__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Both photographs are dark; the wash keeps the label legible without
	   flattening the texture that carries the section. */
	filter: brightness(0.78);
	transform: scale(1.02);
	transition: transform var(--zd-dur-slow) var(--zd-ease),
		filter var(--zd-dur-slow) var(--zd-ease);
}

.zd-split__body {
	position: relative;
	z-index: 1;
	padding: var(--zd-section-y-tight) var(--zd-gutter);
	display: flex;
	flex-direction: column;
	gap: var(--zd-space-md);
}

.zd-split__title {
	font-family: var(--zd-font-display);
	font-size: var(--zd-size-h1);
	font-weight: var(--zd-weight-display);
	letter-spacing: var(--zd-track-display);
	line-height: 1;
	text-transform: uppercase;
}

.zd-split__cta {
	font-family: var(--zd-font-body);
	font-size: var(--zd-size-label);
	font-weight: var(--zd-weight-label);
	letter-spacing: var(--zd-track-label);
	text-transform: uppercase;
	opacity: 0.85;
}

@media (hover: hover) and (min-width: 768px) {
	.zd-split:hover .zd-split__half {
		flex-grow: 0.56;
	}

	.zd-split .zd-split__half:hover {
		flex-grow: 1.44;
	}

	.zd-split__half:hover .zd-split__media img {
		filter: brightness(0.9);
		transform: scale(1.05);
	}
}

@media only screen and (max-width: 767px) {
	.zd-split {
		flex-direction: column;
	}

	.zd-split__half {
		min-height: 58vh;
	}
}

/* -------------------------------------------------------------------------
 * Full-bleed image band with text over it
 * ---------------------------------------------------------------------- */

.zd-imgband {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding-block: var(--zd-section-y);
	padding-inline: var(--zd-gutter);
}

.zd-imgband--tall {
	min-height: min(88vh, 900px);
}

.zd-imgband--short {
	min-height: min(52vh, 560px);
}

.zd-imgband__media {
	position: absolute;
	inset: 0;
}

.zd-imgband__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The text sits on the quiet side of every chosen photograph, so the wash is
   a gradient rather than a flat veil - it keeps the subject readable. */
.zd-imgband__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(12, 10, 8, 0.82) 0%, rgba(12, 10, 8, 0.58) 45%, rgba(12, 10, 8, 0.25) 100%);
}

.zd-imgband--center .zd-imgband__media::after {
	background: rgba(12, 10, 8, 0.55);
}

.zd-imgband__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--zd-container);
	margin-inline: auto;
}

.zd-imgband--center .zd-imgband__inner {
	text-align: center;
}

.zd-imgband__eyebrow {
	color: var(--zd-accent);
	margin: 0 0 var(--zd-space-md);
}

.zd-imgband__title {
	font-size: var(--zd-size-hero);
	line-height: var(--zd-lh-display);
	max-width: 20ch;
	margin: 0;
	color: var(--zd-chalk);
}

.zd-imgband--center .zd-imgband__title {
	margin-inline: auto;
	max-width: 24ch;
}

.zd-imgband__text {
	max-width: 46ch;
	margin-top: var(--zd-space-lg);
	color: var(--zd-fg-muted);
}

.zd-imgband--center .zd-imgband__text {
	margin-inline: auto;
}

.zd-imgband__action {
	margin-top: var(--zd-space-xl);
}

.zd-imgband__note {
	margin-top: var(--zd-space-lg);
	color: var(--zd-fg-muted);
}

/* Both are <p>, so they inherit the reading measure from base.css and end up
   as a narrow left-hand block on a centred band - text-align alone cannot
   move the box. The note is one short line of capitals and wants no measure
   at all. */
.zd-imgband--center .zd-imgband__action {
	margin-inline: auto;
}

.zd-imgband--center .zd-imgband__note {
	max-width: none;
}

/* 24px of air is enough under an eyebrow but not under a display title this
   size - the rule ends up sitting in the descenders. */
.zd-imgband .zd-rule--short {
	margin-left: 0;
	margin-top: var(--zd-space-xl);
}

.zd-imgband--center .zd-rule--short {
	margin-inline: auto;
}

/* -------------------------------------------------------------------------
 * Hero
 *
 * Prague's own overlay is light, which is fine over its demo photography but
 * not over a bright still. The scrim also carries the transparent header:
 * without it the wordmark sits on whatever the top of the photo happens to
 * be. Both go away on their own once the film lands, since a graded video
 * carries its own contrast.
 * ---------------------------------------------------------------------- */

.zd-hero .overlay {
	background: linear-gradient(
		180deg,
		rgba(12, 10, 8, 0.62) 0%,
		rgba(12, 10, 8, 0.34) 26%,
		rgba(12, 10, 8, 0.42) 62%,
		rgba(12, 10, 8, 0.66) 100%
	);
	opacity: 1;
}

.zd-hero .content {
	position: relative;
	z-index: 2;
}

.zd-hero .title {
	text-shadow: 0 1px 40px rgba(12, 10, 8, 0.45);
}

/* Text on the image bands is the section's voice, not a caption - it reads
   closer to the chalk than to the muted grey used for supporting copy. */
.zd-imgband__text {
	color: rgba(245, 242, 236, 0.86);
	font-size: var(--zd-size-lead);
	line-height: var(--zd-lh-tight);
}

.zd-imgband__text p + p {
	margin-top: var(--zd-space-md);
}

/* -------------------------------------------------------------------------
 * Image strip and journal cards - the two rows on the home page
 * ---------------------------------------------------------------------- */

.zd-strip,
.zd-journal {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--zd-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.zd-strip__item img,
.zd-journal__media img,
.zd-journal__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: var(--zd-strip-ratio, 3 / 4);
	object-fit: cover;
}

.zd-journal__placeholder {
	background-color: var(--zd-field-bg);
}

.zd-journal__media {
	display: block;
	overflow: hidden;
}

.zd-journal__title {
	display: block;
	margin-top: var(--zd-space-sm);
	font-family: var(--zd-font-body);
	font-size: var(--zd-size-small);
	line-height: var(--zd-lh-tight);
	color: var(--zd-fg-muted);
}

.zd-journal__item a:hover .zd-journal__title {
	color: var(--zd-accent);
}

@media only screen and (max-width: 991px) {
	.zd-strip,
	.zd-journal {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* -------------------------------------------------------------------------
 * Newsletter signup - one line on wide screens
 * ---------------------------------------------------------------------- */

.zd-newsletter__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--zd-space-sm);
	align-items: stretch;
	margin: 0;
	max-width: 34rem;
}

.zd-newsletter__row input[type="email"] {
	flex: 1 1 16rem;
}

.zd-newsletter__row input[type="submit"] {
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
 * Contact block - Prague sets its title in the UI face and centres the card
 * ---------------------------------------------------------------------- */

.contact-form__title {
	font-family: var(--zd-font-display) !important;
	font-weight: var(--zd-weight-display) !important;
	font-size: var(--zd-size-h2);
	line-height: var(--zd-lh-heading);
	max-width: 24ch;
}

.contact-form__subtitle {
	font-family: var(--zd-font-body);
	font-size: var(--zd-size-label);
	letter-spacing: var(--zd-track-label);
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
 * Closing contact block
 * ---------------------------------------------------------------------- */

.zd-contact {
	padding-block: var(--zd-section-y);
}

.zd-contact__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: var(--zd-space-2xl);
	align-items: start;
}

.zd-contact__eyebrow {
	color: var(--zd-accent);
	margin: 0 0 var(--zd-space-md);
}

.zd-contact__title {
	font-size: var(--zd-size-h1);
	line-height: var(--zd-lh-heading);
	max-width: 18ch;
	margin: 0;
}

.zd-contact__text {
	margin-top: var(--zd-space-md);
	color: var(--zd-fg-muted);
	max-width: 34ch;
}

.zd-contact__action {
	margin-top: var(--zd-space-xl);
}

/* The contact page puts the Formidable form where the button sits elsewhere.
   Fields are already themed from the tokens in base.css, so this is layout
   only - and the tokens are flipped by .zd-dark on the wrapper. */
.zd-contact__form {
	margin-top: var(--zd-space-xl);
	max-width: 34rem;
}

.zd-contact__form .frm_form_fields .frm_submit {
	margin-top: var(--zd-space-lg);
}

.zd-contact__row + .zd-contact__row {
	margin-top: var(--zd-space-lg);
}

.zd-contact__row .zd-label {
	display: block;
	color: var(--zd-fg-muted);
	margin-bottom: var(--zd-space-2xs);
}

.zd-newsletter__pending {
	margin-top: var(--zd-space-sm);
	color: var(--zd-fg-muted);
}

/* The signup stays visibly pending until a MailChimp account is connected -
   the generic button hover would otherwise make it look clickable. */
.zd-newsletter [disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.zd-newsletter [disabled]:hover {
	color: var(--zd-bg);
	background-color: var(--zd-fg);
	border-color: var(--zd-fg);
}

.zd-newsletter input[disabled]:hover {
	color: var(--zd-fg);
	background-color: var(--zd-field-bg);
	border-color: transparent;
	border-bottom-color: var(--zd-rule);
}

@media only screen and (max-width: 767px) {
	.zd-contact__grid {
		grid-template-columns: 1fr;
		gap: var(--zd-space-xl);
	}
}

/* Newsletter (inc/newsletter.php) - honeypot polje i odgovor ispod obrasca. */
.zd-nl-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.zd-newsletter__msg {
	margin-top: var(--zd-space-sm, 0.75rem);
	color: var(--zd-bronze, #8a6626);
}

.zd-newsletter__msg.is-error {
	color: #9b2c1f;
}
