/* Layout */
.container {
	width: min(100% - 2rem, var(--bb-max));
	margin-inline: auto;
}

.section {
	padding: var(--bb-space-5) 0;
	background: var(--bb-bg);
}

.section:nth-of-type(even) {
	background: var(--bb-bg-2);
}

.section__header {
	margin-bottom: var(--bb-space-4);
	max-width: 36rem;
}

.section__header--row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: var(--bb-space-2);
	max-width: none;
}

.section__title {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	letter-spacing: -0.02em;
}

.section__subtitle,
.section__empty {
	color: var(--bb-muted);
	font-size: 1.05rem;
}

.section__link {
	color: var(--bb-accent);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	font-weight: 500;
}

.section__cta {
	margin-top: var(--bb-space-4);
}

/* Shared by page.php / appointment / 404 (moved from home.css for conditional home enqueue). */
.page-content {
	padding: calc(var(--bb-header-h) + 2rem) 0 var(--bb-space-5);
}

.page-content .entry-title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: var(--bb-space-3);
}

.eyebrow {
	color: var(--bb-accent);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.75rem;
	font-weight: 500;
	margin-bottom: var(--bb-space-2);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--bb-header-h);
	background: transparent;
	transition: background-color var(--bb-ease), backdrop-filter var(--bb-ease), border-color var(--bb-ease);
	border-bottom: 1px solid transparent;
	box-sizing: border-box;
}

/* WP admin bar açıkken sticky header alta kaymasın / yarım kesilmesin */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* No WP toolbar: never keep admin-bar top offset */
body:not(.admin-bar) .site-header {
	top: 0;
}

.site-header.is-scrolled {
	background: rgba(9, 9, 9, 0.96);
	backdrop-filter: blur(10px);
	border-bottom-color: var(--bb-line);
}

.site-header__inner {
	width: min(100% - 2rem, var(--bb-max));
	margin-inline: auto;
	height: 100%;
	display: flex;
	align-items: center;
	gap: var(--bb-space-2);
}

.site-branding {
	margin-right: auto;
	display: flex;
	align-items: center;
	min-height: var(--bb-logo-h);
}

.site-title,
.custom-logo-link {
	font-family: var(--bb-font-heading);
	font-size: 1.35rem;
	letter-spacing: 0.04em;
	color: var(--bb-text);
}

.custom-logo-link {
	display: flex;
	align-items: center;
	line-height: 0;
}

.custom-logo {
	display: block;
	height: var(--bb-logo-h);
	width: auto;
	max-height: var(--bb-logo-h);
	max-width: min(220px, 42vw);
	object-fit: contain;
}

@media (min-width: 901px) {
	.custom-logo {
		max-width: 260px;
	}
}

.primary-nav {
	display: none;
}

.primary-nav__list {
	display: flex;
	gap: 1.5rem;
}

.primary-nav__list a {
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bb-muted);
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible {
	color: var(--bb-text);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.site-header__staff {
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bb-accent);
	white-space: nowrap;
	padding: 0.4rem 0.15rem;
	border-bottom: 1px solid transparent;
	transition: color var(--bb-ease), border-color var(--bb-ease);
}

.site-header__staff:hover,
.site-header__staff:focus-visible {
	color: var(--bb-text);
	border-bottom-color: var(--bb-accent);
}

.primary-nav__staff {
	display: none;
}

.site-header__cta {
	display: none;
}

.nav-toggle {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--bb-line);
	background: transparent;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: var(--bb-text);
	flex: 0 0 auto;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block;
	width: 1rem;
	height: 1px;
	background: currentColor;
	position: relative;
	transition: transform var(--bb-ease);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bar::before { top: -5px; }
.nav-toggle__bar::after { top: 5px; }

@media (min-width: 901px) {
	.nav-toggle { display: none; }
	.primary-nav { display: block; }
	.primary-nav__staff { display: none; }
	.site-header__cta { display: inline-flex; }
	.site-header__staff { font-size: 0.75rem; }
}

