/* ============================================================
   BAYOUPEP USA — COA LIBRARY PAGE
   Hero + plugin grid (#pt8-wrap, owned by Zoonum COA Manager)
   + info strip + RUO bar. Purple var(--bp-primary) glassmorphism, matched
   1:1 to the brand COA page. Fonts come from the theme enqueue
   (Bebas Neue / DM Sans / JetBrains Mono) — no @import needed.
   ============================================================ */

/* ── Base ── */
#bp-coa, #bp-coa * { box-sizing: border-box; }
#bp-coa {
	position: relative;       /* sit above the animated void canvas (z-index:0) */
	z-index: 1;
	display: block;
	width: 100%;
	color: #e8e8e8;
	font-family: var(--bp-font, 'DM Sans', sans-serif);
	-webkit-font-smoothing: antialiased;

	/* Transparent so the site-wide background video (ACF → Brand & Background)
	   shows through. The hero veil + the semi-opaque body/strip/ruo panels below
	   keep text readable over the moving video. */
	background: transparent;
}
#bp-coa .coa-wrap {
	max-width: 1200px;
	width: calc(100% - 48px);
	margin-left: auto; margin-right: auto;
}

/* ════════════════════════════════════ KEYFRAMES ════════════════════════════════════ */
@keyframes coa-pulse {
	0%   { transform: scale(0.85); opacity: 1; }
	70%  { transform: scale(1.7);  opacity: 0; }
	100% { transform: scale(1.7);  opacity: 0; }
}
@keyframes coa-glowPulse {
	0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
	50%      { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}
@keyframes coa-scan {
	0%   { top: 0%;   opacity: 0.7; }
	100% { top: 100%; opacity: 0; }
}

/* ════════════════════════════════════ HERO ════════════════════════════════════ */
#bp-coa .coa-hero {
	position: relative;
	background: transparent;
	padding: 100px 0 48px;     /* clears the fixed 64px header */
	overflow: hidden;
}
#bp-coa .coa-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(2, 8, 24, 0.58);
	pointer-events: none;
	z-index: 0;
}
#bp-coa .coa-hero::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--bp-primary), transparent);
	z-index: 2;
}
#bp-coa .coa-hero-grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(#1a2a4a 1px, transparent 1px),
		linear-gradient(90deg, #1a2a4a 1px, transparent 1px);
	background-size: 48px 48px; opacity: 0.18;
	pointer-events: none; z-index: 1;
	mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 100%);
}
#bp-coa .coa-hero-glow {
	position: absolute; width: 700px; height: 300px;
	top: -80px; left: 50%; transform: translateX(-50%);
	background: radial-gradient(ellipse, rgba(var(--bp-primary-rgb),.18) 0%, transparent 70%);
	filter: blur(52px); pointer-events: none; z-index: 1;
	animation: coa-glowPulse 4s ease-in-out infinite;
}
#bp-coa .coa-scan-line {
	position: absolute; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(var(--bp-primary-rgb),0.7), transparent);
	top: 0; pointer-events: none; z-index: 2;
	animation: coa-scan 2.5s ease-in-out 0.3s 1 forwards;
}
#bp-coa .coa-hero-inner {
	position: relative; z-index: 2;
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 64px; align-items: center;
}

/* Eyebrow */
#bp-coa .coa-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--bp-caps);
	font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--bp-primary); margin-bottom: 18px;
}
#bp-coa .coa-dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--bp-primary); flex-shrink: 0;
	animation: coa-pulse 2.4s ease-out infinite;
}

/* Title */
#bp-coa .coa-title {
	font-family: var(--bp-display, 'Bebas Neue', sans-serif);
	font-size: clamp(44px, 6vw, 80px);
	line-height: 0.92; letter-spacing: 0.01em;
	color: #e8e8e8; margin: 0 0 20px;
}
#bp-coa .coa-accent { color: var(--bp-primary); }
#bp-coa .coa-sk { -webkit-text-stroke: 1.5px var(--bp-primary); color: transparent; }
#bp-coa .coa-subtitle {
	font-size: 14px; line-height: 1.75; color: #b8c8e8;
	margin: 0 0 24px; max-width: 480px;
}

/* Pills */
#bp-coa .coa-pills { display: flex; flex-wrap: wrap; gap: 8px; }
#bp-coa .coa-pill {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 7px 14px;
	background: rgba(var(--bp-primary-rgb),0.08); border: 1px solid rgba(var(--bp-primary-rgb),0.25);
	border-radius: 100px;
	font-family: var(--bp-caps);
	font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #7FB4FF;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
#bp-coa .coa-pill:hover {
	background: rgba(var(--bp-primary-rgb),0.16); border-color: rgba(var(--bp-primary-rgb),0.5);
	transform: translateY(-2px);
}
#bp-coa .coa-pill-dot {
	width: 5px; height: 5px; border-radius: 50%;
	background: var(--bp-primary); flex-shrink: 0;
}

