/* ==========================================================================
   buytvphoneinternet.com — custom styles layered on top of Tailwind utilities.
   Telecom "signal" design language: paper canvas, hard-edged tactile cards,
   marquee ticker, animated equalizer + signal waves, marker-highlight type.
   ========================================================================== */

:root {
	--reveal-distance: 28px;
	--ink: #14110b;
	--paper: #f6f1e7;
	--sticky-call-top-height: 2.75rem;
	--sticky-call-bar-height: 3rem;
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	background-color: var(--paper);
}

/* Faint paper grain so the cream canvas reads as a material, not flat fill. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.4;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

main,
#site-footer {
	position: relative;
	z-index: 1;
}

#site-header {
	position: relative;
	z-index: 50;
}

/* Emphasis word: solid electric blue (no rainbow gradient slop). */
.text-gradient {
	color: #1b45ff;
}

/* Marker-highlight swash behind a hero word — hand-drawn telecom energy. */
.highlight {
	position: relative;
	white-space: nowrap;
}

.highlight::after {
	content: "";
	position: absolute;
	left: -0.1em;
	right: -0.1em;
	bottom: 0.08em;
	height: 0.42em;
	background: #cef34a;
	z-index: -1;
	transform: rotate(-1.2deg);
	border-radius: 2px;
}

