/* ==========================================================================
   Virtual360 Premium – responsive.css
   Tested widths: 320, 375, 390, 430, 768, 1024, 1280, 1440, 1920.
   ========================================================================== */

@media (min-width: 1600px) {
	:root { --v360-container: 1320px; }
}

@media (max-width: 1320px) {
	.v360-header__phone { display: none; }
}

/* Tablet landscape and below: mobile navigation */
@media (max-width: 1120px) {
	.v360-header__phone { display: none; }
	.v360-burger { display: grid; }
	.v360-header__actions { margin-left: auto !important; }
	/* backdrop-filter would trap the fixed mobile menu inside the header box. */
	.v360-header, .has-dark-hero .v360-header.is-scrolled, .has-dark-hero .v360-header.is-open { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
	.v360-header { background: rgba(255, 255, 255, 0.98); }
	.has-dark-hero .v360-header.is-scrolled { background: rgba(7, 20, 38, 0.97); }
	.v360-nav {
		position: fixed; inset: var(--v360-header-h) 0 0 0; z-index: 99; margin: 0;
		background: var(--v360-navy); overflow-y: auto; overscroll-behavior: contain;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 0.3s var(--v360-ease), transform 0.4s var(--v360-ease), visibility 0s linear 0.4s;
	}
	.admin-bar .v360-nav { top: calc(var(--v360-header-h) + 46px); }
	.v360-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.v360-nav__panel { display: flex; flex-direction: column; min-height: 100%; padding: 1.5rem var(--v360-gutter) 2rem; }
	.v360-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.v360-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
	.v360-menu > li > a, .v360-menu__link { flex: 1; padding: 1rem 0; font-size: 1.25rem; font-family: var(--v360-font-head); color: #fff !important; border-radius: 0; }
	.v360-menu > .current-menu-item > a::after { display: none; }
	.v360-submenu-toggle { width: 44px; height: 44px; margin: 0; color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.15); }
	.v360-submenu, .v360-submenu--mega {
		position: static; width: 100%; min-width: 0; transform: none; opacity: 1; visibility: visible;
		display: none; transition: none;
	}
	.v360-submenu.is-open { display: block; transform: none; }
	.v360-submenu__inner, .v360-submenu--mega .v360-submenu__inner { display: block; padding: 0 0 1rem; background: transparent; border: 0; box-shadow: none; }
	.v360-submenu--mega .v360-submenu__list { grid-template-columns: 1fr; }
	.v360-submenu__link { color: rgba(255, 255, 255, 0.85) !important; padding: 0.65rem 0.5rem; }
	.v360-submenu__link:hover { background: rgba(255, 255, 255, 0.06); }
	.v360-submenu__icon { width: 34px; height: 34px; background: rgba(255, 255, 255, 0.08); color: #fff; }
	.v360-submenu__text span { color: rgba(255, 255, 255, 0.55); }
	.v360-submenu__aside { display: none; }
	.v360-nav__mobile-extra { display: grid; gap: 1rem; margin-top: auto; padding-top: 2rem; }
	.v360-nav__phone { display: inline-flex; justify-content: center; gap: 0.5rem; color: #fff; text-decoration: none; font-weight: 600; }
	.v360-header.is-open { background: var(--v360-navy) !important; }
	.v360-header.is-open .v360-burger { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
	.v360-header.is-open .v360-burger__lines i { background: #fff; }
	body.v360-nav-open { overflow: hidden; }

	.v360-hero__inner { grid-template-columns: 1fr; }
	.v360-hero { min-height: auto; }
	.v360-hero__visual { max-width: 560px; margin: 1rem auto 0; }
	.v360-hero__content { max-width: 720px; }
	.v360-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2.5rem; }
	.v360-steps__line { display: none; }
	.v360-footer__grid { grid-template-columns: 1fr 1fr; }
	.v360-submenu--mega .v360-submenu__list { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
	.v360-grid, .v360-grid--4, .v360-testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.v360-solutions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.v360-industries-wrap, .v360-faq-section__grid, .v360-why__grid, .v360-solution-split { grid-template-columns: 1fr; }
	.v360-industries-wrap__head { position: static; }
	.v360-trust__stats { grid-template-columns: 1fr; }
	.v360-trust__since { padding: 0 0 1.5rem; border-right: 0; border-bottom: 1px solid var(--v360-border); grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 1rem; }
	.v360-service-intro, .v360-about, .v360-project-detail, .v360-contact, .v360-quote { grid-template-columns: 1fr; }
	.v360-sticky-card, .v360-about__facts, .v360-project-facts, .v360-quote__aside { position: static; }
	.v360-page-hero.has-image .v360-page-hero__inner { grid-template-columns: 1fr; }
	.v360-page-hero__media { max-width: 640px; }
	.v360-cta { grid-template-columns: 1fr; }
	.v360-faq-page { grid-template-columns: 1fr; }
	.v360-faq-page__nav { position: static; }
	.v360-faq-page__nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
	.v360-faq-page__nav a { border: 1px solid var(--v360-border); border-radius: 999px; }
	.v360-why__media { max-width: 640px; }
}

@media (max-width: 782px) {
	.admin-bar .v360-header { top: 46px; }
	.admin-bar .v360-nav { top: calc(var(--v360-header-h) + 46px); }
}
@media (max-width: 600px) {
	.admin-bar .v360-header { top: 0; }
}

@media (max-width: 767px) {
	:root { --v360-header-h: 68px; }
	.v360-header__cta { display: none; }
	.v360-logo__img { height: 34px; }
	.has-dark-hero .v360-logo__img, .v360-footer .v360-logo__img { height: 40px; padding: 5px 10px; }
	.v360-split-head { flex-direction: column; align-items: flex-start; }
	.v360-grid, .v360-grid--2, .v360-grid--3, .v360-grid--4, .v360-testimonials, .v360-projects, .v360-solutions__grid { grid-template-columns: 1fr; }
	.v360-industries { grid-template-columns: 1fr; }
	.v360-reasons, .v360-benefits { grid-template-columns: 1fr; }
	.v360-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
	.v360-steps { grid-template-columns: 1fr; gap: 0; }
	.v360-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; text-align: left; padding: 0 0 1.75rem; }
	.v360-step::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--v360-border); }
	.v360-step:last-child::before { display: none; }
	.v360-step__num { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
	.v360-step h3 { margin: 0.6rem 0 0.25rem; }
	.v360-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.v360-footer__bottom { flex-direction: column; align-items: flex-start; margin-bottom: 64px; }
	.v360-hero__actions .v360-btn, .v360-cta__actions .v360-btn { width: 100%; }
	.v360-hero__points { gap: 0.5rem 1rem; font-size: 0.875rem; }
	.v360-hero__scroll { display: none; }
	.v360-mock--chip { display: none; }
	.v360-mock--score { left: 0; bottom: 4%; padding: 10px 14px 10px 10px; }
	.v360-ring { width: 40px; height: 40px; }
	.v360-mock--chart { width: 46%; right: 0; }
	.v360-orb--1 { width: 360px; height: 360px; }
	.v360-why__badge { left: 1rem; bottom: -1.25rem; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.v360-newsletter__row { flex-direction: column; }

	/* Mobile sticky contact bar */
	.v360-mobile-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96);
		border-top: 1px solid var(--v360-border); box-shadow: 0 -8px 24px -12px rgba(7, 20, 38, 0.25);
		backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
		transform: translateY(110%); transition: transform 0.4s var(--v360-ease);
	}
	.v360-mobile-bar.is-visible { transform: none; }
	.v360-mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; color: var(--v360-navy); font-size: 0.75rem; font-weight: 700; text-decoration: none; }
	.v360-mobile-bar a .v360-icon { width: 22px; height: 22px; }
	.v360-mobile-bar a.is-primary { background: var(--v360-brand-strong); color: #fff; }
	.v360-whatsapp-float { display: none; }
	body { padding-bottom: 0; }
}

@media (max-width: 400px) {
	:root { --v360-gutter: 16px; }
	.v360-hero__title { font-size: 2.25rem; }
	.v360-stats { grid-template-columns: 1fr 1fr; }
	.v360-stat dd { font-size: 1.875rem; }
	.v360-btn--lg { padding-inline: 1.25rem; }
	.v360-btn { white-space: normal; text-align: center; max-width: 100%; }
	.v360-filters button, .v360-filters a { padding: 0.5rem 0.9rem; font-size: 0.875rem; }
}

@media (hover: none) {
	.v360-card:hover, .v360-industry:hover { transform: none; }
}

@media print {
	.v360-header, .v360-footer, .v360-whatsapp-float, .v360-mobile-bar, .v360-cta-section, .v360-hero__bg { display: none !important; }
	.v360-dark { background: #fff !important; color: #000 !important; }
	.v360-dark h1, .v360-dark h2 { color: #000 !important; }
	[data-reveal], [data-hero-item], [data-split] { opacity: 1 !important; transform: none !important; }
}
