/* =============================================
   RESPONSIVE — All Media Queries + Mobile Fixes
   Abdullah Limozen | Top Class Limousine
   ============================================= */

/* ---- Base: About Note (all screen sizes) ---- */
.about-note {
	padding: 14px 18px;
	border-left: 3px solid var(--gold);
	background: rgba(212, 175, 55, 0.07);
	border-radius: 0 8px 8px 0;
	margin: 20px 0;
	font-size: 1rem;
	color: var(--gold);
}

/* ---- Large Desktop (1200px+) ---- */
@media (min-width: 1200px) {
	.hero-subtitle {
		font-size: 1.4rem;
	}
}

/* ---- Tablet (max 1024px) ---- */
@media (max-width: 1024px) {
	.about-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Gallery bento grid on tablet */
	.gallery-grid {
		grid-template-columns: repeat(6, 1fr);
		grid-template-rows: repeat(4, 150px);
	}

	.gallery-item:nth-child(1) {
		grid-column: span 3;
		grid-row: span 2;
	}

	.gallery-item:nth-child(2) {
		grid-column: span 3;
		grid-row: span 1;
	}

	.gallery-item:nth-child(3) {
		grid-column: span 3;
		grid-row: span 1;
	}

	.gallery-item:nth-child(4) {
		grid-column: span 2;
		grid-row: span 1;
	}

	.gallery-item:nth-child(5) {
		grid-column: span 2;
		grid-row: span 1;
	}

	.gallery-item:nth-child(6) {
		grid-column: span 2;
		grid-row: span 1;
	}

	.gallery-item:nth-child(7) {
		grid-column: span 3;
		grid-row: span 1;
	}

	.gallery-item:nth-child(8) {
		grid-column: span 3;
		grid-row: span 1;
	}

	.lightbox-prev {
		left: 10px;
	}

	.lightbox-next {
		right: 10px;
	}
}

