/*
Theme Name: Alperen Mekanik
Theme URI: https://alperenmekanik.com
Author: Alperen Mekanik
Author URI: https://alperenmekanik.com
Description: Baymak.com.tr tarzı kurumsal, modern ve temiz WordPress teması.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alperen-mekanik
Tags: business, corporate, clean, light, orange, responsive
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f47920;
    /* Baymak Orange */
    --primary-dark: #d66415;
    --primary-light: #ff9d5c;
    --secondary: #333333;
    /* Dark Grey */
    --text: #555555;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border: #e1e1e1;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-white);
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Top Bar */
.top-bar {
    background-color: #f8f8f8;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: #666;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar a:hover {
    color: var(--primary);
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo a {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary);
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 700;
    color: var(--secondary);
    font-size: 15px;
    text-transform: uppercase;
    padding: 35px 0;
    position: relative;
    display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary);
    transition: width 0.3s;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary);
}

/* Hero Slider */
.hero {
    position: relative;
    height: 600px;
    /* Adjust as needed */
    background: #f4f4f4;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding-left: 15px;
    /* Alignment with container */
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--secondary);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--text-light);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 14px;
    border: 2px solid var(--primary);
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
}

.btn-link {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    font-size: 14px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
    text-transform: uppercase;
}

.btn-link:hover {
    color: var(--primary);
}


/* Quick Categories (Icon Box) */
.quick-cats {
    padding: 50px 0;
    background: var(--bg-white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.cat-item {
    background: var(--bg-white);
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    display: block;
    /* Make it linkable */
    color: inherit;
}

.cat-item:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
}

.cat-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1;
}

.cat-title {
    font-weight: 700;
    color: var(--secondary);
    font-size: 18px;
    margin: 0;
}

/* Featured Products */
.featured {
    padding: 80px 0;
    background: #fbfbfb;
    /* Very light grey */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-desc {
    color: #777;
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #eee;
}

.product-img {
    height: 280px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
    /* Slight zoom */
}

.product-info {
    padding: 25px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.product-cat {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.product-title {
    font-size: 18px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 15px;
    min-height: 54px;
    /* Ensure alignment */
}

.product-title a:hover {
    color: var(--primary);
}


/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-content h2 {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 25px;
}

.about-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #222222;
    /* Very dark grey */
    color: #fff;
    padding: 80px 0 30px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    color: #999;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .header-inner {
        height: 70px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .main-navigation a::after {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .top-bar {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
        padding-right: 15px;
        /* Adjust padding for center alignment */
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }
}