/**
 * Smashly landing – hiện đại hóa UI nhẹ, responsive, accessibility.
 * Load sau notech.css / notech-responsive.css
 */

:root {
	--smashly-radius-sm: 8px;
	--smashly-radius: 12px;
	--smashly-radius-lg: 20px;
	--smashly-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
	--smashly-shadow-hover: 0 18px 50px rgba(15, 23, 42, 0.12);
	--smashly-focus-ring: 2px solid currentColor;
	--smashly-focus-offset: 3px;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* Skip link – accessibility */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 99999;
	padding: 0.85rem 1.25rem;
	background: #fff;
	color: #0f172a;
	font-weight: 600;
	border-radius: var(--smashly-radius-sm);
	box-shadow: var(--smashly-shadow);
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	outline: var(--smashly-focus-ring);
	outline-offset: var(--smashly-focus-offset);
}

/* Focus visible – keyboard */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.thm-btn:focus-visible {
	outline: var(--smashly-focus-ring);
	outline-offset: var(--smashly-focus-offset);
}

/* Buttons & cards – hiện đại hơn */
.thm-btn,
.main-slider__btn,
.business-from__btn,
.site-footer__btn,
.get-to-know__btn {
	border-radius: var(--smashly-radius) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thm-btn:hover,
.main-slider__btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--smashly-shadow-hover);
}

.feature-one__single,
.services-one__single {
	border-radius: var(--smashly-radius);
	overflow: hidden;
	transition: box-shadow 0.25s ease;
}

.feature-one__single:hover {
	box-shadow: var(--smashly-shadow);
}

/* Typography – mobile */
.main-slider__content h2 {
	word-break: break-word;
	hyphens: auto;
	line-height: 1.15;
}

@media (max-width: 767px) {
	.main-slider__content h2 {
		font-size: clamp(1.35rem, 6.5vw, 2rem) !important;
	}

	.main-slider__content p {
		font-size: 0.95rem;
	}

	.main-slider__btn-video-box {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 1.25rem;
	}

	.get-to-know__text,
	.services-one__top-text {
		max-width: 100%;
	}

	.section-title__title {
		font-size: clamp(1.5rem, 5vw, 2.25rem) !important;
		line-height: 1.2;
	}

	.get-solutions__text {
		font-size: 0.95rem;
		line-height: 1.55;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
}

/* Độc lập nội dung – dễ đọc */
.get-to-know__right .get-to-know__text,
.services-one__top-text,
.blog-one__text {
	max-width: 65ch;
}

/* Ảnh responsive */
.feature-one__img img,
.get-to-know__img img,
.get-to-know__small-img img {
	width: 100%;
	height: auto;
	display: block;
}

/* Hero – chiều cao tối thiểu trên mobile */
@media (max-width: 991px) {
	.main-slider .swiper-slide .image-layer {
		min-height: 70vh;
	}

	.main-slider__content {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}
}

/* Footer newsletter – input không tràn */
.footer-widget__newsletter-input-box input[type="email"] {
	min-height: 48px;
	font-size: 16px; /* tránh zoom iOS */
}

/* Style switcher – không che nội dung trên mobile */
@media (max-width: 767px) {
	.style-switcher {
		bottom: 80px;
		transform: scale(0.92);
		transform-origin: bottom right;
	}

	.style-switcher h3 {
		font-size: 14px;
	}
}

/* Sticky header – tránh nhấp nháy khi scroll */
.stricky-header {
	backdrop-filter: saturate(1.2) blur(8px);
	-webkit-backdrop-filter: saturate(1.2) blur(8px);
}

/* ========== Navbar compact & responsive (Smashly) ========== */

.main-header--compact .main-header__top-inner {
	padding: 2px 20px !important;
	border-bottom-color: rgba(0, 0, 0, 0.06);
}

.main-header--compact .main-header__top-address li + li {
	margin-left: 18px !important;
}

.main-header--compact .main-header__top-address li .text p {
	font-size: 11px !important;
	line-height: 1.35 !important;
	margin: 0;
}

.main-header--compact .main-header__top-address li .icon span {
	font-size: 11px;
}

.main-header--compact .main-header__top-right-social {
	padding-left: 16px !important;
}

.main-header--compact .main-header__top-right-social::before {
	top: -6px;
	bottom: -6px;
}

.main-header--compact .main-header__top-right-social a {
	font-size: 13px;
	min-width: 28px;
	min-height: 28px;
}

.main-header--compact .main-header__top-right-social a + a {
	margin-left: 12px !important;
}

/* Hàng chính: flex thay float — gọn, căn giữa theo trục dọc */
.main-menu--compact {
	padding: 0 20px !important;
}

.stricky-header.main-menu,
.stricky-header.main-menu--compact {
	padding: 0 20px !important;
}

.main-menu--compact .main-menu__wrapper--flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 12px;
}