@media (max-width: 900px) {
	/* Mobil/tablet: Personel Giriş header’da değil, menü çekmecesinde */
	.site-header__staff {
		display: none !important;
	}

	.site-header {
		overflow: visible;
	}

	.site-header__inner {
		overflow: visible;
		position: relative;
	}

	.primary-nav.is-open {
		display: block !important;
		position: fixed;
		top: var(--bb-header-h);
		left: 0;
		right: 0;
		z-index: 1100;
		background: rgba(9, 9, 9, 0.98);
		padding: 1.25rem 1.25rem 1.5rem;
		border-bottom: 1px solid var(--bb-line);
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
		max-height: calc(100vh - var(--bb-header-h));
		overflow-y: auto;
	}

	body.admin-bar .primary-nav.is-open {
		top: calc(var(--bb-header-h) + 46px);
		max-height: calc(100vh - var(--bb-header-h) - 46px);
	}

	body:not(.admin-bar) .primary-nav.is-open {
		top: var(--bb-header-h);
		max-height: calc(100vh - var(--bb-header-h));
	}

	@media screen and (min-width: 783px) {
		body.admin-bar .primary-nav.is-open {
			top: calc(var(--bb-header-h) + 32px);
			max-height: calc(100vh - var(--bb-header-h) - 32px);
		}
	}

	.primary-nav.is-open .primary-nav__list {
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.primary-nav.is-open .primary-nav__list li {
		margin: 0;
		border-bottom: 1px solid var(--bb-line);
	}

	.primary-nav.is-open .primary-nav__list a {
		display: block;
		padding: 0.9rem 0.15rem;
		color: var(--bb-text);
	}

	.primary-nav.is-open .primary-nav__staff {
		display: flex !important;
		align-items: center;
		width: 100%;
		margin: 0 0 0.85rem;
		padding: 1rem 0.9rem;
		border: 1px solid var(--bb-accent);
		font-size: 0.85rem;
		font-weight: 600;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--bb-accent) !important;
		text-decoration: none !important;
		background: transparent;
		box-sizing: border-box;
	}

	.primary-nav.is-open .primary-nav__staff:hover,
	.primary-nav.is-open .primary-nav__staff:focus-visible {
		background: var(--bb-accent);
		color: #090909 !important;
	}

	body.is-nav-open {
		overflow: hidden;
	}
}

/* —— Mobil header (≤768px): masaüstü etkilenmez —— */
@media (max-width: 768px) {
	html,
	body {
		overflow-x: hidden;
		max-width: 100%;
	}

	.site-header {
		overflow: hidden;
		max-width: 100%;
		display: flex;
		align-items: stretch;
	}

	.site-header__inner {
		width: min(100% - 0.75rem, var(--bb-max));
		gap: 0.35rem;
		min-width: 0;
		overflow: hidden;
		min-height: 0;
		height: 100%;
		align-items: center;
	}

	.site-branding {
		flex: 1 1 auto;
		min-width: 0;
		margin-right: auto;
		max-height: 100%;
		overflow: hidden;
	}

	.custom-logo-link {
		max-width: 100%;
		max-height: 100%;
	}

	.custom-logo {
		width: auto;
		height: auto;
		max-width: min(120px, 28vw);
		max-height: min(var(--bb-logo-h), calc(var(--bb-header-h) - 0.75rem));
		object-fit: contain;
	}

	.site-title {
		font-size: clamp(0.85rem, 3.6vw, 1.1rem);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 28vw;
	}

	.site-header__actions {
		display: flex;
		align-items: center;
		gap: 0.4rem;
		flex: 0 0 auto;
		min-width: 0;
		max-width: none;
		margin-left: auto;
	}

	.nav-toggle {
		width: 2.25rem;
		height: 2.25rem;
		order: 1;
		flex-shrink: 0;
	}

	/* Randevu Al: hamburger’in hemen yanında */
	.site-header__cta {
		display: inline-flex;
		order: 2;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		min-height: 3rem;
		height: 3rem;
		padding: 0 0.7rem;
		font-size: clamp(0.58rem, 2.6vw, 0.7rem);
		letter-spacing: 0.06em;
		white-space: nowrap;
		line-height: 1;
	}
}

/* PWA standalone: keep header under the status bar / notch */
@media (display-mode: standalone) {
	.site-header {
		padding-top: env(safe-area-inset-top, 0px);
		height: calc(var(--bb-header-h) + env(safe-area-inset-top, 0px));
	}

	body:not(.admin-bar) .site-header {
		top: 0;
	}
}

