/* ==========================================================================
   RESPONSIVE — Breakpoints: 320-480 / 481-767 / 768-1023 / 1024-1439 / 1440+
   Only layout/spacing/overflow fixes — no color/typography/branding changes.
   ========================================================================== */

body {
	max-width: 100%;
	overflow-x: clip;
}
img, svg, video {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   HEADER / HAMBURGER MENU
   ========================================================================== */
button.jack-hamburger {
	display: none !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 5px !important;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 1px solid rgba(217,164,65,0.4) !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	z-index: 60 !important;
	flex-shrink: 0;
}
button.jack-hamburger span {
	display: block !important;
	width: 20px !important;
	height: 2px !important;
	min-height: 2px;
	background: #D9A441 !important;
	border-radius: 1px;
	transition: transform 300ms ease, opacity 300ms ease;
	pointer-events: none;
}
.jack-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jack-hamburger.active span:nth-child(2) { opacity: 0; }
.jack-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.jack-mobile-nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.6);
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms ease;
	z-index: 55;
}
.jack-mobile-nav-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.jack-mobile-nav-panel {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: min(78vw, 340px);
	background: #131313;
	border-left: 1px solid rgba(217,164,65,0.3);
	transform: translateX(100%);
	transition: transform 350ms ease;
	z-index: 56;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 6rem 2rem 2rem;
}
.jack-mobile-nav-logo {
	margin-bottom: 1rem;
}
.jack-mobile-nav-logo img.custom-logo {
	max-height: 50px !important;
	width: auto !important;
}
.jack-mobile-nav-panel.active {
	transform: translateX(0);
}
.jack-mobile-nav-panel a {
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #D7E2EA;
}
body.jack-menu-open {
	overflow: hidden;
}

@media (max-width: 1023px) {
	button.jack-hamburger { display: flex !important; }
}

header, .jack-sticky-header, nav[data-hero-fade] {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #131313;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
@media (max-width: 767px) {
	#hero .flex-wrap.gap-4 { flex-direction: column; align-items: stretch; }
	#hero .flex-wrap.gap-4 a { width: 100%; text-align: center; justify-content: center; }
	#hero { min-height: auto; padding-top: 2rem; padding-bottom: 2rem; }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
@media (max-width: 767px) {
	#about img.absolute { display: none; }
	#about {
		min-height: auto !important;
		padding-top: 3rem;
		padding-bottom: 3rem;
	}
	#about > div {
		gap: 2rem !important;
	}
}
@media (min-width: 768px) and (max-width: 1023px) {
	#about img.absolute { width: 90px !important; }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
#services .grid,
#services [class*="grid-cols"] {
	display: grid;
	gap: 1.5rem;
}
@media (max-width: 767px) {
	#services [class*="grid-cols"] { grid-template-columns: 1fr !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	#services [class*="grid-cols"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ==========================================================================
   PORTFOLIO / PROJECTS SECTION
   ========================================================================== */
.project-card img { width: 100%; height: auto; object-fit: cover; }
@media (max-width: 767px) {
	.project-card { transform: none !important; }
	#projects [class*="grid-cols"] { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
@media (max-width: 767px) {
	#testimonials .grid { grid-template-columns: 1fr !important; }
	#testimonials .grid > div { min-height: auto; }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
@media (max-width: 480px) {
	.jack-faq-question { padding: 16px; font-size: 0.9rem; }
	.jack-faq-icon { width: 26px; height: 26px; }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
@media (max-width: 1023px) {
	#contact .grid-cols-5,
	#contact [class*="lg:col-span"] {
		grid-template-columns: 1fr !important;
	}
}
@media (max-width: 767px) {
	.jack-field, .jack-submit-btn { min-height: 48px; }
	#contact .grid-cols-2,
	#contact .grid-cols-3 { grid-template-columns: 1fr !important; }
	#contact { min-height: auto !important; padding-top: 3rem; padding-bottom: 3rem; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
	footer .grid-cols-4,
	footer [class*="lg:grid-cols-4"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 767px) {
	footer [class*="lg:grid-cols-4"] {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 2.5rem 2.5rem !important;
		align-items: start !important;
		justify-items: center !important;
	}
	footer [class*="lg:grid-cols-4"] > div:nth-child(1) {
		grid-column: 1 / -1;
	}
	footer [class*="lg:grid-cols-4"] > div {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
	}
	footer, footer * { text-align: center; }
	footer .flex { justify-content: center; }
}

/* ==========================================================================
   GLOBAL: touch targets + spacing
   ========================================================================== */
a:not(.jack-footer-link), button:not(.jack-see-more-btn):not(.jack-modal-close) {
	min-height: 44px;
}
@media (max-width: 480px) {
	h1, h2 { word-break: break-word; }
}