/*	
	Theme Name: Motors - Child Theme
	Theme URI: http://motors.stylemixthemes.com/
	Author: StylemixThemes
	Author URI: http://stylemixthemes.com/
	Description: Motors Child theme
	Version: 4.0
	License: GNU General Public License v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Tags: blue, red, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, fluid-layout, responsive-layout, flexible-header, custom-background, custom-colors, custom-header, custom-menu, editor-style, sticky-post, theme-options
	Text Domain: motors-child
    Template: motors

    This theme, like WordPress, is licensed under the GPL.
    Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ========================================
   DOSCARS - Professional Car Export Theme
   ======================================== */

:root {
	/* Primary Brand Colors */
	--doscars-primary: #1e3a5f;      /* Deep Professional Blue */
	--doscars-secondary: #d4a574;    /* Gold Accent */
	--doscars-accent: #c41e3a;       /* Professional Red */
	--doscars-light: #f8f9fa;        /* Light Background */
	--doscars-dark: #2c3e50;         /* Dark Text */
	
	/* Semantic Colors */
	--success: #27ae60;
	--warning: #f39c12;
	--error: #e74c3c;
	--info: #3498db;
	
	/* Typography */
	--font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	--font-secondary: Georgia, 'Times New Roman', serif;
	--font-size-base: 16px;
	--line-height-base: 1.6;
}

/* ========================================
   Global Styles
   ======================================== */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	color: var(--doscars-dark);
	background-color: #ffffff;
	line-height: var(--line-height-base);
	font-size: var(--font-size-base);
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	color: var(--doscars-dark);
	margin-bottom: 1rem;
	line-height: 1.3;
}

h1 {
	font-size: 2.5rem;
	color: var(--doscars-primary);
}

h2 {
	font-size: 2rem;
	color: var(--doscars-primary);
	border-bottom: 3px solid var(--doscars-secondary);
	padding-bottom: 0.5rem;
}

h3 {
	font-size: 1.5rem;
	color: var(--doscars-dark);
}

p {
	margin-bottom: 1rem;
	color: #555;
}

a {
	color: var(--doscars-primary);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--doscars-secondary);
	text-decoration: none;
}

/* ========================================
   Buttons
   ======================================== */

.btn, button, input[type="button"], input[type="submit"] {
	display: inline-block;
	padding: 12px 30px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.btn-primary, button, input[type="submit"] {
	background-color: var(--doscars-primary);
	color: white;
}

.btn-primary:hover, button:hover {
	background-color: var(--doscars-secondary);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
	background-color: var(--doscars-secondary);
	color: white;
}

.btn-secondary:hover {
	background-color: var(--doscars-primary);
	color: white;
}

.btn-outline {
	background-color: transparent;
	color: var(--doscars-primary);
	border: 2px solid var(--doscars-primary);
}

.btn-outline:hover {
	background-color: var(--doscars-primary);
	color: white;
}

.btn-danger {
	background-color: var(--error);
	color: white;
}

.btn-danger:hover {
	background-color: #c0392b;
}

.btn-success {
	background-color: var(--success);
	color: white;
}

.btn-success:hover {
	background-color: #229954;
}

/* ========================================
   Header & Navigation
   ======================================== */

header.site-header {
	background-color: var(--doscars-primary);
	color: white;
	padding: 15px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 999;
}

.site-header .logo {
	font-size: 24px;
	font-weight: bold;
	color: white;
}

.site-header .logo span {
	color: var(--doscars-secondary);
}

.site-header nav a {
	color: white;
	padding: 10px 15px;
	display: inline-block;
	transition: all 0.3s ease;
	font-weight: 500;
}

.site-header nav a:hover {
	color: var(--doscars-secondary);
	background-color: rgba(212, 165, 116, 0.1);
}

.site-header nav li.active > a {
	color: var(--doscars-secondary);
	border-bottom: 3px solid var(--doscars-secondary);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
	background: linear-gradient(135deg, var(--doscars-primary) 0%, #0f1f35 100%);
	color: white;
	padding: 100px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 300px;
	height: 300px;
	background: rgba(212, 165, 116, 0.1);
	border-radius: 50%;
	animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-20px); }
}

.hero-section .container {
	position: relative;
	z-index: 2;
}

