/*
Theme Name: Talisman-auto
Theme URI: http://example.com/talisman-auto
Author: Antigravity
Author URI: http://example.com
Description: A custom WordPress theme for Talisman Auto, converted from HTML template.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: talisman-auto
*/

/* 
   We often leave this file mostly empty because we are using Tailwind CSS via CDN.
   However, WordPress requires this header.
   You can add custom global overrides here if needed.
*/
body {
    background-color: #fff;
    /* Fallback */
}

:root {
    /* Brand Colors */
    --brand-red: #d01818;
    --brand-red-dark: #a40f0f;
    --brand-dark: #111111;
    --brand-gray: #1f1f1f;
    --brand-light: #f4f4f4;
}

/* =========================================
   1. RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #4a5568;
    /* gray-700 equivalent */
    line-height: 1.6;
    overflow-x: hidden;
}

/* ... (rest of reset) ... */

/* Top Bar */
.top-bar {
    background-color: var(--brand-dark);
    color: #cbd5e0;
    /* gray-400 */
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    /* Reduced padding slightly */
    border-bottom: 1px solid #2d3748;
}

.top-bar-container {
    display: flex;
    justify-content: center;
    /* Centered since social icons are gone */
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 0.75rem;
    /* Reduced gap from 1.5rem */
    flex-wrap: wrap;
    justify-content: center;
}

.contact-info i {
    color: var(--brand-red);
    margin-right: 0.35rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Helper Classes */
.hidden {
    display: none;
}

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

.mb-6 {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--brand-red);
    color: white;
    border-bottom: 4px solid var(--brand-red-dark);
}

.btn-primary:hover {
    background-color: var(--brand-red-dark);
    transform: translateY(-2px);
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */

/* Top Bar */
.top-bar {
    background-color: var(--brand-dark);
    color: #cbd5e0;
    /* gray-400 */
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px solid #2d3748;
}

.top-bar-container {
    display: flex;
    justify-content: center;
    /* Centered */
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 0.5rem;
    /* Reduced gap significantly */
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.2;
    /* Tighter line height */
}

.contact-info i {
    color: var(--brand-red);
    margin-right: 0.35rem;
}

@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 0.25rem;
        /* Tighter gap on mobile */
    }

    .contact-info {
        flex-direction: column;
        /* Force stack on mobile for tighter control or keep wrap? User asked for smaller space between lines. Column is best for "lines". */
        align-items: center;
        gap: 0.25rem;
        font-size: 0.9rem;
    }
}

