/* WTC Design System - Master CSS */
/* Consolidated from avail.css and wtc-modern.css */

/* ================================
   CSS CUSTOM PROPERTIES (THEMES)
   ================================ */
:root {
	/* Brand Colors - Will be overridden by theme-generator.php */
	--brand-primary: #007AFF;
	--brand-secondary: #8E8E93;
	--brand-accent: #007AFF;
	--brand-text: #1D1D1F;
	--brand-background: #FFFFFF;
	
	/* Design System Colors */
	--wtc-gray: #8E8E93;
	--wtc-light-gray: #F2F2F7;
	--wtc-dark: #1D1D1F;
	--wtc-white: #FFFFFF;
	--wtc-shadow: rgba(0, 0, 0, 0.1);
}

/* ================================
   BOOTSTRAP OVERRIDES
   ================================ */
.btn-primary {
	background-color: var(--brand-primary);
	border-color: var(--brand-primary);
}

.btn-primary:hover {
	background-color: color-mix(in srgb, var(--brand-primary) 80%, black 20%);
	border-color: color-mix(in srgb, var(--brand-primary) 80%, black 20%);
}

.btn-outline-primary {
	border-color: rgb(0, 0, 0);
	color: rgb(0, 0, 0);
}

.btn-outline-secondary {
	border-color: rgb(153, 150, 150) !important;
	color: rgb(81, 81, 81) !important;
	background-color: transparent !important;
}

.btn-outline-secondary.active,
.btn-outline-secondary:active,
.btn-outline-secondary:focus {
	background-color: var(--brand-primary) !important;
	border-color: var(--brand-primary) !important;
	color: #eae9e9 !important;
}

.text-primary {
	color: var(--brand-primary) !important;
}

.active>.page-link,
.active>.nav-link {
	background-color: var(--brand-primary) !important;
	border-color: var(--brand-primary) !important;
}

.nav-link:hover,
.nav-link:focus {
	color: var(--brand-primary) !important;
}

/* Range Slider Overrides */
input[type="range"]::-webkit-slider-thumb {
	background: var(--brand-primary) !important;
}

input[type="range"]::-moz-range-thumb {
	background: var(--brand-primary) !important;
}

input[type="range"]::-ms-thumb {
	background: var(--brand-primary) !important;
}

/* ================================
   TYPOGRAPHY
   ================================ */
body {
	background-color: var(--brand-background);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1.0rem;
}

.wtc-display {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.wtc-body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 400;
	line-height: 1.6;
}

.wtc-subhead {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* ================================
   LINKS
   ================================ */
a {
	text-decoration: none;
	color: var(--brand-primary);
	font-size: 1.1rem;
}

/* ================================
   NAVIGATION
   ================================ */
.nav-link {
	color: #1e1e1e !important;
}

.page-link {
	color: #2f2f2f;
	font-weight: bold;
}

/* ================================
   DROPDOWNS (Apple-like)
   ================================ */
.dropdown-menu:not(.show) {
	display: none !important;
}

.dropdown-menu {
	background: var(--wtc-white);
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.15);
	border: none;
	padding: 0.5rem 0.25rem;
	transition: box-shadow 0.25s cubic-bezier(0.4,0.2,0.2,1),
	            transform 0.18s cubic-bezier(0.4,0.2,0.2,1);
	min-width: 220px;
}

.dropdown-menu.show {
	animation: dropdownAppleFadeIn 0.22s cubic-bezier(0.4,0.2,0.2,1);
	transform: translateY(6px) scale(1.02);
}

@keyframes dropdownAppleFadeIn {
	0% { opacity: 0; transform: translateY(-8px) scale(0.98); }
	100% { opacity: 1; transform: translateY(6px) scale(1.02); }
}

.dropdown-item {
	border-radius: 10px;
	padding: 0.5rem 0.85rem;
	color: var(--wtc-dark);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 1rem;
	transition: background 0.18s, color 0.18s;
}

.dropdown-item:hover, .dropdown-item:focus {
	background: linear-gradient(90deg, var(--wtc-light-gray) 0%, #e9e9ef 100%);
	color: var(--brand-primary);
	box-shadow: 0 2px 10px rgba(0,122,255,0.06);
	outline: none;
}

.dropdown-divider {
	margin: 0.25rem 0;
	border-top: 1px solid #f0f0f0;
}

/* ================================
   CARDS AND BUTTONS
   ================================ */
.wtc-card {
	background: var(--wtc-white);
	border-radius: 18px;
	border: none;
	box-shadow: 0 4px 20px var(--wtc-shadow);
	transition: all 0.3s ease;
}

.wtc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.wtc-btn-outline {
	background: transparent;
	border: 2px solid var(--brand-primary);
	border-radius: 12px;
	color: var(--brand-primary);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 600;
	padding: 10px 22px;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
}

.wtc-btn-outline:hover {
	background: var(--brand-primary);
	color: var(--wtc-white);
	transform: translateY(-1px);
}

.btn-whatsapp {
	background-color: #25D366;
	border-color: #25D366;
	color: white;
}

.btn-whatsapp:hover {
	background-color: #1ebe57;
	border-color: #1ebe57;
	color: white;
}

/* ================================
   HERO SECTION
   ================================ */
.wtc-hero {
	background: white;
	padding: 80px 0;
}

.wtc-hero-title {
	font-size: 3.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--wtc-dark);
	margin-bottom: 1rem;
}