.main-menu--compact .main-menu__wrapper--flex::after {
	display: none;
}

.main-menu--compact .main-menu__left {
	float: none !important;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	gap: 8px 20px;
}

.main-menu--compact .main-menu__logo {
	float: none !important;
	padding: 10px 0 !important;
	margin-right: 0 !important;
	flex-shrink: 0;
}

.main-menu--compact .main-menu__logo img {
	max-height: 38px;
	width: auto;
	height: auto;
	display: block;
}

.main-menu--compact .main-menu__main-menu-box {
	float: none !important;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.main-menu--compact .main-menu__right {
	float: none !important;
	padding: 10px 0 !important;
	flex-shrink: 0;
}

.main-menu--compact .main-menu .main-menu__list > li,
.stricky-header.main-menu--compact .main-menu__list > li {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}

.main-menu--compact .main-menu .main-menu__list > li + li,
.stricky-header.main-menu--compact .main-menu__list > li + li {
	margin-left: clamp(10px, 2vw, 28px) !important;
}

.main-menu--compact .main-menu .main-menu__list > li > a,
.stricky-header.main-menu--compact .main-menu__list > li > a {
	font-size: 14px !important;
	letter-spacing: -0.01em;
}

/* CTA hotline gọn */
.main-menu__call--compact .main-menu__call-icon img {
	max-width: 36px;
	max-height: 36px;
}

.main-menu__call-label {
	font-size: 11px !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	color: var(--notech-gray, #666);
}

.main-menu__call--compact .main-menu__call-number h5 {
	margin: 0;
	font-size: 15px !important;
	line-height: 1.25 !important;
	font-weight: 600;
}

.main-menu__call-phone {
	color: var(--notech-black, #1a1a1a) !important;
	text-decoration: none;
}

.main-menu__call-phone:hover {
	color: var(--notech-base, #e23e4d) !important;
}

.main-menu--compact .main-menu__search-box {
	margin-left: 16px !important;
}

.main-menu--compact .main-menu__search-box::before {
	top: -8px;
	bottom: -8px;
	left: -14px;
}

.main-menu--compact .main-menu__search {
	font-size: 20px !important;
}

/* Theme ẩn hotline 1200–1419px — vẫn hiện bản compact */
@media (min-width: 1200px) and (max-width: 1419px) {
	.main-menu--compact .main-menu__call--compact {
		display: flex !important;
	}

	.main-menu--compact .main-menu__call-label {
		display: none;
	}
}

/* Tablet: hamburger + logo gọn */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
	.main-menu--compact {
		padding: 0 16px !important;
	}

	.main-menu--compact .main-menu__logo {
		padding: 8px 0 !important;
	}

	.main-menu--compact .main-menu__logo img {
		max-height: 34px;
	}

	.main-menu--compact .mobile-nav__toggler {
		padding: 12px 0 !important;
		font-size: 22px;
	}

	.main-header--compact .main-header__top-inner {
		padding: 2px 16px !important;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.main-menu--compact {
		padding: 0 14px !important;
	}

	.main-menu--compact .main-menu__wrapper--flex {
		flex-wrap: wrap;
	}

	.main-menu--compact .main-menu__left {
		width: 100%;
		justify-content: space-between;
		align-items: center;
	}

	.main-menu--compact .main-menu__logo {
		padding: 8px 0 !important;
		order: 1;
	}

	.main-menu--compact .main-menu__logo img {
		max-height: 32px;
	}

	.main-menu--compact .main-menu__main-menu-box {
		order: 2;
		flex: 0 0 auto;
		width: auto;
		justify-content: flex-end;
	}

	.main-menu--compact .mobile-nav__toggler {
		padding: 10px 0 10px 12px !important;
		font-size: 24px;
		line-height: 1;
	}
}

@media (min-width: 992px) {
	.main-header--compact .main-header__top-inner {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.main-menu--compact {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}

/* Services list – cuộn ngang mượt trên mobile nếu theme dùng flex row */
.services-one__list {
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 1199px) {
	.services-one__list {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}

	.services-one__single {
		flex: 1 1 280px;
		max-width: 100%;
	}
}

/* Site footer CTA */
.site-footer__top-inner {
	border-radius: var(--smashly-radius);
}

@media (max-width: 575px) {
	.site-footer__top-inner {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.site-footer__top-right {
		width: 100%;
	}

	.site-footer__btn {
		display: block;
		width: 100%;
		text-align: center;
	}
}

/* Preloader đã tắt trên landing Smashly – vào thẳng nội dung */
.preloader {
	display: none !important;
}

/* CTA cuộn nội bộ (khánh dùng class video-popup sai) */
.main-slider__scroll-cta {
	display: block;
	text-decoration: none;
	color: inherit;
}
