/* =============================================================================
   OX Banner — frontend styles.

   Same class names as the original Velvet hero block so the visual output
   is byte-identical when both stylesheets are present. Every colour, font
   and easing token has a fallback so the banner also renders correctly on
   a site that does not provide them via theme tokens.
   ========================================================================== */

[data-ox-banner] {
	/* Local fallbacks — used only when the host theme does not define them. */
	--oxb-ink:        var(--ink, #0c1922);
	--oxb-deep:       var(--deep, #143039);
	--oxb-gold:       var(--gold, #bf9f63);
	--oxb-white:      var(--white, #ffffff);
	--oxb-header-h:   var(--header-h, 76px);
	--oxb-ease:       var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1));
	--oxb-t:          var(--t, 0.45s var(--oxb-ease));
	--oxb-shadow:     var(--shadow, 0 18px 44px rgba(13,27,36,0.18));
	--oxb-fs-eyebrow: var(--fs-eyebrow, 0.72rem);
	--oxb-fs-lead:    var(--fs-lead, 1.12rem);
	--oxb-font-display: var(--font-display, "Lora", Georgia, "Times New Roman", serif);
	--oxb-font-body:    var(--font-body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.hero {
	position: relative;
	height: 170svh;
	background: var(--oxb-ink); color: var(--oxb-white);
}
.hero-acc {
	position: sticky; top: 0;
	height: 100svh; overflow: hidden;
}

/* ---- panels: mobile = full-screen, cross-fading ---- */
.hero-acc__panel {
	position: absolute; inset: 0;
	overflow: hidden;
	opacity: 0; visibility: hidden;
	transition: opacity 0.8s var(--oxb-ease), visibility 0.8s;
}
.hero-acc__panel.is-active { opacity: 1; visibility: visible; }

/* ---- media ---- */
.hero-acc__media { position: absolute; inset: 0; z-index: -1; background: var(--oxb-deep); }
.hero-acc__img,
.hero-acc__video {
	position: absolute; inset: 0;
	width: 100%; height: 100%; object-fit: cover;
}
.hero-acc__video { z-index: 1; opacity: 0; transition: opacity 0.9s var(--oxb-ease); }
.hero-acc__panel.is-active .hero-acc__video { opacity: 1; }
.hero-acc__panel.is-active .hero-acc__img {
	animation: oxb-kb 22s ease-in-out infinite alternate;
}
@keyframes oxb-kb {
	from { transform: scale(1.05) translate3d(0,0,0); }
	to   { transform: scale(1.2) translate3d(-1.8%, -1.6%, 0); }
}
.hero-acc__shade {
	position: absolute; inset: 0; z-index: 2;
	background: linear-gradient(180deg, rgba(13,27,36,0.5) 0%, rgba(13,27,36,0.36) 48%, rgba(13,27,36,0.74) 100%);
}

/* ---- closed-panel label (desktop only) ---- */
.hero-acc__tab { display: none; }

/* ---- content ---- */
.hero-acc__content {
	position: absolute; inset: 0; z-index: 5;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center; text-align: center;
	padding: calc(var(--oxb-header-h) + 1.5rem) 1.5rem 5rem;
	background: radial-gradient(ellipse 78% 58% at 50% 48%, rgba(13,27,36,0.6), transparent 78%);
}
.hero-acc__eyebrow {
	display: flex; align-items: center; gap: 0.6rem;
	margin: 0 0 1.05rem;
	font-family: var(--oxb-font-body);
	font-size: var(--oxb-fs-eyebrow); font-weight: 600;
	letter-spacing: 0.2em; text-transform: uppercase; color: var(--oxb-gold);
}
.hero-acc__count {
	padding: 0.3rem 0.6rem; letter-spacing: 0.1em;
	border: 1px solid rgba(200,168,106,0.55); border-radius: 999px;
}
.hero-acc__title {
	margin: 0; color: var(--oxb-white); font-weight: 600;
	font-family: var(--oxb-font-display);
	font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.85rem);
	line-height: 1.1; letter-spacing: -0.005em; text-wrap: balance;
	max-width: 18ch;
}
.hero-acc__text {
	margin: 1rem 0 0; max-width: 46ch;
	font-family: var(--oxb-font-body);
	font-size: 1.05rem; color: rgba(255,255,255,0.86);
}
.hero-acc__actions {
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: 0.75rem; margin-top: 1.75rem;
}

/* staggered reveal on activation */
.hero-acc__panel.is-active .hero-acc__eyebrow { animation: oxb-rise 0.6s var(--oxb-ease) 0.2s both; }
.hero-acc__panel.is-active .hero-acc__title   { animation: oxb-rise 0.7s var(--oxb-ease) 0.28s both; }
.hero-acc__panel.is-active .hero-acc__text    { animation: oxb-rise 0.7s var(--oxb-ease) 0.36s both; }
.hero-acc__panel.is-active .hero-acc__actions { animation: oxb-rise 0.7s var(--oxb-ease) 0.44s both; }
@keyframes oxb-rise {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: none; }
}

/* ---- position dots (mobile) ---- */
.hero-dots {
	position: absolute; left: 0; right: 0; bottom: 1.5rem; z-index: 12;
	display: flex; justify-content: center; gap: 0.45rem;
}
.hero-dot {
	width: 22px; height: 4px; padding: 0; border: 0; border-radius: 999px;
	background: rgba(255,255,255,0.34); cursor: pointer;
	transition: width 0.45s var(--oxb-ease), background 0.45s var(--oxb-ease);
}
.hero-dot.is-active { width: 40px; background: var(--oxb-gold); }
.hero-dot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- scroll cue (desktop) ---- */
.hero-cue {
	display: none;
	position: absolute; left: 50%; bottom: 1.4rem; translate: -50% 0; z-index: 12;
	flex-direction: column; align-items: center; gap: 0.55rem;
	font-family: var(--oxb-font-body);
	font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em;
	text-transform: uppercase; color: rgba(255,255,255,0.6);
	transition: opacity 0.5s var(--oxb-ease);
}
.hero-cue__line { position: relative; width: 1px; height: 42px; background: rgba(255,255,255,0.22); overflow: hidden; }
.hero-cue__line::after {
	content: ""; position: absolute; inset: 0 auto auto 0;
	width: 1px; height: 14px; background: var(--oxb-gold);
	animation: oxb-cue 2s var(--oxb-ease) infinite;
}
@keyframes oxb-cue { 0% { top: -14px; } 60%,100% { top: 100%; } }
.hero.is-progressed .hero-cue { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	.hero-acc__panel { transition: opacity 0.2s linear; }
	.hero-acc__panel.is-active .hero-acc__img,
	.hero-acc__panel.is-active .hero-acc__eyebrow,
	.hero-acc__panel.is-active .hero-acc__title,
	.hero-acc__panel.is-active .hero-acc__text,
	.hero-acc__panel.is-active .hero-acc__actions,
	.hero-cue__line::after { animation: none; }
}

@media (min-width: 600px) {
	.hero-acc__text { font-size: var(--oxb-fs-lead); }
}

/* ===================== DESKTOP — HORIZONTAL ACCORDION ================= */
@media (min-width: 920px) {
	.hero-acc { display: flex; flex-direction: row; }

	.hero-acc__panel {
		position: relative; inset: auto;
		flex: 1 1 0%; min-width: 0;
		opacity: 1; visibility: visible;
		transition: flex-grow 0.8s var(--oxb-ease);
	}
	.hero-acc__panel.is-active { flex-grow: 6.6; }

	.hero-acc__panel:not(.is-active) .hero-acc__shade {
		background: linear-gradient(180deg, rgba(13,27,36,0.66), rgba(13,27,36,0.86));
	}
	.hero-acc__panel.is-active .hero-acc__shade {
		background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(13,27,36,0.32), rgba(13,27,36,0.7));
	}

	.hero-acc__tab {
		display: flex; flex-direction: column; align-items: center;
		position: absolute; inset: 0; z-index: 6;
		padding: calc(var(--oxb-header-h) + 1.8rem) 0.5rem 1.7rem;
		gap: 1.4rem;
		background: transparent; border: 0; cursor: pointer; color: var(--oxb-white);
		transition: opacity 0.4s var(--oxb-ease);
		font-family: var(--oxb-font-body);
	}
	.hero-acc__panel.is-active .hero-acc__tab { opacity: 0; pointer-events: none; }
	.hero-acc__tabnum {
		font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--oxb-gold);
	}
	.hero-acc__tabname {
		writing-mode: vertical-rl; white-space: nowrap;
		font-family: var(--oxb-font-display); font-size: 1.45rem; letter-spacing: 0.02em;
		margin-bottom: auto;
	}
	.hero-acc__tabcue {
		flex: none; display: grid; place-items: center;
		width: 38px; height: 38px; border-radius: 999px;
		border: 1px solid rgba(255,255,255,0.4); color: var(--oxb-white);
		transition: background 0.35s var(--oxb-ease), color 0.35s var(--oxb-ease);
	}
	.hero-acc__tab:hover .hero-acc__tabcue { background: var(--oxb-gold); color: var(--oxb-ink); border-color: var(--oxb-gold); }
	.hero-acc__tabcue .oxb-icon { width: 1rem; height: 1rem; }

	.hero-acc__content {
		padding: var(--oxb-header-h) 2.5rem 2.5rem;
		opacity: 0; transition: opacity 0.5s var(--oxb-ease);
	}
	.hero-acc__panel.is-active .hero-acc__content { opacity: 1; }
	.hero-acc__panel:not(.is-active) .hero-acc__content { pointer-events: none; }
	.hero-acc__title { font-size: clamp(2.6rem, 1.4rem + 2.3vw, 3.7rem); max-width: 18ch; }

	.hero-dots { display: none; }
	.hero-cue { display: flex; }
}

