/* ==========================================================================
   HEADER DESKTOP ACTION ROW
   Working hours = plain text | Actions = Hotline (red) + EMR + Booking (same row)
   ========================================================================== */

:root {
	--ykhg-hotline: #D92D20;
	--ykhg-hotline-hover: #B42318;
	--radius-control: 9px;
	--primary: #0B6F73;
	--primary-dark: #075B5F;
	--ink: #123C40;
	--surface: #F7FAF9;
	--ykhg-ease: 170ms ease;
}

/* --- Working hours: informational text only --- */
.header-hours {
	display: flex;
	align-items: center;
}

.header-hours-text {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}

/* --- Shared action button baseline --- */
.header-action-buttons {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
}

.header-action-buttons .header-hotline-btn,
.header-action-buttons .header-emr,
.header-action-buttons .header-booking {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	height: 46px;
	padding: 0 22px;
	border-radius: var(--radius-control);
	font-size: 0.9rem;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	box-sizing: border-box;
	flex: 0 0 auto;
	transition: background-color var(--ykhg-ease), border-color var(--ykhg-ease), color var(--ykhg-ease), box-shadow var(--ykhg-ease), transform var(--ykhg-ease);
}

.header-action-buttons .header-cta-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.header-action-buttons .header-cta-label {
	white-space: nowrap;
}

/* Hotline — strong red */
.header-action-buttons .header-hotline-btn {
	order: 1;
	background: var(--ykhg-hotline);
	border: 1px solid var(--ykhg-hotline);
	color: #fff;
	font-weight: 700;
	padding-inline: 20px;
}

.header-action-buttons .header-hotline-btn:hover {
	background: var(--ykhg-hotline-hover);
	border-color: var(--ykhg-hotline-hover);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(217, 45, 32, 0.22);
}

.header-action-buttons .header-hotline-btn:active {
	transform: translateY(0);
	box-shadow: none;
}

/* EMR — secondary outline */
.header-action-buttons .header-emr {
	order: 2;
	background: #fff;
	border: 1px solid rgba(11, 111, 115, 0.35);
	color: var(--ink);
	font-weight: 600;
}

.header-action-buttons .header-emr:hover {
	background: var(--surface);
	border-color: var(--primary);
	color: var(--primary-dark);
	text-decoration: none;
	transform: none;
	box-shadow: none;
}

/* Booking — primary teal, always rightmost */
.header-action-buttons .header-booking {
	order: 3;
	background: var(--primary);
	border: 1px solid var(--primary);
	color: #fff;
	font-weight: 700;
	padding-inline: 24px;
}

.header-action-buttons .header-booking:hover {
	background: var(--primary-dark);
	border-color: var(--primary-dark);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(11, 111, 115, 0.18);
}

.header-action-buttons .header-booking:active {
	transform: translateY(0);
	box-shadow: none;
}

.header-action-buttons .header-hotline-btn:focus-visible,
.header-action-buttons .header-emr:focus-visible,
.header-action-buttons .header-booking:focus-visible {
	outline: 3px solid rgba(11, 111, 115, 0.35);
	outline-offset: 2px;
}

.header-action-buttons .header-hotline-btn:focus-visible {
	outline-color: rgba(217, 45, 32, 0.4);
}

/* Drawer hotline (tablet/mobile) */
.nav-drawer-hotline-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	border-radius: var(--radius-control);
	background: var(--ykhg-hotline);
	border: 1px solid var(--ykhg-hotline);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.nav-drawer-hotline-btn:hover {
	background: var(--ykhg-hotline-hover);
	border-color: var(--ykhg-hotline-hover);
	color: #fff;
	text-decoration: none;
}

