/*
Theme Name: MSK Theme
Theme URI: https://www.mskmachinery.com
Description: Custom theme for MSK Machinery - industrial machinery and equipment website
Author: MSK Machinery
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: msk-theme
Tags: machinery, industrial, equipment, business
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a5276;
    --primary-dark: #0e3a55;
    --secondary: #e67e22;
    --secondary-light: #f39c12;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--bg-dark);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #ccc;
}

.header-top a:hover {
    color: var(--secondary);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.site-logo span {
    color: var(--secondary);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation > ul > li {
    position: relative;
}

.main-navigation a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

/* Sub-menu */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 10px 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
}

.main-navigation > ul > li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
    border-bottom: none;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* ===== SLIDER SECTION ===== */
.slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
}

.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-controls button {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-prev {
    margin-left: 20px;
}

.slider-next {
    margin-right: 20px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') repeat;
    background-size: 100px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--secondary-light);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #fff;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.products-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.products-grid-6 .product-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.products-grid-6 .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.products-grid-6 .product-image {
    height: 150px;
    overflow: hidden;
    background: var(--bg-light);
}

.products-grid-6 .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.products-grid-6 .product-card:hover .product-image img {
    transform: scale(1.05);
}

.products-grid-6 .product-info {
    padding: 15px;
}

.products-grid-6 .product-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--primary);
    line-height: 1.3;
}

.products-grid-6 .product-info .product-category {
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.products-grid-6 .product-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 12px;
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.product-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
}

.product-link:hover {
    color: var(--primary);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ===== BLOG/NEWS SECTION ===== */
.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--text);
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
}

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

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

.footer-col ul a {
    color: #aaa;
    font-size: 14px;
}

.footer-col ul a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 14px;
    color: #888;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social span {
    font-size: 14px;
    color: #888;
}

.social-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    text-indent: -9999px;
    position: relative;
    transition: all 0.3s;
}

.social-icon::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    text-indent: 0;
}

.social-icon.facebook::before { content: '📘'; }
.social-icon.twitter::before { content: '🐦'; }
.social-icon.linkedin::before { content: '💼'; }
.social-icon.youtube::before { content: '▶️'; }

.social-icon:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

/* Mobile Fixed Contact Bar */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 10px 0;
}

.mobile-contact-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    padding: 5px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-contact-btn .icon {
    font-size: 24px;
    margin-bottom: 3px;
}

.mobile-contact-btn .text {
    font-size: 11px;
    font-weight: 500;
}

.mobile-contact-btn.phone {
    color: #1a5276;
}

.mobile-contact-btn.whatsapp {
    color: #25D366;
}

.mobile-contact-btn.email {
    color: #e67e22;
}

.mobile-contact-btn:hover {
    background: rgba(0,0,0,0.05);
}

/* ===== SINGLE POST/PAGE ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: #fff;
}

.content-area {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.content-wrapper.full-width {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 28px;
    color: var(--primary);
    margin: 30px 0 15px;
}

.entry-content h3 {
    font-size: 22px;
    color: var(--primary);
    margin: 25px 0 12px;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.entry-content ul, .entry-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 8px;
}

/* Sidebar */
.sidebar .widget {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.sidebar .widget h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul a {
    color: var(--text);
    font-size: 14px;
}

.sidebar .widget ul a:hover {
    color: var(--secondary);
}

/* ===== PRODUCT CATEGORY PAGE ===== */
.category-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.category-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.products-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid,
    .blog-grid,
    .products-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    .main-navigation ul.active {
        display: flex;
    }
    .hero-section {
        padding: 40px 0;
    }
    .hero-section h1 {
        font-size: 28px;
    }
    .hero-section p {
        font-size: 16px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .products-grid,
    .blog-grid,
    .products-archive-grid {
        grid-template-columns: 1fr;
    }
    .products-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .section-title h2 {
        font-size: 24px;
    }
    
    /* Mobile Slider - Show Full Image */
    .slider {
        height: auto !important;
        min-height: 200px;
    }
    .slide {
        position: relative !important;
        display: none;
    }
    .slide.active {
        display: block;
    }
    .slide img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    .slider-controls button {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    /* Mobile Contact Bar */
    .mobile-contact-bar {
        display: flex !important;
    }
    
    /* Add padding to body for fixed contact bar */
    body {
        padding-bottom: 70px;
    }
}
