/* Gastronome — loyalty.css
 * Ports gastronome-loyalty.html main layout (chrome lives in base.css).
 */

.gn-loyalty {
	--bg-left: #0a0a0a;
	--accent: #666;
	--text-secondary: #999;
	--border-light: rgba(255, 255, 255, 0.08);
	--border-hover: rgba(255, 255, 255, 0.2);
}

.gn-loyalty .loyalty-layout {
	display: grid; grid-template-columns: 1fr 1fr;
	min-height: 100vh; min-height: 100svh;
}

/* ─── LEFT — sticky video ─── */
.gn-loyalty .loyalty-visual {
	position: sticky; top: 0; height: 100vh; height: 100svh;
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	background: var(--bg-left);
}
.gn-loyalty .visual-video {
	position: absolute; inset: 0;
	width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.gn-loyalty .visual-overlay {
	position: absolute; inset: 0; z-index: 2;
	background: linear-gradient(180deg,
		rgba(0,0,0,0.3) 0%,
		rgba(0,0,0,0.05) 40%,
		rgba(0,0,0,0.05) 60%,
		rgba(0,0,0,0.4) 100%);
}
.gn-loyalty .visual-watermark {
	position: absolute; bottom: 40px; left: 50%;
	transform: translateX(-50%); z-index: 4;
	font-family: var(--font-display);
	font-size: 11px; letter-spacing: 0.3em;
	color: rgba(255,255,255,0.15); white-space: nowrap;
}

/* ─── RIGHT — content ─── */
.gn-loyalty .loyalty-content {
	position: relative;
	padding: 160px 80px 120px 64px;
	display: flex; flex-direction: column;
	background: #000;
}

/* hero */
.gn-loyalty .loy-hero { margin-bottom: 80px; }
.gn-loyalty .loy-overline {
	font-size: 13px; text-transform: uppercase; letter-spacing: 0.2em;
	color: #666; margin-bottom: 24px; display: block;
}
.gn-loyalty .loy-title {
	font-family: var(--font-display);
	font-size: clamp(36px, 4.5vw, 60px);
	font-weight: 700; line-height: 1.05;
	margin-bottom: 28px;
	color: #fff;
}
/* Mask-line wrappers around title-main / title-sub so each line gets its own
 * overflow:hidden clip and the standalone mask-line reveal in boot.js
 * staggers them in. Note `.sub-text` is now on the outer .mask-line so the
 * clip mask sits at the line level. */
.gn-loyalty .loy-title .mask-line {
	display: block;
	overflow: hidden;
	padding-bottom: 4px;
}
.gn-loyalty .loy-title .mask-line-inner { display: block; }
.gn-loyalty .loy-title .sub-text .mask-line-inner { color: #555; }
.gn-loyalty .loy-intro {
	font-family: var(--font-italic);
	font-size: clamp(17px, 1.8vw, 20px);
	color: #999; line-height: 1.5; max-width: 520px;
}

.gn-loyalty .loy-card-inline {
	margin-bottom: 64px; display: flex; justify-content: flex-start;
}
.gn-loyalty .loy-card-inline img {
	height: 28vh; width: auto; display: block;
	filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5)) drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}

.gn-loyalty .loy-divider {
	width: 60px; height: 1px;
	background: rgba(255,255,255,0.15);
	margin-bottom: 64px;
}

.gn-loyalty .loy-section-label {
	font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
	color: #999; margin-bottom: 32px; display: block;
}

/* earn rates — tier tabs + crossfading card visuals */
.gn-loyalty .loy-earn { margin-bottom: 80px; }

/* Legacy `.earn-tiers` / `.earn-tier` rules kept in case any cached markup
 * still references them; new markup uses `.earn-tabs` / `.earn-tab`. */