.hero-section h1 {
	color: white;
	font-size: 3rem;
	margin-bottom: 20px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .subtitle {
	font-size: 1.3rem;
	margin-bottom: 30px;
	opacity: 0.9;
}

.hero-section .cta-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ========================================
   Car Listings Grid
   ======================================== */

.doscars-listings-grid {
	display: grid;
	gap: 30px;
	margin: 40px 0;
}

.doscars-listings-grid.cols-2 {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.doscars-listings-grid.cols-3 {
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.doscars-listings-grid.cols-4 {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.doscars-listing-card {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.doscars-listing-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.doscars-listing-card .listing-image {
	position: relative;
	overflow: hidden;
	height: 250px;
	background-color: var(--doscars-light);
}

.doscars-listing-card .listing-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.doscars-listing-card:hover .listing-image img {
	transform: scale(1.05);
}

.doscars-listing-card .listing-price {
	position: absolute;
	top: 15px;
	right: 15px;
	background-color: var(--doscars-accent);
	color: white;
	padding: 10px 15px;
	border-radius: 4px;
	font-size: 1.2rem;
	font-weight: bold;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.doscars-listing-card .listing-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.doscars-listing-card h3 {
	color: var(--doscars-primary);
	margin-bottom: 10px;
	font-size: 1.3rem;
}

.doscars-listing-card .listing-excerpt {
	color: #666;
	margin-bottom: 15px;
	flex: 1;
	font-size: 0.95rem;
	line-height: 1.5;
}

.doscars-listing-card .listing-details {
	list-style: none;
	margin: 15px 0;
	padding: 15px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	font-size: 0.9rem;
}

.doscars-listing-card .listing-details li {
	padding: 5px 0;
	color: #555;
}

.doscars-listing-card .listing-details strong {
	color: var(--doscars-primary);
}

.doscars-listing-card .btn {
	align-self: flex-start;
	margin-top: auto;
}

/* ========================================
   Forms
   ======================================== */

.doscars-form {
	background: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	max-width: 600px;
	margin: 40px auto;
}

.form-group {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
}

.form-group label {
	color: var(--doscars-dark);
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: var(--font-primary);
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	outline: none;
	border-color: var(--doscars-primary);
	box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.form-group.required label::after {
	content: ' *';
	color: var(--doscars-accent);
}

.form-errors {
	background-color: #ffe6e6;
	border-left: 4px solid var(--error);
	color: var(--error);
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.form-errors ul {
	list-style: none;
	margin: 0;
}

.form-errors li {
	margin: 5px 0;
}

/* ========================================
   Dashboard / Dealer Control Panel
   ======================================== */

.doscars-dashboard {
	background: var(--doscars-light);
	padding: 30px;
	border-radius: 8px;
	margin: 30px 0;
}

.dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--doscars-secondary);
}

.dashboard-header h2 {
	border: none;
	padding-bottom: 0;
	margin: 0;
}

.dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.stat-card {
	background: white;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-left: 4px solid var(--doscars-secondary);
}

.stat-card .stat-number {
	font-size: 2rem;
	font-weight: bold;
	color: var(--doscars-primary);
}

.stat-card .stat-label {
	color: #666;
	font-size: 0.9rem;
	margin-top: 5px;
}

.dashboard-table {
	width: 100%;
	background: white;
	border-collapse: collapse;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-table thead {
	background-color: var(--doscars-primary);
	color: white;
}

.dashboard-table th,
.dashboard-table td {
	padding: 15px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.dashboard-table tbody tr:hover {
	background-color: var(--doscars-light);
}

.dashboard-table .action-buttons {
	display: flex;
	gap: 8px;
}

.dashboard-table .action-buttons .btn {
	padding: 6px 12px;
	font-size: 0.85rem;
}

/* ========================================
   Authentication Pages
   ======================================== */

.auth-container {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: linear-gradient(135deg, var(--doscars-primary) 0%, #0f1f35 100%);
	padding: 20px;
}

.auth-form {
	background: white;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	max-width: 450px;
	width: 100%;
}

.auth-form h1 {
	text-align: center;
	margin-bottom: 10px;
	color: var(--doscars-primary);
}

.auth-form .subtitle {
	text-align: center;
	color: #666;
	margin-bottom: 30px;
	font-size: 0.95rem;
}

.auth-links {
	text-align: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.auth-links a {
	display: inline-block;
	margin: 0 10px;
	color: var(--doscars-primary);
	font-weight: 500;
}

.auth-links a:hover {
	color: var(--doscars-secondary);
	text-decoration: underline;
}

/* ========================================
   Sidebar & Filters
   ======================================== */

.doscars-filters {
	background: white;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-group {
	margin-bottom: 20px;
}

.filter-group label {
	display: block;
	font-weight: 600;
	color: var(--doscars-primary);
	margin-bottom: 10px;
	font-size: 0.95rem;
}

.filter-group select,
.filter-group input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 0.95rem;
}

/* ========================================
   Footer
   ======================================== */

footer.site-footer {
	background-color: var(--doscars-primary);
	color: white;
	padding: 40px 0 20px;
	margin-top: 60px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}

.footer-section h3 {
	color: var(--doscars-secondary);
	margin-bottom: 15px;
}

.footer-section ul {
	list-style: none;
}

.footer-section ul li {
	margin-bottom: 10px;
}

.footer-section a {
	color: rgba(255, 255, 255, 0.8);
	transition: all 0.3s ease;
}

.footer-section a:hover {
	color: var(--doscars-secondary);
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(212, 165, 116, 0.3);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
}

/* ========================================
   Utility Classes
   ======================================== */

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt { margin-top: 20px; }
.mb { margin-bottom: 20px; }
.ml { margin-left: 20px; }
.mr { margin-right: 20px; }

.p { padding: 20px; }
.pt { padding-top: 20px; }
.pb { padding-bottom: 20px; }
.pl { padding-left: 20px; }
.pr { padding-right: 20px; }

.section {
	padding: 60px 0;
}

.section.gray-bg {
	background-color: var(--doscars-light);
}

.section-title {
	text-align: center;
	margin-bottom: 40px;
}

/* ========================================
   Single Listing Page
   ======================================== */

.doscars-single-listing {
	background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 360px);
}

.doscars-single-hero {
	padding: 48px 0 24px;
}

.doscars-single-hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 28px;
	align-items: stretch;
}

.doscars-hero-image-wrap {
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(30, 58, 95, 0.12);
	min-height: 420px;
}

.doscars-hero-image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.doscars-hero-image-placeholder {
	height: 100%;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6d7a8a;
	font-weight: 600;
}

.doscars-hero-content {
	background: #fff;
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 20px 40px rgba(30, 58, 95, 0.1);
}

.doscars-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.doscars-badge {
	background: #e7eef8;
	color: #1e3a5f;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	border-radius: 999px;
	text-transform: uppercase;
}

.doscars-single-title {
	margin-bottom: 8px;
}

.doscars-single-price {
	font-size: 2rem;
	font-weight: 800;
	color: #1e3a5f;
	margin-bottom: 18px;
}

.doscars-key-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 20px;
}

.doscars-key-specs div {
	background: #f7f9fc;
	border: 1px solid #e3e8ef;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
}

.doscars-hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.doscars-single-section {
	padding: 24px 0 34px;
}

.doscars-story-card {
	max-width: 420px;
	margin: 0 auto;
}

.doscars-story-card-inner {
	background: radial-gradient(circle at 20% 20%, #2d4f79 0%, #0f2238 85%);
	color: #fff;
	padding: 22px 18px;
	border-radius: 26px;
	aspect-ratio: 9 / 16;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 22px 40px rgba(7, 19, 35, 0.4);
}

.doscars-story-tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #d4a574;
	text-transform: uppercase;
}

.doscars-story-card-inner h2 {
	color: #fff;
	border-bottom: none;
	padding: 0;
	margin: 10px 0 8px;
	font-size: 1.4rem;
}

.doscars-story-price {
	color: #d4a574;
	font-size: 1.3rem;
	font-weight: 800;
	margin: 0 0 12px;
}

.doscars-story-card-inner img {
	width: 100%;
	border-radius: 14px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.25);
}

.doscars-story-footer {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
}

.doscars-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.doscars-gallery-item {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(30, 58, 95, 0.12);
}

.doscars-gallery-item img {
	width: 100%;
	height: 230px;
	object-fit: cover;
	display: block;
}

.doscars-two-col {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 28px;
}

.doscars-features-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.doscars-features-list li {
	position: relative;
	padding: 10px 0 10px 28px;
	border-bottom: 1px dashed #dde4ef;
}

.doscars-features-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 10px;
	font-weight: 700;
	color: #1e3a5f;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */

.doscars-whatsapp-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #25d366;
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 16px;
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.doscars-whatsapp-fab:hover {
	background: #1ea952;
	color: #ffffff;
	transform: translateY(-2px);
}

.doscars-whatsapp-fab-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	letter-spacing: 0.03em;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
	h1 { font-size: 2rem; }
	h2 { font-size: 1.5rem; }
	h3 { font-size: 1.2rem; }

	.hero-section h1 { font-size: 2rem; }
	
	.hero-section .cta-buttons {
		flex-direction: column;
		align-items: center;
	}

	.doscars-listings-grid {
		grid-template-columns: 1fr !important;
	}

	.dashboard-stats {
		grid-template-columns: 1fr;
	}

	.footer-content {
		grid-template-columns: 1fr;
	}

	.dashboard-table {
		font-size: 0.9rem;
	}

	.dashboard-table th,
	.dashboard-table td {
		padding: 10px;
	}

	.doscars-single-hero-grid,
	.doscars-two-col {
		grid-template-columns: 1fr;
	}

	.doscars-key-specs {
		grid-template-columns: 1fr;
	}

	.doscars-gallery-grid {
		grid-template-columns: 1fr 1fr;
	}

	.doscars-whatsapp-fab {
		right: 14px;
		bottom: 14px;
		padding: 11px 14px;
	}

	.doscars-whatsapp-fab-text {
		display: none;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 14px;
	}

	h1 { font-size: 1.5rem; }
	h2 { font-size: 1.2rem; }

	.doscars-form {
		padding: 20px;
	}

	.auth-form {
		padding: 20px;
	}

	.hero-section {
		padding: 50px 0;
	}

	.hero-section .subtitle {
		font-size: 1rem;
	}

	.doscars-gallery-grid {
		grid-template-columns: 1fr;
	}
}
