/*
Theme Name: Payless Tire Fresh Theme
Description: Clean WordPress theme for Payless Tire with real blog integration
Version: 2.0
Author: Custom Theme
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-section h1 {
    color: #FF6A3D;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.logo-section .tagline {
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.current {
    color: #FF6A3D;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FF6A3D;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.current::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FF6A3D 0%, #FF8C65 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #FF6A3D;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: white;
}

.services-section h2 {
    text-align: center;
    font-size: 36px;
    color: #2c2c2c;
    margin-bottom: 20px;
    font-weight: 700;
}

.services-intro {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #FF6A3D;
}

.service-icon {
    font-size: 48px;
    color: #FF6A3D;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    color: #2c2c2c;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Page Header */
.page-header {
    background: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    color: #2c2c2c;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
    background: white;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-post {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 25px;
}

.blog-post h3 {
    font-size: 20px;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-post h3 a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post h3 a:hover {
    color: #FF6A3D;
}

.blog-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #FF6A3D;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #e55a2b;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-posts h3 {
    color: #2c2c2c;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-posts p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Contact Page */
.contact-section {
    padding: 60px 0;
    background: white;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.map-container img:hover {
    transform: scale(1.05);
}

.contact-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #2c2c2c;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-item i {
    color: #FF6A3D;
    font-size: 20px;
    margin-right: 15px;
    margin-top: 2px;
    min-width: 20px;
}

.info-item span {
    color: #333;
    line-height: 1.5;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.contact-form h3 {
    color: #2c2c2c;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6A3D;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #FF6A3D;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #FF6A3D;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #FF6A3D;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ccc;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #FF6A3D;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

/* Performance optimized images */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Chatway plugin optimization styles */
.chatway-widget {
    will-change: transform;
    contain: layout style paint;
}

/* Prevent chat widget layout shifts */
#chatway-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#chatway-widget-container.loaded {
    opacity: 1;
}

/* Optimize chat widget for mobile */
@media (max-width: 768px) {
    #chatway-widget-container {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
}

.service-icon {
    font-display: swap;
}

/* Mobile Responsive - Mobile First Approach */
@media (max-width: 480px) {
    .wrapper {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 24px;
    }
    
    .hero-section p {
        font-size: 14px;
    }
    
    .services-section {
        padding: 40px 0;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 36px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .contact-form,
    .contact-info {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: left;
    }
    
    .contact-form,
    .contact-info {
        padding: 25px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

/* Chatway Compatibility */
.chatway-widget {
    z-index: 9999;
}