/* Hero info cards */
#bp-coa .coa-hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#bp-coa .coa-info-card {
	display: flex; align-items: flex-start; gap: 13px;
	background: rgba(8,12,30,0.75); border: 1px solid rgba(17, 71, 184,0.25);
	border-radius: 10px; padding: 18px;
	transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
#bp-coa .coa-info-card:hover {
	border-color: rgba(var(--bp-primary-rgb),0.5); transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(var(--bp-primary-rgb),0.12);
}
#bp-coa .coa-info-icon {
	width: 36px; height: 36px; flex-shrink: 0;
	background: rgba(var(--bp-primary-rgb),0.08); border: 1px solid rgba(var(--bp-primary-rgb),0.2);
	border-radius: 8px; display: flex; align-items: center; justify-content: center;
	transition: background 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
#bp-coa .coa-info-card:hover .coa-info-icon {
	background: rgba(var(--bp-primary-rgb),0.18); border-color: rgba(var(--bp-primary-rgb),0.5);
	transform: scale(1.15) rotate(-4deg);
}
#bp-coa .coa-info-icon svg { width: 16px; height: 16px; }
#bp-coa .coa-info-label {
	font-family: var(--bp-caps);
	font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
	color: #4a6080; margin-bottom: 5px; transition: color 0.2s;
}
#bp-coa .coa-info-card:hover .coa-info-label { color: var(--bp-primary); }
#bp-coa .coa-info-val { font-size: 13px; font-weight: 500; color: #e8e8e8; }

/* ════════════════════════════════════ COA BODY ════════════════════════════════════ */
#bp-coa .coa-body {
	background: transparent;   /* let the site-wide body video show through */
	padding: 56px 0 48px;
	position: relative;
}
#bp-coa .coa-body::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--bp-primary), transparent);
}
#bp-coa .coa-library-wrap { width: 100%; max-width: 100%; overflow-x: hidden; }
#bp-coa .coa-library-wrap > *:first-child { margin-top: 0; }
#bp-coa .coa-library-wrap > *:last-child  { margin-bottom: 0; }
/* Keep the COA plugin grid (#pt8-wrap, owned by Zoonum) inside its column
   on tablets so cards/PDF tiles are never cut off at the screen edge. */
#bp-coa .coa-library-wrap #pt8-wrap,
#bp-coa .coa-library-wrap #pt8-wrap * { max-width: 100%; box-sizing: border-box; }
#bp-coa .coa-library-wrap img { height: auto; }

/* ════════════════════════════════════ INFO STRIP ════════════════════════════════════ */
#bp-coa .coa-info-strip {
	background: transparent;   /* video shows through here too */
	position: relative;
	padding: 44px 0 44px;
	border-top: 1px solid rgba(17, 71, 184, 0.2);
}
#bp-coa .coa-info-strip::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--bp-primary), transparent);
}
#bp-coa .coa-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
#bp-coa .coa-strip-item { display: flex; align-items: flex-start; gap: 14px; }
#bp-coa .coa-strip-icon {
	width: 36px; height: 36px; flex-shrink: 0;
	background: rgba(var(--bp-primary-rgb),0.08); border: 1px solid rgba(var(--bp-primary-rgb),0.18);
	border-radius: 8px; display: flex; align-items: center; justify-content: center;
	transition: background 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
#bp-coa .coa-strip-item:hover .coa-strip-icon {
	background: rgba(var(--bp-primary-rgb),0.18); border-color: rgba(var(--bp-primary-rgb),0.45);
	transform: scale(1.18);
}
#bp-coa .coa-strip-icon svg { width: 16px; height: 16px; }
#bp-coa .coa-strip-title { font-size: 13px; font-weight: 600; color: #e8e8e8; margin-bottom: 5px; }
#bp-coa .coa-strip-desc { font-size: 12px; line-height: 1.65; color: #b8c8e8; }

/* ════════════════════════════════════ RUO BAR ════════════════════════════════════ */
#bp-coa .coa-ruo-bar {
	background: transparent;   /* video shows through here too */
	border-top: 1px solid rgba(17, 71, 184, 0.2);
	padding: 16px 0;
	text-align: center;
	margin-bottom: 0;
}
#bp-coa .coa-ruo-bar p {
	font-family: var(--bp-mono, 'JetBrains Mono', monospace);
	font-size: 10px; letter-spacing: 0.04em; color: #4a6080; line-height: 1.65; margin: 0;
}

/* ════════════════════════════════════ RESPONSIVE ════════════════════════════════════ */
@media (max-width: 1024px) { #bp-coa .coa-strip-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
/* Stack the COA hero on tablets so the two columns are never squeezed/cut off. */
@media (max-width: 980px) {
	#bp-coa .coa-hero-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
	#bp-coa .coa-hero-inner { gap: 32px; }
	#bp-coa .coa-hero-cards { grid-template-columns: 1fr 1fr; }
	#bp-coa .coa-hero { padding-top: 90px; }
}
@media (max-width: 560px) {
	#bp-coa .coa-hero-cards { grid-template-columns: 1fr; }
	#bp-coa .coa-strip-grid { grid-template-columns: 1fr; }
	#bp-coa { background-attachment: scroll; background-size: cover; }
}
