html {
	scroll-padding-top: 72px;
}
.admin-bar {
	scroll-padding-top: 110px;
}

/* Dishco site chrome — compact sticky header + phone overlay CTA */

.d-site-header {
	overflow: visible;
	padding-top: 18px !important;
	padding-bottom: 12px !important;
	position: sticky !important;
	top: 0 !important;
	z-index: 200;
	background: #ffffff;
	border-bottom: 1px solid transparent !important; /* avoid dark composite line with old #f1f1f1 border */
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.d-site-header.is-scrolled {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	border-bottom-color: #f1f1f1 !important;
}

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

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

.d-site-header__inner {
	overflow: visible;
	min-height: 0;
	gap: 12px;
}

.d-site-header .d-site-header__logo img {
	height: 34px !important;
	width: auto !important;
	max-height: 34px !important;
}

.d-site-header__nav {
	display: none;
	flex: 1 1 auto;
	min-width: 0;
	margin-left: 1.25rem;
}

.d-site-header__menu {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.d-site-header__item {
	position: relative;
	list-style: none;
	margin: 0;
}

.d-site-header__parent {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	padding: 0.4rem 0.7rem;
	border: 0;
	background: transparent;
	color: #1a1a1a;
	font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-decoration: none !important;
	cursor: pointer;
	border-radius: 8px;
	white-space: nowrap;
}

.d-site-header__parent:hover,
.d-site-header__parent:focus-visible,
.d-site-header__item.is-open > .d-site-header__parent {
	color: var(--dishco-text, #000);
	background: rgba(0, 0, 0, 0.04);
}

.d-site-header__parent:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--dishco-accent) 45%, transparent);
	outline-offset: 2px;
}

.d-site-header__parent--btn {
	appearance: none;
}

.d-site-header__chevron {
	flex-shrink: 0;
	opacity: 0.65;
	transition: transform 0.18s ease;
}

.d-site-header__item.is-open > .d-site-header__parent .d-site-header__chevron,
.d-site-header__mobile-parent[aria-expanded="true"] .d-site-header__chevron {
	transform: rotate(180deg);
}

.d-site-header__dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 248px;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: #fff;
	border: 1px solid var(--dishco-border-strong, #e5e5e5);
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 220;
}

.d-site-header__item.is-open > .d-site-header__dropdown,
.d-site-header__item:hover > .d-site-header__dropdown,
.d-site-header__item:focus-within > .d-site-header__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.d-site-header__dropdown a {
	display: block;
	padding: 0.55rem 0.7rem;
	border-radius: 8px;
	color: #222 !important;
	font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none !important;
	white-space: nowrap;
}

.d-site-header__dropdown a:hover,
.d-site-header__dropdown a:focus-visible {
	background: rgba(0, 0, 0, 0.045);
	color: var(--dishco-text, #000) !important;
}

.d-site-header__menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-left: auto;
	margin-right: 0.35rem;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--dishco-text-strong, #333);
	cursor: pointer;
	flex-shrink: 0;
}

.d-site-header__menu-toggle:hover,
.d-site-header__menu-toggle:focus-visible {
	background: rgba(0, 0, 0, 0.04);
}

.d-site-header__menu-toggle:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--dishco-accent) 45%, transparent);
	outline-offset: 2px;
}

.d-site-header__menu-toggle-bars,
.d-site-header__menu-toggle-bars::before,
.d-site-header__menu-toggle-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	position: relative;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.d-site-header__menu-toggle-bars::before,
.d-site-header__menu-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.d-site-header__menu-toggle-bars::before { top: -6px; }
.d-site-header__menu-toggle-bars::after { top: 6px; }

.d-site-header.is-mobile-open .d-site-header__menu-toggle-bars {
	background: transparent;
}
.d-site-header.is-mobile-open .d-site-header__menu-toggle-bars::before {
	top: 0;
	transform: rotate(45deg);
}
.d-site-header.is-mobile-open .d-site-header__menu-toggle-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

.d-site-header__mobile {
	display: none;
}

@media (min-width: 782px) {
	.d-site-header__nav {
		display: block;
	}
	.d-site-header__menu-toggle,
	.d-site-header__mobile {
		display: none !important;
	}
	/* Keep CTA on the right; nav sits between logo and CTA */
	.d-site-header__inner {
		gap: 8px;
	}
	.d-site-header__cta {
		margin-left: auto;
	}
}

