/* ==========================================================================
   Aladdin's Landing Page — Shared Styles
   CSS variables, typography, buttons, section styling, and
   default-block overrides for Value Props, Dining, Locations, About, CTA.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
	--al-orange: #E85D20;
	--al-orange-hover: #C44A2B;
	--al-charcoal: #1C1710;
	--al-cream: #FAF7F2;
	--al-white: #FFFFFF;
	--al-sand: #EDE5D8;
	--al-olive: #5C6B3C;
	--al-slate: #6B6560;
	--al-success: #3A7D44;
	--al-star: #F5A623;
	--al-shadow-s: 0 1px 3px rgba(28, 23, 16, .06);
	--al-shadow-m: 0 4px 12px rgba(28, 23, 16, .08);
	--al-shadow-l: 0 8px 30px rgba(28, 23, 16, .12);
	--al-shadow-orange: 0 8px 25px rgba(232, 93, 32, .15);
}

/* ---------- Page Base ---------- */
.elementor-template-canvas {
	font-family: 'Barlow', sans-serif;
	color: var(--al-charcoal);
	background: var(--al-cream);
	line-height: 1.6;
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

/* Elementor canvas has no is-layout-constrained wrapper,
   so WordPress's .alignwide max-width rule never fires.
   Apply it explicitly here. */
.elementor-template-canvas .alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Typography (scoped to hero + CTA) ---------- */
.aladdins-hero h1,
.aladdins-cta-band h2 {
	font-family: 'Archivo', sans-serif;
	line-height: 1.1;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.aladdins-hero p,
.aladdins-cta-band p {
	font-family: 'Barlow', sans-serif;
	max-width: 65ch;
	letter-spacing: .01em;
	line-height: 1.6;
}

/* ---------- Section Layout ---------- */
.aladdins-section {
	padding: clamp(64px, 10vw, 128px) 0;
}

.aladdins-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 24px);
}

/* ---------- Section Header Pattern ---------- */
.aladdins-section-header {
	text-align: center;
	margin-bottom: 48px;
}

.aladdins-eyebrow {
	font-family: 'Barlow', sans-serif;
	font-weight: 500;
	font-size: .82rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--al-orange);
	margin-bottom: 8px;
}

.aladdins-section-header p:not(.aladdins-eyebrow) {
	color: var(--al-slate);
	max-width: 50ch;
	margin: 12px auto 0;
}

/* ---------- Buttons ---------- */
.al-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: 'Barlow', sans-serif;
	font-weight: 500;
	font-size: 1rem;
	border-radius: 9999px;
	min-height: 48px;
	transition: all .25s cubic-bezier(.4, 0, .2, 1);
	text-decoration: none;
	cursor: pointer;
	border: none;
}

.al-btn-primary {
	background: var(--al-orange);
	color: #fff !important;
	padding: 14px 32px;
	min-width: 160px;
}
.al-btn-primary:hover {
	background: var(--al-orange-hover);
	color: #fff !important;
	box-shadow: var(--al-shadow-orange);
	transform: scale(1.02);
}

.al-btn-secondary {
	background: transparent;
	color: var(--al-orange) !important;
	border: 2px solid var(--al-orange);
	padding: 12px 32px;
	min-width: 160px;
}
.al-btn-secondary:hover {
	background: var(--al-orange);
	color: #fff !important;
}

.al-btn-ghost {
	color: var(--al-orange);
	font-weight: 500;
	padding: 4px 0;
	position: relative;
	background: none;
	border: none;
}
.al-btn-ghost::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--al-orange);
	transition: width .3s ease;
}
.al-btn-ghost:hover::after { width: 100%; }

/* ---------- Badges ---------- */
.al-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.al-badge-halal { background: rgba(92, 107, 60, .12); color: var(--al-olive); }
.al-badge-vegan { background: rgba(92, 107, 60, .12); color: var(--al-olive); }
.al-badge-open  { background: rgba(58, 125, 68, .12); color: var(--al-success); }

/* ---------- Reveal Animation ---------- */
/* Disabled until frontend JS IntersectionObserver is added */
.al-reveal,
.al-stagger > * {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   Default Block Overrides — Value Props
   Usage: Add CSS class "aladdins-value-props" to a Columns block
   ========================================================================== */
.aladdins-value-props {
	padding: 36px 0;
	border-top: 1px solid var(--al-sand);
	border-bottom: 1px solid var(--al-sand);
}

.aladdins-value-props .wp-block-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
}

.aladdins-value-props .al-vp-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(232, 93, 32, .08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	margin-bottom: 4px;
}

.aladdins-value-props h4,
.aladdins-value-props .wp-block-heading {
	font-family: 'Archivo', sans-serif;
	font-size: .82rem !important;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin: 0;
}

.aladdins-value-props p {
	font-size: .82rem;
	color: var(--al-slate);
	margin: 0;
}

/* ==========================================================================
   Default Block Overrides — Dining Options
   Usage: Add CSS class "aladdins-dining-options" to a Columns block
   ========================================================================== */
.aladdins-dining-options {
	gap: 24px;
}

.aladdins-dining-options .wp-block-column {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 3/4;
	transition: transform .25s ease;
}
.aladdins-dining-options .wp-block-column:hover {
	transform: translateY(-4px);
}

.aladdins-dining-options .wp-block-cover {
	min-height: 100% !important;
	border-radius: 12px;
}