/* Navbar */
.site-navigation {
    background-color: var(--brand-dark);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.site-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.brand-icon {
    color: var(--brand-red);
    font-size: 1.875rem;
    margin-right: 0.5rem;
}

.brand-highlight {
    color: var(--brand-red);
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.desktop-menu a:hover {
    color: var(--brand-red);
}

@media (max-width: 1024px) {

    .desktop-menu,
    .nav-action {
        display: none;
    }
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Mobile Menu Dropdown */
.mobile-menu {
    background-color: #1a202c;
    /* gray-900 */
    border-top: 1px solid #2d3748;
    padding-bottom: 1rem;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.mobile-menu a:hover {
    background-color: #2d3748;
    border-left-color: var(--brand-red);
}

/* =========================================
   3. FOOTER
   ========================================= */
.site-footer {
    background-color: #1a202c;
    /* gray-900 */
    color: #cbd5e0;
    /* gray-400 */
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid #2d3748;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-desc {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #2d3748;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background-color: var(--brand-red);
}

.footer-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links ul li,
.footer-hours ul li,
.footer-contact ul li {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

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

.footer-links i {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.footer-hours ul li {
    display: flex;
    justify-content: space-between;
}

.highlight-white {
    color: white;
}

.highlight-red {
    color: var(--brand-red);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--brand-red);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* =========================================
   4. HOME PAGE SECTIONS
   ========================================= */

/* Hero */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    background-color: #1a202c;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-section {
        height: 700px;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-container {
    position: relative;
    z-index: 20;
    padding-top: 2.5rem;
}

.hero-content {
    max-width: 42rem;
}

.hero-badge {
    background-color: var(--brand-red);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
    border-radius: 0.125rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.highlight-text {
    background: -webkit-linear-gradient(left, var(--brand-red), #f56565);
    background: linear-gradient(to right, var(--brand-red), #f56565);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
}

.hero-desc {
    color: #e2e8f0;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--brand-red);
    padding-left: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-light {
    background-color: white;
    color: var(--brand-dark);
}

.btn-light:hover {
    background-color: #f7fafc;
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

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


/* Search Section */
.search-section {
    position: relative;
    z-index: 30;
    margin-top: -6rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.search-container {
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    border-top: 4px solid var(--brand-red);
}

@media (min-width: 1024px) {
    .search-container {
        padding: 2rem;
    }
}

.search-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.search-title i {
    color: var(--brand-red);
    margin-right: 0.75rem;
}

.search-form {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .search-form {
        grid-template-columns: repeat(4, 1fr);
    }
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a0aec0;
    margin-bottom: 0.25rem;
}

.form-group select {
    width: 100%;
    background-color: #f7fafc;
    border: 1px solid #edf2f7;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    appearance: none;
    /* simple reset */
}

.form-group select:focus {
    outline: none;
    background-color: white;
    border-color: var(--brand-red);
}

.form-action {
    display: flex;
    align-items: flex-end;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}


/* Categories */
.categories-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.title-separator {
    width: 4rem;
    height: 0.25rem;
    background-color: var(--brand-red);
    margin-top: 0.5rem;
}

.title-separator.centered {
    margin-left: auto;
    margin-right: auto;
}

/* Categories / Services Grid */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Square Service Cards */
.category-card {
    background-color: white;
    padding: 0;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #edf2f7;
    transition: all 0.3s;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    /* Square shape & Fixed width logic */
    width: 250px;
    /* Increased from 200px */
    aspect-ratio: 1 / 1;
}

/* Responsive widths for cards */
@media (max-width: 480px) {
    .category-card {
        width: 100%;
        /* Full width on very small screens */
        aspect-ratio: 1/1;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .category-card {
        width: calc(50% - 1rem);
        /* 2 per row */
    }
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-content {
    padding: 1rem;
    flex-shrink: 0;
    /* Don't shrink text area */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30%;
    /* Approximate bottom area */
}

.category-card h5 {
    font-weight: 700;
    color: #4a5568;
    margin: 0;
    font-size: 0.9rem;
    /* Slightly smaller to fit */
    line-height: 1.2;
}

/* Service Images */
.service-img-wrapper {
    width: 100%;
    /* Fill remaining space */
    flex-grow: 1;
    height: auto;
    /* Reset fixed height */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #edf2f7;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    /* Fill the wrapper */
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

.service-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    font-size: 3rem;
}

.category-card:hover .service-placeholder {
    color: var(--brand-red);
}

.title-separator.centered {
    margin-left: auto;
    margin-right: auto;
}


/* Inventory */
.inventory-section {
    padding: 4rem 0;
    background-color: #f7fafc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.view-all-link {
    display: none;
    color: var(--brand-red);
    font-weight: 700;
}

.view-all-link:hover {
    color: var(--brand-red-dark);
}

@media (min-width: 768px) {
    .view-all-link {
        display: inline-block;
    }
}

.mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

.cars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.car-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #edf2f7;
    transition: all 0.3s;
}

.car-card:hover {
    transform: translateY(-4px);
}

.car-image-wrapper {
    position: relative;
    height: 14rem;
    overflow: hidden;
}

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

.car-card:hover .car-img {
    transform: scale(1.05);
}

.badge-new {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--brand-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.125rem;
    z-index: 10;
}

.price-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--brand-red);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}

.car-details {
    padding: 1.5rem;
}

.car-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.car-card:hover .car-title {
    color: var(--brand-red);
}

.car-subtitle {
    color: #a0aec0;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #718096;
}

.spec-item i {
    color: var(--brand-red);
    width: 1.5rem;
}

.btn-outline-dark {
    border: 2px solid #2d3748;
    color: #2d3748;
}

.btn-outline-dark:hover {
    background-color: #2d3748;
    color: white;
}


/* Services */
.services-section {
    padding: 4rem 0;
    background-color: var(--brand-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.decorative-pattern {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: -5rem;
    margin-right: -5rem;
    opacity: 0.1;
    font-size: 18rem;
    pointer-events: none;
}

.relative-z10 {
    position: relative;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

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

.service-card {
    padding: 1.5rem;
    border: 1px solid #2d3748;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--brand-red);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: #a0aec0;
}


/* Newsletter */
.newsletter-section {
    padding: 3rem 0;
    background-color: var(--brand-red);
    color: white;
}

.newsletter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .newsletter-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }

    .newsletter-text {
        width: 50%;
        margin-bottom: 0;
    }

    .newsletter-form-wrapper {
        width: 45%;
    }
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border: none;
}

.newsletter-form input:focus {
    outline: none;
}

.btn-dark {
    background-color: var(--brand-dark);
    color: white;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.btn-dark:hover {
    background-color: black;
}

```