/*
 * sonic-boom.css, conversion layer + accessibility polish.
 */

/* SKIP-TO-CONTENT LINK */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 10000;
	background: var(--primary);
	color: var(--bg);
	padding: 12px 20px;
	border-radius: 0 0 8px 0;
	font-family: var(--sans);
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus {
	left: 0;
	top: 0;
	width: auto;
	height: auto;
	overflow: visible;
	outline: 3px solid var(--gold);
}
#main-content { outline: none; }

/* STICKY MOBILE CTA BAR */
.boom-mobile-cta {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 9999;
	display: none;
	background: var(--text);
	padding: 10px 12px;
	box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
	gap: 8px;
}
.boom-mobile-cta a {
	flex: 1;
	padding: 14px 10px;
	border-radius: 100px;
	text-align: center;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.boom-mobile-cta .boom-call {
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--rule-strong);
}
.boom-mobile-cta .boom-quote {
	background: var(--gold);
	color: var(--text);
}
.boom-mobile-cta .boom-call::before { content: '\1F4DE'; }
.boom-mobile-cta .boom-quote::before { content: '\2605'; }

@media (max-width: 768px) {
	.boom-mobile-cta { display: flex; }
	body { padding-bottom: 72px; }
	.footer { padding-bottom: 90px; }
}

/* PRIMARY CTA PULSE GLOW */
@keyframes boom-pulse-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 71, 0.55); }
	50%      { box-shadow: 0 0 0 14px rgba(212, 165, 71, 0); }
}
.btn-primary,
.rec-ctas .btn-primary {
	animation: boom-pulse-glow 2.4s ease-out infinite;
	position: relative;
	z-index: 1;
}
.btn-primary:hover {
	animation: none;
	transform: translateY(-1px);
	transition: transform 0.15s ease-out;
}

/* REC CARD ENTRANCE */
@keyframes boom-card-entrance {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
.rec-card {
	animation: boom-card-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: 0.2s;
}

@keyframes boom-ribbon-shimmer {
	0%, 100% { background: var(--primary); }
	50%      { background: var(--primary-dark); }
}
.rec-ribbon {
	animation: boom-ribbon-shimmer 4s ease-in-out infinite;
}

/* CARD HOVER LIFT */
.home-tile {
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
				box-shadow 0.25s ease-out,
				border-color 0.25s ease-out;
}
.home-tile:hover {
	transform: translateY(-6px) scale(1.01);
	box-shadow: 0 16px 40px -10px rgba(26, 46, 34, 0.25);
	border-color: var(--primary);
}
.home-tile:hover .home-tile-cta {
	letter-spacing: 0.04em;
}

.comp-row {
	transition: transform 0.2s ease-out,
				border-color 0.2s ease-out,
				box-shadow 0.2s ease-out;
}
.comp-row:hover {
	transform: translateX(4px);
	border-color: var(--text);
	box-shadow: -4px 0 0 var(--primary);
}

/* STICKY HEADER */
.topbar {
	position: sticky;
	top: 0;
	z-index: 100;
}
.nav {
	position: sticky;
	top: 36px;
	z-index: 99;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: rgba(248, 245, 238, 0.95);
}

/* HERO ENTRANCE */
@keyframes boom-hero-headline {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}
.hero h1 {
	animation: boom-hero-headline 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: 0.1s;
}
.hero .deck {
	animation: boom-hero-headline 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: 0.3s;
}
.hero-kicker {
	animation: boom-hero-headline 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-byline {
	animation: boom-hero-headline 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: 0.5s;
}

/* MOBILE CTA TOUCH BOOST */
@media (max-width: 768px) {
	.rec-ctas { grid-template-columns: 1fr; }
	.rec-ctas .btn {
		padding: 18px 22px;
		font-size: 16px;
		min-height: 56px;
	}
	.rec-contact dt { font-size: 10px; }
	.rec-contact dd a { font-size: 16px; font-weight: 700; }
	.rec-contact dd a[href^="tel:"] {
		display: inline-block;
		padding: 8px 14px;
		background: var(--primary-soft);
		border-radius: 8px;
		color: var(--primary-dark);
	}
}

/* METHODOLOGY POLISH */
.method-card {
	transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.method-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px -10px rgba(26, 46, 34, 0.18);
}
.method-seal {
	animation: boom-seal-spin 30s linear infinite;
}
@keyframes boom-seal-spin {
	to { transform: rotate(360deg); }
}
.method-card:hover .method-seal {
	animation-play-state: paused;
}

/* WARNING CHIPS PULSE */
@keyframes boom-warn-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
	50%      { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
}
.comp-gap-chip {
	animation: boom-warn-pulse 3s ease-out infinite;
}
.comp-gap-chip:nth-child(2n) { animation-delay: 1.5s; }

/* FOCUS STATES */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
	border-radius: 4px;
}

/* SMOOTH SCROLL + REDUCED MOTION */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* MOBILE NAV */
@media (max-width: 900px) {
	.nav-inner {
		flex-wrap: wrap;
		gap: 12px;
		padding: 14px 20px;
	}
	.nav-cta {
		font-size: 13px;
		padding: 10px 14px;
	}
}

/* HERO MIN-HEIGHT */
.hero {
	min-height: 480px;
	display: flex;
	align-items: center;
}
.hero-inner { width: 100%; }
@media (max-width: 768px) {
	.hero { min-height: 380px; padding-top: 60px; padding-bottom: 80px; }
}