/* Mono technical "kicker" label used above headings. */
.kicker {
	font-family: "Space Mono", ui-monospace, monospace;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

/* Tactile hard-edged card: thick ink border + solid offset shadow. */
.card-hard {
	border: 2px solid #14110b;
	box-shadow: 6px 6px 0 0 #14110b;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-hard:hover {
	transform: translate(-3px, -3px);
	box-shadow: 9px 9px 0 0 #14110b;
}

.card-hard.on-dark {
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow: 6px 6px 0 0 rgba(206, 243, 74, 0.9);
}

.card-hard.on-dark:hover {
	box-shadow: 9px 9px 0 0 rgba(206, 243, 74, 0.9);
}

/* Glass surfaces (used on dark hero panels). */
.glass-dark {
	background: rgba(20, 17, 11, 0.55);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient ring — recolored to blue → lime signal. */
.ring-gradient {
	position: relative;
}

.ring-gradient::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(135deg, #1b45ff, #cef34a 70%, #ff5c35);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

/* Dotted node grid for dark sections. */
.dot-grid {
	background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
	background-size: 22px 22px;
}

/* ---- Provider marquee ticker ---------------------------------------------- */
.marquee {
	overflow: hidden;
	background: linear-gradient(180deg, #efe5d2 0%, #f6f1e7 45%, #f6f1e7 55%, #efe5d2 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.marquee__track {
	display: flex;
	width: max-content;
	align-items: center;
	will-change: transform;
	animation: marquee-scroll 50s linear infinite;
}

@keyframes marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.marquee__group {
	display: flex;
	flex-shrink: 0;
	align-items: center;
}

.marquee__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 7rem;
	height: 2.5rem;
	margin-inline: 1.5rem;
	padding: 0.25rem 0.5rem;
	box-sizing: border-box;
	background: transparent;
	border: none;
	opacity: 0.92;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.marquee__logo:hover {
	opacity: 1;
	transform: scale(1.03);
}

.marquee__logo img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

@media (min-width: 640px) {
	.marquee__logo {
		width: 8rem;
		height: 2.875rem;
		margin-inline: 1.75rem;
	}
}

.marquee__star {
	flex-shrink: 0;
	margin-inline: 0.25rem;
	font-size: 0.625rem;
	opacity: 0.55;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

.marquee__logo img {
	filter: contrast(1.04) saturate(1.02);
}

/* ---- Equalizer (bandwidth bars) ------------------------------------------- */
.eq {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 100%;
}

.eq span {
	flex: 1;
	background: linear-gradient(180deg, #cef34a, #1b45ff);
	border-radius: 3px;
	transform-origin: bottom;
	animation: equalize 1.1s ease-in-out infinite;
}

@keyframes equalize {
	0%,
	100% {
		transform: scaleY(0.3);
	}
	50% {
		transform: scaleY(1);
	}
}

/* ---- Animated signal waves ------------------------------------------------ */
.wave-track {
	animation: wave-slide 9s linear infinite;
}

@keyframes wave-slide {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* ---- Scroll reveal -------------------------------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(var(--reveal-distance));
	transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---- FAQ accordion -------------------------------------------------------- */
.faq-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}

.faq-item.open .faq-answer {
	grid-template-rows: 1fr;
}

.faq-answer > div {
	overflow: hidden;
}

.faq-item.open .faq-icon {
	transform: rotate(45deg);
}

/* ---- Header ---------------------------------------------------------------- */
.site-header {
	transition:
		top 0.28s cubic-bezier(0.16, 1, 0.3, 1),
		background-color 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-panel {
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

/* ---- Sticky click-to-call bar (top, after hero) --------------------------- */
.sticky-call-top {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 60;
	height: var(--sticky-call-top-height);
	background: var(--paper);
	border-bottom: 2px solid var(--ink);
	box-shadow: 0 6px 20px rgba(20, 17, 11, 0.08);
	transform: translateY(-100%);
	opacity: 0;
	visibility: hidden;
	transition:
		transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.28s ease,
		visibility 0.28s ease;
}

.sticky-call-top.is-visible {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

body.sticky-call-top-visible .site-header {
	top: var(--sticky-call-top-height);
}

body.sticky-call-top-visible #header-utility {
	display: none !important;
}

.sticky-call-top__inner {
	height: 100%;
}

.sticky-call-top__link {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	padding-inline: 1rem;
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.sticky-call-top__link:hover {
	background: rgba(20, 17, 11, 0.04);
}

.sticky-call-top__label {
	font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
	text-align: center;
}

.sticky-call-top__label-short {
	display: none;
}

.sticky-call-top__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #1b45ff;
	white-space: nowrap;
}

.sticky-call-top__phone i {
	font-size: 0.875rem;
}

@media (max-width: 1023px) {
	.sticky-call-top {
		display: none !important;
	}

	body.sticky-call-top-visible .site-header {
		top: 0 !important;
	}
}

@media (min-width: 1024px) {
	.sticky-call-top__label-full {
		display: inline;
	}

	.sticky-call-top__label-short {
		display: none;
	}
}

@media (max-width: 480px) {
	.sticky-call-top__label-full {
		display: none;
	}

	.sticky-call-top__label-short {
		display: inline;
	}

	.sticky-call-top__phone {
		font-size: 0.875rem;
	}
}

/* ---- Sticky click-to-call bar (mobile bottom) ----------------------------- */
@media (max-width: 1023px) {
	body.has-sticky-call {
		padding-bottom: calc(var(--sticky-call-bar-height) + env(safe-area-inset-bottom, 0px));
	}
}

@media (min-width: 1024px) {
	body.has-sticky-call {
		padding-bottom: 0;
	}

	.sticky-call-bar {
		display: none;
	}
}

.sticky-call-bar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 60;
	border-top: 2px solid #14110b;
	box-shadow: 0 -8px 24px rgba(20, 17, 11, 0.12);
	background: linear-gradient(135deg, #cef34a, #b8e035);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sticky-call-bar__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	min-height: var(--sticky-call-bar-height);
	padding: 0.75rem 1rem;
	box-sizing: border-box;
	background: transparent;
	color: #14110b;
	font-weight: 700;
	font-size: 0.9375rem;
	transition: background-color 0.18s ease;
}

.sticky-call-bar__link:active {
	background: rgba(20, 17, 11, 0.06);
}

.sticky-call-bar__text strong {
	font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	letter-spacing: -0.01em;
}

/* ---- Mid-page call strip -------------------------------------------------- */
.call-strip {
	border-block: 2px solid #14110b;
}

/* ---- Provider trust row --------------------------------------------------- */
.provider-trust__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
}

.provider-trust__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 6.75rem;
	height: 2.625rem;
	padding: 0.35rem 0.55rem;
	box-sizing: border-box;
	background: rgba(246, 241, 231, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.5rem;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
	opacity: 0.96;
}

.provider-trust__logo:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	opacity: 1;
}

.provider-trust__logo img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	filter: contrast(1.04) saturate(1.02);
}

@media (min-width: 640px) {
	.provider-trust__logo {
		width: 7.5rem;
		height: 2.875rem;
		padding: 0.4rem 0.65rem;
	}
}

/* ---- Call CTA rating line ------------------------------------------------- */
.call-rating {
	line-height: 1.3;
}

/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.sticky-call-top,
	.site-header,
	.marquee__track {
		transition: none;
		animation: none !important;
	}
	.wave-track,
	.eq span {
		animation: none !important;
	}
}