.aladdins-dining-options .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	padding: 24px;
}

.aladdins-dining-options .wp-block-cover__inner-container h3 {
	color: #fff;
	font-size: 1.2rem;
	margin-bottom: 4px;
}

.aladdins-dining-options .wp-block-cover__inner-container p {
	color: rgba(255, 255, 255, .8);
	font-size: .88rem;
}

.aladdins-dining-options .al-dn-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	margin-bottom: 16px;
}

.aladdins-dining-options .wp-block-column:last-child {
	border: 2px solid var(--al-orange);
	border-radius: 12px;
}

@media (max-width: 1024px) {
	.aladdins-dining-options .wp-block-column { aspect-ratio: 4/3; }
}
@media (max-width: 640px) {
	.aladdins-dining-options { gap: 16px; }
	.aladdins-dining-options .wp-block-column { aspect-ratio: 3/4; }
}

/* ==========================================================================
   Default Block Overrides — Locations
   Usage: Add CSS class "aladdins-locations" to a Columns block
   ========================================================================== */
.aladdins-locations {
	gap: 24px;
}

.aladdins-locations .wp-block-column {
	background: var(--al-white);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--al-shadow-m);
	transition: all .25s ease;
}
.aladdins-locations .wp-block-column:hover {
	box-shadow: var(--al-shadow-orange);
	transform: translateY(-2px);
}

.aladdins-locations .al-loc-map {
	height: 200px;
	overflow: hidden;
	position: relative;
}
.aladdins-locations .al-loc-map img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aladdins-locations .al-loc-body {
	padding: 24px;
}

.aladdins-locations .al-loc-detail {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
	font-size: .92rem;
	color: var(--al-slate);
}
.aladdins-locations .al-loc-detail .al-loc-icon {
	flex-shrink: 0;
	width: 20px;
	text-align: center;
}

.aladdins-locations .al-loc-actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--al-sand);
}
.aladdins-locations .al-loc-actions .al-btn {
	flex: 1;
	font-size: .88rem;
	padding: 12px 16px;
	min-width: auto;
}

@media (max-width: 768px) {
	.aladdins-locations { flex-direction: column; }
}

/* ==========================================================================
   Default Block Overrides — About Section
   Usage: Add CSS class "aladdins-about" to a Columns block
   ========================================================================== */
.aladdins-about {
	gap: 64px;
	align-items: center;
}

.aladdins-about .al-about-images {
	position: relative;
}
.aladdins-about .al-about-images .wp-block-image:first-child {
	aspect-ratio: 4/5;
	border-radius: 16px;
	overflow: hidden;
}
.aladdins-about .al-about-images .wp-block-image:first-child img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: sepia(.05) saturate(1.1);
}
.aladdins-about .al-about-images .wp-block-image:last-child {
	position: absolute;
	bottom: -24px;
	right: -24px;
	width: 55%;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--al-shadow-l);
	z-index: 2;
	border: 4px solid var(--al-cream);
}

.aladdins-about .al-about-text p {
	color: var(--al-slate);
	margin-bottom: 24px;
	line-height: 1.8;
}

.aladdins-about .al-press-row {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--al-sand);
	flex-wrap: wrap;
}
.aladdins-about .al-press-label {
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--al-slate);
}
.aladdins-about .al-press-logo {
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	color: var(--al-sand);
	letter-spacing: .05em;
	text-transform: uppercase;
}

@media (max-width: 768px) {
	.aladdins-about { gap: 32px; flex-direction: column; }
	.aladdins-about .al-about-images .wp-block-image:last-child { display: none; }
}

/* ==========================================================================
   Default Block Overrides — CTA Band
   Usage: Add CSS class "aladdins-cta-band" to a Group block
   ========================================================================== */
.aladdins-cta-band {
	background: var(--al-charcoal) !important;
	position: relative;
	overflow: hidden;
	padding: clamp(64px, 10vw, 128px) 0;
}
.aladdins-cta-band::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: rgba(232, 93, 32, .06);
}

.aladdins-cta-band > .wp-block-group__inner-container {
	text-align: center;
	position: relative;
	z-index: 2;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 24px);
}

.aladdins-cta-band h2 {
	color: var(--al-cream) !important;
	margin-bottom: 16px;
}

.aladdins-cta-band p {
	color: rgba(250, 247, 242, .7) !important;
	margin: 0 auto 40px;
	max-width: 50ch;
}

.aladdins-cta-band .wp-block-buttons {
	justify-content: center;
	gap: 24px;
}

.aladdins-cta-band .wp-block-button__link {
	border-radius: 9999px;
	font-family: 'Barlow', sans-serif;
	font-weight: 500;
	min-height: 48px;
	padding: 14px 32px;
}

/* ---------- Mobile Sticky CTA ---------- */
.aladdins-mobile-cta {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 72px;
	background: rgba(250, 247, 242, .92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid var(--al-sand);
	z-index: 999;
	padding: 12px 24px;
	align-items: center;
	justify-content: center;
}
.aladdins-mobile-cta .al-btn { width: 100%; max-width: 400px; }

@media (max-width: 768px) {
	.aladdins-mobile-cta { display: flex; }
}

/* ---------- Progress Bar ---------- */
.aladdins-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--al-orange);
	z-index: 10000;
	transition: width .1s linear;
}