/* ---- Mobile (max 768px) ---- */
@media (max-width: 768px) {

	/* Update header height CSS variable for actual mobile header size */
	:root {
		--header-height: 152px;
	}

	/* Prevent horizontal overflow on all pages */
	html,
	body {
		overflow-x: hidden;
		max-width: 100%;
	}

	/* --- Header --- */
	.header-logo-row::before,
	.header-logo-row::after {
		display: none;
	}

	.header-logo-row {
		padding: 10px 20px 8px;
	}

	.logo img {
		height: 72px;
	}

	.header-nav-row {
		min-height: 50px;
	}

	.nav-container {
		min-height: 50px;
		/* Reserve space on right for hamburger, remove excessive left padding */
		padding: 0 64px 0 20px;
	}

	.nav-decor {
		display: none;
	}

	/* Mobile Nav Drawer — full-screen slide-in */
	.nav-links {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background: var(--bg-dark);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 0;
		transition: right 0.3s ease;
		z-index: 1001;
		padding: 0;
		list-style: none;
	}

	.nav-links.active {
		right: 0;
	}

	.nav-toggle {
		display: flex;
		z-index: 1002;
	}

	.nav-links li::after {
		display: none;
	}

	.nav-links a {
		padding: 18px 40px;
		font-size: 1.1rem;
		min-height: 60px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		letter-spacing: 2px;
	}

	/* Hamburger → X animation */
	.nav-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	.nav-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(5px, -5px);
	}

	/* --- Body offset for sticky footer --- */
	body {
		padding-bottom: 80px;
	}

	/* --- Sections --- */
	section {
		padding: 55px 16px 50px;
	}

	.section-header {
		margin-bottom: 40px;
		padding: 0 8px;
	}

	.section-header h2 {
		font-size: 2rem;
		letter-spacing: 0.5px;
	}

	.section-badge {
		font-size: 0.7rem;
		letter-spacing: 2px;
		padding: 10px 20px;
		margin-bottom: 25px;
	}

	.section-desc {
		font-size: 1rem;
	}

	/* --- Hero --- */
	#hero {
		min-height: calc(100svh - var(--header-height));
	}

	.hero-badge {
		font-size: 0.7rem;
		letter-spacing: 2px;
		padding: 10px 22px;
		margin-bottom: 25px;
	}

	h1 {
		font-size: clamp(2.2rem, 9vw, 3.5rem);
		margin-bottom: 20px;
	}

	.hero-subtitle {
		font-size: 1.15rem;
		font-weight: 500;
	}

	/* --- Features grid (Fleet vehicle cards) --- */
	.features-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 0 16px;
	}

	.feature-card {
		padding: 0 0 28px;
		/* Remove side padding so image bleeds to edges */
		overflow: hidden;
	}

	/* Vehicle photo: full-width hero image inside the card */
	.feature-card .feature-icon {
		width: 100%;
		height: 200px;
		border-radius: 14px 14px 0 0;
		margin: 0 0 20px;
		overflow: hidden;
	}

	.feature-card .limo-image {
		height: 100%;
		width: 100%;
		border-radius: 0;
		border: none;
		object-fit: cover;
	}

	/* Re-add side padding for text content below the image */
	.feature-card h3,
	.feature-card p {
		padding: 0 24px;
	}

	.quote-cta {
		margin: 15px 0 0;
		padding: 16px 24px;
		font-size: 0.85rem;
		border-radius: 0 0 24px 24px;
	}

	/* --- Services / Fleet listing grid --- */
	.songs-grid {
		gap: 16px;
		padding: 0 16px;
	}

	.song-card {
		padding: 18px 20px;
		gap: 16px;
	}

	.song-card:hover {
		transform: none; /* disable slide on mobile; tap is sufficient */
	}

	.song-card-title {
		font-size: 1.2rem;
	}

	.song-card-meta {
		font-size: 0.85rem;
	}

	/* --- About --- */
	.about-grid {
		gap: 30px;
		padding: 0 16px;
	}

	.about-stats {
		gap: 16px;
		flex-wrap: wrap;
		justify-content: center;
	}

	.stat-number {
		font-size: 2rem;
	}

	/* About note callout */
	.about-note {
		padding: 14px 18px;
		font-size: 0.95rem;
	}

	/* --- Contact phone hero --- */
	.contact-phone-hero {
		padding: 24px 16px;
		border-radius: 20px;
		margin-bottom: 30px;
		overflow: hidden;
	}

	.phone-number-large {
		flex-direction: column;
		gap: 12px;
		padding: 20px 16px;
	}

	.phone-icon-large {
		font-size: 2rem;
	}

	.phone-number-text {
		font-size: 2.4rem !important;
		letter-spacing: 1px;
		word-break: break-word;
	}

	.contact-phone-hero .phone-number-text {
		font-size: 2.8rem !important;
		font-weight: 800 !important;
	}

	.booking-notice h3 {
		font-size: 1.1rem;
		line-height: 1.4;
	}

	.booking-notice p {
		font-size: 0.95rem;
	}

	.service-features {
		margin-bottom: 20px;
	}

	.call-action {
		padding: 20px 16px;
	}

	/* --- Mini Player --- */
	.mini-player {
		padding: 20px 16px;
	}

	.song-selector {
		flex-direction: column;
		height: auto;
	}

	.song-tab {
		height: 44px;
	}

	.player-controls-row {
		flex-direction: column;
		gap: 15px;
	}

	.control-group {
		width: 100%;
		justify-content: center;
	}

	.control-slider {
		width: 120px;
	}

	.repeat-toggle {
		margin-top: 5px;
	}

	/* --- Gallery grid --- */
	.gallery-grid {
		/* Single column on mobile; reset all bento overrides */
		grid-template-columns: 1fr !important;
		grid-template-rows: none !important;
		gap: 12px;
		padding: 0 16px;
	}

	.gallery-item {
		/* Reset any bento column/row spans from tablet query */
		grid-column: 1 / -1 !important;
		grid-row: auto !important;
		aspect-ratio: 16 / 10;
		min-height: 200px;
	}

	/* Lightbox nav buttons float inside the image on mobile */
	.lightbox-prev {
		left: 8px;
	}

	.lightbox-next {
		right: 8px;
	}

	/* Lightbox close button always visible */
	.lightbox-close {
		top: -48px;
		right: 0;
	}

	/* Events gallery */
	.events-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.event-card {
		height: 180px;
	}

	/* --- Contact form + info --- */
	.contact-container {
		grid-template-columns: 1fr;
		gap: 25px;
		padding: 0 16px;
	}

	.contact-info {
		padding: 24px 18px;
	}

	.contact-form {
		padding: 24px 18px;
	}

	.form-buttons {
		flex-direction: column;
	}

	/* Ensure form inputs don't overflow */
	.form-group input,
	.form-group textarea {
		font-size: 16px; /* prevent iOS zoom on focus */
	}

	/* --- Service areas / maps --- */
	.service-areas-map-container {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 0 16px;
	}

	.map-wrapper {
		padding: 10px;
	}

	.map-wrapper iframe {
		height: 260px;
	}

	.map-service-info {
		padding: 20px 16px;
	}

	.coverage-highlights {
		gap: 8px;
	}

	.coverage-item {
		padding: 8px 12px;
		font-size: 0.9rem;
	}

	.gta-map-container {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 0 16px;
	}

	.map-wrapper-static {
		padding: 10px;
	}

	.map-wrapper-static iframe {
		height: 260px;
	}

	.gta-coverage-info {
		padding: 20px 16px;
	}

	.gta-coverage-info h3 {
		font-size: 1.5rem;
	}

	.coverage-list {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.coverage-list .coverage-item {
		padding: 10px 12px;
		font-size: 0.9rem;
	}

	.map-cta-box {
		padding: 14px;
	}

	.map-cta-box p {
		font-size: 0.95rem;
	}

	/* --- Vehicle modal --- */
	.vehicle-modal-content {
		padding: 20px 16px;
		margin: 10px;
		max-height: 90vh;
		overflow-y: auto;
	}

	.vehicle-modal-header h2 {
		font-size: 1.6rem;
	}

	.quote-phone-display {
		font-size: 1rem;
		flex-direction: column;
		gap: 10px;
	}

	.vehicle-nav-btn {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}

	#vehiclePrev {
		left: 10px;
	}

	#vehicleNext {
		right: 10px;
	}

	.vehicle-thumb {
		width: 60px;
		height: 45px;
	}

	/* --- Footer --- */
	.footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 20px;
		padding: 0;
	}

	footer {
		padding: 35px 20px 20px;
	}

	.footer-links {
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px 20px;
	}

	.footer-logo img {
		height: 64px;
	}

	.footer-bottom {
		font-size: 0.82rem;
		padding: 20px 12px 0;
		margin-top: 20px;
	}

	/* --- Sticky mobile call button --- */
	.sticky-mobile-footer {
		display: block;
	}
}

