/* Home Page Enhancements
 * Lightweight styles for hero, trust badges, quicklinks, how-it-works, testimonials
 */

.home-hero{background:linear-gradient(180deg,#f7f9fc 0%, #ffffff 100%);padding:48px 0 28px;margin-bottom:24px;text-align:center}
.home-hero .hero-title{font-size:28px;line-height:1.25;margin:0 0 8px;font-weight:600}
.home-hero .hero-subtitle{font-size:16px;color:#5f6368;margin:0 0 16px}
.home-hero .hero-actions{display:inline-flex;gap:12px;flex-wrap:wrap}
.home-hero .btn-primary{background:#1a73e8;color:#fff;border:0}
.home-hero .btn-primary:hover{background:#1558b3;color:#fff}
.home-hero .hero-trust{margin-top:18px;color:#5f6368}
.home-hero .hero-trust i{color:#1a73e8;margin-right:6px}

.home-quicklinks{margin:8px auto 28px}
.home-quicklinks .quick-card{display:block;border:1px solid #e5e7eb;border-radius:8px;padding:14px;text-align:center;text-decoration:none;color:#202124;background:#fff;transition:box-shadow .15s ease, transform .15s ease}
.home-quicklinks .quick-card:hover{box-shadow:0 8px 20px rgba(0,0,0,.06);transform:translateY(-2px)}
.home-quicklinks .quick-card i{font-size:22px;color:#1a73e8;margin-bottom:8px;display:block}
.home-quicklinks .quick-card h3{font-size:16px;margin:4px 0}
.home-quicklinks .quick-card p{font-size:13px;color:#5f6368;margin:0}

.home-how-it-works{margin:8px auto 28px}
.home-how-it-works .section-title{font-size:20px;margin:0 0 14px;font-weight:600;text-align:center}
.home-how-it-works .how-card{border:1px solid #e5e7eb;border-radius:8px;padding:16px;text-align:center;background:#fff;height:100%}
.home-how-it-works .how-card i{font-size:22px;color:#1a73e8;margin-bottom:8px;display:block}
.home-how-it-works .how-card h4{font-size:16px;margin:4px 0}
.home-how-it-works .how-card p{font-size:13px;color:#5f6368;margin:0}

.home-testimonials{margin:8px auto 36px}
.home-testimonials .section-title{font-size:20px;margin:0 0 14px;font-weight:600;text-align:center}
.home-testimonials blockquote{border-left:3px solid #1a73e8;background:#f8fafc;margin:0 0 12px;padding:12px 14px;font-size:14px;color:#202124;border-radius:6px}
.home-testimonials small{color:#5f6368}

@media (max-width:767px){
  .home-hero{padding:36px 0 20px}
  .home-hero .hero-title{font-size:22px}
  .home-hero .hero-subtitle{font-size:14px}
}


/* Premium Buttons - sitewide enhancements */
.button,
button,
.btn,
input[type="submit"],
input[type="button"],
input[type="reset"],
.cssButton,
.buttonRow > a {
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transition: box-shadow .15s ease, transform .08s ease, background-color .15s ease, color .15s ease;
  text-decoration: none !important;
}

.button:hover,
button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.cssButton:hover,
.buttonRow > a:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.button:active,
button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active,
.cssButton:active,
.buttonRow > a:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,.10);
}

.button:focus,
button:focus,
.btn:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
.cssButton:focus,
.buttonRow > a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,115,232,.25), 0 6px 14px rgba(0,0,0,.12);
}

/* Icon alignment inside buttons */
.button i,
button i,
.btn i,
.button span > i {
  margin-right: 8px;
  vertical-align: -0.1em;
}

/* Subtle size variants if present */
.button.small, .cssButton.small, .btn-small { padding: 8px 12px; border-radius: 8px }
.button.large, .cssButton.large, .btn-large { padding: 12px 18px; border-radius: 12px; font-size: 16px }

/* Primary CTA refinement (keeps existing theme colors) */
.button.btn-primary,
.btn.btn-primary {
  color: #fff !important;
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
}
.button.btn-primary:hover,
.btn.btn-primary:hover { box-shadow: 0 10px 24px rgba(0,0,0,.18) }

/* Ensure image-based legacy buttons inherit the premium container */
.button img, .cssButton img { vertical-align: middle }

/* Car Logos Dialog Styles */
.car-logos-section {
	margin: 8px auto 28px;
	text-align: center;
}

.car-logos-section .section-title {
	font-size: 20px;
	margin: 0 0 8px;
	font-weight: 600;
}

.car-logos-section .section-subtitle {
	font-size: 14px;
	color: #5f6368;
	margin: 0 0 16px;
}

/* Dialog Styles */
.car-logos-dialog {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.dialog-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.dialog-content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	max-width: 90vw;
	max-height: 90vh;
	width: 1000px;
	overflow: hidden;
	animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.dialog-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid #e5e7eb;
	background: #f8fafc;
}

.dialog-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #202124;
}

.dialog-close {
	background: none;
	border: none;
	font-size: 18px;
	color: #5f6368;
	cursor: pointer;
	padding: 8px;
	border-radius: 6px;
	transition: all 0.15s ease;
}

.dialog-close:hover {
	background: #e5e7eb;
	color: #202124;
}

.dialog-body {
	padding: 24px;
	max-height: 70vh;
	overflow-y: auto;
}

/* Car Logos Grid - Desktop: 10 logos per row */
.car-logos-grid {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 16px;
	align-items: center;
	justify-items: center;
}

.logo-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 12px 8px;
	border-radius: 8px;
	transition: all 0.2s ease;
	cursor: pointer;
	min-height: 80px;
	justify-content: center;
}

.logo-item:hover {
	background: #f8fafc;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo-item img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	margin-bottom: 6px;
	filter: grayscale(20%);
	transition: filter 0.2s ease;
}

.logo-item:hover img {
	filter: grayscale(0%);
}

.logo-item span {
	font-size: 11px;
	color: #5f6368;
	font-weight: 500;
	line-height: 1.2;
}

/* Tablet: 6 logos per row */
@media (max-width: 1024px) {
	.dialog-content {
		width: 90vw;
		max-width: 800px;
	}
	
	.car-logos-grid {
		grid-template-columns: repeat(6, 1fr);
		gap: 12px;
	}
	
	.logo-item {
		min-height: 70px;
		padding: 10px 6px;
	}
	
	.logo-item img {
		width: 35px;
		height: 35px;
	}
	
	.logo-item span {
		font-size: 10px;
	}
}

/* Mobile: 4 logos per row */
@media (max-width: 768px) {
	.dialog-content {
		width: 95vw;
		max-width: 500px;
	}
	
	.dialog-header {
		padding: 16px 20px;
	}
	
	.dialog-header h3 {
		font-size: 16px;
	}
	
	.dialog-body {
		padding: 20px;
	}
	
	.car-logos-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 10px;
	}
	
	.logo-item {
		min-height: 65px;
		padding: 8px 4px;
	}
	
	.logo-item img {
		width: 30px;
		height: 30px;
	}
	
	.logo-item span {
		font-size: 9px;
	}
}

/* Small Mobile: 3 logos per row */
@media (max-width: 480px) {
	.car-logos-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}
	
	.logo-item {
		min-height: 60px;
		padding: 6px 2px;
	}
	
	.logo-item img {
		width: 28px;
		height: 28px;
	}
	
	.logo-item span {
		font-size: 8px;
	}
}