@media (max-width: 781px) {
	.d-site-header__nav {
		display: none !important;
	}
	.d-site-header__menu-toggle {
		display: inline-flex;
		margin-left: auto;
		margin-right: 0.15rem;
	}
	.d-site-header__cta {
		margin-left: 0.35rem !important;
	}
	.d-site-header__mobile {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 0.35rem 0.75rem 0.85rem;
		background: #fff;
		border-bottom: 1px solid var(--dishco-border-strong, #e5e5e5);
		box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
		z-index: 210;
	}
	.d-site-header__mobile[hidden] {
		display: none !important;
	}
	.d-site-header__mobile-section {
		border-bottom: 1px solid var(--dishco-border, #f0f0f0);
	}
	.d-site-header__mobile-section:last-child {
		border-bottom: 0;
	}
	.d-site-header__mobile-parent {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 0.85rem 0.25rem;
		border: 0;
		background: transparent;
		color: var(--dishco-text, #000);
		font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: -0.01em;
		text-align: left;
		cursor: pointer;
	}
	.d-site-header__mobile-list {
		list-style: none;
		margin: 0 0 0.55rem;
		padding: 0 0 0.25rem;
	}
	.d-site-header__mobile-list[hidden] {
		display: none !important;
	}
	.d-site-header__mobile-list a {
		display: block;
		padding: 0.55rem 0.35rem 0.55rem 0.65rem;
		color: #222 !important;
		font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		font-size: 15px;
		font-weight: 500;
		text-decoration: none !important;
		border-radius: 8px;
	}
	.d-site-header__mobile-list a:hover,
	.d-site-header__mobile-list a:focus-visible {
		background: rgba(0, 0, 0, 0.04);
	}
	/* Header becomes positioning context for mobile panel */
	.d-site-header {
		position: -webkit-sticky !important;
		position: sticky !important;
	}
	.d-site-header__inner {
		position: relative;
		flex-wrap: nowrap !important;
	}
}

.d-site-header__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0.28rem 1.15rem;
	margin-left: 1.35rem;
	border-radius: 999px;
	background: var(--dishco-accent);
	color: #fff !important;
	font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: none;
	border: 0;
	outline: none;
	overflow: visible;
	z-index: 2;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.d-site-header__cta:hover,
.d-site-header__cta:focus-visible {
	background: var(--dishco-accent-dark);
	color: #fff !important;
}

.d-site-header__cta:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--dishco-accent) 45%, transparent);
	outline-offset: 2px;
}

.d-site-header__cta-label {
	position: relative;
	z-index: 1;
}