/* ---- CTAs (self-contained: don't rely on a theme's .btn) ---- */
.oxb-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
	padding: 1rem 1.7rem;
	font-family: var(--oxb-font-body);
	font-size: 0.95rem; font-weight: 600; letter-spacing: 0.005em;
	line-height: 1; white-space: nowrap; text-decoration: none;
	border: 1.5px solid transparent; border-radius: 999px;
	transition: background var(--oxb-t), color var(--oxb-t), border-color var(--oxb-t), transform 0.2s var(--oxb-ease), box-shadow var(--oxb-t);
}
.oxb-cta .oxb-icon { width: 1.05em; height: 1.05em; transition: transform var(--oxb-t); }
.oxb-cta:hover .oxb-icon { transform: translateX(4px); }
.oxb-cta:active { transform: translateY(1px); }

.oxb-cta--primary { background: var(--oxb-gold); color: var(--oxb-ink); border-color: var(--oxb-gold); }
.oxb-cta--primary:hover { background: var(--oxb-white); color: var(--oxb-ink); border-color: var(--oxb-white); box-shadow: var(--oxb-shadow); }

.oxb-cta--ghost { background: rgba(255,255,255,0.06); color: var(--oxb-white); border-color: rgba(255,255,255,0.55); }
.oxb-cta--ghost:hover { background: var(--oxb-white); color: var(--oxb-ink); border-color: var(--oxb-white); }
