/*
Theme Name: Beija Flor Fine Art
Theme URI: https://beijaflorfineart.com/
Description: Дъщерна тема на Twenty Twenty-Five за галерия на Иванка.
Author: Beija Flor Fine Art
Template: twentytwentyfive
Version: 0.2.1
Text Domain: beijaflor-fine-art
*/

:root {
	--bf-paper: #f7f3ed;
	--bf-ink: #211f1d;
	--bf-clay: #8f6852;
	--bf-muted: #6e6964;
	--bf-line: #ded6cc;
}

.wp-site-blocks {
	background: var(--bf-paper);
}

.bf-eyebrow {
	color: var(--bf-muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bf-artwork-card {
	border-top: 1px solid var(--bf-line);
	padding-top: 1rem;
}

.bf-artwork-card p {
	margin-block: 0.3rem;
}

.bf-artwork-meta {
	color: var(--bf-muted);
	font-size: 0.9rem;
}

.bf-link {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.bf-navigation {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transform: translateX(-3em);
}

.wp-block-site-title {
	transform: translateX(2em);
}

.bf-commissions-section :is(h2, p) {
	max-width: 43rem;
	margin-inline: auto !important;
}

.bf-process-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.bf-process-card {
	border-top: 1px solid var(--bf-line);
	padding-top: 1rem;
}

.bf-process-cover {
	display: block;
	margin-bottom: 1rem;
}

.bf-process-cover img,
.bf-process-cover video {
	display: block;
	width: 100%;
	height: auto;
}

.bf-process-card h2 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

.bf-process-works {
	font-size: 0.9rem;
	margin-top: 1rem;
}

.bf-process-works a {
	text-underline-offset: 0.2em;
}

.bf-related-processes {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--bf-line);
}

.bf-related-processes ul {
	margin: 0;
	padding-left: 1.2rem;
}

.bf-related-processes li + li {
	margin-top: 0.45rem;
}

.bf-process-carousel {
	margin-top: 2rem;
}

.bf-process-carousel-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	background: #ebe6df;
}

.bf-process-slide {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
}

.bf-process-slide img,
.bf-process-slide video {
	display: block;
	width: 100%;
	max-height: 78vh;
	object-fit: contain;
}

.bf-process-carousel-controls {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.bf-process-carousel-controls button {
	border: 1px solid var(--bf-ink);
	background: transparent;
	color: var(--bf-ink);
	padding: 0.5rem 0.8rem;
	cursor: pointer;
}

.bf-navigation a {
	text-decoration: none;
}

.bf-navigation a:hover,
.bf-navigation a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.28em;
}

.bf-language-switcher {
	display: inline-flex;
	gap: 0.45rem;
	margin-left: 0.45rem;
	padding-left: 0.65rem;
	border-left: 1px solid var(--bf-line);
}

@media (max-width: 760px) {
	.bf-navigation {
		width: 100%;
		flex-wrap: wrap;
		row-gap: 0.55rem;
		transform: none;
	}

	.wp-block-site-title {
		transform: none;
	}

	.bf-process-grid {
		grid-template-columns: 1fr;
	}

}

/* Home page and gallery interface. */
.bf-header-shell { border-bottom: 1px solid var(--bf-line); position: relative; z-index: 20; }
.bf-header { min-height: 4.65rem; align-items: center; gap: 1.25rem; }
.bf-header .wp-block-site-title { transform: none; font-size: 1.05rem; white-space: nowrap; }
.bf-navigation { transform: none; justify-content: center; flex: 1; gap: clamp(.55rem, 1.3vw, 1.25rem); font-size: .66rem; letter-spacing: .03em; }
.bf-site-actions { display: flex; align-items: center; gap: .25rem; }
.bf-search { display: flex; width: 2rem; overflow: hidden; border-bottom: 1px solid var(--bf-ink); transition: width .2s ease; }
.bf-search:focus-within { width: 11rem; }
.bf-search input { min-width: 0; width: 100%; border: 0; background: transparent; padding: .2rem .1rem; font: inherit; }
.bf-search button, .bf-icon-button, .bf-work-card__actions button { border: 0; background: transparent; color: var(--bf-ink); cursor: pointer; font: inherit; }
.bf-icon-button { position: relative; font-size: 1.3rem; line-height: 1; padding: .35rem; }
.bf-icon-button span { position: absolute; right: 0; bottom: 0; font-size: .54rem; line-height: 1; }
.bf-home { overflow: hidden; }
.bf-home-inner { width: min(100% - 3rem, 1380px); margin-inline: auto; }
.bf-home-hero { min-height: min(42rem, 72vh); display: grid; align-items: center; position: relative; background: linear-gradient(90deg, rgba(247,243,237,.96) 0%, rgba(247,243,237,.84) 38%, rgba(247,243,237,.08) 72%), var(--bf-hero-image) center / cover no-repeat, #ded6cc; }
.bf-home-hero__copy { width: min(100% - 3rem, 1380px); padding-block: 5rem; }
.bf-home-hero h1 { max-width: 10ch; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem, 5.4vw, 5.6rem); line-height: .95; margin: .35rem 0 1.25rem; }
.bf-kicker { margin: 0; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; }
.bf-home-hero__lead { max-width: 28rem; font-size: 1.05rem; line-height: 1.55; margin-bottom: 1.8rem; }
.bf-button { display: inline-flex; align-items: center; gap: .75rem; background: var(--bf-clay); color: #fff !important; padding: .8rem 1.05rem; text-decoration: none !important; border: 1px solid var(--bf-clay); text-transform: uppercase; font-size: .68rem; font-weight: 600; letter-spacing: .06em; cursor: pointer; }
.bf-button--light { color: var(--bf-ink) !important; background: #f7f3ed; border-color: #f7f3ed; }
.bf-button--outline { color: var(--bf-ink) !important; background: transparent; border-color: var(--bf-ink); }
.bf-home-section { padding-block: 3.8rem 4.4rem; }
.bf-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.35rem; border-bottom: 1px solid var(--bf-line); padding-bottom: .75rem; }
.bf-section-heading h2, .bf-process-band h2, .bf-home-cta h2, .bf-spotlight h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.7rem, 2.5vw, 2.7rem); }
.bf-section-heading > a { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.bf-work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.bf-work-card { min-width: 0; position: relative; }
.bf-work-card__image { display: block; background: #ded6cc; aspect-ratio: .79; overflow: hidden; }
.bf-work-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bf-work-card__image:hover img { transform: scale(1.035); }
.bf-work-card__body { padding-top: .65rem; }
.bf-work-card h3 { margin: 0; font-size: .92rem; line-height: 1.2; font-weight: 500; }
.bf-work-card h3 a { text-decoration: none; }
.bf-work-card__meta { margin: .25rem 0; color: var(--bf-muted); font-size: .69rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-work-card__price { margin: .2rem 0; font-weight: 600; font-size: .88rem; }
.bf-work-card__actions { position: absolute; top: .5rem; right: .5rem; display: flex; flex-direction: column; gap: .25rem; }
.bf-work-card__actions button { width: 2rem; height: 2rem; background: rgba(247,243,237,.9); border-radius: 50%; font-size: 1.25rem; }
.bf-work-card__actions button.is-active, .bf-work-card__actions button.is-in-cart { background: var(--bf-clay); color: #fff; }
.bf-process-band { padding-block: 3rem; background: linear-gradient(90deg, #5b3d2d, #835b3d); color: #f7f3ed; }
.bf-process-band__grid { display: grid; grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.4fr); gap: 2.5rem; align-items: center; }
.bf-process-subtitle { font-family: Georgia, 'Times New Roman', serif; margin-top: .15rem; font-size: 1.12rem; }
.bf-process-band p:not(.bf-process-subtitle) { max-width: 26rem; font-size: .9rem; }
.bf-process-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; }
.bf-process-preview a { color: inherit; text-decoration: none; min-width: 0; font-size: .64rem; }
.bf-process-preview img, .bf-process-preview video { display: block; width: 100%; aspect-ratio: .78; object-fit: cover; margin-bottom: .3rem; }
.bf-spotlight { padding-block: 4.4rem; }
.bf-spotlight__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .8fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.bf-spotlight__image { background: #ded6cc; }
.bf-spotlight__image img { display: block; width: 100%; aspect-ratio: 1.05; object-fit: cover; }
.bf-spotlight__copy > p { max-width: 34rem; }
.bf-spotlight dl { margin: 1.4rem 0; font-size: .85rem; }
.bf-spotlight dl div { display: grid; grid-template-columns: 7.2rem 1fr; gap: .8rem; padding: .22rem 0; }
.bf-spotlight dt { color: var(--bf-muted); }
.bf-spotlight dd { margin: 0; }
.bf-spotlight__price { font-size: 1.35rem; font-weight: 600; }
.bf-spotlight__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.bf-home-cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 3.6rem; }
.bf-home-cta { min-height: 18rem; padding: 1.7rem; background: #e9e0d5; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.bf-home-cta--commissions { color: #fff; background: linear-gradient(90deg, rgba(61,43,31,.72), rgba(61,43,31,.15)), var(--bf-cta-image) center / cover, #8f6852; }
.bf-home-cta--about { background: #eee8df; }
.bf-home-cta--contact { background: #d9cdbc; }
.bf-home-cta p { max-width: 20rem; font-size: .88rem; }
.bf-drawer { position: fixed; z-index: 100; right: 1rem; top: 4.75rem; width: min(25rem, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); overflow-y: auto; background: var(--bf-paper); border: 1px solid var(--bf-ink); padding: 1.25rem; box-shadow: 0 1.5rem 4rem rgba(33,31,29,.18); }
.bf-drawer__top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--bf-line); padding-bottom: .75rem; }
.bf-drawer__top h2 { font-size: 1.2rem; margin: 0; }
.bf-drawer__top button { border: 0; background: transparent; font-size: 1.75rem; cursor: pointer; }
.bf-drawer-list { list-style: none; padding: 0; margin: 1rem 0; }
.bf-drawer-list li { display: flex; gap: .6rem; justify-content: space-between; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--bf-line); font-size: .85rem; }
.bf-drawer-list button { border: 0; background: transparent; color: var(--bf-muted); cursor: pointer; }
.bf-drawer-empty { color: var(--bf-muted); margin: 1.2rem 0; }
body.bf-panel-open { overflow: hidden; }
.bf-footer { margin-top: 0 !important; }

@media (max-width: 960px) {
  .bf-header { flex-wrap: wrap !important; justify-content: center !important; padding-block: .8rem; }
  .bf-header .wp-block-site-title { width: auto; }
  .bf-navigation { order: 3; width: 100%; }
  .bf-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-process-band__grid, .bf-spotlight__grid { grid-template-columns: 1fr; }
  .bf-home-cta-grid { grid-template-columns: 1fr; }
  .bf-home-cta { min-height: 13rem; }
}
@media (max-width: 560px) {
  .bf-home-inner { width: min(100% - 2rem, 1380px); }
  .bf-home-hero { min-height: 39rem; align-items: end; background: linear-gradient(0deg, rgba(247,243,237,.98) 0%, rgba(247,243,237,.86) 46%, rgba(247,243,237,.08) 100%), var(--bf-hero-image) center / cover no-repeat, #ded6cc; }
  .bf-home-hero__copy { width: min(100% - 2rem, 1380px); padding-bottom: 2.6rem; }
  .bf-home-hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .bf-navigation { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .15rem; }
  .bf-navigation a { white-space: nowrap; }
  .bf-search:focus-within { width: 8rem; }
  .bf-process-preview { grid-template-columns: repeat(2, 1fr); }
  .bf-spotlight dl div { grid-template-columns: 6.2rem 1fr; }
}
