/*
Theme Name: Къщата на Бърдото
Theme URI: https://bardoto.bg/
Author: ABC Engineering
Description: Лека собствена тема за къща за гости „Къщата на Бърдото“ в Жеравна.
Version: 1.0.4
Requires at least: 6.8
Requires PHP: 7.4
Text Domain: kashtata-na-bardoto
*/

:root {
	--linen: #f5efe5;
	--paper: #fffaf2;
	--walnut: #3b241a;
	--walnut-soft: #5f4032;
	--brick: #91492e;
	--brick-dark: #743722;
	--mountain: #3d5a44;
	--gold: #c29a61;
	--ink: #26231f;
	--muted: #6f675d;
	--line: rgba(59, 36, 26, 0.18);
	--serif: Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--shell: min(1240px, calc(100% - 40px));
	--shadow: 0 24px 70px rgba(45, 28, 20, 0.14);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--linen);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
	top: 32px;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 4px;
}

h1,
h2,
h3,
p,
blockquote,
figure {
	margin-top: 0;
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.08;
}

h1 {
	font-size: clamp(3rem, 6vw, 6.5rem);
	letter-spacing: -0.045em;
}

h2 {
	font-size: clamp(2.35rem, 4.4vw, 4.7rem);
	letter-spacing: -0.035em;
}

h3 {
	font-size: clamp(1.5rem, 2.1vw, 2rem);
}

.shell {
	width: var(--shell);
	margin-inline: auto;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 9999;
	transform: translateY(-150%);
	padding: 10px 16px;
	background: var(--paper);
	color: var(--walnut);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--line);
	background: rgba(245, 239, 229, 0.96);
	backdrop-filter: blur(12px);
}

.header-inner {
	display: flex;
	align-items: center;
	min-height: 84px;
	gap: 28px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
	text-decoration: none;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--walnut);
	border-radius: 50%;
	color: var(--brick);
	font-family: var(--serif);
	font-size: 1.8rem;
	font-weight: 700;
}

.brand-copy {
	display: grid;
	line-height: 1.2;
}

