/**
 * Responsive — header, footer, homepage, forms.
 * Breakpoints cover 320 / 375 / 480 / 768 / 1024 / 1440.
 */

html {
	overflow-x: hidden;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

.nyli-header,
.nyli-footer,
.nyli-main,
.elementor {
	max-width: 100%;
}

/* Large desktop — ~60px side margins at 1536 */
@media (min-width: 1440px) {
	:root {
		--nyli-container: 1240px;
		--nyli-header-height: 123px;
	}

	.nyli-header__inner {
		width: min(100% - 7.5rem, var(--nyli-header-container));
	}

	.nyli-header__brand .custom-logo {
		width: 330px;
		max-width: 330px;
		max-height: 112px;
	}

	.nyli-menu--primary {
		gap: 0 1.75rem;
	}

	.nyli-menu--primary > li > a {
		font-size: 15px;
		font-weight: 400;
	}
}

@media (max-width: 1439px) and (min-width: 1280px) {
	.nyli-header__inner {
		width: min(100% - 4.5rem, var(--nyli-header-container));
		height: 118px;
		min-height: 118px;
		max-height: 118px;
		column-gap: 1.15rem;
	}

	.nyli-header__brand .custom-logo {
		width: 300px;
		max-width: 300px;
		max-height: 102px;
	}

	.nyli-menu--primary {
		gap: 0 1.35rem;
	}

	.nyli-menu--primary > li > a {
		font-size: 14px;
		font-weight: 400;
	}

	.nyli-phone-btn {
		width: 220px;
		height: 48px;
		font-size: 16px;
	}
}

@media (max-width: 1279px) and (min-width: 993px) {
	.nyli-header__inner {
		width: min(100% - 2.5rem, var(--nyli-header-container));
		height: auto;
		min-height: 100px;
		max-height: none;
		column-gap: 1rem;
		padding-block: 0.35rem;
	}

	.nyli-header__brand .custom-logo {
		width: 250px;
		max-width: 250px;
		max-height: 88px;
	}

	.nyli-menu--primary {
		gap: 0 1rem;
	}

	.nyli-menu--primary > li > a {
		font-size: 13px;
		font-weight: 400;
		letter-spacing: 0.35px;
	}

	.nyli-phone-btn {
		width: 200px;
		height: 46px;
		font-size: 15px;
		padding: 0 0.85rem;
		gap: 0.5rem;
	}
}

@media (max-width: 1100px) and (min-width: 993px) {
	.nyli-menu--primary {
		gap: 0 0.75rem;
	}

	.nyli-menu--primary > li > a {
		font-size: 12.5px;
	}

	.nyli-phone-btn {
		width: auto;
		min-width: 180px;
		padding: 0 0.85rem;
	}
}

@media (max-width: 1024px) {
	.nyli-services-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.nyli-fleet-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 992px) {
	.nyli-header__inner {
		grid-template-columns: 1fr auto;
		gap: 0.75rem;
		height: auto;
		min-height: 80px;
		max-height: none;
		width: min(100% - 2rem, var(--nyli-header-container));
		padding-block: 0.65rem;
	}

	.nyli-header__brand .custom-logo {
		width: 200px;
		max-width: 52vw;
	}

	.nyli-header__toggle {
		display: inline-flex;
	}

	.nyli-header__panel {
		display: none;
		grid-column: 1 / -1;
		width: 100%;
		max-width: 100%;
		padding: 0.5rem 0 1rem;
		border-top: 1px solid rgba(201, 162, 77, 0.22);
	}

	.nyli-header.is-nav-open .nyli-header__panel {
		display: block;
		max-height: calc(100vh - 6.5rem);
		max-height: calc(100dvh - 6.5rem);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.nyli-header__nav {
		justify-self: stretch;
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	.nyli-menu--primary {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		flex-wrap: nowrap;
		width: 100%;
		gap: 0;
	}

	.nyli-menu--primary > li > a {
		justify-content: space-between;
		width: 100%;
		padding: 0.9rem 0;
		border-bottom: 1px solid rgba(201, 162, 77, 0.12);
		font-size: 0.92rem;
	}

	.nyli-menu--primary > li > a::after {
		display: none;
	}

	.nyli-menu--primary > .menu-item-has-children > a::before {
		display: none;
	}

	.nyli-menu--primary .menu-item-has-children {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.nyli-menu--primary .menu-item-has-children > a {
		grid-column: 1;
	}

	.nyli-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--nyli-gold);
		cursor: pointer;
		grid-column: 2;
		grid-row: 1;
	}

	.nyli-submenu-toggle span {
		display: block;
		width: 10px;
		height: 10px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}

	.nyli-menu--primary .menu-item-has-children.is-submenu-open > .nyli-submenu-toggle span {
		transform: rotate(225deg);
	}

	.nyli-menu--primary .sub-menu {
		position: static;
		left: auto;
		top: auto;
		width: 100%;
		min-width: 0;
		display: none;
		transform: none;
		opacity: 1;
		visibility: visible;
		border: 0;
		background: transparent;
		padding: 0 0 0.5rem 0.75rem;
		grid-column: 1 / -1;
	}

	.nyli-menu--primary .menu-item-has-children.is-submenu-open > .sub-menu {
		display: block;
	}

	.nyli-header__actions {
		justify-self: stretch;
		margin-top: 1rem;
	}

	.nyli-phone-btn {
		width: 100%;
		height: 48px;
		justify-content: center;
	}

	.nyli-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 2rem 1.5rem;
	}

	.nyli-footer__col--company {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.nyli-services-grid {
		grid-template-columns: 1fr;
	}

	.nyli-single-service__cta,
	.nyli-single-fleet__cta {
		flex-direction: column;
	}

	.nyli-single-service__cta .nyli-btn,
	.nyli-single-fleet__cta .nyli-btn {
		width: 100%;
		justify-content: center;
	}

	.nyli-archive-header__title {
		font-size: 2rem;
	}
}

@media (max-width: 767px) {
	.nyli-fleet-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.nyli-brand__mark {
		font-size: 1.45rem;
		letter-spacing: 0.12em;
	}

	.nyli-brand__tag {
		font-size: 0.62rem;
		letter-spacing: 0.24em;
	}

	.nyli-footer__grid {
		grid-template-columns: 1fr;
	}

	.nyli-footer__top {
		padding-block: 2.25rem 1.5rem;
	}

	.nyli-service-card__body,
	.nyli-fleet-card__body {
		padding: 1.15rem;
	}
}

@media (max-width: 480px) {
	.nyli-container {
		width: min(100% - 1.15rem, var(--nyli-container));
	}

	.nyli-main {
		padding-block: 1.15rem;
	}

	.nyli-header__inner {
		min-height: 72px;
		padding-block: 0.65rem;
	}

	.nyli-header__brand .custom-logo {
		width: 168px;
		max-width: 58vw;
	}

	.nyli-phone-btn__text {
		font-size: 0.95rem;
	}
}

@media (max-width: 375px) {
	.nyli-brand__mark {
		font-size: 1.3rem;
	}

	.nyli-btn {
		width: 100%;
	}
}

@media (max-width: 320px) {
	.nyli-container {
		width: min(100% - 0.9rem, var(--nyli-container));
	}

	.nyli-brand__tag {
		letter-spacing: 0.18em;
	}

	.nyli-menu--primary > li > a {
		font-size: 0.88rem;
	}
}

/* Prefer reduced motion */
@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;
	}
}
