/* ==========================================================================
   FixerLA — Responsive (mobile-first overrides)
   Breakpoints: 1200, 1024, 768, 480, 360
   ========================================================================== */

/* ── ≥ 768px: show header extras ─────────────────────────────────────────── */
@media (min-width: 768px) {
	.header__phone,
	.header-phone { display: inline-flex; }

	.header__cta,
	.header-cta .header__cta { display: inline-flex; }

	.menu-toggle { display: none !important; }
}

/* ── ≤ 1200px ─────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
	.footer__grid,
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
}

/* ── ≤ 1024px ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	:root {
		--header-h: 68px;
	}

	section.hero.hero--photo {
		background-position: center 30%;
		min-height: 480px;
	}

	.hero-grid {
		max-width: 100%;
	}

	.home-services .services-grid,
	.home-services .grid--3,
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-why__grid,
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero__inner,
	.cta-block,
	.why-block {
		grid-template-columns: 1fr;
	}

	.grid--3,
	.grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.testimonials-scroll,
	.testimonials-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery-masonry {
		columns: 2;
	}

	.gallery-filters__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.gallery-area-select {
		width: 100%;
	}

	.mega-dropdown--2col {
		min-width: 400px;
	}
}

/* ── ≤ 768px ────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	:root {
		--header-h: 64px;
	}

	/* Hero */
	.hero,
	section.hero.hero--photo {
		padding: 60px 0 0;
		min-height: 460px;
	}

	section.hero.hero--photo {
		background-position: center center;
	}

	.hero__overlay {
		background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.75) 100%);
	}

	.hero-title,
	.hero__title {
		font-size: 32px;
	}

	.hero-actions {
		flex-direction: column;
	}

	.hero-actions .btn {
		width: 100%;
	}

	.hero-stats {
		gap: 20px;
	}

	/* Header / menu */
	.main-nav { display: none; }

	.header__cta,
	.header-cta .header__cta { display: none; }

	.menu-toggle { display: flex; }

	.header__lang--desktop { display: none; }

	.header__phone,
	.header-phone {
		font-size: 13px;
	}

	.header__phone span,
	.header-phone span {
		display: none;
	}

	.burger { display: none; }

	/* Grids */
	.home-services .services-grid,
	.home-services .grid--3,
	.services-grid {
		grid-template-columns: 1fr;
	}

	.grid--areas,
	.areas-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-why__grid,
	.features-grid {
		grid-template-columns: 1fr;
	}

	.grid--2,
	.grid--3,
	.grid--4 {
		grid-template-columns: 1fr;
	}

	.home-gallery__header,
	.home-testimonials__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.trust-bar-home__list {
		flex-direction: column;
		align-items: center;
	}

	.form-row--2,
	.form-grid {
		grid-template-columns: 1fr;
	}

	.referral-banner {
		flex-direction: column;
		text-align: center;
	}

	.referral-banner__icon {
		font-size: 2.5rem;
	}

	.footer__grid,
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.footer__bottom {
		flex-direction: column;
		text-align: center;
	}

	/* Testimonials: horizontal scroll */
	.testimonials-scroll,
	.testimonials-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 16px;
		padding-bottom: 16px;
		margin-inline: -1rem;
		padding-inline: 1rem;
	}

	.testimonial-card {
		min-width: 280px;
		flex: 0 0 min(280px, 85vw);
		scroll-snap-align: start;
	}

	.gallery-masonry {
		columns: 1;
	}

	.mega-dropdown {
		display: none;
	}

	/* Modal — bottom sheet on mobile */
	.modal-overlay {
		width: 100%;
		max-width: 100%;
		border-radius: var(--r-xl) var(--r-xl) 0 0;
		margin: auto 0 0;
	}

	/* Mobile sticky CTA bar */
	.mobile-cta-bar {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: var(--color-white);
		border-top: 1px solid var(--color-gray);
		padding: 10px 16px;
		padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
		gap: 10px;
		z-index: 90;
		box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.1);
	}

	body {
		padding-bottom: calc(76px + env(safe-area-inset-bottom, 0));
	}

	.float-review-btn {
		bottom: 280px;
		right: 12px;
		padding: 0.55rem 0.85rem;
		font-size: var(--text-xs);
	}

	.float-review-text {
		display: none;
	}
}

/* ── ≤ 480px ───────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.section,
	.section--white,
	.section--dark {
		padding-block: 48px;
	}

	.section__title {
		font-size: var(--text-2xl);
	}

	.hero-title,
	.hero__title {
		font-size: 26px;
	}

	.grid--areas,
	.areas-grid {
		grid-template-columns: 1fr;
	}

	.footer__grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.area-card {
		min-height: 84px;
		padding: 1rem 0.75rem;
		font-size: var(--text-xs);
	}
}

/* ── ≤ 360px ───────────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
	.logo__text {
		font-size: 1.2rem;
	}

	.logo__icon {
		width: 36px;
		height: 36px;
	}

	.mobile-cta-call {
		font-size: 12px;
		padding: 10px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html { scroll-behavior: auto; }

	.animate-ready,
	.animate-in {
		opacity: 1;
		transform: none;
	}
}
