/**
 * Mobile parity — tablet/phone only (max-width: 1023px).
 * Desktop layout (1024px+) is unchanged.
 */

@media (max-width: 1023px) {
	html {
		overflow-x: clip;
	}

	body.duende-site {
		overflow-x: clip;
		max-width: 100%;
	}

	body.duende-site #content,
	body.duende-site .site-main,
	body.duende-site .elementor,
	body.duende-site .elementor-section,
	body.duende-site .elementor-container,
	body.duende-site .elementor-column,
	body.duende-site .elementor-widget-wrap,
	body.duende-site .elementor-widget-container {
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	body.duende-site img,
	body.duende-site video,
	body.duende-site iframe {
		max-width: 100%;
		height: auto;
	}

	/* Header — cancel desktop absolute columns */
	body.duende-site .elementor-location-header .duende-native-header > .elementor-container > .elementor-column {
		position: static !important;
		left: auto !important;
		top: auto !important;
		right: auto !important;
	}

	body.duende-site .duende-native-header .duende-native-primary,
	body.duende-site .duende-native-header .duende-native-catalog {
		display: none !important;
	}

	/* Footer — stack blocks, reset desktop offsets */
	body.duende-site .duende-native-footer:not(.duende-native-footer-bottom):not(.duende-native-footer-word) > .elementor-container {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		gap: 2.5rem !important;
		height: auto !important;
		min-height: 0 !important;
		padding-inline: 1.5rem !important;
	}

	body.duende-site .duende-native-footer:not(.duende-native-footer-bottom):not(.duende-native-footer-word) > .elementor-container > .elementor-column {
		flex: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		grid-column: 1 / -1 !important;
	}

	body.duende-site .duende-native-footer-word {
		margin-top: 3rem !important;
		overflow: hidden !important;
	}

	body.duende-site .duende-native-footer-word .elementor-heading-title {
		font-size: clamp(3.25rem, 26vw, 5.5rem) !important;
		line-height: 0.85 !important;
		word-break: break-word !important;
	}

	body.duende-site .duende-footer-bottomline {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 1rem !important;
	}

	body.duende-site .duende-footer-meta,
	body.duende-site .duende-footer-built {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0.75rem !important;
	}

	/* Generic inner pages — full-width single column */
	body.duende-site .duende-native-section:not(.duende-native-hero):not(.duende-native-services-wrap):not(.duende-native-work-grid):not(.duende-native-process-grid):not(.duende-native-references-grid):not(.duende-native-contact-section):not(.duende-native-stats-section):not(.duende-native-footer):not(.duende-native-footer-word):not(.duende-native-footer-bottom):not(.duende-legal-page-hero):not(.duende-legal-body) > .elementor-container {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		padding-inline: 1.5rem !important;
	}

	body.duende-site .duende-native-section:not(.duende-native-hero):not(.duende-native-services-wrap):not(.duende-native-work-grid):not(.duende-native-process-grid):not(.duende-native-references-grid):not(.duende-native-contact-section):not(.duende-native-stats-section):not(.duende-native-footer):not(.duende-native-footer-word):not(.duende-native-footer-bottom):not(.duende-legal-page-hero):not(.duende-legal-body) > .elementor-container > .elementor-column {
		width: 100% !important;
		max-width: 100% !important;
		grid-column: 1 / -1 !important;
	}

	/* Contact */
	body.duende-site .duende-native-contact-section {
		min-height: 0 !important;
		height: auto !important;
		padding-inline: 0 !important;
	}

	body.duende-site .duende-native-form.duende-cf7-form .duende-cf7-row {
		flex-direction: column !important;
	}

	body.duende-site .duende-native-form.duende-cf7-form .duende-cf7-col,
	body.duende-site .duende-native-form.duende-cf7-form .duende-cf7-full {
		width: 100% !important;
		flex: 1 1 100% !important;
		max-width: 100% !important;
	}

	body.duende-site .duende-budget__choices {
		flex-wrap: wrap !important;
	}

	/* Hizmetler */
	body.duende-services-page .duende-services-page-title .elementor-heading-title {
		max-width: none !important;
	}

	body.duende-services-page .duende-services-solutions > .elementor-container {
		display: block !important;
	}

	body.duende-services-page .duende-services-solutions-label-col,
	body.duende-services-page .duende-services-solutions-content-col,
	body.duende-services-page .duende-services-solutions > .elementor-container > .elementor-column {
		grid-column: 1 / -1 !important;
		width: 100% !important;
	}

	body.duende-services-page .duende-services-page-grid > .elementor-container {
		display: block !important;
	}

	body.duende-services-page .duende-services-page-grid > .elementor-container > .duende-service-grid-card {
		grid-column: 1 / -1 !important;
		width: 100% !important;
	}

	/* Referanslar */
	body.duende-site .duende-references-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	/* İşler grid */
	body.duende-site .duende-native-work-grid > .elementor-container:has(> .duende-native-work-card),
	body.duende-site .duende-native-work-grid .duende-works-grid__cards {
		padding-inline: 1.5rem !important;
	}

	body.duende-site .duende-native-work-grid > .elementor-container:has(> .duende-native-work-card) > .duende-native-work-card,
	body.duende-site .duende-native-work-grid .duende-works-grid__cards > .duende-native-work-card {
		width: 100% !important;
	}

	/* Süreç grid — full-bleed on mobile, no side gutter */
	body.duende-site .duende-native-process-grid,
	body.duende-site .elementor-element-441fdcd {
		padding-inline: 0 !important;
		width: 100% !important;
		max-width: none !important;
		background: var(--duende-bg, #050714) !important;
	}

	body.duende-site .duende-native-process-grid > .elementor-container,
	body.duende-site .elementor-element-441fdcd > .elementor-container {
		display: block !important;
		width: 100% !important;
		max-width: none !important;
		margin-inline: 0 !important;
		padding-inline: 0 !important;
		background: transparent !important;
		gap: 0 !important;
	}

	body.duende-site .duende-native-process-grid > .elementor-container > .elementor-column,
	body.duende-site .duende-native-process-grid > .elementor-container > .duende-native-process-card,
	body.duende-site .elementor-element-441fdcd > .elementor-container > .elementor-column,
	body.duende-site .elementor-element-441fdcd > .elementor-container > .duende-native-process-card {
		width: 100% !important;
		max-width: none !important;
		padding: 2rem 1.5rem !important;
		background-color: var(--duende-bg, #050714) !important;
		border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
		box-shadow: none !important;
	}

	body.duende-site .duende-native-process-grid > .elementor-container > .elementor-column:first-child,
	body.duende-site .duende-native-process-grid > .elementor-container > .duende-native-process-card:first-child,
	body.duende-site .elementor-element-441fdcd > .elementor-container > .elementor-column:first-child,
	body.duende-site .elementor-element-441fdcd > .elementor-container > .duende-native-process-card:first-child {
		border-top: 0 !important;
	}

	/* Stats */
	body.duende-site .duende-native-stats-section > .elementor-container {
		padding-inline: 1.5rem !important;
	}

	/* Hizmet / iş detay */
	body.duende-service-detail-page .duende-service-detail-section > .elementor-container,
	body.duende-work-detail-page .duende-work-detail-section > .elementor-container {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		padding-inline: 1.5rem !important;
	}

	body.duende-service-detail-page .duende-service-detail-section > .elementor-container > .elementor-column,
	body.duende-work-detail-page .duende-work-detail-section > .elementor-container > .elementor-column {
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Marquee / watermark — clip overflow without horizontal scroll */
	body.duende-site .duende-native-marquee,
	body.duende-site .duende-contact-watermark {
		overflow: hidden !important;
		max-width: 100vw !important;
	}
}

@media (max-width: 767px) {
	body.duende-site .duende-native-footer:not(.duende-native-footer-bottom):not(.duende-native-footer-word) > .elementor-container {
		gap: 2rem !important;
	}

	body.duende-services-page .duende-services-page-hero {
		padding-top: 7.5rem !important;
	}

	body.duende-services-page .duende-services-page-title .elementor-heading-title {
		font-size: clamp(2.125rem, 10.5vw, 3rem) !important;
		line-height: 0.98 !important;
	}

	body.duende-site .duende-native-contact-title .elementor-heading-title {
		font-size: clamp(2.5rem, 12vw, 4rem) !important;
		line-height: 0.95 !important;
	}

	body.duende-site .duende-references-grid {
		gap: 0.75rem !important;
	}

	body.duende-site .duende-references-grid__item {
		aspect-ratio: 2.35 / 1 !important;
		padding: 1rem !important;
	}
}

@media (max-width: 479px) {
	body.duende-site .duende-native-logo {
		width: 8.5rem !important;
	}

	body.duende-site .duende-native-logo img {
		width: 8.5rem !important;
	}

	body.duende-site .duende-native-lang {
		right: 3.75rem !important;
		font-size: 0.7rem !important;
	}
}
