/*
Theme Name: Kirpal Auto Custom
Theme URI: https://www.kirpalauto.com/
Description: A custom WooCommerce theme for product catalogues, inspired by Kirpal Auto Technocrats.
Author: Gemini CLI
Author URI: https://github.com/
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kirpal-theme
*/

/* --- Base Styles --- */
:root {
    --primary-blue: #1a3a8f;
    --light-blue: #0099cc;
    --dark-blue: #002e5b;
    --accent-blue: #007bff;
    --gradient: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--light-blue) 100%
    );
    --white: #ffffff;
    --black: #000000;
    --text-muted: #e0e0e0;
    --font-main: "Inter", sans-serif;
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    color: #333;
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    color: #444;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.main-nav ul li a:hover {
    color: var(--accent-blue);
}

.main-nav ul li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
}

/* Dropdown Basic Support */
.main-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.main-nav ul li:hover > ul {
    display: flex;
}

.main-nav ul li ul li a {
    padding: 10px 20px;
}

/* --- Hero Slider (Horizontal Carousel) --- */
.hero-slider {
    position: relative;
    background: var(--gradient);
    color: var(--white);
    overflow: hidden;
    min-height: 600px;
    width: 100%;
}

.slider-wrapper {
    display: flex;
    width: 400%; /* 4 slides = 400% */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.slide {
    flex: 0 0 25%; /* Each slide is 1/4 of the wrapper */
    width: 25%;
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 80px 0;
    box-sizing: border-box;
}

.slide-content {
    flex: 1;
    padding-right: 50px;
    z-index: 2;
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.slide-image img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Shop Product Images Circle */
.woocommerce ul.products li.product a img {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #eee;
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    text-transform: capitalize;
}

.btn-white:hover {
    background: #f0f0f0;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
}

.arrow-left {
    left: 30px;
}
.arrow-right {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--white);
}

/* --- Solution Section --- */
.solution-bar {
    background: #003399;
    padding: 30px 0;
    color: var(--white);
}

.solution-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.solution-bar h2 {
    font-size: 32px;
    margin-bottom: 0;
    color: var(--white);
}

.btn-blue {
    background: #007bff;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .slide {
        flex-direction: column;
        text-align: center;
    }
    .slide-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    .main-nav {
        display: none; /* Add hamburger menu later */
    }
    .solution-bar .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
