/* ProLastik - Professional Tire Shop Styles */
/* Bold Industrial Design with Tire/Road Theme */

:root {
    --primary: #1A1A1A;
    --accent: #FF6B00;
    --secondary: #333333;
    --background: #F5F5F5;
    --white: #FFFFFF;
    --gray-light: #E0E0E0;
    --gray-medium: #999999;
    --accent-dark: #CC5500;
    --accent-light: #FF8C33;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TIRE TRACK PATTERN ===== */
.tire-track-bg {
    position: relative;
}

.tire-track-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 18px,
            rgba(255, 107, 0, 0.03) 18px,
            rgba(255, 107, 0, 0.03) 20px
        );
    pointer-events: none;
    z-index: 0;
}

/* ===== ROAD LINE DIVIDER ===== */
.road-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2rem 0;
}

.road-divider .line {
    width: 40px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.road-divider .line-dark {
    width: 40px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #1A1A1A 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 80px solid rgba(255, 107, 0, 0.05);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 60px solid rgba(255, 107, 0, 0.03);
    pointer-events: none;
}

/* ===== TIRE ICON DECORATION ===== */
.tire-icon-bg {
    position: relative;
}

.tire-icon-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 30px solid rgba(255, 107, 0, 0.06);
    transform: translateY(-50%);
    pointer-events: none;
}

/* ===== CARD STYLES ===== */
.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.product-card .product-image {
    background: linear-gradient(135deg, #2D2D2D, #1A1A1A);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-card .product-image::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 20px solid rgba(255, 107, 0, 0.1);
}

/* ===== BRAND CARD ===== */
.brand-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-light);
}

.brand-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.15);
    transform: translateY(-4px);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--accent);
}

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

.btn-dark {
    background: var(--primary);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--primary);
}

.btn-dark:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* ===== SECTION HEADERS ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== NAVIGATION ===== */
.nav-link {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== BLOG CARD ===== */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.blog-card .blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.blog-card .blog-image .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== CONTACT FORM ===== */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* ===== PRICING TABLE ===== */
.pricing-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-light);
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
}

.pricing-card.featured .pricing-header {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    color: var(--gray-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: var(--gray-light);
}

.footer a {
    color: var(--gray-light);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    background: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ASPHALT TEXTURE ===== */
.asphalt-bg {
    background: linear-gradient(180deg, #1A1A1A 0%, #222222 100%);
    position: relative;
}

.asphalt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.02) 1px, transparent 1px),
                      radial-gradient(circle at 80% 30%, rgba(255,255,255,0.02) 1px, transparent 1px),
                      radial-gradient(circle at 50% 80%, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
    pointer-events: none;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.98);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

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

.mobile-menu a {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-section {
        min-height: 450px;
    }
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--gray-light);
    border-radius: 30px;
    background: var(--white);
    color: var(--secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* ===== TIRE WHEEL SVG DECORATION ===== */
.tire-decoration {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* ===== UTILITIES ===== */
.text-accent { color: var(--accent); }
.bg-accent { background-color: var(--accent); }
.border-accent { border-color: var(--accent); }

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Checkered flag pattern for special sections */
.checkered-accent {
    background-image:
        linear-gradient(45deg, var(--accent) 25%, transparent 25%),
        linear-gradient(-45deg, var(--accent) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--accent) 75%),
        linear-gradient(-45deg, transparent 75%, var(--accent) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    height: 8px;
}

/* ============================================
   Text & Image Overflow Protection
   ============================================ */

/* Break long words/URLs to prevent overflow */
body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, li, td, th, span, a, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
table {
    max-width: 100%;
}

.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Prevent pre/code blocks from overflowing */
pre, code {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

