/**
 * Mobile-first refinements — smooth flow & precise layout
 */

@media (max-width: 991px) {
	html,
	body.yavittech-cyber {
		overflow-x: hidden;
		max-width: 100%;
	}

	.site-content,
	.site-header-fixed,
	.footer-cyber,
	.container {
		max-width: 100%;
	}

	.live-status-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
		padding: 0.35rem 0;
	}

	.live-status-title {
		font-size: 0.68rem;
		line-height: 1.35;
		word-break: break-word;
	}

	.live-status-meta {
		width: 100%;
		font-size: 0.65rem;
		line-height: 1.45;
	}

	.live-meta-label {
		flex: 1;
		min-width: 0;
		word-break: break-word;
	}

	.live-clock-sep {
		display: none;
	}

	.live-clock {
		display: block;
		width: 100%;
		margin-top: 0.15rem;
		font-size: 0.65rem;
	}

	.navbar-cyber .container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.navbar-nav {
		padding: 0.75rem 0 1rem;
		gap: 0.15rem;
	}

	.nav-link-cyber {
		padding: 0.75rem 1rem !important;
		font-size: 0.95rem;
	}

	.btn-talk-live {
		width: 100%;
		justify-content: center;
		margin-top: 0.5rem;
		padding: 0.85rem 1rem !important;
	}

	.brand-cyber {
		font-size: 1.35rem;
	}

	.hero-section {
		padding-top: 1.5rem;
		padding-bottom: 2.5rem;
		min-height: auto;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	.hero-section .d-flex.gap-3 {
		flex-direction: column;
		gap: 0.65rem !important;
	}

	.hero-section .btn-cyber,
	.hero-section .btn-phone-visible,
	.hero-section .btn-whatsapp {
		width: 100%;
		text-align: center;
		justify-content: center;
		display: flex;
		align-items: center;
		padding: 0.8rem 1.25rem !important;
		font-size: 0.82rem !important;
	}

	.section-padding {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.section-title {
		font-size: 1.65rem;
	}

	.section-subtitle {
		font-size: 0.95rem;
	}

	.portfolio-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
		scrollbar-width: none;
	}

	.portfolio-tabs::-webkit-scrollbar {
		display: none;
	}

	.portfolio-tab {
		flex-shrink: 0;
		scroll-snap-align: start;
		font-size: 0.75rem;
		padding: 0.55rem 1.1rem;
	}

	.portfolio-grid {
		grid-template-columns: 1fr;
	}

	.cta-phone-banner .d-flex {
		flex-direction: column;
	}

	.cta-phone-banner .btn {
		width: 100%;
	}

	.sidebar-hanger {
		top: auto;
		bottom: max(16px, env(safe-area-inset-bottom));
		transform: none;
		left: 0;
		right: auto;
	}

	.sidebar-hanger-tab {
		border-radius: 0 12px 12px 0;
		box-shadow: 4px 0 30px rgba(0, 245, 212, 0.35);
	}

	.sidebar-hanger-pulse {
		border-radius: 0 12px 12px 0;
	}

	.sidebar-hanger-tab-label {
		display: inline;
	}

	.page-hero {
		padding-top: 1.5rem;
		padding-bottom: 2rem;
	}

	.leader-card-cyber {
		margin-bottom: 0.5rem;
	}

	.process-step {
		margin-bottom: 0.5rem;
	}

	.footer-cyber {
		padding: 2.75rem 0 2rem;
	}

	.footer-col-links,
	.footer-col-contact {
		padding-top: 0.25rem;
	}

	.footer-bottom-row {
		margin-top: 1.75rem;
		padding-top: 1.25rem;
	}

	.footer-tagline {
		font-size: 0.72rem;
	}
}

@media (max-width: 576px) {
	.live-status-pill {
		align-items: flex-start;
	}

	.live-status-meta {
		display: grid;
		gap: 0.2rem;
	}

	.live-dot {
		display: none;
	}

	.stat-number {
		font-size: 1.6rem;
	}

	.mt-5.d-flex.gap-5 {
		gap: 1.5rem !important;
	}

	.testimonial-cyber .quote-text {
		font-size: 1rem;
	}

	.contact-form-cyber .btn-cyber,
	.sidebar-hanger-call,
	.page-cta .btn {
		width: 100%;
	}

	.sidebar-hanger {
		bottom: max(14px, env(safe-area-inset-bottom));
	}

	.sidebar-hanger-tab {
		width: 42px;
		font-size: 0.62rem;
		padding: 0.85rem 0.4rem;
	}

	.sidebar-hanger-tab-label {
		font-size: 0.58rem;
	}
}

.live-meta-label--mobile {
	display: none;
}

@media (max-width: 991px) {
	.live-meta-label--desktop {
		display: none;
	}

	.live-meta-label--mobile {
		display: inline;
	}
}

/* Smooth scrolling & touch */
@media (hover: none) and (pointer: coarse) {
	html {
		scroll-behavior: smooth;
		-webkit-text-size-adjust: 100%;
	}

	body.yavittech-cyber {
		-webkit-overflow-scrolling: touch;
	}

	a,
	button,
	.btn,
	.portfolio-tab,
	.nav-link-cyber {
		-webkit-tap-highlight-color: rgba(0, 245, 212, 0.15);
	}

	#matrix-canvas {
		opacity: 0.12;
	}

	.sidebar-hanger-tab {
		min-width: 44px;
		min-height: 44px;
	}
}