/* ---- Small phones (max 480px) ---- */
@media (max-width: 480px) {
	h1 {
		font-size: clamp(1.9rem, 10vw, 2.8rem);
	}

	/* section-header h2 scales via clamp() in sections.css — no override needed */

	.about-content h3 {
		font-size: 1.7rem;
	}

	.phone-number-text {
		font-size: 2rem !important;
		letter-spacing: 0;
	}

	.contact-phone-hero .phone-number-text {
		font-size: 2.2rem !important;
	}

	.feature-card h3 {
		font-size: 1.3rem;
	}

	.song-card-icon {
		width: 48px;
		height: 48px;
		font-size: 1.1rem;
		border-radius: 12px;
	}

	.about-stats {
		gap: 12px;
	}

	.stat-number {
		font-size: 1.8rem;
	}

	.stat-label {
		font-size: 0.75rem;
	}

	.sticky-call-btn {
		font-size: 0.9rem;
		padding: 9px 16px;
	}

	.call-text strong {
		font-size: 0.8rem;
	}

	.call-text small {
		font-size: 0.9rem;
	}

	/* Tighten map on very small landscape phones */
	.map-wrapper iframe,
	.map-wrapper-static iframe {
		height: 220px;
	}
}

/* ---- Extra-small phones (max 375px) ---- */
@media (max-width: 375px) {
	:root {
		--header-height: 148px;
	}

	section {
		padding: 45px 12px 40px;
	}

	/* section-header h2 scales via clamp() — no hard override needed at 375px */

	.about-content h3 {
		font-size: 1.55rem;
	}

	.section-desc {
		font-size: 0.95rem;
	}

	/* Features */
	.features-grid {
		padding: 0 12px;
	}

	.feature-card .feature-icon {
		height: 170px;
	}

	/* Services list */
	.songs-grid {
		padding: 0 12px;
	}

	.song-card {
		padding: 14px 16px;
		gap: 12px;
	}

	.song-card-title {
		font-size: 1.1rem;
	}

	.song-card-meta {
		font-size: 0.78rem;
	}

	/* About */
	.about-grid {
		padding: 0 12px;
	}

	/* Contact */
	.contact-container,
	.gta-map-container {
		padding: 0 12px;
	}

	.contact-info,
	.contact-form {
		padding: 18px 14px;
	}

	/* Phone number — prevent overflow on 320px screens */
	.phone-number-text {
		font-size: 1.8rem !important;
		letter-spacing: 0 !important;
		word-break: break-word;
	}

	.contact-phone-hero .phone-number-text {
		font-size: 2rem !important;
	}

	.booking-notice h3 {
		font-size: 1rem;
	}

	/* Coverage list stays 2-col on 375px */
	.coverage-list {
		grid-template-columns: 1fr;
	}

	/* Sticky footer — slightly smaller */
	.sticky-call-btn {
		padding: 8px 14px;
		gap: 8px;
	}

	.call-text strong {
		font-size: 0.75rem;
		letter-spacing: 1px;
	}

	.call-text small {
		font-size: 0.85rem;
	}

	.footer-links {
		gap: 6px 14px;
	}
}