/* ========== Desktop ≥1100 ========== */
@media (min-width: 1100px) {
	.identity-row {
		display: flex;
		align-items: center;
		gap: 16px;
	}

	.header-hours {
		display: flex !important;
		align-items: center;
		order: 2;
		margin-left: 0;
		flex: 0 1 auto;
		min-width: 0;
	}

	.header-hours-text {
		font-size: 0.875rem;
		font-weight: 500;
		color: var(--ink);
		white-space: nowrap;
	}

	.header-actions {
		order: 3;
		margin-left: auto;
		display: flex;
		align-items: center;
		gap: 12px;
		flex: 0 0 auto;
	}

	.header-action-buttons {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center;
		gap: 10px;
	}

	.header-action-buttons .header-hotline-btn,
	.header-action-buttons .header-emr,
	.header-action-buttons .header-booking {
		display: inline-flex !important;
		min-height: 46px;
		height: 46px;
		width: auto;
	}

	.header-action-buttons .header-emr {
		display: inline-flex !important;
	}
}

/* Compact desktop 1100–1280: slightly tighter padding, still one row */
@media (min-width: 1100px) and (max-width: 1280px) {
	.header-action-buttons {
		gap: 8px;
	}

	.header-action-buttons .header-hotline-btn,
	.header-action-buttons .header-emr,
	.header-action-buttons .header-booking {
		padding-inline: 14px;
		font-size: 0.84rem;
	}

	.header-hours-text {
		font-size: 0.8125rem;
	}
}

/* ========== Tablet 768–1099 ========== */
@media (max-width: 1099px) and (min-width: 768px) {
	.header-hours {
		display: none !important;
	}

	.header-actions {
		display: flex;
		align-items: center;
		gap: 8px;
		margin-left: auto;
	}

	.header-action-buttons {
		display: flex !important;
		flex-wrap: nowrap;
		gap: 8px;
	}

	.header-action-buttons .header-hotline-btn,
	.header-action-buttons .header-emr,
	.header-action-buttons .header-booking {
		display: inline-flex !important;
		min-height: 44px;
		height: 44px;
		padding-inline: 12px;
		font-size: 0.8125rem;
	}

	/* Keep EMR visible on tablet — override v2 hide */
	.header-action-buttons .header-emr {
		display: inline-flex !important;
	}

	.nav-drawer-utility {
		display: grid;
		gap: 10px;
	}
}

/* Narrow tablet: if cramped, allow slightly smaller labels but still one row */
@media (max-width: 980px) and (min-width: 768px) {
	.header-action-buttons .header-emr .header-cta-label {
		max-width: 11ch;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* ========== Mobile <768 ========== */
@media (max-width: 767px) {
	.header-hours {
		display: none !important;
	}

	.identity-row {
		display: flex;
		align-items: center;
		gap: 8px;
		min-height: 64px;
	}

	.header-brand {
		width: 118px;
		height: 48px;
		flex: 0 0 auto;
	}

	.header-brand img {
		height: 44px;
	}

	.header-actions {
		display: flex;
		align-items: center;
		gap: 6px;
		margin-left: auto;
		min-width: 0;
		flex: 1 1 auto;
		justify-content: flex-end;
		max-width: calc(100% - 126px);
	}

	/* Hotline leaves header action row → drawer utility */
	.header-action-buttons .header-hotline-btn {
		display: none !important;
	}

	/* EMR + Booking side-by-side 2 columns */
	.header-action-buttons {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 6px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.header-action-buttons .header-emr,
	.header-action-buttons .header-booking {
		display: inline-flex !important;
		width: 100%;
		min-width: 0;
		min-height: 44px;
		height: 44px;
		padding-inline: 6px;
		font-size: 0.68rem;
		gap: 4px;
	}

	.header-action-buttons .header-emr {
		order: 1;
	}

	.header-action-buttons .header-booking {
		order: 2;
	}

	.header-action-buttons .header-cta-icon {
		width: 13px;
		height: 13px;
	}

	.header-action-buttons .header-cta-label {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		min-width: 0;
	}

	.header-navigation {
		position: relative;
		z-index: 2;
	}

	.navigation-inner {
		position: relative;
		min-height: 48px;
		justify-content: flex-end;
		gap: 8px;
	}

	.nav-drawer-utility {
		display: grid;
		gap: 8px;
	}

	.nav-drawer-hours {
		display: block;
	}
}

@media (max-width: 390px) {
	.header-brand {
		width: 108px;
	}

	.header-action-buttons .header-emr,
	.header-action-buttons .header-booking {
		font-size: 0.64rem;
		padding-inline: 4px;
	}
}
