/*
Theme Name: Trucking Company
Description: Modern, geometric WordPress theme for trucking and logistics companies
Version: 1.0
Author: Custom Theme
*/

/* CSS Custom Properties */
:root {
    --primary-color: #f4a732;
    --primary-dark: #e09320;
    --secondary-color: #2c3e50;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #ecf0f1;
    --dark-overlay: rgba(44, 62, 80, 0.8);
    --gradient-primary: linear-gradient(135deg, #f4a732 0%, #e09320 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-heavy: 0 20px 60px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.header-top {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.8)), url('assets/hero-section.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.geometric-shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    transform: rotate(45deg);
}

.shape-2 {
    bottom: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: var(--white);
    border-radius: 50%;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.service-card {
    position: relative;
    padding: 60px 40px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 400px;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.6));
    transition: var(--transition);
}

.service-card:hover::after {
    background: linear-gradient(135deg, rgba(244, 167, 50, 0.9), rgba(224, 147, 32, 0.8));
}

.service-card .content {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.service-card h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 25px;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: var(--light-gray);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--primary-color);
    color: var(--white);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Latest Posts Section */
.latest-posts-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.post-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--text-dark);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-widget p, .footer-widget li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        margin-top: -50px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        height: 80vh;
    }
    
    .service-card {
        padding: 40px 20px;
    }
    
    .about-section,
    .faq-section,
    .latest-posts-section {
        padding: 60px 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Single Post Styles */
.single-post-header {
    background: var(--light-gray);
    padding: 150px 0 80px;
    text-align: center;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-content h1 {
    margin-bottom: 20px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0;
    padding: 30px 0;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Page Styles */
.page-header {
    background: var(--light-gray);
    padding: 150px 0 80px;
    text-align: center;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.bg-primary { background: var(--primary-color); }
.bg-light { background: var(--light-gray); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Mobile Navigation Styles */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-navigation.active {
    right: 0;
}

.mobile-nav-content {
    padding: 80px 30px 30px;
}

.mobile-nav-menu {
    list-style: none;
    margin-bottom: 30px;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu a {
    display: block;
    padding: 10px 0;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.mobile-nav-menu a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.mobile-cta {
    margin-bottom: 30px;
}

.mobile-contact {
    margin-bottom: 30px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.mobile-social {
    display: flex;
    gap: 15px;
}

.mobile-social a {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.mobile-social a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* About Features */
.about-features {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.feature-content p {
    margin: 0;
    color: var(--text-light);
}

/* Single Post Layout */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    margin-top: 40px;
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
}

.widget-title {
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-post-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.sidebar-post-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-post-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.sidebar-post-title {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sidebar-post-title a {
    color: var(--text-dark);
}

.sidebar-post-title a:hover {
    color: var(--primary-color);
}

.sidebar-post-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.sidebar-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.post-count {
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--gradient-primary);
    color: var(--white);
}

.newsletter-widget .widget-title {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.newsletter-widget p {
    color: rgba(255,255,255,0.9);
}

/* Post Tags */
.post-tags {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid var(--medium-gray);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag-list a {
    background: var(--light-gray);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag-list a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.author-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Search Results */
.search-result-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.search-result-title a {
    color: var(--text-dark);
    font-size: 1.5rem;
}

.search-result-title a:hover {
    color: var(--primary-color);
}

.search-result-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.search-result-excerpt mark {
    background: var(--primary-color);
    color: var(--white);
    padding: 2px 4px;
    border-radius: 3px;
}

.search-result-link {
    color: var(--primary-color);
    font-weight: 500;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--white);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #27ae60;
}

.notification-error {
    background: #e74c3c;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}