.gn-loyalty .earn-tiers { display: flex; gap: 0; }
.gn-loyalty .earn-tier {
	flex: 1; padding: 32px 28px; position: relative;
	border: 1px solid var(--border-light);
	transition: border-color 0.4s ease, background 0.4s ease;
}
.gn-loyalty .earn-tier:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.gn-loyalty .earn-tier:first-child { border-radius: 4px 0 0 4px; }
.gn-loyalty .earn-tier:last-child { border-radius: 0 4px 4px 0; }
.gn-loyalty .earn-tier + .earn-tier { border-left: none; }
.gn-loyalty .earn-percent {
	font-family: var(--font-display);
	font-size: clamp(28px, 2.5vw, 40px);
	font-weight: 700; color: #fff; line-height: 1;
	margin-bottom: 8px;
}
.gn-loyalty .earn-label {
	font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
	color: #999; margin-bottom: 16px; display: block;
}
.gn-loyalty .earn-desc { font-size: 14px; color: #999; line-height: 1.6; }

/* ── Tab nav ─────────────────────────────────────────────────────── */
.gn-loyalty .earn-tabs {
	display: flex;
	gap: 0;
	border: 1px solid var(--border-light);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 28px;
}
.gn-loyalty .earn-tab {
	flex: 1;
	display: flex; flex-direction: column; align-items: flex-start;
	gap: 6px;
	padding: 20px 24px;
	background: transparent;
	border: 0;
	border-right: 1px solid var(--border-light);
	color: inherit;
	cursor: pointer;
	text-align: left;
	font: inherit;
	transition: background 0.35s ease, color 0.35s ease;
	-webkit-tap-highlight-color: transparent;
}
.gn-loyalty .earn-tab:last-child { border-right: 0; }
.gn-loyalty .earn-tab:hover { background: rgba(255,255,255,0.03); }
.gn-loyalty .earn-tab:focus-visible {
	outline: 1px solid #fff; outline-offset: -2px;
}
.gn-loyalty .earn-tab.is-active {
	background: #fff; color: #000;
}
.gn-loyalty .earn-tab-pct {
	font-family: var(--font-display);
	font-size: clamp(20px, 1.8vw, 28px);
	font-weight: 700; line-height: 1;
}
.gn-loyalty .earn-tab-lbl {
	font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
	font-weight: 500;
	color: #999;
	transition: color 0.35s ease;
}
.gn-loyalty .earn-tab.is-active .earn-tab-lbl { color: #000; }

/* ── Visual crossfade stack ──────────────────────────────────────── */
.gn-loyalty .earn-visuals {
	position: relative;
	min-height: 320px;
}
.gn-loyalty .earn-visual {
	position: absolute; inset: 0;
	margin: 0;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	gap: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.55s var(--ease-brand), visibility 0s linear 0.55s;
	pointer-events: none;
}
.gn-loyalty .earn-visual.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.55s var(--ease-brand), visibility 0s linear 0s;
	pointer-events: auto;
	position: relative;   /* in-flow so wrapper sizes to active panel */
	inset: auto;
}
.gn-loyalty .earn-visual-img {
	max-width: min(100%, 420px);
	height: auto;
	display: block;
	object-fit: contain;
}
.gn-loyalty .earn-visual-desc {
	max-width: 520px;
	text-align: center;
	font-size: 14px; line-height: 1.6;
	color: #999;
}

/* benefits */
.gn-loyalty .loy-benefits { margin-bottom: 80px; }
.gn-loyalty .benefits-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.gn-loyalty .benefit-card {
	padding: 32px 28px;
	border: 1px solid var(--border-light); border-radius: 4px;
	position: relative; overflow: hidden;
	transition: border-color 0.4s ease, background 0.4s ease;
}
.gn-loyalty .benefit-card::before {
	content: ''; position: absolute; top: 0; left: 0;
	width: 2px; height: 0; background: #fff;
	transition: height 0.5s var(--ease-brand);
}
.gn-loyalty .benefit-card:hover::before { height: 100%; }
.gn-loyalty .benefit-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.gn-loyalty .benefit-icon {
	font-size: 16px; margin-bottom: 16px; display: block;
	color: #fff; opacity: 0.15;
}
.gn-loyalty .benefit-title {
	font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.gn-loyalty .benefit-desc { font-size: 14px; color: #999; line-height: 1.6; }

/* how it works */
.gn-loyalty .loy-how { margin-bottom: 80px; }
.gn-loyalty .how-steps { display: flex; flex-direction: column; }
.gn-loyalty .how-step {
	display: flex; align-items: flex-start; gap: 28px;
	padding: 28px 0;
	border-bottom: 1px solid var(--border-light);
	transition: padding-left 0.4s ease;
}
.gn-loyalty .how-step:first-child { border-top: 1px solid var(--border-light); }
.gn-loyalty .how-step:hover { padding-left: 12px; }
.gn-loyalty .how-number {
	font-family: var(--font-display);
	font-size: 32px; font-weight: 700;
	color: rgba(255,255,255,0.12);
	line-height: 1; flex-shrink: 0; width: 48px;
}
.gn-loyalty .how-text h4 {
	font-family: var(--font-body); font-size: 15px; font-weight: 600;
	color: #fff; margin-bottom: 6px;
}
.gn-loyalty .how-text p { font-size: 14px; color: #999; line-height: 1.6; }

/* CTA */
.gn-loyalty .loy-cta { margin-bottom: 80px; }
.gn-loyalty .cta-box {
	padding: 48px;
	border: 1px solid var(--border-light); border-radius: 4px;
	background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0) 100%);
	text-align: center;
}
.gn-loyalty .cta-text {
	font-family: var(--font-italic);
	font-size: 20px; color: #999;
	line-height: 1.5; margin-bottom: 32px;
	max-width: 400px; margin-left: auto; margin-right: auto;
}
.gn-loyalty .cta-btn {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 16px 40px;
	background: #fff; color: #000;
	font-family: var(--font-body); font-size: 12px; font-weight: 600;
	letter-spacing: 0.18em; text-transform: uppercase;
	border: 1px solid #fff;
	transition: all 0.4s ease;
}
.gn-loyalty .cta-btn:hover { background: transparent; color: #fff; }
.gn-loyalty .cta-btn-arrow { transition: transform 0.3s ease; }
.gn-loyalty .cta-btn:hover .cta-btn-arrow { transform: translateX(4px); }
.gn-loyalty .cta-locations { margin-top: 20px; font-size: 13px; color: #999; }
.gn-loyalty .cta-locations a { color: #fff; transition: color 0.3s ease; }
.gn-loyalty .cta-locations a:hover { color: #999; }

/* FAQ */
.gn-loyalty .loy-faq { margin-bottom: 0; }
.gn-loyalty .faq-item {
	border-bottom: 1px solid var(--border-light);
	transition: background 0.3s ease;
}
.gn-loyalty .faq-item:first-child { border-top: 1px solid var(--border-light); }
.gn-loyalty .faq-question {
	display: flex; justify-content: space-between; align-items: center;
	width: 100%; padding: 24px 0; gap: 16px;
	background: transparent; border: none;
	cursor: pointer; text-align: left;
}
.gn-loyalty .faq-question h4 {
	font-family: var(--font-body); font-size: 14px; font-weight: 500;
	color: #fff; transition: color 0.3s ease;
}
.gn-loyalty .faq-item:hover .faq-question h4 { color: #666; }
.gn-loyalty .faq-toggle {
	width: 28px; height: 28px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.12);
	display: flex; align-items: center; justify-content: center;
	font-size: 14px; color: #999;
	flex-shrink: 0; transition: all 0.4s ease;
}
.gn-loyalty .faq-item.open .faq-toggle {
	transform: rotate(45deg); border-color: #fff; color: #fff;
}
.gn-loyalty .faq-answer {
	max-height: 0; overflow: hidden;
	transition: max-height 0.5s var(--ease-brand);
}
.gn-loyalty .faq-answer p {
	padding: 0 0 24px;
	font-size: 14px; color: #999; line-height: 1.7;
	max-width: 480px;
}
.gn-loyalty .faq-item.open .faq-answer { max-height: 400px; }

.gn-loyalty .loy-fine {
	margin-top: 64px; padding-top: 32px;
	border-top: 1px solid rgba(255,255,255,0.06);
	font-size: 12px; color: rgba(255,255,255,0.2);
	line-height: 1.7; max-width: 420px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1280px) { .gn-loyalty .loyalty-content { padding: 140px 56px 100px 48px; } }
@media (max-width: 1024px) {
	.gn-loyalty .loyalty-layout { grid-template-columns: 1fr; }
	.gn-loyalty .loyalty-visual { position: relative; height: 80vh; height: 80svh; }
	.gn-loyalty .loyalty-content { padding: 80px var(--page) 80px; }
	.gn-loyalty .earn-tiers { flex-direction: column; }
	.gn-loyalty .earn-tier { border-radius: 0; }
	.gn-loyalty .earn-tier:first-child { border-radius: 4px 4px 0 0; }
	.gn-loyalty .earn-tier:last-child  { border-radius: 0 0 4px 4px; }
	.gn-loyalty .earn-tier + .earn-tier { border-left: 1px solid var(--border-light); border-top: none; }
}
@media (max-width: 767px) {
	.gn-loyalty .loyalty-visual { height: 80vh; height: 80svh; }
	.gn-loyalty .loyalty-content { padding: 64px var(--page) 64px; }
	.gn-loyalty .benefits-grid { grid-template-columns: 1fr; }
	.gn-loyalty .loy-hero { margin-bottom: 56px; }

	/* Tab nav: shorter padding + tighter type. Keep horizontal row — three
	 * tiers stay legible side-by-side even at 360px viewports. */
	.gn-loyalty .earn-tab { padding: 14px 12px; gap: 4px; }
	.gn-loyalty .earn-tab-pct { font-size: 18px; }
	.gn-loyalty .earn-tab-lbl { font-size: 9px; letter-spacing: 0.15em; }
	.gn-loyalty .earn-visuals { min-height: 280px; }
	.gn-loyalty .earn-visual-img { max-width: 80%; }
	.gn-loyalty .loy-earn,
	.gn-loyalty .loy-benefits,
	.gn-loyalty .loy-how,
	.gn-loyalty .loy-cta,
	.gn-loyalty .loy-faq { margin-bottom: 56px; }
	.gn-loyalty .cta-box { padding: 32px 24px; }
}
@media (max-width: 480px) {
	.gn-loyalty .loyalty-visual { height: 70vh; height: 70svh; }
}
