:root {
    --primary: #0d4e2f;
    /* Restored Brand Green */
    --primary-dark: #0a3b23;
    --secondary: #222;
    /* Dark gray/black */
    --light-bg: #f8f9fa;
    --text: #444;
    --text-light: #777;
    --white: #fff;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.btn-slider {
    display: inline-block;
    padding: 15px 35px;
    background-color: rgba(13, 78, 47, 0.7);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-slider:hover {
    background-color: rgba(13, 78, 47, 0.9);
    color: var(--white);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    font-size: 20px;
    border-radius: 50%;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background-color: var(--primary);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--white);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.section {
    padding: 80px 0;
}

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

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

.mb-30 {
    margin-bottom: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.top-bar {
    background-color: var(--secondary);
    color: #ccc;
    font-size: 13px;
    padding: 10px 0;
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top-bar a {
    color: #ccc;
    margin-left: 15px;
}

.top-bar a:hover {
    color: var(--primary);
}

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

/* Transparent Header State */
header.transparent {
    background: transparent;
    box-shadow: none;
    position: absolute;
    top: 40px;
    /* Below top-bar */
}

header.transparent .nav-menu li a {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

header.transparent .nav-menu li a:hover,
header.transparent .nav-menu li a.active {
    color: var(--primary);
    /* Keep active/hover distinct */
}

/* Dark logo for normal header, we need a white logo for transparent header if available, or filter it */
/* For now, assuming dark logo might be hard to see. Let's add a white filter or background if needed. */
header.transparent .logo img {
    filter: brightness(0) invert(1);
    /* Make logo white */
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    max-height: 60px;
    transition: all 0.3s;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--secondary);
    transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
}

.nav-menu li a.btn {
    color: var(--white);
}

.nav-menu li a.btn:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

header.transparent .mobile-menu-toggle {
    color: var(--white);
}

/* Hero / Slideshow */
.hero {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    min-height: 600px;
    background-color: #333;
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-slide .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    width: 100%;
    padding: 20px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-content-right {
    left: auto !important;
    right: 5% !important;
    transform: translateY(-50%) !important;
    text-align: right;
}

.hero-slide.active .hero-content {
    opacity: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 300;
    color: #eee;
}

/* Services / Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Vehicle/Portfolio Grid - Modern Overlay Style */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Larger columns */
    gap: 30px;
}

.car-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 300px;
    /* Fixed height for uniformity */
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.car-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover img {
    transform: scale(1.1);
    /* Zoom effect */
}

/* Overlay Content */
.car-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    opacity: 1;
    /* Always visible gradient */
}

.car-title {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--white);
    font-weight: 700;
}

.car-features {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
}

.car-btn-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.car-card:hover .car-btn-container {
    opacity: 1;
    transform: translateY(0);
}

/* Forms */
.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-col {
    flex: 1;
    min-width: 250px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(195, 157, 94, 0.2);
}

.file-upload-label {
    display: block;
    padding: 20px;
    border: 2px dashed #ddd;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: #fafafa;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

footer h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #999;
}

.footer-links a:hover {
    color: var(--primary);
}

.copy {
    border-top: 1px solid #333;
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--shadow);
        padding: 20px;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .top-bar {
        display: none;
    }

    /* Hide top-bar on mobile to save space */
    .hero-title {
        font-size: 2rem;
    }
}