.wtc-hero-subtitle {
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--wtc-gray);
	margin-bottom: 2rem;
}

/* ================================
   SECTIONS
   ================================ */
.wtc-section {
	padding: 80px 0;
}

.wtc-section-title {
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	color: var(--wtc-dark);
	margin-bottom: 1rem;
	letter-spacing: -0.02em;
}

.wtc-value-section {
	background: var(--wtc-white);
	padding: 4rem 0;
	margin: 4rem 0;
}

.wtc-value-section h2 {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 700;
	font-size: 2.5rem;
	color: var(--wtc-dark);
	text-align: center;
	margin-bottom: 1rem;
	letter-spacing: -0.02em;
}

.wtc-value-section .lead {
	color: var(--wtc-gray);
	text-align: center;
	font-size: 1.25rem;
	margin-bottom: 3rem;
}

/* ================================
   FORMS
   ================================ */
.wtc-search-form {
	background: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 20px;
	padding: 2rem;
}

.wtc-search-form .form-select {
	background: var(--wtc-white);
	border: 2px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 1rem;
	padding: 12px 16px;
	transition: all 0.2s ease;
}

.wtc-search-form .form-select:focus {
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
	outline: none;
}

.wtc-search-form .btn-primary {
	background: var(--brand-primary);
	border: none;
	border-radius: 12px;
	font-weight: 600;
	padding: 12px 24px;
	transition: all 0.2s ease;
}

.wtc-search-form .btn-primary:hover {
	background: color-mix(in srgb, var(--brand-primary) 80%, black 20%);
	transform: translateY(-1px);
	box-shadow: 0 4px 15px color-mix(in srgb, var(--brand-primary) 30%, transparent 70%);
}

/* Form element border styling - make borders darker */
.form-control,
.form-select,
.form-check-input {
	border-color: #86868b !important;
	border-width: 1px;
}

/* Form control focus states - darker border when focused */
.form-control:focus,
.form-select:focus {
	border-color: #a51414 !important;
	box-shadow: 0 0 0 0.2rem rgba(106, 106, 106, 0.25) !important;
}

/* Form validation states with darker borders */
.form-control.is-valid,
.form-select.is-valid {
	border-color: #198754 !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
	border-color: #dc3545 !important;
}

/* ================================
   UTILITIES
   ================================ */
.wtc-pill {
	background-color: rgb(225, 224, 224);
	font-size: 0.9rem;
}

.wtc-pill_lg {
	background-color: rgb(235, 234, 234);
	font-weight: bold;
}

.cardata {
	background-color: #f8f8f8;
	padding: 20px;
}

.badge {
	font-weight: normal;
}

/* Government Grant badge: bright, fun green (no border) */
.badge-grant {
	background-color: #2ECC71; /* bright emerald green */
	border: none; /* no border */
	color: #FFFFFF; /* white text for contrast */
}

.bg-light {
	background-color: #f8f9fa !important;
	opacity: 1 !important;
}

.bg-fuel {
	background-color: rgb(96, 129, 162)
}

.bg-bodystyle {
	background-color: rgb(139, 139, 139)
}

.bg-general {
	background-color: rgb(241, 241, 241);
	border-color: rgba(0, 0, 0, 0.438);
	border-style: solid;
	border-width: 1px;
	color: rgb(23, 23, 23);
}

.border-secondary {
	border-color: #bbbbbb !important;
}

.equal-height-img {
	height: 200px;
	object-fit: cover;
}

.wtc-image {
	border-radius: 16px;
	box-shadow: 0 4px 20px var(--wtc-shadow);
}

/* New rule for bold text color */
b,
strong {
	color: rgb(100, 100, 100) !important;
}

/* ================================
   LAYOUT
   ================================ */
.container {
	max-width: 1600px;
}

.content {
	max-width: 1300px !important;
	margin-right: auto;
	margin-left: auto;
}

.content-grid {
	margin-right: auto;
	margin-left: auto;
	max-width: none;
}

@media (min-width: 576px) {
	.content-grid {
		max-width: 1250px;
	}
}

.wtc-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.wtc-grid {
	display: grid;
	gap: 2rem;
}

.wtc-grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.mb-5 {
    margin-bottom: 6rem !important;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.wtc-text-secondary { color: var(--wtc-gray); }
.wtc-text-dark { color: var(--wtc-dark); }
.wtc-animate { transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
	.wtc-container { padding: 0 1rem; }
	.wtc-grid { gap: 1.5rem; }
	.wtc-grid-2, .wtc-grid-3 { grid-template-columns: 1fr; }
	.wtc-hero-title { font-size: 2.5rem; }
	.wtc-hero-subtitle { font-size: 1.25rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
	.wtc-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
	.wtc-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
