/* ==========================================================================
   LAH Buttons — widget styles
   Source of truth: Button Style Guide v1.0 (assets/css/style.css)
   3 colors (Orange / Blue / White) x 2 variations (Primary / Secondary)
   ========================================================================== */

:root {
	--lah-navy: #0A1422;
	--lah-card2: #172B45;
	--lah-border: #21364F;
	--lah-blue: #2BA4E8;
	--lah-light: #C9D8E8;
	--lah-orange: #F2A743;
	--lah-grad-top: #F2A743;
	--lah-grad-bottom: #EE7325;
}

a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active,
a.btn:visited {
	text-decoration: none!important;
}

/* --------------------------------------------------------------------------
   Base — applies to every button
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: 'Saira', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 12px 20px;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: filter .15s, transform .15s, background .15s, color .15s;
}

.btn:hover {
	filter: brightness(1.07);
}

.btn:active {
	transform: translateY(1px);
}

.btn:focus-visible {
	outline: 2px solid var(--lah-blue);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Icon slot — works with both SVG icons and font icons (<i>)
   Size driven by --icon-size (set by the widget's Icon size slider)
   -------------------------------------------------------------------------- */
.btn .icon-slot {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.btn .icon-slot svg {
	width: var(--icon-size, 16px);
	height: var(--icon-size, 16px);
	display: block;
	flex: 0 0 auto;
	fill: currentColor;
	stroke: currentColor;
}

.btn .icon-slot i {
	font-size: var(--icon-size, 16px);
	line-height: 1;
}

/* --------------------------------------------------------------------------
   Variants — btn-{color}-{variation}
   -------------------------------------------------------------------------- */

/* Orange */
.btn-orange-primary {
	background: linear-gradient(180deg, var(--lah-grad-top), var(--lah-grad-bottom));
	color: var(--lah-navy);
}

.btn-orange-secondary {
	background: transparent;
	color: var(--lah-orange);
	border-color: var(--lah-orange);
	
	&:hover {
		background: var(--lah-orange);
	}
}

/* Blue */
.btn-blue-primary {
	background: var(--lah-blue);
	color: var(--lah-navy);
}

.btn-blue-secondary {
	background: transparent;
	color: var(--lah-blue);
	border-color: var(--lah-blue);
	
	&:hover {
		background: var(--lah-blue);
	}
}

/* White */
.btn-white-primary {
	background: var(--lah-light);
	color: var(--lah-navy);
}

.btn-white-secondary {
	background: transparent;
	color: var(--lah-light);
	border-color: var(--lah-light);
	
	&:hover {
		background: var(--lah-light);
	}
}



/* --------------------------------------------------------------------------
   Sizes
   -------------------------------------------------------------------------- */
.btn-sm {
	padding: 8px 14px;
	font-size: 13px;
}

.btn-lg {
	padding: 15px 26px;
	font-size: 15px;
	text-transform: uppercase;
}

.btn-block {
	width: 100%;
}

/* --------------------------------------------------------------------------
   Optional pulsing glow — hero primary CTA only
   -------------------------------------------------------------------------- */
@keyframes lahPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(43, 164, 232, 0); }
	50%      { box-shadow: 0 0 26px 2px rgba(43, 164, 232, .45); }
}

.btn.pulse {
	animation: lahPulse 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.btn.pulse {
		animation: none;
	}
}

/* --------------------------------------------------------------------------
   "Added" JS state (~1.1s after click) — anchors can't be :disabled,
   so the JS toggles .is-added instead
   -------------------------------------------------------------------------- */
.btn.is-added {
	opacity: .55;
	cursor: not-allowed;
	pointer-events: none;
}
