/*
Theme Name: DBurgerim Landing
Description: דף נחיתה לסניף DBurgerim נהריה. תבנית קוד נקייה של עמוד יחיד (ללא בונה עמודים).
Version: 1.0.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: dburgerim-landing
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--primary-hsl: 352 78% 32%;
	--primary: hsl(var(--primary-hsl));
	--foreground: #000;
	--background: #fff;
	--secondary-hsl: 0 0% 96%;
	--muted-foreground: hsl(0 0% 45%);
	--border: hsl(0 0% 90%);
	--radius: .5rem;
	--ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
::before,
::after {
	box-sizing: border-box;
	border: 0 solid var(--border);
}

html {
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	line-height: inherit;
	background-color: var(--background);
	color: var(--foreground);
	font-family: Heebo, sans-serif;
	direction: rtl;
}

h1,
h2,
p {
	margin: 0;
}

h1,
h2 {
	font-size: inherit;
	font-weight: inherit;
}

a {
	color: inherit;
	text-decoration: inherit;
}

button {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 100%;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	text-transform: none;
	background-color: transparent;
	background-image: none;
	cursor: pointer;
	-webkit-appearance: button;
}

img,
svg,
iframe {
	display: block;
	vertical-align: middle;
}

img {
	max-width: 100%;
	height: auto;
}

[hidden] {
	display: none !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.lp {
	min-height: 100vh;
	padding-bottom: 4rem; /* room for the fixed mobile bar */
}

.container {
	width: 100%;
	margin-inline: auto;
	padding-inline: 1rem;
}

.container--narrow {
	max-width: 42rem;
}

.icon--16 {
	width: 1rem;
	height: 1rem;
}

.icon--20 {
	width: 1.25rem;
	height: 1.25rem;
}

.only-desktop {
	display: none;
}

/* Shared colour transition for every button-like element */
.header-call,
.hero-btn,
.action,
.directions__nav,
.mobile-bar__item {
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
	transition-duration: .15s;
	transition-timing-function: var(--ease);
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
	padding: .5rem 1rem;
	background-color: var(--primary);
	color: #fff;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .875rem;
	line-height: 1.25rem;
}

.topbar__inner span {
	font-weight: 500;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background-color: var(--background);
	border-bottom-width: 1px;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: .75rem;
}

.site-header__logo {
	width: auto;
	height: 3rem;
	object-fit: contain;
}

.header-call {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .625rem 1.5rem;
	border-radius: calc(var(--radius) - 2px);
	background-color: var(--primary);
	color: #fff;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.25rem;
}

.header-call:hover {
	background-color: var(--foreground);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70vh;
	overflow: hidden;
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background-color: rgb(0 0 0 / .6);
}

.hero__content {
	position: relative;
	z-index: 10;
	max-width: 42rem;
	padding-inline: 1rem;
	text-align: center;
}

.hero__title {
	margin-bottom: 1rem;
	color: #fff;
	font-size: 2.25rem;
	font-weight: 900;
	line-height: 1.25;
}

.hero__subtitle {
	margin-bottom: 2rem;
	color: rgb(255 255 255 / .9);
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.75rem;
}

.hero__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .75rem;
}

.hero-btn {
	width: 100%;
	padding: 1rem 2rem;
	border-radius: var(--radius);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.75rem;
}

.hero-btn--call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	background-color: var(--primary);
	color: #fff;
}

.hero-btn--call:hover {
	background-color: hsl(var(--primary-hsl) / .9);
}

.hero-btn--menu {
	border: 2px solid #fff;
	color: #fff;
}

.hero-btn--menu:hover {
	background-color: #fff;
	color: var(--foreground);
}

/* ==========================================================================
   Branch info
   ========================================================================== */

.info {
	padding-block: 3rem;
}

.badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2rem;
}

.badge {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem 1rem;
	border-radius: 9999px;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.25rem;
}

.badge--open {
	background-color: #dcfce7;
	color: #15803d;
}

.badge--closed {
	background-color: #fee2e2;
	color: #b91c1c;
}

.badge--delivery {
	background-color: hsl(var(--primary-hsl) / .1);
	color: var(--primary);
}

.badge__dot {
	width: .625rem;
	height: .625rem;
	border-radius: 9999px;
}

.badge--open .badge__dot {
	background-color: #22c55e;
	animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.badge--closed .badge__dot {
	background-color: #ef4444;
}

@keyframes pulse {
	50% {
		opacity: .5;
	}
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	margin-bottom: 2rem;
}

.info-card {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 1rem;
	border-radius: .75rem;
	background-color: hsl(var(--secondary-hsl) / .5);
}

.info-card .icon {
	flex-shrink: 0;
	color: var(--primary);
}

.info-card__label {
	color: var(--muted-foreground);
	font-size: .75rem;
	line-height: 1rem;
}

.info-card__value {
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.25rem;
}

.actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .5rem;
}

.action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .375rem;
	padding-block: 1rem;
	border-radius: .75rem;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.25rem;
}

.action--primary {
	background-color: var(--primary);
	color: #fff;
}

.action--primary:hover {
	background-color: hsl(var(--primary-hsl) / .9);
}