.brand-copy strong {
	font-family: var(--serif);
	font-size: 1.03rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.brand-copy small {
	margin-top: 4px;
	color: var(--muted);
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.desktop-nav {
	display: flex;
	align-items: center;
	gap: 26px;
}

.desktop-nav a {
	position: relative;
	font-size: 0.88rem;
	font-weight: 650;
	text-decoration: none;
}

.desktop-nav a::after {
	position: absolute;
	right: 0;
	bottom: -8px;
	left: 0;
	height: 1px;
	background: var(--brick);
	content: "";
	transform: scaleX(0);
	transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
	transform: scaleX(1);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 13px 24px;
	border: 1px solid var(--brick);
	border-radius: 999px;
	background: var(--brick);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
	border-color: var(--brick-dark);
	background: var(--brick-dark);
	transform: translateY(-2px);
}

.button-small {
	min-height: 44px;
	padding: 10px 18px;
	font-size: 0.82rem;
}

.text-link {
	color: var(--brick-dark);
	font-weight: 750;
}

.mobile-menu {
	display: none;
	position: relative;
}

.mobile-menu summary {
	cursor: pointer;
	font-weight: 750;
	list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
	display: none;
}

.mobile-menu nav {
	position: absolute;
	top: calc(100% + 22px);
	right: 0;
	display: grid;
	width: min(320px, calc(100vw - 40px));
	padding: 16px 22px;
	border: 1px solid var(--line);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.mobile-menu nav a {
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
	font-weight: 700;
	text-decoration: none;
}

.mobile-menu nav a:last-child {
	border-bottom: 0;
	color: var(--brick);
}

.hero {
	overflow: hidden;
	padding: clamp(38px, 6vw, 84px) 0 clamp(72px, 10vw, 132px);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	align-items: center;
	gap: clamp(36px, 6vw, 90px);
}

.eyebrow {
	margin-bottom: 20px;
	color: var(--brick);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.hero h1 {
	max-width: 780px;
	margin-bottom: 28px;
	color: var(--walnut);
}

.hero-lead {
	max-width: 630px;
	margin-bottom: 30px;
	color: var(--walnut-soft);
	font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 22px;
	margin-bottom: 44px;
}

.hero blockquote {
	max-width: 580px;
	margin-bottom: 0;
	padding-left: 22px;
	border-left: 2px solid var(--gold);
	color: var(--muted);
	font-family: var(--serif);
	font-style: italic;
}

.hero blockquote p {
	margin-bottom: 8px;
}

.hero blockquote cite {
	font-family: var(--sans);
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hero-media {
	position: relative;
	min-height: 610px;
}

.hero-panorama {
	width: 100%;
	height: 560px;
	border-radius: 6px 6px 110px 6px;
	box-shadow: var(--shadow);
	object-fit: cover;
	object-position: center;
}

.hero-inset {
	position: absolute;
	right: -34px;
	bottom: -54px;
	width: min(360px, 60%);
	margin: 0;
	padding: 10px 10px 12px;
	background: var(--paper);
	box-shadow: var(--shadow);
	transform: rotate(1.5deg);
}

.hero-inset img {
	width: 100%;
	aspect-ratio: 5 / 3;
	object-fit: cover;
}

.hero-inset figcaption {
	padding-top: 9px;
	color: var(--muted);
	font-family: var(--serif);
	font-size: 0.8rem;
	font-style: italic;
	text-align: center;
}

.quick-facts {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.facts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.facts-grid > div {
	display: grid;
	gap: 2px;
	padding: 28px clamp(14px, 3vw, 36px);
	border-right: 1px solid var(--line);
}

.facts-grid > div:last-child {
	border-right: 0;
}

.facts-grid strong {
	color: var(--walnut);
	font-family: var(--serif);
	font-size: 1.45rem;
}

.facts-grid span {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.section {
	padding: clamp(82px, 10vw, 150px) 0;
}

.split-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
	align-items: center;
	gap: clamp(44px, 8vw, 116px);
}

.image-stack {
	position: relative;
	padding: 0 0 42px 42px;
}

.image-stack::before {
	position: absolute;
	top: 42px;
	right: 42px;
	bottom: 0;
	left: 0;
	border: 1px solid var(--gold);
	content: "";
}

.image-main {
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: 520px;
	object-fit: cover;
}

.image-note {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 10px;
	max-width: 220px;
	padding: 16px 20px;
	background: var(--walnut);
	color: var(--linen);
	font-family: var(--serif);
	font-size: 0.9rem;
	font-style: italic;
}

.prose-block h2,
.section-heading h2,
.price-layout h2,
.contact-band h2 {
	margin-bottom: 30px;
	color: var(--walnut);
}

.prose-block p {
	color: var(--muted);
}

.section-dark {
	background: var(--walnut);
	color: var(--linen);
}

.light-heading {
	max-width: 840px;
	margin-bottom: 64px;
}

.light-heading .eyebrow {
	color: var(--gold);
}

.light-heading h2 {
	color: var(--linen);
}

.experience-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border-top: 1px solid rgba(255, 250, 242, 0.22);
}

.experience-grid article {
	min-height: 290px;
	padding: 36px clamp(24px, 3.6vw, 52px) 20px 0;
	border-right: 1px solid rgba(255, 250, 242, 0.22);
}

.experience-grid article + article {
	padding-left: clamp(24px, 3.6vw, 52px);
}

.experience-grid article:last-child {
	border-right: 0;
}

.experience-number {
	display: block;
	margin-bottom: 58px;
	color: var(--gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.experience-grid h3 {
	margin-bottom: 18px;
}

.experience-grid p {
	margin-bottom: 0;
	color: rgba(245, 239, 229, 0.72);
}

.price-preview {
	background: var(--paper);
}

.price-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
	align-items: center;
	gap: clamp(46px, 10vw, 150px);
}

.price-layout > div:first-child p:last-child {
	color: var(--muted);
}

.price-list {
	border-top: 1px solid var(--walnut);
}

.price-list > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 30px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.price-list span {
	font-weight: 700;
}

.price-list strong {
	color: var(--brick);
	font-family: var(--serif);
	font-size: 1.65rem;
	font-weight: 500;
	white-space: nowrap;
}

.price-list small {
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 650;
}

.price-list .button {
	margin-top: 28px;
}

.heading-row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 48px;
}

.heading-row h2 {
	margin-bottom: 0;
}

.gallery-mosaic {
	display: grid;
	grid-auto-rows: 260px;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.gallery-mosaic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-mosaic .gallery-wide {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery-mosaic .gallery-tall {
	grid-row: span 2;
}

.contact-band {
	padding-top: 100px;
	padding-bottom: 100px;
	background: var(--mountain);
	color: var(--paper);
}

.contact-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	align-items: center;
	gap: 70px;
}

.contact-band .eyebrow {
	color: #e6c89b;
}

.contact-band h2 {
	margin-bottom: 0;
	color: var(--paper);
}

.contact-lines {
	display: grid;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-lines a,
.contact-lines p {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-lines a {
	font-family: var(--serif);
	font-size: clamp(1.15rem, 2.2vw, 1.7rem);
	text-decoration: none;
}

.contact-lines p {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.86rem;
}

.site-footer {
	padding: 64px 0 28px;
	background: #241711;
	color: rgba(245, 239, 229, 0.72);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 0.8fr;
	gap: 60px;
}

.site-footer a {
	color: var(--paper);
}

.footer-title {
	margin-bottom: 10px;
	color: var(--paper);
	font-family: var(--serif);
	font-size: 1.7rem;
}

.footer-label {
	margin-bottom: 12px;
	color: var(--gold);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 56px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.72rem;
}

.page-hero {
	padding: clamp(70px, 10vw, 145px) 0 clamp(55px, 7vw, 94px);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.page-hero h1 {
	max-width: 920px;
	margin-bottom: 0;
	color: var(--walnut);
	font-size: clamp(3rem, 6vw, 6.4rem);
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
	align-items: start;
	gap: clamp(50px, 9vw, 130px);
}

.article-prose {
	max-width: 780px;
}

.article-prose .lead,
.gallery-intro {
	color: var(--walnut);
	font-family: var(--serif);
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	line-height: 1.5;
}

.article-prose p:not(.lead) {
	color: var(--muted);
}

.article-prose h2 {
	margin-top: 54px;
	margin-bottom: 22px;
	color: var(--walnut);
	font-size: clamp(2rem, 3vw, 3.25rem);
}

.article-images {
	display: grid;
	gap: 22px;
}

.article-images img {
	width: 100%;
	min-height: 330px;
	object-fit: cover;
}

.article-images img:last-child {
	margin-left: -58px;
}

.conditions-layout {
	display: grid;
	grid-template-columns: 1fr minmax(420px, 0.8fr);
	align-items: start;
	gap: clamp(50px, 9vw, 130px);
}

.feature-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 36px;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}

.feature-list li {
	padding: 17px 0 17px 28px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(var(--brick), var(--brick)) no-repeat left 26px / 10px 2px;
}

.price-panel {
	padding: clamp(28px, 4vw, 54px);
	border: 1px solid var(--gold);
	background: var(--paper);
}

.price-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 8px 26px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.price-row span {
	font-weight: 700;
}

.price-row strong {
	color: var(--brick);
	font-family: var(--serif);
	font-size: 1.85rem;
	font-weight: 500;
}

.price-row small {
	grid-column: 2;
	color: var(--muted);
	font-size: 0.78rem;
	text-align: right;
}

.fine-print,
.photo-note {
	color: var(--muted);
	font-size: 0.78rem;
}

.price-panel .fine-print {
	margin: 24px 0;
}

.gallery-intro {
	max-width: 850px;
	margin-bottom: 48px;
}

.gallery-page-grid {
	display: grid;
	grid-auto-flow: dense;
	grid-auto-rows: 310px;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.gallery-page-grid figure {
	position: relative;
	overflow: hidden;
	margin: 0;
	background: var(--walnut);
}

.gallery-page-grid figure.span-two {
	grid-column: span 2;
}

.gallery-page-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.gallery-page-grid figure:hover img {
	transform: scale(1.025);
}

.gallery-page-grid figcaption {
	position: absolute;
	right: 10px;
	bottom: 10px;
	left: 10px;
	padding: 9px 12px;
	background: rgba(36, 23, 17, 0.86);
	color: #fff;
	font-size: 0.74rem;
}

.photo-note {
	margin-top: 24px;
}

.contacts-page-grid {
	display: grid;
	grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
	gap: 24px;
}

.contact-card,
.location-card {
	padding: clamp(30px, 5vw, 64px);
	background: var(--paper);
}

.contact-card h2,
.location-card h2 {
	color: var(--walnut);
}

.contact-card dl {
	margin: 42px 0 0;
}

.contact-card dl > div {
	display: grid;
	grid-template-columns: 145px 1fr;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.contact-card dt {
	font-weight: 750;
}

.contact-card dd {
	margin: 0;
	color: var(--muted);
}

.location-card {
	padding: 0;
	overflow: hidden;
}

.location-card img {
	width: 100%;
	height: 390px;
	object-fit: cover;
}

.location-card > div {
	padding: clamp(30px, 5vw, 58px);
}

.not-found {
	min-height: 65vh;
	text-align: center;
}

.not-found h1 {
	max-width: 850px;
	margin-inline: auto;
	color: var(--walnut);
}

@media (max-width: 1080px) {
	.desktop-nav,
	.header-call {
		display: none;
	}

	.mobile-menu {
		display: block;
	}

	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-copy {
		max-width: 780px;
	}

	.hero-media {
		min-height: 560px;
	}

	.hero-inset {
		right: 18px;
	}

	.price-layout,
	.contact-grid,
	.article-layout,
	.conditions-layout,
	.contacts-page-grid {
		grid-template-columns: 1fr;
	}

	.article-images {
		grid-template-columns: repeat(2, 1fr);
	}

	.article-images img:last-child {
		margin-left: 0;
	}

	.gallery-mosaic {
		grid-template-columns: repeat(3, 1fr);
	}

	.gallery-mosaic .gallery-wide {
		grid-column: span 2;
	}

	.gallery-page-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {
	:root {
		--shell: min(100% - 28px, 1240px);
	}

	body {
		font-size: 16px;
	}

	body.admin-bar .site-header {
		top: 46px;
	}

	.header-inner {
		min-height: 72px;
	}

	.brand-mark {
		width: 40px;
		height: 40px;
		font-size: 1.55rem;
	}

	.brand-copy strong {
		font-size: 0.91rem;
	}

	.brand-copy small {
		font-size: 0.59rem;
	}

	.hero {
		padding-top: 46px;
	}

	.hero h1 br {
		display: none;
	}

	.hero-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.hero-media {
		min-height: 430px;
	}

	.hero-panorama {
		height: 390px;
		border-radius: 4px 4px 70px 4px;
	}

	.hero-inset {
		right: -4px;
		bottom: -40px;
		width: 64%;
	}

	.facts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.facts-grid > div:nth-child(2) {
		border-right: 0;
	}

	.facts-grid > div:nth-child(-n + 2) {
		border-bottom: 1px solid var(--line);
	}

	.split-layout {
		grid-template-columns: 1fr;
	}

	.image-stack {
		padding: 0 0 30px 26px;
	}

	.image-main {
		min-height: 360px;
	}

	.experience-grid {
		grid-template-columns: 1fr;
	}

	.experience-grid article,
	.experience-grid article + article {
		min-height: 0;
		padding: 28px 0;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 250, 242, 0.22);
	}

	.experience-number {
		margin-bottom: 22px;
	}

	.price-layout {
		gap: 36px;
	}

	.price-list > div {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.heading-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.gallery-mosaic {
		grid-auto-rows: 210px;
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery-mosaic .gallery-wide {
		grid-column: span 2;
		grid-row: span 1;
	}

	.gallery-mosaic .gallery-tall {
		grid-row: span 1;
	}

	.contact-grid {
		gap: 42px;
	}

	.contact-band h2 br {
		display: none;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.feature-list {
		grid-template-columns: 1fr;
	}

	.article-images {
		grid-template-columns: 1fr;
	}

	.gallery-page-grid {
		grid-auto-rows: 240px;
		grid-template-columns: 1fr;
	}

	.gallery-page-grid figure.span-two {
		grid-column: auto;
	}

	.contact-card dl > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.location-card img {
		height: 270px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.button,
	.mobile-menu {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