.d-site-header__cta-phones {
	position: absolute;
	left: -10px;
	bottom: -8px;
	width: 40px;
	height: 62px;
	pointer-events: none;
	z-index: 3;
	/* own layer so shake doesn't paint a 1px hairline under the pill */
	isolation: isolate;
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.d-site-header__cta-phone {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 62px;
	width: auto;
	max-width: none;
	opacity: 0;
	transform: rotate(-11deg) translateZ(0);
	transform-origin: 50% 85%;
	transition: opacity 0.45s ease;
	/* drop-shadow + transform often causes a black/grey hairline on iOS */
	filter: none;
	pointer-events: none;
	user-select: none;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	will-change: transform;
}

.d-site-header__cta-phone.is-active {
	opacity: 1;
}

.d-site-header__cta-phone.is-nudge {
	animation: d-phone-nudge 0.95s ease;
}

@keyframes d-phone-nudge {
	0%, 100% { transform: rotate(-11deg) translateZ(0); }
	18% { transform: rotate(-20deg) translate3d(0, -3px, 0); }
	36% { transform: rotate(-4deg) translateZ(0); }
	54% { transform: rotate(-15deg) translateZ(0); }
	72% { transform: rotate(-9deg) translateZ(0); }
}


/*
 * Beat Additional CSS overflow-x:hidden on html/body (breaks sticky).
 * Clip horizontal bleed on the main content shell instead.
 */
/* Beat Additional CSS `html, body { overflow-x: hidden }` which kills sticky */
html,
body {
	overflow-x: visible !important;
}

.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group,
main {
	overflow-x: visible;
}

.home .wp-block-video,
.home .d-home__section .wp-block-video,
.home .d-home__section .wp-block-image {
	overflow-anchor: none;
}

.home .wp-block-video video {
	max-width: 100%;
	height: auto;
	aspect-ratio: 696 / 1440;
}

@media (max-width: 600px) {
	.d-site-header {
		padding-top: 14px !important;
		padding-bottom: 12px !important;
		padding-left: 14px !important;
		padding-right: 14px !important;
		overflow: visible !important;
	}
	.d-site-header .d-site-header__logo img {
		height: 30px !important;
		max-height: 30px !important;
	}
	.d-site-header__cta {
		font-size: 14px;
		min-height: 30px;
		padding: 0.22rem 1rem;
		margin-left: 1.2rem;
	}
	.d-site-header__cta-phones {
		left: -8px;
		bottom: -10px;
		height: 50px;
	}
	.d-site-header__cta-phone {
		height: 50px;
	}
}


/* FSE wraps sticky header in .wp-block-template-part — keep overflow visible */
.wp-block-template-part:has(> .d-site-header),
header.wp-block-template-part:has(.d-site-header) {
	position: sticky !important;
	top: 0 !important;
	z-index: 200;
	overflow: visible !important;
	background: #ffffff;
}
.admin-bar .wp-block-template-part:has(> .d-site-header),
.admin-bar header.wp-block-template-part:has(.d-site-header) {
	top: 32px !important;
}
@media (max-width: 782px) {
	.admin-bar .wp-block-template-part:has(> .d-site-header),
	.admin-bar header.wp-block-template-part:has(.d-site-header) {
		top: 46px !important;
	}
}


/* Keep sticky header + phone CTA from clipping (iOS Safari) */
.wp-site-blocks {
	overflow: visible !important;
}
.wp-site-blocks > header,
.wp-site-blocks > .wp-block-template-part,
header.wp-block-template-part {
	overflow: visible !important;
}
.d-site-header,
.d-site-header__inner,
.d-site-header .wp-block-group,
.d-site-header .wp-block-group__inner-container {
	overflow: visible !important;
}


/* Mobile sticky: pin header flush to viewport top (avoid gap / content above bar).
   WP preview with admin-bar still uses .admin-bar rules; logged-out uses top:0. */
@media (max-width: 781px) {
	html {
		scroll-padding-top: 64px;
	}
	/* Only the template-part wrapper sticks — avoids double-sticky gap */
	.wp-block-template-part:has(> .d-site-header),
	header.wp-block-template-part:has(.d-site-header),
	.wp-site-blocks > header {
		position: -webkit-sticky !important;
		position: sticky !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		margin-top: 0 !important;
		z-index: 1000 !important;
		background: #fff !important;
		transform: none !important; /* transforms break sticky containing block */
	}
	.d-site-header {
		/* Keep sticky on the header itself (relative broke pin on iOS) */
		position: -webkit-sticky !important;
		position: sticky !important;
		top: 0 !important;
		margin-top: 0 !important;
		padding-top: 12px !important;
		padding-bottom: 10px !important;
	}
	body.admin-bar .wp-block-template-part:has(> .d-site-header),
	body.admin-bar header.wp-block-template-part:has(.d-site-header),
	body.admin-bar .wp-site-blocks > header {
		top: 46px !important;
	}
}


/* Mobile horizontal overflow: contain the phone CTA, do NOT touch html/body overflow
   (overflow-x on html/body breaks position:sticky in iOS Safari). */
@media (max-width: 781px) {
	.d-site-header,
	.d-site-header__inner {
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow: visible !important;
	}
	/* Keep sticky chain intact */
	.wp-block-template-part:has(> .d-site-header),
	header.wp-block-template-part:has(.d-site-header),
	.wp-site-blocks > header {
		overflow: visible !important;
	}
	.d-site-header__cta {
		margin-left: 1.2rem !important;
		/* phones must paint overtop / peek outside the pill */
		overflow: visible !important;
		isolation: isolate;
	}
	.d-site-header__cta-phones {
		left: -8px !important;
		bottom: -10px !important;
		width: 40px !important;
		height: 50px !important;
	}
	.d-site-header__cta-phone {
		height: 50px !important;
	}
}


/* Sticky header reinforcement (mobile) — must stay after overflow fixes */
@media (max-width: 781px) {
	.wp-block-template-part:has(> .d-site-header),
	header.wp-block-template-part:has(.d-site-header),
	.wp-site-blocks > header,
	.d-site-header {
		position: -webkit-sticky !important;
		position: sticky !important;
		top: 0 !important;
		z-index: 200 !important;
		overflow: visible !important;
	}
}

/* Header CTA "Get Dishco on iPhone": keep the logo from squeezing on narrow phones (2026-10-19) */
@media (max-width: 480px) {
	.d-site-header .d-site-header__logo,
	.d-site-header .d-site-header__logo img {
		flex-shrink: 0 !important;
	}
	.d-site-header .d-site-header__logo img {
		width: auto !important;
	}
	.d-site-header .d-site-header__inner {
		gap: 10px !important;
	}
	.d-site-header .d-site-header__cta {
		margin-left: 0.6rem !important;
		padding: 0.22rem 0.8rem 0.22rem 1rem !important;
	}
}
@media (max-width: 374px) {
	.d-site-header .d-site-header__logo img {
		height: 24px !important;
		max-height: 24px !important;
	}
	.d-site-header .d-site-header__cta {
		font-size: 13px !important;
		padding: 0.22rem 0.65rem 0.22rem 0.9rem !important;
		margin-left: 0.45rem !important;
	}
}
@media (max-width: 339px) {
	.d-site-header .d-site-header__logo img {
		height: 21px !important;
		max-height: 21px !important;
	}
	.d-site-header .d-site-header__cta {
		font-size: 12px !important;
		padding: 0.2rem 0.55rem 0.2rem 0.8rem !important;
		margin-left: 0.35rem !important;
	}
	.d-site-header .d-site-header__inner {
		gap: 8px !important;
	}
}