.action--dark {
	border: 2px solid var(--foreground);
	color: var(--foreground);
}

.action--dark:hover {
	background-color: var(--foreground);
	color: var(--background);
}

.action--outline {
	border: 2px solid var(--primary);
	color: var(--primary);
}

.action--outline:hover {
	background-color: var(--primary);
	color: #fff;
}

/* ==========================================================================
   Directions (map)
   ========================================================================== */

.directions {
	padding-block: 3rem;
	background-color: hsl(var(--secondary-hsl) / .3);
}

.directions__title {
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 2rem;
	text-align: center;
}

.map-frame {
	overflow: hidden;
	border-width: 1px;
	border-radius: .75rem;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}

.directions__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	margin-top: 1rem;
	padding-block: .75rem;
	border: 2px solid var(--primary);
	border-radius: .75rem;
	color: var(--primary);
	font-weight: 700;
}

.directions__nav:hover {
	background-color: var(--primary);
	color: #fff;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
	padding-block: 4rem;
	background-color: hsl(var(--secondary-hsl) / .3);
}

.gallery__title {
	margin-bottom: 2.5rem;
	font-size: 1.875rem;
	font-weight: 900;
	line-height: 2.25rem;
	text-align: center;
}

.gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .75rem;
}

.gallery__item {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: .75rem;
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--ease);
}

.gallery__item:hover img {
	transform: scale(1.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding-block: 2.5rem;
	background-color: var(--foreground);
	color: var(--background);
}

.site-footer__inner {
	text-align: center;
}

.site-footer__inner > * + * {
	margin-top: 1rem;
}

.site-footer__logo {
	width: auto;
	height: 3.5rem;
	margin-inline: auto;
	filter: brightness(0) invert(100%);
}

.site-footer__copy {
	color: rgb(255 255 255 / .6);
	font-size: .875rem;
	line-height: 1.25rem;
}

/* ==========================================================================
   Mobile sticky bar
   ========================================================================== */

.mobile-bar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 50;
	background-color: var(--background);
	border-top-width: 1px;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, .1);
}

.mobile-bar__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-bar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .25rem;
	padding-block: .75rem;
	color: var(--primary);
	font-size: .75rem;
	font-weight: 600;
	line-height: 1rem;
}

.mobile-bar__item:hover {
	background-color: hsl(var(--primary-hsl) / .05);
}

/* ==========================================================================
   Menu dialog
   ========================================================================== */

.menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background-color: rgb(0 0 0 / .8);
	animation: overlay-in .15s ease both;
}

.menu-overlay.is-closing {
	animation: overlay-out .15s ease both;
}

.menu-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 50;
	display: grid;
	gap: 1rem;
	width: 100%;
	max-width: 48rem;
	max-height: 90vh;
	padding: .5rem;
	overflow-y: auto;
	border-width: 1px;
	background-color: var(--background);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
	transform: translate(-50%, -50%);
	animation: dialog-in .2s ease both;
}

.menu-dialog.is-closing {
	animation: dialog-out .2s ease both;
}

.menu-dialog:focus {
	outline: none;
}

.menu-dialog > img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.menu-dialog__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	border-radius: calc(var(--radius) - 4px);
	opacity: .7;
	transition: opacity .15s var(--ease);
}

.menu-dialog__close:hover {
	opacity: 1;
}

.menu-dialog__close:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--primary);
}

body.menu-open {
	overflow: hidden;
}

@keyframes overlay-in {
	from {
		opacity: 0;
	}
}

@keyframes overlay-out {
	to {
		opacity: 0;
	}
}

@keyframes dialog-in {
	from {
		opacity: 0;
		transform: translate(-50%, -48%) scale(.95);
	}
}

@keyframes dialog-out {
	to {
		opacity: 0;
		transform: translate(-50%, -48%) scale(.95);
	}
}

/* ==========================================================================
   Breakpoints (same as the original: 640 / 768 / 1400)
   ========================================================================== */

@media (min-width: 640px) {
	.hero__actions {
		flex-direction: row;
	}

	.hero-btn {
		width: auto;
	}

	.menu-dialog {
		border-radius: var(--radius);
	}
}

@media (min-width: 768px) {
	.lp {
		padding-bottom: 0;
	}

	.only-mobile {
		display: none;
	}

	.only-desktop {
		display: inline;
	}

	.site-header__logo {
		height: 3.5rem;
	}

	.hero {
		min-height: 80vh;
	}

	.hero__title {
		font-size: 3.75rem;
		line-height: 1;
	}

	.hero__subtitle {
		font-size: 1.25rem;
		line-height: 1.75rem;
	}

	.actions {
		gap: .75rem;
	}

	.action {
		font-size: 1.125rem;
		line-height: 1.75rem;
	}

	.gallery__title {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}

	.mobile-bar {
		display: none;
	}
}

@media (min-width: 1400px) {
	.container {
		max-width: 1400px;
	}

	.container--narrow {
		max-width: 42rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.badge__dot,
	.menu-overlay,
	.menu-dialog {
		animation: none !important;
	}

	.gallery__item img {
		transition: none;
	}
}

/* WordPress admin bar (logged-in preview only) */
.admin-bar .site-header {
	top: 32px;
}

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

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}
