/*
Theme Name: Used_Tire_Shop_Directory
Description: A custom WordPress theme for Used Tire Shop directory website
Version: 1.0
Author: Custom Theme
*/

/* Color Palette Variables */
:root {
    --color-white: #ffffff;
    --color-light-gray: #e2dfda;
    --color-medium-gray: #706c65;
    --color-dark-gray: #060505;
    --color-black: #000000;
    --primary-color: var(--color-dark-gray);
    --secondary-color: var(--color-medium-gray);
    --accent-color: var(--color-light-gray);
    --text-color: var(--color-black);
    --background-color: var(--color-white);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover {
    background-color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile menu toggle animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero-section {
    min-height: 800px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/hero-section.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Hero Search Styles */
.hero-search {
    background-color: rgba(39, 35, 35, 0.838);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
}

.hero-search h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-search .dropdown-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

.hero-search select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    min-width: 200px;
    flex: 1;
    max-width: 250px;
}

.hero-search select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 5, 5, 0.1);
}

/* Card Layouts */
.cards-container {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.cards-4-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-3-col {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.cards-2-col {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.card {
    background: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Form Styles */
.search-section {
    background-color: var(--accent-color);
    padding: 3rem 0;
    margin: 2rem 0;
}

.dropdown-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    min-width: 200px;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Rating Display */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.stars {
    color: #ffd700;
}

/* Work Hours Display */
.work-hours {
    background-color: var(--accent-color);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.work-hours h4 {
    margin-bottom: 0.5rem;
}

.day-hours {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--secondary-color);
}

.day-hours:last-child {
    border-bottom: none;
}

/* Attributes Display */
.attributes {
    margin: 1rem 0;
}

.attribute-group {
    margin-bottom: 1rem;
}

.attribute-group h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.attribute-list {
    list-style: none;
    padding-left: 1rem;
}

.attribute-list li {
    padding: 0.25rem 0;
    position: relative;
}

.attribute-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Contact Info */
.contact-info {
    background-color: var(--accent-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--accent-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.breadcrumbs li:after {
    content: " / ";
    margin-left: 0.5rem;
    color: var(--secondary-color);
}

.breadcrumbs li:last-child:after {
    content: "";
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 80px;
    margin-bottom: 1rem;
}

.footer-menu ul {
    list-style: none;
}

.footer-menu a {
    color: var(--color-white);
    padding: 0.25rem 0;
    display: block;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid var(--secondary-color);
    padding-top: 1rem;
    text-align: center;
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 0;
        padding: 1rem 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--accent-color);
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem;
        border-radius: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .dropdown-container {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-search {
        padding: 1.5rem;
        margin-top: 2rem;
        max-width: 90%;
    }
    
    .hero-search h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-search .dropdown-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-search select {
        min-width: 100%;
        max-width: 100%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-search {
        padding: 1rem;
        margin-top: 1.5rem;
        max-width: 95%;
    }
    
    .hero-search h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .card-content {
        padding: 1rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