@media (max-width: 380px) {
	.site-header__inner {
		width: min(100% - 0.5rem, var(--bb-max));
		gap: 0.25rem;
	}

	.custom-logo {
		max-width: min(96px, 24vw);
		max-height: min(2.75rem, calc(var(--bb-header-h) - 0.75rem));
	}

	.site-header__actions {
		gap: 0.25rem;
	}

	.site-header__cta {
		padding: 0 0.5rem;
		font-size: 0.56rem;
		letter-spacing: 0.04em;
	}
}

/* Footer */
.site-footer {
	background: var(--bb-bg-2);
	border-top: 1px solid var(--bb-line);
	padding: var(--bb-space-5) 0 var(--bb-space-3);
}

.site-footer__grid {
	display: grid;
	gap: var(--bb-space-4);
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: 1.2fr 1fr 1fr;
	}
}

@media (min-width: 1100px) {
	.site-footer__grid {
		grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
	}
}

.site-footer__name {
	font-family: var(--bb-font-heading);
	font-size: 1.75rem;
	margin-bottom: var(--bb-space-1);
}

.site-footer__tagline,
.site-footer p,
.hours-list {
	color: var(--bb-muted);
}

.site-footer__booking {
	margin: var(--bb-space-2) 0 var(--bb-space-3);
}

.site-footer__booking-link {
	display: inline-block;
	color: var(--bb-accent, #c9a24d);
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(201, 162, 77, 0.45);
	padding-bottom: 0.15rem;
}

.site-footer__booking-link:hover,
.site-footer__booking-link:focus-visible {
	color: var(--bb-text, #f7f4ee);
	border-bottom-color: currentColor;
}

.site-footer__heading {
	font-size: 1rem;
	font-family: var(--bb-font-body);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: var(--bb-space-2);
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.site-footer__link {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--bb-line);
	color: var(--bb-muted);
	cursor: pointer;
	text-decoration: none;
	transition: color var(--bb-ease), border-color var(--bb-ease), transform var(--bb-ease);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
	color: var(--bb-accent);
	border-bottom-color: var(--bb-accent);
}

.site-footer__link-label {
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: inherit;
	opacity: 0.75;
}

.site-footer__link-value {
	font-size: 0.98rem;
	line-height: 1.45;
	color: var(--bb-text);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.2em;
	transition: text-decoration-color var(--bb-ease), color var(--bb-ease);
}

.site-footer__link:hover .site-footer__link-value,
.site-footer__link:focus-visible .site-footer__link-value {
	color: var(--bb-accent);
	text-decoration-color: var(--bb-accent);
}

.hours-list li {
	display: flex;
	justify-content: space-between;
	gap: var(--bb-space-2);
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--bb-line);
}

.social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: var(--bb-space-2);
	list-style: none;
	padding: 0;
}

.social-list__link,
.social-list a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--bb-line);
	color: var(--bb-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
	cursor: pointer;
	transition: color var(--bb-ease), border-color var(--bb-ease), background-color var(--bb-ease);
}

.social-list__link:hover,
.social-list__link:focus-visible,
.social-list a:hover,
.social-list a:focus-visible {
	color: var(--bb-accent);
	border-color: var(--bb-accent);
	background: var(--bb-accent-soft);
}

.site-footer__map iframe {
	width: 100%;
	min-height: 220px;
	border: 0;
	filter: grayscale(1) contrast(1.05);
}

.site-footer__bottom {
	margin-top: var(--bb-space-4);
	padding-top: var(--bb-space-3);
	border-top: 1px solid var(--bb-line);
	color: var(--bb-muted);
	font-size: 0.875rem;
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.25rem;
}

.site-footer__copy,
.site-footer__legal {
	margin: 0;
	max-width: 100%;
}

.site-footer__legal-link {
	color: var(--bb-muted);
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-color: rgba(247, 244, 238, 0.28);
}

.site-footer__legal-link:hover,
.site-footer__legal-link:focus-visible {
	color: var(--bb-accent);
	text-decoration-color: currentColor;
}

@media (max-width: 900px) {
	.site-footer {
		padding-bottom: calc(var(--bb-space-3) + 6.25rem);
	}
}
